Hacker Newsnew | past | comments | ask | show | jobs | submit | bobinatorino's commentslogin

Seriously though. Omitting this detail seems strange; providing an actual compiler seems like such an obvious thing to do -

1. In the browser, even if you can't allow raw machine code (for security reasons), you could at least compile your V8 bytecode into LLVM IR and then into WebAssembly. It would make front end code way faster running (b/c of compiler optimizations on the ENTIRE code base) and loading (smaller sizes, probably). 2. On the back end, you can compile straight to machine code instead of V8 compiling stuff at runtime. It would certainly be faster, as that compilation is happening in advance versus at runtime.

There has to be some reason why this isn't being done. Perhaps the information at runtime is required, and a proper compiler would be too slow? Maybe there would be no major performance benefit? I could be wrong about the above two ideas. The V8 team has a ton of really smart people, so I can't imagine they haven't already considered this.


Really, really, slow. Crashed my computer. Interesting idea, though.


I've really wanted to put up a server to the rendering api on the server side, but I don't have to resources for it yet, so I leverage on doing the rendering on the client side.


Probably a great candidate for some FAAS (AWS Lamda, Google Cloud Functions)


When you say "resources", do you mean money or time?


money


Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: