Tagged: vm
2 articles
From Stack VM to Register VM: A 31% Speedup by Changing the Model I rewrote my bytecode VM from stack-based to register-based. The instruction count dropped by 67% and performance improved by 31%. Read article NaN Boxing in Rust: Cramming Every Value Into 8 Bytes LuaJIT packs every value into 8 bytes using NaN boxing. Porting this to Rust means opting out of everything the language gives you. Read article