Re:Building a Minimalistic Virtual Machine
by rhn_mk1 on Saturday February 25, 2023 @11:34AM
(#34937906)
That's what LLVM is today, but IIRC their goals were the same. It might be worth it to look at what made it turn away from the minimal idea and into the heavyweight that it is now.
[ Parent
| on HN ]
Re:Building a Minimalistic Virtual Machine
by maxime_cb on Saturday February 25, 2023 @01:38PM
(#34939203)
If I had to guess, I would say it probably comes down to wanting to go with static, ahead of time compilation rather than JIT. There are real and valid advantages to AOT compilation. There's downsides with the LLVM approach too. For example, LLVM makes it explicit that they provide zero guarantees when it comes to the stability of their bitcode format. That somewhat limits what you can do with it.