Questions tagged [transpiler]

A transpiler is a compiler that translates the source code of one high-level programming language to the source code of another high-level programming language.

Transpilers are also known as compilers.

429 questions
6
votes
2 answers

Qiskit Transpiler for quantum circuits

Okay, so, in Qiskit there is the transpile() function (see documentation). My understanding of a transpiler is best described as a way of converting one set of gate operations to another set of gate operations, with the intent of running an…
6
votes
0 answers

How to convert my old amiga 68000 game to portable c

A long time ago, I've made some games for the Commodore Amiga. All done in 68000 assembly (So I still have the sources) I want to port these games to modern platforms, and instead of hosting an emulator, I thought of converting the Assembly to C,…
Toad
  • 15,593
  • 16
  • 82
  • 128
6
votes
1 answer

LaTex math to ASCIImath conversion

I have a javascript web application, and want to convert between strings of LaTeX math and strings of ASCIImath. It seems that MathJax could be able to do that, but I'm not to sure, what would be the best way. Would it be easier to write a…
guillefix
  • 380
  • 5
  • 11
6
votes
1 answer

How to convert a scikit model in a fast `.so`

What should be better path to convert a scikit model (e.g. the result of a RandomForestClassifier fit) in a piece of C++ to get the the fastest .so that can be called from some other ecosystem ?
user3313834
  • 7,327
  • 12
  • 56
  • 99
5
votes
0 answers

Next.js client debug with VSCode shows transpiled JS

I have a little Next.js app (all dependencies are the up-to-date.) VS Code shows transpiled code when debugging my async function: Chrome's devTools seems working as expected (but showing the filename with some hash added to its end): I'm using…
5
votes
1 answer

Svelte only supports es6+ syntax. Set your 'compilerOptions.target' to 'es6' or higher

I have been using Svelte, TypeScript and Rollup (letting TypeScript handle the transpilation) to target ES7. Now I'm starting a new project and need to target ES5. The first thing I have noticed is that everything gets transpiled but the components…
Maciej Krawczyk
  • 14,825
  • 5
  • 55
  • 67
5
votes
1 answer

Typescript Exclude/Ignore (do not compile) File in rootDir

I'm writing a TypeScript/React Web app that has the following top level directory structure: ├── jest.config.ts ├── node_modules ├── package.json ├── package-lock.json ├── public ├── src ├── tsconfig.json └── webpack.config.js All TypeScript source…
Jason
  • 2,382
  • 1
  • 16
  • 29
5
votes
2 answers

How to debug and step into custom language sources transpiled to C++?

I would like to use a custom preprocessor language along with C++. My sources would be first transpiled to valid C++ with my custom transpiler, then compiled with a regular C++ compiler. Example: my_transpiler -o source_gen.cpp source.mycpp g++ -o…
Dragnalith
  • 195
  • 1
  • 9
5
votes
1 answer

Where is babel plugin syntax defined?

I'm building a babel plugin and can find numerous examples of already written plugins in the Babel repo. What I can't find is a definitive API documentation for writing such a plugin- especially for operations I can perform on the resulting AST. I…
ABMagil
  • 4,579
  • 4
  • 21
  • 35
5
votes
2 answers

Gulp- Watchify does not detect changes to a submodule folder

My watchify-program does not detect changes in a sub-module. The submodule is situated in ../js/lib/melajs/**/*.js When I run browserify-program it does however compile the submodule. Below are the two tasks. programAppjs:…
morne
  • 4,035
  • 9
  • 50
  • 96
5
votes
1 answer

Abstract (programming) language built to transpile

Introduction Oftentimes I encounter a situation in which a library has been written in a particular programming language. That's great, if I want to use the library in the same language, but if I want to use a different language, that's going to be…
Raven
  • 2,951
  • 2
  • 26
  • 42
5
votes
1 answer

Parcel + Babel not transpiling ES6 from node_modules?

I can't seem to get Babel to work with Parcel, although the presets are being installed automatically. It works locally and in Chrome, but it's not transpiling node_modules es6 files, so the output still has const/let/... and it cannot run in…
Kevin Van Ryckegem
  • 1,915
  • 3
  • 28
  • 55
5
votes
0 answers

webpack code not transpiling to ES5

So I've gone through a few variations of configs now and for some reason certain webpack code is not being transpiled to es5 with the babel-loader in production || development (specifying because I know webpack-dev-server removed support for it) my…
Paulius Dragunas
  • 1,702
  • 3
  • 19
  • 29
5
votes
1 answer

Do I still need babel for Node 8.9.4

From http://node.green/ 99% of ES2015 functionality is supported by NodeJS version 8.9.4. Does this mean that I don't need babel at all anymore? Here's more details on what I'm trying to achieve: I'm talking only about server side code for NodeJS I…
KaushikTD
  • 257
  • 3
  • 17
5
votes
0 answers

How can I write a library usable from multiple languages?

I am trying to write a library which can be used from multiple programming languages, for example: CLR languages (C#, F#..) JVM languages (Java, Kotlin, Scala..) Native languages (C/C++, Rust, Objective-C, Swift..) JavaScript/TypeScript The basic…
Jesse
  • 6,725
  • 5
  • 40
  • 45