News for hackers. Stuff that matters.
Re:RaptorJIT 1.0: Lua implementation for high-perf low-level... by moocowtruck on Monday October 15, 2018 @08:20PM (#18225346)
good point, but i think we can admit the title is weird if the only support is x86-64
Re:RaptorJIT 1.0: Lua implementation for high-perf low-level... by lukego on Tuesday October 16, 2018 @02:00AM (#18226955)
RaptorJIT is good for writing applications like Snabb. Snabb is a networking framework that’s very low level: cycle-counting loops, device drivers, DMA, etc, in Lua. In this domain of high performance software networking the advantages of supporting other architectures don’t currently outweigh the costs.

That’s why it’s a low-level system programming language that prioritizes working very well on x86-64 over supporting other platforms like 32-bit heap, MIPS, Xbox, no FPU, etc. Just got bigger fish to fry right now.

Re:RaptorJIT 1.0: Lua implementation for high-perf low-level... by floatboth on Tuesday October 16, 2018 @07:19AM (#18228349)
Yeah, 32-bit, Xbox and no-FPU platforms can be dropped, but dropping FreeBSD, aarch64 and powerpc64 is kinda sad.
Re:RaptorJIT 1.0: Lua implementation for high-perf low-level... by raytracer on Tuesday October 16, 2018 @03:41AM (#18227434)
> no FPU.

How much of a hit does floating point math take? I have a desire to build some realtime audio tools.

Re:RaptorJIT 1.0: Lua implementation for high-perf low-level... by pygy_ on Tuesday October 16, 2018 @03:52AM (#18227489)
AFAIK it is not about float perf.

LuaJIT uses NaN-tagging to represent Lua values in memory to save space.

Float64 numbers can be left alone, and other types are represented as NaN with the pointer bits stashed in the mantissa part of the float. Only one, canonical NaN value is recognized as such by the language, the others are disguised 32 bit pointers.

Re:RaptorJIT 1.0: Lua implementation for high-perf low-level... by lukego on Tuesday October 16, 2018 @08:26AM (#18228773)
Realtime audio sounds like a good domain. You might also want to check out LuaRadio if you haven't already. http://luaradio.io/
Re:RaptorJIT 1.0: Lua implementation for high-perf low-level... by cordite on Tuesday October 16, 2018 @08:10AM (#18228675)
On microcontrollers, you might as well change to lookup tables if you are trying to do something real-time with more than 100 operations per millisecond.

This varies by microcontroller obviously.. this comes from reimplementing GLSL shadertoy samples for a neopixel grid.

Re:RaptorJIT 1.0: Lua implementation for high-perf low-level... by justincormack on Tuesday October 16, 2018 @03:49AM (#18227469)
The wording is confusing it does support fpu it doesn’t support machines without fpu.
Re:RaptorJIT 1.0: Lua implementation for high-perf low-level... by DarkWiiPlayer on Tuesday October 16, 2018 @05:40AM (#18227984)
It seems pretty clear to me. It doesn't support "no fpu". It's a lazy way of putting it though and "Architectures without FPU" would have been clearer.
Re:RaptorJIT 1.0: Lua implementation for high-perf low-level... by imtringued on Tuesday October 16, 2018 @07:25AM (#18228378)
Does that mean ARM64 is still supported?