News for hackers. Stuff that matters.
Re:Luau – A fast, small, safe, gradually typed scripting lan... by rurban on Wednesday August 05, 2020 @02:07PM (#24063707)
They explain it in some subsequent page. Also computed goto is not really performant enough for fast scripting languages, it's essentially a switch (indirect func table) without range check.

The performant variant is to squeeze it to have room for other code, keep important registers asis, and jit the bytecode array into sequences of static calls. They next best variant is to call the next op statically. Indirect func tables are hard to predict by the CPU.

They explicitly removed tailcall for better user experience, as it messes up debugging and stack traces. Maybe it could be added back in perf mode.

There are no comments on this comment yet.