Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
NTillmann
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
4 ms
·
1.
▲
by
NTillmann
9y ago
Conceptually, Prepack would go together well with heap snapshots, as Prepack figures out what is the concrete heap, and what are residual computations. If we tweak Prepack to completely separate these two aspects in the generated code, then
2.
▲
by
NTillmann
9y ago
It's not yet ready for production, so there are some bugs and cases where we should reject a program but don't do that yet. Having said that, it's quite safe, but won't be undetectable. Code using eval could detect injec
3.
▲
by
NTillmann
9y ago
Currently, it's really about the initialization phase of the code.
4.
▲
by
NTillmann
9y ago
To really see the benefits, you need to use it an environment where the parsing overhead gets cached. In terms of pure execution time, we see improvements of up to 10x for the initialization phase.
5.
▲
by
NTillmann
9y ago
Prepack is quite complementary to traditional compilers. It's strength is that it comes with full knowledge of the JavaScript built-ins, and it uses that to pre-evaluate the code at compile time. In an extreme case, an entire program c
6.
▲
by
NTillmann
9y ago
Hi, I am Nikolai Tillmann, a developer on the Prepack project. I am happy to answer any questions!