Prepack helps make JavaScript code more efficient
1–10 of 233 posts
Re: Prepack helps make JavaScript code more efficient
#2With all of these JS "compilers" and transpilers, at some point, it just makes sense to build a client-side language in the browser that compiles down to native and runs sandboxed.
I'm excited for WebAssembly, but I realize that, like with all shiny new web things (for example, WebRTC on Safari/iOS), mainstream browsers that most people/users actually have installed on their computers/devices and use won't support it for another 3-5 years.
Meanwhile, the everyday JS coder wants to use ES7 from last year but has to settle for the bandaid solution of Babel because the browsers aren't going to be ready for it yet.
Google's Native Client had the right idea but never quite took off (nor was it ever adopted by anybody else): https://static.googleusercontent.com/media/research.google.c...
This type of working solution would also stave off the Electron-ification of desktop apps (which means an effective halving of my laptop battery life, spinning up wasted CPU cycles -- like 13% being spent on rendering a blinking cursor, and reducing my computer's RAM by a factor of eight as just about everything I run on my computer now is its own separate bloated Chrome instance -- Slack, Atom, VSCode, Skype, Telegram, Discord, Spotify, ...).
EDIT: Facebook employees, please stop downvoting my quality content. It is getting tiresome.
Re: Prepack helps make JavaScript code more efficient
#3I'm saying its something like: https://linuxontheweb.appspot.com/about
Re: Prepack helps make JavaScript code more efficient
#4Re: Prepack helps make JavaScript code more efficient
#5Re: Prepack helps make JavaScript code more efficient
#6Looks like it's applying the same sort of optimizations a normal optimizing compiler would. With all of these JS "compilers" and transpilers, at some point, it just makes sense to build a client-side language in the browser that compiles down to native and runs sandboxed. I'm excited for WebAssembly, but I realize that, like with all shiny new web things (for example, WebRTC on Safari/iOS), mainstream browsers that m…
Re: Prepack helps make JavaScript code more efficient
#7Looks like it's applying the same sort of optimizations a normal optimizing compiler would. With all of these JS "compilers" and transpilers, at some point, it just makes sense to build a client-side language in the browser that compiles down to native and runs sandboxed. I'm excited for WebAssembly, but I realize that, like with all shiny new web things (for example, WebRTC on Safari/iOS), mainstream browsers that m…
Projects like that can pioneer a whole lot of new techniques and infrastructure that can be very easily applied to whatever technology is eventually going to win out.
Re: Prepack helps make JavaScript code more efficient
#8Hi, I am Nikolai Tillmann, a developer on the Prepack project. I am happy to answer any questions!
Re: Prepack helps make JavaScript code more efficient
#9I love it and can't wait to use it on some projects!