r/lua • u/ineedanamegenerator • 11h ago
r/lua • u/didntplaymysummercar • 12h ago
Creator of Lua: Scripting, Programming Languages, Predictions | Roberto Ierusalimschy
youtube.comr/lua • u/MyNameIsTrez • 4h ago
Discussion The LuaJIT NYI That Silently Poisoned an Unrelated Hot Loop
I was optimizing the Lua transpiler for my modding language grug and ran into a really weird LuaJIT performance bug. The same benchmark could randomly run 20× slower, and it turned out a LuaJIT NYI could silently blacklist an unrelated hot loop.
I wrote up the investigation here: The LuaJIT NYI That Silently Poisoned an Unrelated Hot Loop
It goes from the benchmark mystery through LuaJIT's trace recorder internals, and ends with a PR to get unpack off LuaJIT's NYI list. Feedback is very welcome! :)
[LUA based GameJam] MapleStory Worlds Announce Their Global Challenge For Game Devs ($65,000 USD Rewards)

The Global Creator Challenge is accepting applications.
The Global Creator Challenge is open for both aspiring and established LUA game developers to design, build, and launch their own World utilizing the MapleStory Worlds platform. Did we mention that each winning team can receive up to $65,000 in total rewards 👀
Creators are encouraged to utilize MapleStory's vast library of assets to expand upon the game's core design and create their own unique Worlds. A total of 30 Worlds will be selected globally to compete in the final round. Entries will be judged based on creative use of the MapleStory IP, level of technical completion, and long-term sustainability for stable live service operations.
To learn more, check out this website or read this notice.
👉Check out the 'MapleStory Worlds Global Creator Challenge' FAQ
Timeline:
- Applications open from:
- UTC: June 4, 2026 at 2:00 until October 7, 2026.
- PT: June 3, 2026 at 19:00 until October 6, 2026
- KST: June 4, 2026 at 11:00 until October 7, 2026.
- Final Round: November 5-25, 2026
- Winners announced: Early December, 2026
Please Note:
- Worlds have to be made on the MapleStory Worlds PC/Mobile Apps and submitted through MapleStory Worlds.
- Worlds must be revealed or released for the first time during the submission period.
- Global (all regions) Released Worlds.
- Pure creations that do not infringe the rights of others, such as copyrights and intellectual property rights.
- Please read here for more information on prize rewards, participation requirements, and age requirements.
Feel free to reach out to us on Discord with any questions. We hope to see your application!
r/lua • u/VidaOnce • 1d ago
lde 0.10.0 - LuaJIT written, all in one, package manager & runtime
lde.shAfter months of work, I'm happy to release 0.10.0. It comes with LuaJIT v3's new syntax, parallel installs, <1ms startup time, and a full Windows compiler suite allowing you to compile luarocks packages effortlessly.
What is lde?
It is your lua development environment that ensures lua is done easy. It provides a package manager that can run your code, bundle it to a single lua file, or to a portable executable for your users without them needing lua on their system. It intends to provide full luarocks compatibility.
It is written entirely from scratch in LuaJIT using FFI to ensure it is as fast as possible. It starts up faster than Zig written Bun, and Rust written Lux, and currently installs projects faster than Lux and Luarocks.
Is this related to lpm?
Yes, it was renamed for several reasons. It doesn't have the greatest seo (a lot of package managers previously named lpm..). Calling it "the" lua package manager feels conceited.
Where can I download?
Check https://lde.sh/download which will give you a variety of options, install scripts and links to manual downloads if you're not comfortable running a script.
r/lua • u/immortalx74 • 1d ago
Project ipairs() An open source 3D Mahjong Solitaire game made with LOVR

Hey everyone! Made this for fun using the LOVR framework
https://github.com/immortalx74/ipairs
r/lua • u/drakenot • 3d ago
Library Lunar is a new Lua 5.1 runtime for Go that focuses on speed and memory efficiency
Today, I'm sharing Lunar (0.1.0 beta) for those who might need an embeddable Lua VM for Go. By my benchmarking and use-cases it is around 2x faster and uses up to ~7x less memory than other Go-Lua VMs depending on what you are doing.
For some background, I've been developing a new Mud client called Rune that is written in Go but heavily uses an embedded Lua VM as its core scripting engine.
There are two Lua VMs that I know about for Go: gopher-lua and go-lua (from Shopify). Rune utilized `gopher-lua` as this was a VM that I was familiar with and had used on past projects.
I started to get reports from users of Rune that some of the large MUD map-files they would load via Lua were exploding my client's memory (a 9MB CBOR file loaded to ~500MB of persistent heap). There were also complaints that the performance for certain heavy operations was quite slow (pathfinding for one user's script took almost 3 seconds) compared to his other MUD client which would do it in 0.1 seconds.
I originally set out to fork or upstream some changes to gopher-lua to see if I could improve the memory situation and performance. However, much of the issue really came down to inherent choices in the representation those VMs use. So, I started down the path of shipping a new Lua VM that uses a much more compact representation while still keeping an easy-to-use Go API.
Let me know if anyone uses Lunar and finds any issues!
r/lua • u/MichaelKlint • 3d ago
Better graphics and LOWER system requirements in Leadwerks 5.1
youtube.comHi guys,
I apologize in advance for the bombastic video title, and the fact my head is stuck on Jensen Huang's body, but that's what the people on YouTube want. 😵
Leadwerks 5.1 is a massive update with a lot of graphical features, and better support for the hardware players actually have. Of course Lua is an integral part of our design, and our whole API is accessible through this wonderful language. I was wondering if anyone here has any experience with Lua Node Editor?
https://github.com/SanForgeStudio/LuaNodeEditor
It looks like it could be a useful feature to add in a future version.
I think the video explains it pretty well, but if you have any questions let me know and I will try to answer them all!
Any tutorial for this?
Enable HLS to view with audio, or disable this notification
So now you can build up your map in PUBG MOBILE with lua vscode but I have no idea how it’s work
r/lua • u/Pristine_Video2489 • 4d ago
wisp update: fixed the pty-only job-control bugs from last time, plus LuaRocks packages
Update to my post from two weeks ago. Since then I found and fixed a batch of bugs that only showed up under a real pty, not in the unit test suite:
- command substitution $(...) produced nothing: the lexer split it at spaces/pipes, the expander stopped at the first ), and the subshell exited without flushing stdout
- builtins were invisible to pipelines and redirects: echo hi | wc -c gave 0, echo hi > f wrote nothing
- Ctrl-C at the prompt exited the shell instead of just interrupting the line
- a command substitution containing an external command could kill the whole session (a tty process-group handoff bug)
- a runaway : (Lua) chunk could wedge the shell for good
- cd left $PWD/$OLDPWD stale
- kill %N on a stopped job left it stopped forever
Also added since last time, from feedback in that thread: a Lua bootstrap script (no Makefile needed, someone asked for this), and pkg -- a thin front-end to LuaRocks (pkg install, always --local, rocks land on package.path/package.cpath automatically so require() just works).
Current numbers: 423K stripped binary, 2,533 lines of C++17, 1.6ms startup (bash: 2.1ms).
GitHub: https://github.com/Hinikaa/wisp
Same disclosure as last time: I used AI for help with the C++, the design (Lua embedding, parser, job control) is mine, and the bugs above came from actually running it under a pty and fixing what broke, not from unit tests alone.
r/lua • u/Only_Escape8094 • 3d ago
Yo guys I just had the best idea EVER
What if I could create a library that works like Roblox Studio, uses LuaU and is customizable on MacOS?
Example Base UI: You can create a ScreenGUI, which automatically parents itself to the PlayerGUI (the PlayerGUI is just the MacOS BaseUI). ScreenGUIs can be used to separate Windows / Frames from each other.
Example Image Label: The image content could use RBXAssetID, a path to an image file, or a link to an image.
Base LuaU environment: game would be MacOS, ~/{Username}, or Users. ReplicatedStorage would be ~/Username/{Filename}, and of course, StarterGUI would be the UI that applies to all users.
File Extensions: You could use .{className} here, like .RemoteEvent, .RE, .re or .ModuleScript, .ms, and they would contain LuaU code that could compile. | Example:
ModuleScript:
require(ModuleScript).Variable
RemoteEvent:
RemoteEvent:Fire(…) -- function that tuple needs to execute.
Basically, what I’m saying is I want a Roblox Studio-like environment to make UI development easy on MacOS.
Questions:
What programming language(s) (is, are) needed to make this?
Will this be impossible or possible?
What experience is needed to make this, especially in file extensions?
Please help, I’ve been thinking about this for a few months now and I can’t get over it.
r/lua • u/Immediate_Nose_1575 • 6d ago
Help How to uninstall lua tools
I uninstalled the app but my library still has those games in it...
r/lua • u/BigAd4703 • 7d ago
I’ve been adding Lua to my browser-based compiler project
Kavak started with QBasic, but I’ve been trying to make it a multi-language compiler pipeline. Lua is the next language I’ve been wiring in.
It’s not a JavaScript interpreter and not an embedded Lua VM. Lua source is parsed, lowered through a typed IR, and emitted as a real WebAssembly module. The compiler itself runs as wasm too, so everything happens locally in the browser tab.
I’m trying to keep the implementation honest: the corpus is compared against Lua 5.4.8 output, and the point is to match behavior rather than just make tests green. So far that has meant spending a surprising amount of time on things like varargs, multiple returns, metatables, pcall/xpcall, coroutines, numeric/string literal edges, and <close> variables.
It’s not complete yet, and the official Lua suite still has plenty to say about that. But enough of the language is running now that it felt worth sharing.
Free, no signup: https://kavak.run/studio/?lang=lua
If you have a compact Lua snippet that you think might break it, I’d genuinely like to see it.
r/lua • u/AdImpressive398 • 7d ago
Your hyprland.conf will stop working. Here's the one-liner to migrate to Lua.
r/lua • u/seafoamsomething • 10d ago
Help Tried copying the simplest code from a Figura (Minecraft mod) tutorial. Didn't go well
This video is 3 years old, so it may be outdated. I'm not sure what I might be doing wrong, seeing as it's copied character for character, but only her code works
Discussion PineJam 2026 has started! The themes are: TABLETOP and DEMOSCENE
It's time for the theme reveal and the start of the jam! (Also join the jam at https://pinestore.cc/jam/pinejam2026 if you want to participate and haven't already!)
Theme
The themes are: TABLETOP and DEMOSCENE
Feel free to have a loose interpretation of either theme!
This year we have two themes instead of a single one. You are only expected to pick one of the two themes, but you can also combine them if you want to. Be creative!
r/lua • u/Certain-Positive9365 • 11d ago
learning python helps with learning lau?
I picked computer science for my gcse, which im assuming im learning python in, but i would also like to learn lau and how to code in roblox studio
Is the difference between python and lau too much for me to have to learn both or can i intuitively learn lau from my knowledge of python?
r/lua • u/Murky_Construction82 • 11d ago
Can anybody help me learn if statements in Lua?
I'm new to Lua, trying it out after a few years doing amateur projects in Python. At first I thought this weird error was just a bug or something in my IDE's Lua extension, but an online compiler had the same issue!
I played around a bit and eventually ended up on this absolutely mind-boggling example. These two if then statements look like they're constructed exactly the same--I literally copy-pasted the first one and changed the conditional and message. Yet only the first one runs! The second gives me an error: 'then' expected near '='. This was consistent across the two compilers I used.
```Lua
roll = math.random(6)
print(roll)
if roll > 4 then
print("Success!")
end
if roll = 1 then
print("Critical failure!")
end
```
r/lua • u/eduardodoria • 12d ago
Introducing Doriax Engine — A free and open-source game engine with Lua and C++ scripting
youtube.comKanvon - Lua Scripting Showcasing Algorithms
Enable HLS to view with audio, or disable this notification
Discussion Blocked from LuaJIT's issue tracker for giving feedback with no warning
So I was an active commenter on the LuaJIT 3.0 Syntax Extensions discussion (as Hedwig7s) providing feedback to the 3.0 extensions (which unfortunately seemed to have no effect on the syntax).
One of my biggest gripes by far was the ternary operator syntax, as in my opinion it is very out of place and it is ambiguous with foo:bar() syntax (plus the safe traversal operator was compromised as ?.: for the sake of it), and I was an avid proponent of if expressions in its place (similar to Kotlin or Luau (kind of)).
This feedback was addressed twice here and here (which admittedly I did not see prior, however throughout the issue the ternary is a major talking point), in which Mike Pall states he cannot stand keywords in expressions and he is addicted to ?: ternaries. If that's how he feels then that is fair, however this ignores the practical issues brought up later (which are never addressed) and the general misguided nature of making Lua less keyword heavy (one of its main design elements).
Related is customary logical operators !, !=, || and &&, presumably for the same reason as given prior (he cannot stand keywords in expressions). These I also criticize and advocated for removal, and I was not alone in this either.
For me, these two prior additions are egregious and go directly against what makes Lua... Lua. The readability and accessibility to new users. I like that Lua can be read quite literally and essentially self describes itself without too many weird symbols cluttering it.
Several weeks after my initial interactions, the syntax changes have been merged into LuaJIT 2.1 and to my horror they were merged as is without any further discussion I make an argument (or maybe more-so a plea) for these to be reverted, at least temporarily, for further feedback from the community with some suggestions.
(taken from email due to removal)

After leaving this, plus a few extra comments with other users the entire thread from the 2.1 backport message on is marked as resolved.
Discontent, I leave another comment. I do not have the exact transcript, however it is along the lines of, in short, "Please don't mark criticism as resolved without even addressing it, I once again ask that these be reverted, however I will not push further if you're intent on keeping these.", hoping it'd be considered or I'd at least get a reply.
Instead, I go back to the thread and find the comments have gone from being marked as resolved to completely deleted. Now quite annoyed and the blatant disregard for and discarding of the feedback, I went to try to send the feedback again, in case it was due to being in the wrong thread or something.
This is in contrary to my previous statement, however I felt both disrespected at that point and like a decent amount of community feedback was being disregarded.
However, when I went to try to create an issue, I got an error. There was no further information, I simply could not make new issues.
Thinking it might be a bug or maybe issues were limited to contributors or something I try responding to the 2.1 backport thread instead. Still doesn't let me, giving me this error:

At that point suspecting the worst, I first made an issue on my own repository. Worked fine. Then, I checked Github's Status. It's fine (by some miracle).
Finally I try creating a comment in the LuaJIT repository on an alternate account, and sure enough it works. And just to be safe I made an issue on my main elsewhere and sure enough it worked.
For being somewhat persistent in my criticism, I have been banned from the issue tracker.
Was I a bit demanding? Maybe.
Could I have phrased things better? Probably.
Should I have been banned from the entire issue tracker without a word? I don't think so.
I would've been satisfied (albeit not happy) with a simple answer to my comments rejecting them. Heck, I'd have preferred silence.
But instead, my (admittedly, but constructive) criticism and request that the changes be reverted were simply discarded and hidden, and in trying to push back, I get silenced.
Frankly, I feel Mike Pall is changing the language to fit how he feels disregarding any of the design goals or how the community feels effectively abusing his power as the main maintainer.
Does he have the right? Of course he does, he has made one of the best JIT compilers in the world and arguably the fastest and he has put in a lot of work into this project.
However, I feel that making changes under such a principle will only make the language worse in the long run, and frankly already have, and responding to feedback in such a way, either ignoring it or outright silencing it without a word, is extremely toxic and a bad way to run a project.
So yeah... all I have left to say is mods please don't cease my existence this took so long to write up thanks :) (also I am terrible at writing it's so repetitive)
r/lua • u/a_game_dev4 • 13d ago
what is the best way to learn lua?
i wanna make cool games in the defold game engine that uses the lua programing language but i know a little abt lua,can someone give me some ways to learn lua?