Re:Wasm3 – A high performance WebAssembly interpreter in C
by w0utert on Monday January 13, 2020 @04:08AM
(#22032954)
Any JIT needs an interpreter to run code sections that are not compiled (yet), and large sections (I don't have any statistics, but I would guess a very sizable majority) of the code is 'cold' and will never get compiled at all. Compiling bytecode to machine code is a relatively expensive operation in itself so it only makes sense to do it for 'hot' sections (loops, functions that get called many times, etc).
[ Parent
| on HN ]
Re:Wasm3 – A high performance WebAssembly interpreter in C
by pjmlp on Monday January 13, 2020 @06:27AM
(#22033503)
There JIT implementations without interpreter phase, .NET being one of them.
Re:Wasm3 – A high performance WebAssembly interpreter in C
by saagarjha on Monday January 13, 2020 @06:34AM
(#22033527)
It appears that Mono has added the interpreter back: https://www.mono-project.com/news/2017/11/13/mono-interprete.... I think the CLR has one too, but I haven't looked into it much: https://github.com/dotnet/runtime/blob/master/src/coreclr/sr...
Re:Wasm3 – A high performance WebAssembly interpreter in C
by pjmlp on Monday January 13, 2020 @06:46AM
(#22033599)
From Microsoft side, regular CLR never had one, only the .NET MF variant.