Live data from Hacker News

A graph of programming languages connected through compilers

akr.am

21–30 of 110 posts

Re: A graph of programming languages connected through compilers

#23
post #11

So, you can apparently compile C++ to LLVM-IR, then to Javascript, then to Python and then to C++ (you can do similar feat with C). Wonder if there is a fix point, or it diverges.

I looked at js2py (the most surprising-to-me link in that chain) the code it generates already kind of explodes on loc. I think it's probably very unlikely there is a fixed point instead of an exponential explosion of your program as you run it through the chain.

Re: A graph of programming languages connected through compilers

#24
post #19
post #3

Nice visualization, it can be improved though. There are Java compilers directly to native code though, the Oracle JVM isn't the only path.

According to this graph one could actually get from Java to Objective-C to LLVM-IR to Machine Code... Or with LLVM-IR to C in the last step you could get from Java to C...

One problem with this graph is that not all links actually support the full language. J2objc actually places constraints on your code so in some sense it's really compiling some (large) subsets of Java.
Post reply on HN