Prepack, a partial JavaScript evaluator and optimising compiler we've developed at FB, has just been open sourced! https://prepack.io/
-
-
Replying to @sebmck @jlongster
will this really perform better with e.g. V8 Ignition and TurboFan pipeline?
1 reply 0 retweets 2 likes -
Replying to @Fishrock123 @jlongster
Maybe. It removes code that's executed on startup. No matter how optimised that code is removing it will always be faster.
1 reply 0 retweets 8 likes -
Note that Prepack is only applicable (at the moment) to code on the init path. This is more akin to a minifier that removes dead code.
1 reply 0 retweets 5 likes -
-
Replying to @Fishrock123 @jlongster
This is literally executing your JavaScript and is backed by an actual ECMA262 interpreter. It can handle very dynamic code.
3 replies 0 retweets 4 likes -
Holy shit can i get my hands at that interpreter?!
1 reply 0 retweets 0 likes -
The entire project is an interpreter. https://github.com/facebook/prepack/tree/master/src …
1 reply 2 retweets 5 likes -
In the sense that I want to use the interpreter to resolve static vars imported from other modules with a babel plugin. Is that possible?
1 reply 0 retweets 1 like -
Not really. It needs to operate on a whole bundle, using it for static analysis is a bit useless. You can't interpret something without...
1 reply 0 retweets 1 like
all the code that's actually being interpreted.
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.
he/him 