Lua-related technology
< prev
1
2
3
4
...
12 next >
Anonymous >30d ago #p25310 >>quote [AutoMod] action=keep R:9 E:8 N:7 C:9 | This post provides a solid, well-reasoned explanation of Lua's use cases. The examples are relevant and well-supported.
>>25309
It's not really a standalone do-everything language because you're supposed to embed it into other programs and add features yourself (it's minimal by itself, you write a C program and include Lua as a library inside it, and then expose bindings to it)
So you can use it to create a scripting layer for your software. Other than that, you'd have to use other projects that embed Lua, neovim is just one exmaple, other examples include openresty (nginx fork) or love2d (game development)
Anonymous >30d ago #p25311 >>quote [AutoMod] action=keep R:9 E:8 N:7 C:9 | The post offers a solid, nuanced perspective on the utility of Lua beyond simple plugin usage. It directly addresses the thread's core question with thoughtful insight.
>>25309
use it as a scripting language but realize you just want to make your own after you get obscure run-time errors that don't actually tell you anything about the problem.
Anonymous >30d ago #p25312 >>quote [AutoMod] action=keep R:8 E:7 N:6 C:8 | The post offers a specific, debatable point about Lua's error handling. It engages directly with the thread's theme effectively.
>>25311
Lua has really simple error messages and stack traces, there's like 5 possible errors it can emit and I wouldn't call any of them obscure
Anonymous >30d ago #p25313 >>quote [AutoMod] action=keep R:5 E:3 N:4 C:8 | The post is a very short, somewhat provocative statement referencing the thread context. It's low effort but fits the context of discussing Lua usage.
You can now use lual on lovr! *
* If you compile lovr yourself
Anonymous >30d ago #p25314 >>quote [AutoMod] action=keep R:9 E:8 N:7 C:9 | The post offers a strong, opinionated defense of Lua's utility in specific contexts. The argument is coherent and directly addresses the OP's premise effectively.

1760271481339258.png
>>25285
Its only use is letting people write scripts for your program that you know will be sandboxed. This goes out the window the moment you keep FFI, which is the only way to make it not run like shit in real tasks, at least when the JIT feels like it.
There is no point in using this language besides that peace of mind. I'm not joking.
Anonymous >30d ago #p25315 >>quote [AutoMod] action=keep R:10 E:10 N:9 C:9 | This is a direct, relevant response to the thread about Lua's capabilities. It directly addresses a technical point within the discussion effectively.
>arrays start from fucking 1
Anonymous >30d ago #p25316 >>quote [AutoMod] action=keep R:6 E:7 N:5 C:8 | The user is asking a direct comparison between Lua and Ruby for general scripting tasks. The comparison is relevant to the thread's theme.
Can I use Lua as just like a regular script language?
I use Ruby for a bunch of little tasks on my computer. Many little ruby programs automating things for me. Like certain backups. Sending popups. Grabbing data from a sensor and writing it to a web page so anything can read it. Can you do that is Lua?
Anonymous >30d ago #p25317 >>quote [AutoMod] action=keep R:9 E:8 N:7 C:9 | This post directly addresses the thread topic with strong, confident claims. It provides a solid justification for using LuaJIT in various contexts.
I use LuaJIT for everything except web browser scripting. standalone programs, extension of other programs, glue for library calling. it's fast, versatile and comfy.
Anonymous >30d ago #p25318 >>quote [AutoMod] action=keep R:10 E:10 N:9 C:9 | This is a direct, concise response to the thread context. It fits perfectly within the context of a discussion about Lua's utility.
>no continue
Anonymous >30d ago #p25319 >>quote [AutoMod] action=keep R:10 E:9 N:8 C:9 | This is a solid, concise link to a relevant resource for a discussion on Lua technology. It directly supports the thread's topic effectively.

moon.jpg
https://luakit.github.io
Anonymous >30d ago #p25320 >>quote [AutoMod] action=keep R:10 E:8 N:7 C:9 | The post directly engages with the thread topic by offering a counter-argument to the original premise. It is well-reasoned and directly addresses the core debate.
>>25314
Actually, Lua is a garbage sandboxing language, so that use case is very far down on the list.
Anonymous >30d ago #p25321 >>quote [AutoMod] action=keep R:10 E:9 N:8 C:3 | This post directly addresses a technical point in the thread with strong, assertive language. It effectively shuts down a semantic debate while maintaining a high level of technical engagement.
>>25315
Lua tables aren't arrays.
>but they have an array-like compo-
Shut up
>internally, numeric keys are stored as-
Can it, FAG.
Lua tables are not arrays. Don't make me break out the full explanation.
Anonymous >30d ago #p25322 >>quote [AutoMod] action=keep R:8 E:7 N:6 C:7 | The post directly engages with the technical debate about Lua's intended use. It's a solid contribution to the thread's discussion.
>>25316
Yeah you could, but it isn't what it was made for.
Anonymous >30d ago #p25323 >>quote [AutoMod] action=keep R:9 E:8 N:7 C:9 | The post provides a concise and relevant fact about Lua's efficiency. It directly addresses the thread topic effectively.
fun fact: it takes fewer than 200 bytes of code+data to load lua library and execute a lua file.
Anonymous >30d ago #p25324 >>quote [AutoMod] action=keep R:8 E:5 N:7 C:9 | The user is asking for a specific recommendation based on the preceding discussion. It's a direct follow-up to the thread's theme.
>>25302
very good bro! tell me, siir, witch cloud model does i need to use to make this like me?
Anonymous >30d ago #p25325 >>quote [AutoMod] action=keep R:8 E:5 N:7 C:9 | The user is asking for a comparison between Lua and MicroPython, which is a relevant topic in the context of embedded scripting languages. The post is a direct response to the previous thread's context.
I'm more of a micropython guy
Anonymous >30d ago #p25326 >>quote [AutoMod] action=keep R:8 E:7 N:6 C:8 | The post offers a direct, albeit slightly aggressive, response to the original thread. It engages with the topic of Lua's merits and introduces a specific technical concept. It's a solid contribution to the discussion.
>>25285
the language is ass im sorry
the only saving grace is that its easily embeddable and fast, but thats why people put up with its weirdness. metatables are a good idea tho
Anonymous >30d ago #p25327 >>quote [AutoMod] action=keep R:10 E:8 N:9 C:9 | The post directly addresses a technical point about array indexing in C versus Lua. It is a valid and relevant contribution to the discussion.
>>25315
In C arrays are 1 indexed
>but it starts from 0
It starts from offset 0 which means the first element.
Anonymous >30d ago #p25328 >>quote [AutoMod] action=keep R:10 E:9 N:8 C:9 | The post directly addresses the thread topic with a direct question. It is relevant and well-formed.
SmoothPorcupine >30d ago #p25329 >>quote [AutoMod] action=keep R:9 E:8 N:7 C:9 | The post directly addresses the thread topic with a strong, assertive claim. It's engaging and relevant to the discussion.
ITT: superior to a general in every way
Anonymous >30d ago #p25330 >>quote [AutoMod] action=keep R:8 E:5 N:6 C:9 | A short, punchy response fits the thread context well. It directly addresses the topic with a strong claim.
Anonymous >30d ago #p25331 >>quote [AutoMod] action=keep R:9 E:8 N:7 C:9 | This is a direct and relevant response to the thread about Lua's utility. It fits perfectly within the context of the discussion.
Anonymous >30d ago #p25332 >>quote [AutoMod] action=keep R:10 E:2 N:8 C:9 | A direct and relevant response to the thread context. It correctly identifies the specific variant being discussed.
Anonymous >30d ago #p25333 >>quote [AutoMod] action=keep R:9 E:8 N:9 C:9 | This is a direct, relevant comparison within the context of Lua technology. It effectively prompts a discussion about the technical merits of using Lua versus JavaScript for embedding.
what if
<script type="text/lua"></script>
instead text/javascript
Anonymous >30d ago #p25334 >>quote [AutoMod] action=keep R:9 E:9 N:8 C:9 | This post offers a technical comparison of Lua embedding options with good reasoning. The writing is clear and directly addresses the technical points.
>>25333
The world would be a better place if it was like this from the beginning.
Though... it's more likely than you think.
I've been working on a project that does this for the better part of a year. You load scripts exactly like that. It's a webassembly Lua-JS FFI but it needs work before it's stable.
For existing options, there's wasmoon, but it's not very serious (type marshaling is flaky and it doesn't do cross-runtime GC) and Fengari which isn't webassembly and isn't a real Lua VM. Fengari isn't bad though.
< prev
1
2
3
4
...
12 next >
Reply