3 ms·
Does anyone know what percentage of LuaJIT bugs are in the interpreter? You can still get a large speedup with it while avoiding the most complex code. Edit:
by Dylan16807 10y ago
Does anyone know what percentage of LuaJIT bugs are in the interpreter? You can still get a large speedup with it while avoiding the most complex code.
Edit: Also what's this about "a machine that does not support LuaJIT" that's apparently x86-based?
- justincormack 10y agoI don't remember finding any interpreter bugs, found quite a few compiler bugs in the early days.
- wruza 10y agoI can confirm, using it for many years (already can't remember exact moment we went to lj). Interpreter part 'just works'. Also can't understand all drama about low support. We have a rocket with two modes: turboreactive, which just works, and sub-lightspeed mode where, well, strange things may happen. All those complaints about debugging of relativity shadow the fact that all other dynamic languages are conventional single-mode subsonic aircrafts.
- nmcveity 10y agoNot sure about the machine linked in the article, but sometimes the operating system might prevent you from marking heap allocated pages as executable. However, in that case you are only prevented from using the JIT compiler and should still be able to take advantage of the high-speed interpreter included.
- catwell 10y agoI wrote that article, just found out it was on the front page of HN today. The machine linked in the article can not even run the unmodified interpreter (or at least it could not at the time) because its CPU does not support the CMOV instruction. Regarding the bugs: I do think most of them are in the JIT and not the interpreter. Even using a lower optimization level that the default fixes a lot of them.
- david-given 10y agoWhat's the processor in the Lima? The website has no technical information on it whatsoever (even under the 'Tech Specs' sections). Genuinely curious; I thought all x86 processors made these days supported CMOV.
- catwell 10y agoIt is a CPU from RDC (Taiwanese manufacturer). It is 486-compatible but misses some instructions from later Pentium sets.
- david-given 10y agoI'm thoroughly bemused as to why they picked it --- unless you're aiming at some sort of binary compatibility, and given that it won't run Windows I have no idea what it might be compatible with, surely one of the ARM or MIPS stable would be more appropriate for this kind of device? ...over here, in this cardboard box, I have an old SheevaPlug: a 1.2GHz Marvell ARMv5 in a plug-sized box with some flash, an SD card interface, ethernet, and some USB ports, which appears to be pretty much the same device. (Of course, it's the software that's the interesting bit.)
- fsfod 10y agoWell someone was crazy enough to port LuaJIT to run in the FreeBSD kernel including the JIT by the looks of it. http://dl.acm.org/citation.cfm?id=2818305 http://dl.acm.org/citation.cfm?id=2818305 http://ake.in.th/2016/01/09/til-there-is-a-tool-named-diffstat/ http://ake.in.th/2016/01/09/til-there-is-a-tool-named-diffst...