News for hackers. Stuff that matters.
Re:C as an Intermediate Language (2012) by Artlav on Sunday May 15, 2016 @07:43PM (#11703323)
This begs the question of what would be better - to compile your favorite language to C and use something like Emscripten to make JS, or to compile your code directly to JS?

So far as my experiments went, a 3000 native score Dhrystone test compiles to C at 1300, and that C compiles to 850 worth of JS. Which suggests that a direct-to-JS compiler might be worth the efforts...

Re:C as an Intermediate Language (2012) by gokr on Monday May 16, 2016 @08:05AM (#11705753)
You can play around with Nim for getting some numbers on this - since it can compile to C, C++ or js.