Just another day at Facebook's office...
Prepack helps make JavaScript code more efficient
91–100 of 233 posts
Re: Prepack helps make JavaScript code more efficient
#92I wonder if this is the same project[0] Sebastian McKenzie previewed at React Europe 2016?
Re: Prepack helps make JavaScript code more efficient
#93Earlier quoted context omitted.
There is some confusion in this thread about the purpose of this tool, which is targeted at generated code—specifically, code generated by other compilers. In order to get language features that don't exist in javascript, code has to be generated in a more or less context-agnostic way. This (as I understand it) brings more context to bear, to reduce the cost of the new abstractions for your specific usage .
Why improve the compilers when we can have yet another tool to layer on top of our ever growing tool stack.
There's a LOT of parts that do different things. They may be aliased under one command (with tons of flags) but a modern system does a lot of stuff.
For modern JS we appear to have:
- Linters (ESLint, etc)
- Transcompilation to Object Code (Babel, etc, transpile to JS)
- AoT Compilation (this & Closure Compiler, etc, do optimizations on the code ahead of running it)
- Recompilation (AST based compression - like Uglify)
- Compiling (the actual JS VM, V8, etc)
- JIT (in the actual browser)
None of these steps are alien to other build chains.
Re: Prepack helps make JavaScript code more efficient
#94This is exciting, and has a lot of potential to significantly improve JS library initialization time. I wonder if this is the same project[0] Sebastian McKenzie previewed at React Europe 2016? [0] https://www.youtube.com/watch?v=xbZzahWakGs
Re: Prepack helps make JavaScript code more efficient
#95Earlier quoted context omitted.
This gets brought up every time, even after many times it's been clarified (even by lawyers) that it gives you more rights overall (as the downsides to it are true either way ). Remember - without that patent grant you have no rights to any of Facebook's patents anyhow . With it, you do. So the worst case is that you'd be in the same situation if you didn't have the grant.
Yes, I know; I mentioned that my understanding is that they're more beneficial. The beneficial aspects of the clause don't forgive the broadness of it, however.
Re: Prepack helps make JavaScript code more efficient
#96I hate to bring this up whenever I see a Facebook project, but it still warrants saying: the patents clause in this project, like in others including React, is too broad. I really wish they made a "version 3" that limited the scope of the revocation to patents pertaining to the software in question, e.g. Prepack, React, rather than a blanket statement that covers any patent assertion against Facebook. While I suppose…
This gets brought up every time, even after many times it's been clarified (even by lawyers) that it gives you more rights overall (as the downsides to it are true either way ). Remember - without that patent grant you have no rights to any of Facebook's patents anyhow . With it, you do. So the worst case is that you'd be in the same situation if you didn't have the grant.
Re: Prepack helps make JavaScript code more efficient
#97This is exciting, and has a lot of potential to significantly improve JS library initialization time. I wonder if this is the same project[0] Sebastian McKenzie previewed at React Europe 2016? [0] https://www.youtube.com/watch?v=xbZzahWakGs
Re: Prepack helps make JavaScript code more efficient
#98Not the best idea, imho.
Re: Prepack helps make JavaScript code more efficient
#99Earlier quoted context omitted.
This gets brought up every time, even after many times it's been clarified (even by lawyers) that it gives you more rights overall (as the downsides to it are true either way ). Remember - without that patent grant you have no rights to any of Facebook's patents anyhow . With it, you do. So the worst case is that you'd be in the same situation if you didn't have the grant.
False: an implicit patent grant means that by open sourcing a piece of software you imply that people can, you know, use it.
Re: Prepack helps make JavaScript code more efficient
#100Hi, I am Nikolai Tillmann, a developer on the Prepack project. I am happy to answer any questions!
What will happen if you have bug in your function? Take the fibonacci function for example, what if you have a bug and created an infinite loop? Will Prepack terminate?