News for hackers. Stuff that matters.
Re:Compilers targeting C - a list of open source compilers t... by cju on Sunday January 10, 2016 @02:23PM (#10876715)
Some other missing compilers:

* Idris : http://www.idris-lang.org/

* Ivory : http://ivorylang.org/

* ATS : http://www.ats-lang.org/

* Mbeddr : http://mbeddr.com/

Re:Compilers targeting C - a list of open source compilers t... by wyager on Sunday January 10, 2016 @03:20PM (#10876999)
I did not know Idris targeted C!

Idris seems really great, but I can't use it for much because its standard library is sorely lacking. If someone were to port over an equivalent of Haskell's Base (including Network, Map, Seq, Vector, etc.) I would probably start using it for real work.

Re:Compilers targeting C - a list of open source compilers t... by jdudek on Sunday January 10, 2016 @01:11PM (#10876328)
I wrote a JavaScript-to-C compiler: https://github.com/jdudek/tatende-js. It supports a limited subset of the language—just enough to compile itself.

It was my university project. It’s not really useful, but it was extremely fun to work on.

Re:Compilers targeting C - a list of open source compilers t... by reza_n on Sunday January 10, 2016 @12:23PM (#10876079)
Varnish Cache VCL is compiled into C and dynamically linked in. See -C [0].

[0] https://www.varnish-cache.org/docs/trunk/reference/varnishd....

Re:Compilers targeting C - a list of open source compilers t... by neopallium on Sunday January 10, 2016 @10:36AM (#10875612)
There is also my SLua [1] compiler. It compiles Lua to C code.

1. https://github.com/Neopallium/slua

Re:Compilers targeting C - a list of open source compilers t... by guide42 on Sunday January 10, 2016 @10:51AM (#10875671)
Zephir[0] compiles to C PHP extensions.

[0]: http://zephir-lang.com/

Re:Compilers targeting C - a list of open source compilers t... by fsantanna on Sunday January 10, 2016 @04:32PM (#10877299)
Céu is a Esterel-based deterministic/synchronous/concurrent language:

http://www.ceu-lang.org

(I'm the author of Céu.)

Re:Compilers targeting C - a list of open source compilers t... by catnaroek on Sunday January 10, 2016 @05:40PM (#10877576)
~If I recall correctly~ The Ur/Web compiler also targets C: http://impredicative.com/ur/manual.pdf#subsection.12.24
Re:Compilers targeting C - a list of open source compilers t... by TazeTSchnitzel on Sunday January 10, 2016 @01:37PM (#10876469)
Some of these are interestingly domain-specfic.

Vala is essentially sugar for the GObject API. Zephir is the same for the Zend Engine API.

Re:Compilers targeting C - a list of open source compilers t... by trajing on Sunday January 10, 2016 @04:33PM (#10877303)
Excuse me if I'm wrong, but isn't compiling to C instead of e.g. LLVM IR generally considered bad practice unless you have a very good reason due to all of C's undefined behavior?
Re:Compilers targeting C - a list of open source compilers t... by hnbro on Sunday January 10, 2016 @05:07PM (#10877444)
there are certainly arguments to be made about UB (though i don't think llvm ir is free of it). on the other hand, llvm is ostensibly less portable and it's infrastructure is a rather massive beast to work with.
Re:Compilers targeting C - a list of open source compilers t... by Rexxar on Sunday January 10, 2016 @06:50PM (#10877848)
Why do you want to generate code with undefined behaviours ?