It's the same problem TypeScript have/had that for external libs you need definition files for it to work. Now if we had TypeScript-to-assumeDataProperty generator that would be VERY interesting!
Prepack helps make JavaScript code more efficient
31–40 of 233 posts
Re: Prepack helps make JavaScript code more efficient
#32Hi, 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
#33Prepack looks like the same kind of optimizer – it could be a fun task to write an interpreter and see if this can turn it into a compiler/transpiler.
Re: Prepack helps make JavaScript code more efficient
#34Earlier quoted context omitted.
Can you prove that any of the optimizations in your docs aren't already done by V8? I agree with the other commenters in this thread-- V8 likely does these already. You have an extraordinary claim, which requires extraordinary proof.
The whole point is to not let V8 do any job at all. V8 == user impacted. Compile time V8 == compiler impacted, users happy. It's like interpreting what you can during compile time, with caching capabilities. To speed up boot time and init time, not runtime per say.
Re: Prepack helps make JavaScript code more efficient
#35Re: Prepack helps make JavaScript code more efficient
#36Hi, I am Nikolai Tillmann, a developer on the Prepack project. I am happy to answer any questions!
Can you prove that any of the optimizations in your docs aren't already done by V8? I agree with the other commenters in this thread-- V8 likely does these already. You have an extraordinary claim, which requires extraordinary proof.
Re: Prepack helps make JavaScript code more efficient
#37Very impressive overall.
Re: Prepack helps make JavaScript code more efficient
#38Earlier quoted context omitted.
The benefit of this would be at runtime when implementing interpreters: > experiment with JavaScript features by tweaking a JavaScript engine written in JavaScript, all hosted just in a browser; think of it as a "Babel VM", realizing new JavaScript features that cannot just be compiled away I've been playing with making toy languages inside of Javascript, and I believe there's lots of untapped power there. The paradi…
> Webpack is for dead fish. I haven't used webpack but I have used many similar tools, and I've heard a lot of praise for webpack. Can you elaborate on why you dislike webpack so much?
Re: Prepack helps make JavaScript code more efficient
#39I was under the impression that V8 and the like are so optimized that this would give marginal gains. Would love to be wrong though. Do you have any performance benchmarks?
Re: Prepack helps make JavaScript code more efficient
#40I was under the impression that V8 and the like are so optimized that this would give marginal gains. Would love to be wrong though. Do you have any performance benchmarks?