Luke Gorrie
Luke Gorrie
So how close is this description getting: - Lua exceptions can be caught either in Lua code (`pcall(...)`) or in C code (`lua_pcall(...)`). - Lua exceptions can be raised either...
@igelhaus I had a look at how PUC Lua handles stack unwinding. It's quite trivial in [ldo.c](https://github.com/lua/lua/blob/master/ldo.c#L47-L79): if you build with a C compiler then it uses setjmp/longjmp and if...
This is something that we noticed on Slack (#233) while quickly skimming the side-by-side mcode and IR listing. A single `i64 mod +8` instruction, equivalent to the C expression `(int64_t)x...
@ZirconiumX and we should special case powers-of-two because idiv is so expensive (42-95 cycles latency for 64-bit on Skylake.)
Good question. The JIT will have both 32-bit and 64-bit values "naked" in machine registers and so at first glance it certainly seems like the same optimization could be done...
Just reflecting that this is similar to (or opposite to) #86 where the JIT would *only* handle power-of-two sizes when taking pointer differences, and we had to put the general...
I created raptorjit/raptorjit#85 to track the JIT issue. I think that I found the line of code responsible at least so far.
@javierguerragiraldez Relatedly: @igelhaus said he likes to fallback to the interpreter in very branchy code to avoid excessive side-trace penalties. But maybe it's mostly a bug (#107) that taking side...
I am starting work in earnest on porting the VM to C now. This means that I am thinking again about ways to efficiently test and debug a new port....
Supporting bitwise operators like `` `&` `|` would be great! There has been some past discussion on the LuaJIT repo over at https://github.com/LuaJIT/LuaJIT/issues/63. Mike wrote that "the main implementation cost...