top | item 36184428

V8 Maglev: compiler design doc

49 points| obl | 2 years ago |docs.google.com

17 comments

order

mkoubaa|2 years ago

Boy am I glad that huge internet companies are willing to fund these sorts of large engineering projects in the open

_Microft|2 years ago

We wanted flying trains and all we got was a js compiler.

rurban|2 years ago

Large? This is the simple, fast midtier compiler. Without much optimizations.

Looks similar to the PHP compiler.

tambourine_man|2 years ago

This seems similar to Safari’s JSCore 4 tiers architecture.

Imagine keeping execution smooth while switching between all those tiers. Modern JS engines are fascinating beasts.

taosx|2 years ago

Thank you to everyone involved in this. I'm wondering, is Node.js fiddling with v8 in order to focus more on the resulting code performance than the initial startup.

Planning to learn C/C++ in order to investigate that and if there any gains there.

pawelmurias|2 years ago

I would guess node.js apps can load a ton of code so the startup can be important too.

xt00|2 years ago

Yay a new part of chromium with a new name made by different people (probably) than the original v8 people. Seems like Google has an affliction of “not invented by me”.

Just read the first sentence if you are thinking I’m being a bit harsh:

“We’ve previously made a case why four tiers in V8(Google internal) make sense to explain why Sparkplug made sense in addition to Ignition, TurboProp and TurboFan. TurboProp was a midtier compiler proposal based on TurboFan to significantly improve compilation speed while compromising on the performance of the resulting code. With Sparkplug in place, however, the design tradeoffs TurboProp made by being built on top of TurboFan didn’t end up panning out. ”

simonebrunozzi|2 years ago

Why pick a name - maglev - that will confuse everyone, forever?