[HN Gopher] LuaJIT Remake: An ongoing attempt to re-engineer Lua... ___________________________________________________________________ LuaJIT Remake: An ongoing attempt to re-engineer LuaJIT from scratch Author : todsacerdoti Score : 63 points Date : 2022-11-26 20:10 UTC (2 hours ago) (HTM) web link (github.com) (TXT) w3m dump (github.com) | [deleted] | VWWHFSfQ wrote: | I would recommend calling your project something else. ie, not | LuaJIT. | avaldez_ wrote: | I'd call it Jaunatis (new moon in Lithuanian). A word play on | Lua (moon in Portuguese). | [deleted] | ketralnis wrote: | Agreed, this has the same "neovim: literally the future of vim" | smell to it | mananaysiempre wrote: | I'm a bit puzzled by the author's statement that they're building | a method-at-a-time JIT here. | | Sure, that's an interesting thing you can do and get _a_ Lua JIT, | but I don't see how that is going to be close to _the_ original, | tracing LuaJIT, where much of the simplicity (AFAICT) comes from | how it creatively punts on several hard backend problems: | optimizing in the presence of complex control flow (an linear | sequence possibly followed by a loop, that's all you get on the | lowest level), tricky monomorphization decisions (the types you | traced are the types you codegen for), eliminating allocations | (exiled to trace exits as much as possible), etc. | [deleted] | sillysaurusx wrote: | Where did you learn that? I've been wanting to understand | LuaJIT for years, but never got around to it. | | Is there a "Heart of LuaJIT" style implementation somewhere? | Something that's like a thousand lines but conveys the core | ideas. | bch wrote: | I think Mike Pall wrote up a whitepaper with the gory details | years ago, but I can't find it atm. | sillysaurusx wrote: | Damn. If you find anything related to it, I'll happily | Venmo you $20. (High roller, I know.) | | The magic of making Lua so fast is seriously underrated. | I'm fascinated why Lua in particular seems to be so | amenable to speedups vs, say, Python bytecode or even Elisp | bytecode. | kzrdude wrote: | Here are some places to start with, some of his "famous" | mailing list posts: | https://news.ycombinator.com/item?id=17329902 and 12 year | old reddit bullet list of his too: https://old.reddit.com | /r/programming/comments/badl2/luajit_2... | seabrookmx wrote: | Recent thread: https://news.ycombinator.com/item?id=33711583 ___________________________________________________________________ (page generated 2022-11-26 23:00 UTC)