Languages with C/C++ output [closed]
- by Vag
Which languages have compilers able to emit plain standard C/C++ code?
For a start:
Haxe // uses Boehm GC
Haskell (JHC)
Haskell (old GHC) // -fvia-c, removed recently (emitted code is super ugly)
Clay
ATS
Cython
RPython (Shed Skin) // experimental
RPython (PyPy)
Python (Nuitka) // although author claims there are no speedups
Common Lisp (ECL)
COBOL (OpenCobol)
Scheme (Chicken)
APL // So far I've not found working implementation available for free download
Ur/Web // GCC-specific output, and intended to be used only for web developments (included for completeness only)
I'd like to build comprehensive up-to-date list but found only these ones so far.
I've tested only Haxe and it works pretty well and quite fast. What about other ones? What is your expirience? How much ugly is generated code?
Update. Any language chains (e.g. X - Scheme - C) will be perfectly OK as answer if its use is practical enough and suited for production use.