[erlang-questions] Erlang-to-C

Patrick Logan patrickdlogan@REDACTED
Tue Mar 3 02:12:38 CET 2009


"Is there any such thing currently, or is this a "possibility" that
developers have thought about but not actually implemented."

There is ETOS (http://www.iro.umontreal.ca/~etos/)

I doubt ETOS has been worked on much in the last 10 years, but it at
least serves as a reasonable proof-of-concept.

ETOS compiles Erlang to Gambit Scheme, which itself is a Scheme to C
compiler. Therefore by the transitive property of A-to-B and B-to-C,
ETOS is an Erlang to C compiler.

Gambit Scheme has process and message sending capabilities in the same
neighborhood as Erlang. Gambit Scheme is not (yet) enabled for a
single run-time using more than one core.

Since it is a lot easier to write X-to-Scheme than X-to-C, this is a
pretty reasonable approach to get to X-to-C in a fairly short amount
of time. Moreover if you write X, Y, and Z to Scheme then you get a
pretty good collection of languages that can all run together in the
same, well, common, run-time.

-Patrick



More information about the erlang-questions mailing list