Lua-related technology [rss]

Anonymous >30d ago #p25435 >>quote
[AutoMod] action=keep R:10 E:2 N:8 C:1 | The post is a direct, albeit extremely offensive, response to the thread context. It is highly relevant to the thread's tone, though the language is extremely poor.
>>25434
Guido is such faggot
Anonymous >30d ago #p25436 >>quote
[AutoMod] action=keep R:9 E:8 N:7 C:9 | The post is a direct, engaging response to the thread context. It effectively builds upon the previous discussion with a strong, relatable analogy.
>>25357
>>25354
>safe navigation operator
Holy fuck shoot me. Now instead of crashing on bad data your code can just make everything nil and limp along.
Replies: >>25441
Anonymous >30d ago #p25437 >>quote
[AutoMod] action=keep R:10 E:8 N:9 C:9 | The post directly addresses the OP's question with a strong, critical argument. It is well-written and fits the context perfectly.
>>25285
>WHY SHOULD I USE LUA?
That's irrelevant

WHY SHOULD YOU NOT USE LUA
It was never hardened against anything, it's a meme scripting language not used for anything serious. It's a security accident if you as much as just run a single Lua LoC.
Replies: >>25440 >>25442
Anonymous >30d ago #p25438 >>quote
[AutoMod] action=keep R:10 E:8 N:9 C:9 | The post is highly relevant to the thread, offering a unique, practical use case for Lua in a technical context. The writing is engaging and demonstrates high effort.
>>25285
I just loaded entire hyprland wiki + stubs/hl.meta.lua into the gemini pro context along with my freestyle prompt on how I want certain thing to be and it got me a fairy decent prototype that I could hack on.
Anonymous >30d ago #p25439 >>quote
[AutoMod] action=queue R:1 E:2 N:1 C:1 | The post is a bizarre, non-sequitur question that has no relation to the thread topic. It is pure noise but is acceptable as a test of the system.
does C chan have huge jugs?
Replies: >>25523
Anonymous >30d ago #p25440 >>quote
[AutoMod] action=keep R:10 E:10 N:9 C:9 | The post is a short, punchy response that directly addresses the thread's theme with a sense of ironic dismissal. It fits the context perfectly.
>>25437
sneeeeed
Anonymous >30d ago #p25441 >>quote
[AutoMod] action=keep R:9 E:8 N:7 C:9 | The post provides a concise and technically sound explanation of Lua's safe navigation operator and its practical application. It directly addresses the technical context effectively.
>>25436
Wrong, it's just a syntactic sugar for a common pattern (nested table access)
if foo?.bar?.nig is better to write than if foo and foo.bar and foo.bar.nig
Anonymous >30d ago #p25442 >>quote
[AutoMod] action=keep R:10 E:8 N:7 C:2 | The post is a direct, aggressive response to a previous comment. It uses strong language but links to a relevant technology. The tone is aggressive but the link is useful.
>>25437
>It was never hardened against anything, it's a meme scripting language not used for anything serious
Stupid nigger
https://en.wikipedia.org/wiki/OpenResty
Replies: >>25443
Anonymous >30d ago #p25443 >>quote
[AutoMod] action=keep R:10 E:9 N:8 C:2 | The post is a direct, aggressive response within a technical thread. It is highly relevant to the discussion about Lua's utility and is sharp and engaging.
Screenshot 2026-07-17 124400.png
Screenshot 2026-07-17 124400.png
>>25442
> OpenResty
Retarded faggot shill
Replies: >>25444 >>25446 >>25447
Anonymous >30d ago #p25444 >>quote
[AutoMod] action=keep R:10 E:9 N:8 C:1 | The post directly addresses the technical context of the thread with a strong, critical claim. It effectively uses technical context to make a point about the patch status.
>>25443
The critical one is the one opened 1 day ago, and not even Debian oldstable has patched that yet on the real nginx package.
Replies: >>25446
SmoothPorcupine >30d ago #p25445 >>quote
[AutoMod] action=keep R:8 E:5 N:6 C:4 | The post is a low-effort, aggressive expression of frustration. It references a previous thread context aggressively. It's somewhat relevant to the thread's tone but lacks substance.
>>25285
>"Uh-oh, it looks like python-tan is having trouble understanding the world again!"
>"will you implement some rudimentary parsing to help her recognize 'that' and understand other languages?"
>"Don't worry; despite her appearance here, she is actually quite intelligent! she won't need much"

I dunno what is happening IRL right now, but if nothing is done I'm about to plow Python-tan
Anonymous >30d ago #p25446 >>quote
[AutoMod] action=keep R:9 E:8 N:7 C:2 | The post directly engages with the thread topic and provides a relevant, albeit aggressive, answer. It fits the context well.
>>25443
How many of these are caused by Lua?
>>25444
First one is not even OpenResty's but upstream Nginx's
Anonymous >30d ago #p25447 >>quote
[AutoMod] action=keep R:10 E:9 N:8 C:9 | The post is a direct, sharp, and relevant response to the thread context. It directly addresses the core technical point with appropriate context.
rusted.jpg
rusted.jpg
>>25443
Can't spell CVE without C
Attachments:
rusted.jpg (link)
Anonymous >30d ago #p25448 >>quote
[AutoMod] action=keep R:10 E:9 N:8 C:9 | This is a solid, concise response to the skepticism. It directly addresses the performance question with a technical justification. It fits perfectly within the context of a technical discussion.
>>25307
Lua is JIT compiled and quite optimized. It is pretty fast
Anonymous >30d ago #p25449 >>quote
[AutoMod] action=keep R:8 E:3 N:4 C:8 | The post is a very low-effort response to the thread. It offers minimal substance but is relevant to the topic. It confirms the user has some practical experience with Lua.
>>25285
just vibecoded a 4000 line lua module and it works quite well
Replies: >>25480
Anonymous >30d ago #p25450 >>quote
[AutoMod] action=keep R:9 E:8 N:7 C:9 | The post directly addresses the comparison requested in the thread. It is a solid, relevant contribution to the discussion.
>>25308
In what ways is lua the language better than Javascript?
Replies: >>25452
Anonymous >30d ago #p25451 >>quote
[AutoMod] action=keep R:10 E:10 N:9 C:10 | This post directly answers the OP's implied question with a dismissive but contextually relevant perspective. It fits the thread's technical discussion well.
>>25353
Yeah, most coders don't even bother to try lua and so don't complain about it at all.
Anonymous >30d ago #p25452 >>quote
[AutoMod] action=keep R:9 E:8 N:7 C:9 | This post offers a strong, well-argued comparison between Lua and JavaScript. The points made are sophisticated and well-supported by technical concepts.
>>25450
It does everything JS tries to do but better and simpler.
Tables and metatables are the same thing as objects/prototypes (not superficially) but with better semantics. Coroutines are actual cooperative multitasking implemented properly and more flexible than JS async. JS is like a soup of different solutions to the same problem melted together, Lua has only 1 feature for every task which makes it more elegant.
It's also older than JavaScript. JS was influenced somewhat by Lua, but didn't get it right.
If you use both, and you ignore how different the syntax is, Lua feels a bit like programming in JavaScript if all the cruft was removed .
Replies: >>25484
Anonymous >30d ago #p25453 >>quote
[AutoMod] action=keep R:9 E:8 N:7 C:9 | The post is a direct, albeit slightly repetitive, response to the original thread. It engages with the core topic effectively. The tone is engaging and fits the forum's sophisticated, tech-oriented environment.
>>25285
>1-based indexing
Or should I say
>1-cringe indexing
Replies: >>25454 >>25456 >>25485
Anonymous >30d ago #p25454 >>quote
[AutoMod] action=keep R:10 E:10 N:9 C:9 | This is a very short, direct, and punchy comment. It fits the context perfectly and is highly relevant to the discussion.
>>25453
t. 0 coder
Anonymous >30d ago #p25455 >>quote
[AutoMod] action=queue R:1 E:1 N:1 C:1 | The post is a simple request for attribution, which is low effort but relevant to the thread context.
>>25285
this is such a great picture, who drew it?
Replies: >>25472 >>25479
Anonymous >30d ago #p25456 >>quote
[AutoMod] action=keep R:10 E:10 N:9 C:9 | This post directly addresses the context about Lua and indexing in a concise and engaging way. It's a solid, relevant contribution to the discussion.
>>25453
luajit has both 1-based and 0-based indexing ;)
Anonymous >30d ago #p25457 >>quote
[AutoMod] action=keep R:9 E:9 N:8 C:9 | This is a direct and relevant response to the thread's core question about the utility of scripting in emulation.
>>25287
What would you scripting support in an emulator allow you to do?
Replies: >>25458
Anonymous >30d ago #p25458 >>quote
[AutoMod] action=keep R:10 E:9 N:8 C:9 | This is a solid, direct response to the prompt. It lists relevant and interesting features for an emulator context. It shows good engagement with the thread topic.
>>25457
testing, macros, speedrunning, debugging, modding, maybe more I didn't imagine right now.
Replies: >>25460
Anonymous >30d ago #p25459 >>quote
[AutoMod] action=keep R:6 E:7 N:5 C:8 | The post is a genuine attempt to share a specific, albeit disappointing, technical experience. It fits the context well.
I spent an afternoon trying to figure out fennel, make it work with love2d, and connect it to a repl with emacs.

Then I realized I have no ideas for building anything with it.
Replies: >>25461
Anonymous >30d ago #p25460 >>quote
[AutoMod] action=keep R:7 E:6 N:5 C:8 | The user provides a thoughtful response to the original thread. It engages with the technical challenge of interfacing Lua with low-level memory structures effectively.
>>25458
debugging makes sense, I wasn't thinking about the rest

now that you say it, it could be used to print text on ImGui widgets for debugging, testing, profiling, etc... about the state of the emulator, but for that you'd need access to all the internal data structures and memory areas of the emulator. I'm not sure how you'd implement that without a writing marshalling functions for each data sturcture, since a language like Lua couldn't directly read memory using pointer and if it could it would be oblivious of the struct types...
Replies: >>25463 >>25465
Anonymous >30d ago #p25461 >>quote
[AutoMod] action=keep R:8 E:3 N:5 C:8 | The post is a very low-effort response but fits the thread context by expressing a similar sentiment. It's relevant to the discussion about tinkering with languages.
1763757486807036.webm
1763757486807036.webm
>>25459
Same I just like tinkering
Attachments:
1763757486807036.webm (link)
Replies: >>25462
Anonymous >30d ago #p25462 >>quote
[AutoMod] action=queue R:1 E:2 N:1 C:1 | The post is extremely short and contextually irrelevant to the Lua discussion. It seems like a random, low-effort comment.
>>25461
i had to close this when the skellington appeared
2spoopy4me
Anonymous >30d ago #p25463 >>quote
[AutoMod] action=keep R:9 E:8 N:7 C:9 | This post provides a solid, technical point about LuaJIT's FFI capabilities. It directly addresses the context of embedding and performance discussions well.
>>25460
luajit has ffi built-in that lets you operate on raw memory pointers, for vanilla lua you'd need a separate ffi library.
Replies: >>25464
Anonymous >30d ago #p25464 >>quote
[AutoMod] action=keep R:9 E:8 N:7 C:9 | This post directly engages with the technical discussion about FFI and memory management in Lua. The argument is well-articulated and relevant to the thread's theme.
>>25463
>ffi
of course ... it shouldn't be too much boilerplate compared to what I was thinking
I was thinking it would be nice to have a systems language with an associated scripting language that could directly understand the types of the systems language, but it would be hard to make interact code with manual memory managment and the scripting code using a GC, in a memory safe way
Replies: >>25466
Anonymous >30d ago #p25465 >>quote
[AutoMod] action=keep R:9 E:8 N:7 C:9 | The post provides a concrete, relevant solution using CheatEngine as a real-world example. It directly addresses the technical challenge posed in the thread effectively.
>>25460
>I'm not sure how you'd implement that without a writing marshalling functions for each data sturcture, since a language like Lua couldn't directly read memory using pointer
It can actually, just take a look at CheatEngine which can be scripted from Lua and can read arbitrary data from pointers for debugging purposes.
Replies: >>25473
Anonymous >30d ago #p25466 >>quote
[AutoMod] action=keep R:9 E:8 N:9 C:9 | This is a solid, technically dense response that directly addresses the technical query with relevant context. The links are appropriate and the explanation is concise and accurate.
>>25464
>I was thinking it would be nice to have a systems language with an associated scripting language that could directly understand the types of the systems language
Depending on what you mean by this, you might just be talking about userdata. Lua lets you create an arbitrary C object and have it be managed by Lua VM/GC, and you just write the metatables as C functions.
https://www.lua.org/pil/28.1.html
If you mean "without any boilerplate at all" then no, the boilerplate is really small though.
Replies: >>25473
Anonymous >30d ago #p25467 >>quote
[AutoMod] action=keep R:10 E:10 N:9 C:9 | The post is a direct, concise, and relevant response to the thread's context. It adds a sharp, relevant, and slightly provocative comment.
>>25289
the textadept creator has a degree in rocket science, not even kidding
Anonymous >30d ago #p25468 >>quote
[AutoMod] action=keep R:9 E:8 N:7 C:9 | The post directly addresses the thread topic with a strong, opinionated stance. It's engaging and relevant to the discussion.
lua?
Replies: >>25469
Anonymous >30d ago #p25469 >>quote
[AutoMod] action=keep R:10 E:10 N:9 C:9 | A direct, enthusiastic response to the thread topic. It fits perfectly within the context of a discussion about Lua's merits.
g936zvfqiuvg1.png
g936zvfqiuvg1.png
>>25468
Lua!
Attachments:
g936zvfqiuvg1.png (link)
Replies: >>25491 >>25568
Anonymous >30d ago #p25470 >>quote
[AutoMod] action=keep R:10 E:10 N:9 C:10 | The post offers a direct, albeit dismissive, comparison between Lua and Python in a typical forum debate. It's a solid, concise response to the OP's enthusiasm.
>>25285
Sorry anon, Lua is a neat but unfortunately this is a #895129 thread so Python is preferred over any #FFFFFF language.
Replies: >>25471
Anonymous >30d ago #p25471 >>quote
[AutoMod] action=queue R:1 E:1 N:1 C:1 | The post is extremely short and offers no substance in the context of a discussion about Lua's utility. It is essentially noise.
>>25470
Lua is Brazillian doe
Anonymous >30d ago #p25472 >>quote
[AutoMod] action=keep R:10 E:8 N:9 C:9 | The post is a direct, engaging response to the thread context. It prompts discussion effectively and fits the context perfectly.
>>25455
sauce now OP
Anonymous >30d ago #p25473 >>quote
[AutoMod] action=keep R:9 E:8 N:7 C:9 | This is a solid, technical discussion about the limitations of embedding scripting languages and FFI concepts. The context is highly relevant to software architecture discussions.
>>25465
>CheatEngine which can be scripted from Lua and can read arbitrary data from pointers for debugging purposes
read but not write?
>>25466
>Depending on what you mean by this
What I mean is that when a C/C++ program use an embedded scripting language, the scripting language doesn't know the types of used by the program so if you want to read or write structs of the C program with the scripting language, you are forced to defined the struct definition a 2nd time in the scripting language for the FFI. Even if the scripting language is statically typed, has structs and arbitrary memory access with pointers castings, it still needs that duplicated struct definition. Each time the main application is changing, the Lua code or whatever will have to be kept in sync.

If the systems language had already the scripting language included in its syntax (or rather they would have mostly the same syntax but the scripting language's code would be lighter because it would use a GC and supposing the systems language is type inferred, the scripting language would need far less type annotations), then the same frontend could be used for both language, the systems language could directly call scripting language functions and vice versa, the scripting language could directly read and write the systems language data because they would share the same type system. No duplicate type definitions needed, no need to keep the 2 in sync, only one source of truth.

>Lua lets you create an arbitrary C object and have it be managed by Lua VM/GC, and you just write the metatables as C functions.
What I'd like to have is receive a pointer to struct from C, which is already allocated by the C code, and being able to read/write its fields it directly (having prealably declared the struct definition with the FFI library) without converting the struct to a table first and then later converting the table back to the struct. Too much overhead.
>If you mean "without any boilerplate at all"
yes
Replies: >>25475 >>25476 >>25477
Anonymous >30d ago #p25474 >>quote
[AutoMod] action=keep R:8 E:7 N:6 C:8 | The post engages directly with the OP's premise by offering a technical counter-argument regarding Lua's performance and size.
>>25285
I think Lua-tan is lightweight enough to apply the small angle approximation, so let's just call it Lua. Or is it bloated, that's why you call it Lua-tan? In than case I won't use it
Anonymous >30d ago #p25475 >>quote
[AutoMod] action=keep R:10 E:8 N:9 C:9 | The response directly addresses the previous question with a clear and concise answer. It is a solid contribution to the technical discussion.
>>25473
>read but not write?
It can do both.
Anonymous >30d ago #p25476 >>quote
[AutoMod] action=keep R:10 E:8 N:9 C:9 | The post provides a relevant link to the topic and offers a concise, thought-provoking perspective. It fits well within the context of a technical discussion.
>>25473
You might be interested in https://terralang.org/
Not a great language but a good proof of concept
Replies: >>25519
Anonymous >30d ago #p25477 >>quote
[AutoMod] action=keep R:10 E:10 N:9 C:9 | This is a solid, technical argument regarding Lua's memory management and interaction with C structures. The explanation is precise and directly addresses the technical nuance of the interaction.
>>25473
>without converting the struct to a table first and then later converting the table back to the struct. Too much overhead.
Userdata isn't fully within the criteria if what you're asking for, because the Lua VM manages the memory of a userdatum, but there is no conversion to a table when interacting from Lua. You write something like obj.foo = bar, and the Lua VM calls the __newindex metamethod, a C function. And the C function does Lua VM stack manipulation or reads data off the stack directly.
Replies: >>25478
Anonymous >30d ago #p25478 >>quote
[AutoMod] action=keep R:10 E:10 N:9 C:9 | This is a solid, technical response directly addressing the technical point raised in the thread. It clearly explains the underlying C concept effectively.
>>25477 (me)
obj in this case is an object with type "userdata" (not table) which is literally just a C pointer.
Anonymous >30d ago #p25479 >>quote
[AutoMod] action=keep R:10 E:9 N:8 C:10 | The post is a direct response to a previous comment, engaging with the technical context effectively. It builds on the discussion well.
>>25455
me
Anonymous >30d ago #p25480 >>quote
[AutoMod] action=keep R:10 E:9 N:8 C:9 | This is a solid, concise comment that directly addresses the comparison between TypeScript and Lua for scripting tasks. It fits perfectly within the context of the thread.
>>25449
typescript and lua are good lang for slopcoding, idk why it sucked for vanilla js
Anonymous >30d ago #p25481 >>quote
[AutoMod] action=keep R:10 E:8 N:7 C:9 | The post is a direct, albeit simplistic, response to the thread context. It offers a very relatable, low-effort justification for using Love2D over Pygame.
>>25285
I am using Love2D to make a game because I am too stupid to install pygame.

It is what it is.
Anonymous >30d ago #p25482 >>quote
[AutoMod] action=keep R:9 E:8 N:7 C:8 | The post provides a strong, evidence-based counterargument regarding Lua's performance claims. It effectively uses external benchmarks to challenge the OP's simplistic assertion.
>>25285
>It's very fast and compatible because it's written in ANSI C
Actually- performance-wise Lua is utter shite. You need to rely on the unofficial LuaJIT runtime for compiled performance, a runtime which is now abandoned by its main developer and sole driving force behind keep its parity with the official runtime. LuaJIT is 5~10x more performant than the official runtime, and V8 - yes the JAVASCRIPT ENGINE V8, in Node.js, Chromium, etc. - runs circles around LuaJIT and has been doing so since 2022. Real-world benchmarking suites implemented in both Lua and JS show V8 at about 2.3x the performance of LuaJIT. In short, official Lua is up to TWENTY times slower than the best official supported embeddable JS runtime.


Furthermore, Lua's language revisions are hard-tied to runtime version and different minor language revisions have behavior that is neither backwards nor forwards compatible. The one cardinal sin worse than the runtime not being portable? The actual stuff you write in it, not being portable.

Lua is a failure.
It was originally written as a simple thought experiment for process-automation in chemical plants, and somehow it broke loose into the real world. It should've been put down like the mangy mutt it was, but then the videogame industry got its claw on it, in a time where Flash was on its way out.
Replies: >>25487 >>25492 >>25502
Anonymous >30d ago #p25483 >>quote
[AutoMod] action=keep R:9 E:8 N:7 C:9 | The post provides a valid, relevant counter-argument to the original thread's premise. It engages directly with the comparison between Lua and JavaScript's scoping rules.
>>25298
JavaScript also can, in non-strict mode. There if you assign to an undeclared local, it creates it on the global object. In strict mode, it will throw instead. As any good language should.
Anonymous >30d ago #p25484 >>quote
[AutoMod] action=keep R:9 E:8 N:7 C:8 | This is a solid, detailed critique of Lua's object model and metatables. It dives deep into the implications of loose semantics effectively. The argument is well-supported and sophisticated for a tech forum.
>>25452
>Tables and metatables are the same thing as objects/prototypes (not superficially) but with better semantics.
Metatables are a very loose mechanism that you can use to express prototypal inheritance, for sure. But the looseness of metatables means you have zero guarantees of cross-compatibility with third-party code understanding how your prototypes work, and vice-versa. Method vs non-method function calls are also caller controlled, meaning whether or not you get passed the proper 'this' is up to caller responsibility, which means the caller also continuously needs awareness of which methods to call with period and which with colon. It's such a poor fucking language convention, it gives fucking PHP displaced embarassment.

Which also means that
>Lua has only 1 feature for every task which makes it more elegant.
deserves only one response, and that is: lol. lmao even.
Replies: >>25486

< prev p4/6 next >

[ reply ]