Re:Node.js Compiler – Compiling your Node.js application int...
by notsohuman on Friday May 05, 2017 @02:38AM
(#14271537)
it would be awesome if someone creates a compiler for javaScript.
[ Parent
| on HN ]
Re:Node.js Compiler – Compiling your Node.js application int...
by mbel on Friday May 05, 2017 @03:34AM
(#14271740)
Arguably there are already couple of popular compilers [0] for JavaScript (Babel, Closure Compiler, minifiers etc.). They just don't target native CPU assembly.
[0] Compiler is just a program that transforms code from one representation to another.
Re:Node.js Compiler – Compiling your Node.js application int...
by coldtea on Friday May 05, 2017 @03:46AM
(#14271785)
Why, thank you, Technically Correct Man!
http://www.damnlol.com/the-adventures-of-technically-correct...
Re:Node.js Compiler – Compiling your Node.js application int...
by cool_shit on Friday May 05, 2017 @04:23AM
(#14271908)
This is a fantastic comic. Technically correct -- the game of the learner. Pragmatics -- the game of the master.
Re:Node.js Compiler – Compiling your Node.js application int...
by coldtea on Friday May 05, 2017 @05:25AM
(#14272147)
Nice quote!
Re:Node.js Compiler – Compiling your Node.js application int...
by cool_shit on Friday May 05, 2017 @06:26PM
(#14277260)
Feel free to.
Re:Node.js Compiler – Compiling your Node.js application int...
by TheRealPomax on Friday May 05, 2017 @11:24AM
(#14274105)
But a compiler for what? Plain JS without any APIs? JS that uses the Node.js API? JS that uses the Web APIs? The problem with base JS is that it's a general purpose scripting language that lacks some of the basics that you need before you can compile the code as something that can "do a thing" on its own, without still needing an interpreter for the third party APIs the code tries to make use of that rely on out-of-language hooks (like Node.js)
Re:Node.js Compiler – Compiling your Node.js application int...
by notsohuman on Friday May 05, 2017 @02:40AM
(#14271541)
I mean an actual compiler rather which is much more optimized than node environment rather than just making things into executables
Re:Node.js Compiler – Compiling your Node.js application int...
by ComodoHacker on Friday May 05, 2017 @03:10AM
(#14271657)
V8 includes JIT compiler. Could it really be "much more" optimized?
Re:Node.js Compiler – Compiling your Node.js application int...
by perbu on Friday May 05, 2017 @03:35AM
(#14271743)
If you look at Hiphop vs. HHVM there is certainly a significant performance upside in taking advantage of clangs or gccs ability to produce efficient code.
I'm not sure why Facebook decided to stop maintaining hiphop. Perhaps manageability wasn't great.
Re:Node.js Compiler – Compiling your Node.js application int...
by mbel on Friday May 05, 2017 @03:31AM
(#14271724)
Perhaps. JIT compiler has to care deeply for compilation time. For AOT compiler compilation time is a little bit less pressing problem which leaves some space for optimization passes that take too long for JIT.
Re:Node.js Compiler – Compiling your Node.js application int...
by notsohuman on Friday May 05, 2017 @03:18AM
(#14271686)
I agree V8 does an awesome job buts it compilation phase is not done separate before running. Lot could done to gain the speed in those areas.
Re:Node.js Compiler – Compiling your Node.js application int...
by notsohuman on Friday May 05, 2017 @03:38AM
(#14271754)
there is always something more that can be done
Re:Node.js Compiler – Compiling your Node.js application int...
by perbu on Friday May 05, 2017 @03:31AM
(#14271723)
This would be pretty useful. Something like hiphop which could transpile into C or C++ would mean we (IncludeOS) could build tooling to run a node application on directly in a vm without a underlying OS.