News for hackers. Stuff that matters.
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).
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.
Re:Wasm3 – A high performance WebAssembly interpreter in C by saagarjha on Monday January 13, 2020 @06:50AM (#22033614)
Shows what I know; I just searched for "interpreter" in the repository. I'm curious how C# runs on iOS, though.
Re:Wasm3 – A high performance WebAssembly interpreter in C by pjmlp on Monday January 13, 2020 @07:48AM (#22033944)
AOT compiled to native code.