Live data from Hacker News

A graph of programming languages connected through compilers

akr.am

41–50 of 110 posts

Re: A graph of programming languages connected through compilers

#42
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.

> There are Java compilers directly to native code though

Dude, if there was some kind of wiki documenting HN lore, there would have to be a page on you drilling this fact into our skulls for years on end! :)

https://hn.algolia.com/?query=java%20native%20pjmlp&sort=byP...

Re: A graph of programming languages connected through compilers

#44
It says V8 compiles JavaScript to Machine Code, but is that really correct given that the machine code is an intermediate product, and the result of applying a JIT to a specialized piece of code (where part of the variables are already known to the compiler)?

Re: A graph of programming languages connected through compilers

#45
post #26

44 languages 42 languages compile to Machine Code Wait, what? There are 2 languages that don't compile to Machine Code? Which ones are those, and how is it even possible?

Compilation is the act of generating a back-end code. Most languages compile to Machine Code, but you could also compile to some other language like C, Haskell, Javascript that you know has a very well-optimized compiler. Say, if you generate C code, and do it well, you know that your language will be almost as fast as C.

Re: A graph of programming languages connected through compilers

#46
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.

Like when you auto-translate English -> Japanese -> English. Very unlikely you will recover the original

Good fun though.

Post reply on HN