Live data from Hacker News

A graph of programming languages connected through compilers

akr.am

81–90 of 110 posts

Re: A graph of programming languages connected through compilers

#81

Looks like everyone want to add some missing info. The github source code link can be found at the top right corner. For easy reference, here it is https://github.com/mohd-akram/languages

More specifically a PR to update https://github.com/mohd-akram/compilers/blob/master/src/comp.... One could argue that source and target should allow arrays. But in general someone needs to maintain an up-to-date "awesome-compilers" list.

Re: A graph of programming languages connected through compilers

#83
post #78
post #46

Earlier quoted context omitted.

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

By the pigeonhole principle, any such iteration must either enter a cycle, or the translations must be unbounded in length. If you experiment, you will find that Google Translate usually lands in the first category; transpilers usually land in the second.

I am iterested in an example that cycles on Google translate - can you share one?

Re: A graph of programming languages connected through compilers

#84
post #83
post #78

Earlier quoted context omitted.

By the pigeonhole principle, any such iteration must either enter a cycle, or the translations must be unbounded in length. If you experiment, you will find that Google Translate usually lands in the first category; transpilers usually land in the second.

I am iterested in an example that cycles on Google translate - can you share one?

> I am iterested in an example that cycles on Google translate - can you share one?

Just translate 'hello' back and forth in any pair of languages I tried.

Re: A graph of programming languages connected through compilers

#85
post #63

I tried in vain to find WebAssembly. Why would you include JavaScript but not WebAssembly in a graph that has LLVM in it?

It does have WebAssembly, but its incorrectly labeled as targeting Java Bytecode.

What stands out to me is the absence of anything targeting WebAssembly. This must be a work in progress.

Re: A graph of programming languages connected through compilers

#87
post #70

Earlier quoted context omitted.

But let's say, they added "decompilers" to the graph, and there is (say) a decompiler from machine code to C. Then I'd assume, because there is a path in the graph from JavaScript to C (going through machine code), that I can translate from JavaScript to C. Except this isn't true because V8 is a JIT, and doesn't output its internal representation.

It's not a graph of compilers to a file on disk . It's a graph of compilers. Just because it exists only in memory doesn't mean it doesn't exist. Has the JavaScript been compiled to machine code. Yes, it has. You mean that the JavaScript compilation is only valid for a given application at a given point in time? Yes that's true.

What I meant is: the graph is more useful if you can apply the relations transitively (i.e. find one or more paths between any two languages, and use the compilers to walk along the path). The demo even suggests that by allowing you to find a path, and leave the "directly" box unchecked.
Post reply on HN