Lua-related technology [rss]

Anonymous >30d ago #p25485 >>quote
[AutoMod] action=keep R:9 E:9 N:8 C:9 | This post offers a deep, technical correction regarding Lua's indexing and data structures. The argument is well-supported and highly relevant to the thread's technical discussion.
>>25453
It's actually not even 1-based indexing. Because Lua doesn't actually have arrays.
It only has bool/string/number primitives, an associate hashmap object that it calls a 'table,' and a hacky add-on on top of that which mix-and-matches features of Symbol and Proxy in JS - which it refers to as meta-tables.

It doesn't actually have arrays. Arrays are just a convention expressed through part of its standard library, for iterating over numeric looking table keys. The standard library functions expect iteration to start at 1, but it doesn't have to. It could start at 0 as well. Or at 5. Or at 42. Or, if you're a particularly crafty fucker publishing code modules as a third-party, who wants to fuck with people: -1.
Anonymous >30d ago #p25486 >>quote
[AutoMod] action=keep R:8 E:9 N:8 C:9 | The post directly engages with the technical discussion about Lua's features and method calls. It's a solid contribution to the thread.
>>25484
>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,
This happens in every programming language tho
Anonymous >30d ago #p25487 >>quote
[AutoMod] action=keep R:10 E:8 N:9 C:8 | The post directly engages with the thread's topic by challenging the premise of Lua's performance claims. It's a solid, direct counterargument.
>>25482
>Lua is slower than the fastest and most mature scripting runtime in the world, therefore it's a failure
ok
Anonymous >30d ago #p25488 >>quote
[AutoMod] action=queue R:1 E:2 N:1 C:2 | The post is a direct, low-effort request that has no context in the software thread. It is irrelevant spam for this board.
Redpill me on brazilians
Replies: >>25489
Anonymous >30d ago #p25489 >>quote
[AutoMod] action=keep R:10 E:9 N:8 C:9 | The post is a direct, albeit aggressive, response to the thread's premise. It engages directly with the argument presented in the thread.
Memo.png
Memo.png
>>25488
Attachments:
Memo.png (link)
Replies: >>25490
Anonymous >30d ago #p25490 >>quote
[AutoMod] action=keep R:10 E:10 N:9 C:9 | The post directly engages with the thread topic with strong, provocative arguments. It's a direct counter to the previous argument.
>>25489
what
Anonymous >30d ago #p25491 >>quote
[AutoMod] action=queue R:1 E:1 N:1 C:1 | The post is a one-word reply, offering no substance to the thread discussion.
>>25469
maidsexo
Anonymous >30d ago #p25492 >>quote
[AutoMod] action=keep R:10 E:9 N:8 C:9 | The post directly engages with the performance debate regarding Lua and V8/LuaJIT. It's a direct, albeit aggressive, comparison.
>>25482
and V8 is 50MB of slop while LuaJIT is like 2MB
Replies: >>25501
Anonymous >30d ago #p25493 >>quote
[AutoMod] action=queue R:1 E:2 N:1 C:5 | The post is extremely low effort and irrelevant to the thread context. It offers no substance regarding Lua's utility.
ultimate-lua-tan.jpg
ultimate-lua-tan.jpg
I love Lua-tan
Attachments:
ultimate-lua-tan.jpg (link)
Replies: >>25496
Anonymous >30d ago #p25494 >>quote
[AutoMod] action=keep R:10 E:10 N:9 C:9 | The post is a direct, relevant, and engaging response to the thread context. It adds a relevant, slightly provocative, and engaging point to the discussion.
>>25285
oh, lua is brazilian?
Replies: >>25497 >>25499
Anonymous >30d ago #p25495 >>quote
[AutoMod] action=keep R:8 E:7 N:6 C:9 | The user is asking about Neovim in the context of Lua, which is a relevant topic. The post is a reasonable follow-up to the thread.
i'm a bit interested because of neovim
i haven't migrated my vimscript config properly
Replies: >>25497 >>25500
Anonymous >30d ago #p25496 >>quote
[AutoMod] action=queue R:2 E:1 N:1 C:1 | The post is a simple demand for more Lua-tan art, which is low effort but relevant to the thread topic. It fits the context of the thread well.
>>25493
We need more Lua-tan art.
Replies: >>25498
Anonymous >30d ago #p25497 >>quote
[AutoMod] action=keep R:10 E:9 N:8 C:9 | This is a direct and engaging response to the thread context. It encourages the user to engage with the topic effectively.
>>25494
Correct
>>25495
Take the plunge
Anonymous >30d ago #p25498 >>quote
[AutoMod] action=keep R:10 E:2 N:5 C:8 | A very short, direct response to the thread context. It directly addresses the request to create a logo, showing clear intent.
>>25496
I will make the logo
Replies: >>25506
Anonymous >30d ago #p25499 >>quote
[AutoMod] action=keep R:10 E:2 N:1 C:9 | The post is a single word, which is highly relevant to the thread context. It serves as a direct, albeit minimal, response to the thread's topic.
>>25494
Hue
Anonymous >30d ago #p25500 >>quote
[AutoMod] action=keep R:8 E:7 N:6 C:8 | The user provides a direct, relevant comparison between Lua's scripting capabilities and Vimscript's limitations. The argument is well-supported and engaging for a tech forum.
>>25495
It'a pretty meh for config; it's fine either way.
But as a scriptable interface, it's leagues better than the "run sequential ex commands to change your buffer" language that is Vimscript.
t. tried writing plugins in pure Vimscript and got frustrated at how autoload imposes a strict directory structure on you with terrible cross-submodule support
Anonymous >30d ago #p25501 >>quote
[AutoMod] action=keep R:9 E:8 N:7 C:9 | The post directly engages with the performance comparison between V8 and LuaJIT. It's a solid, relevant contribution to the thread's technical discussion.
>>25492
>V8 is 50MB of slop while LuaJIT is like 2MB
brutal
Anonymous >30d ago #p25502 >>quote
[AutoMod] action=keep R:8 E:7 N:6 C:7 | The post offers a direct counter-argument to the initial claim regarding Lua's performance. It introduces an alternative language and a specific use case.
>>25482
>Actually- performance-wise Lua is utter shite.
I can write real time software in Prolog for modern computers. PUC-RIO Lua is perfectly fine.
Anonymous >30d ago #p25503 >>quote
[AutoMod] action=keep R:10 E:10 N:9 C:9 | The user is directly engaging with the thread context with a strong, opinionated statement. It's a direct and relevant contribution to the debate.
HNiggas talking about Lua rn
https://news.ycombinator.com/item?id=48982011
Replies: >>25504
Anonymous >30d ago #p25504 >>quote
[AutoMod] action=queue R:2 E:2 N:1 C:2 | The post is a direct, aggressive reaction to the thread context. It is low-effort but relevant to the general tone of the discussion.
iiMuuGA.png
iiMuuGA.png
>>25503
Why are users on this website such insufferable faggots?
It's like reading linkedin, r*ddit, and lesswrong all at the same time.
Attachments:
iiMuuGA.png (link)
Replies: >>25510
Anonymous >30d ago #p25505 >>quote
[AutoMod] action=keep R:10 E:9 N:8 C:9 | The post is a direct, albeit aggressive, response to the thread context. It engages with the core topic with high energy and strong opinions.
>>25402
>loukamb
Liu Kang?
Anonymous >30d ago #p25506 >>quote
[AutoMod] action=keep R:10 E:9 N:8 C:9 | This post directly addresses the context and moves the thread forward logically. It's a clear and relevant response to the request for a logo.
>>25498
We're waiting on the logo before we start with the project.
Anonymous >30d ago #p25507 >>quote
[AutoMod] action=keep R:10 E:8 N:7 C:9 | A strong, passionate opinion fits the thread context well. It directly engages with the core topic of Lua's utility.
I hate this language and the fact that it gets embedded into fucking everything.
Replies: >>25508
Anonymous >30d ago #p25508 >>quote
[AutoMod] action=keep R:10 E:9 N:8 C:9 | This post directly engages with the thread's core topic with a relevant perspective. It's a solid, concise response to the preceding discussion.
>>25507
>I dislike that the popular language designed for embedding is frequently embedded into applications
Replies: >>25509
Anonymous >30d ago #p25509 >>quote
[AutoMod] action=keep R:10 E:2 N:1 C:9 | A very short, direct agreement to the previous statement. It fits the context perfectly and shows engagement.
>>25508
Yes.
Anonymous >30d ago #p25510 >>quote
[AutoMod] action=keep R:10 E:10 N:9 C:3 | The post is a direct, albeit inflammatory, response to the thread context. It engages with the thread's tone effectively.
>>25504
There are some based channers posting there though
Replies: >>25511 >>25513
Anonymous >30d ago #p25511 >>quote
[AutoMod] action=keep R:10 E:2 N:1 C:1 | The post is a direct, relevant response to the preceding quote. It is short and directly addresses the quoted comment.
>>25510
>based channers
Lmao. Please leave this website.
Verification not required. >30d ago #p25512 >>quote
[AutoMod] action=keep R:10 E:10 N:9 C:10 | The user is asking for a use case for Lua, which is a direct and relevant follow-up to the original thread topic.
>>25285
use case?
Replies: >>25514
Anonymous >30d ago #p25513 >>quote
[AutoMod] action=keep R:10 E:10 N:9 C:9 | The post directly engages with the OP's premise by asking for specific use cases for Lua, which is a relevant and engaging follow-up.
>>25510
Like who?
Replies: >>25516
Anonymous >30d ago #p25514 >>quote
[AutoMod] action=keep R:9 E:8 N:7 C:9 | This post directly addresses the core question of the thread with a relevant, concise answer. It's a solid contribution to the discussion.
>>25512
customizing behavior of stuff without recompiling said stuff.
Replies: >>25515
Anonymous >30d ago #p25515 >>quote
[AutoMod] action=keep R:10 E:10 N:9 C:9 | This is a direct, relevant response to the previous discussion about Lua's use cases. It is concise and directly addresses the utility of Lua.
>>25514
ok nice usecase
Anonymous >30d ago #p25516 >>quote
[AutoMod] action=keep R:10 E:10 N:9 C:10 | The post is a direct, relevant link to Hacker News, which is highly relevant to a discussion about Lua technology.
moot-sticky.png
moot-sticky.png
>>25513
https://news.ycombinator.com/user?id=moot
Attachments:
moot-sticky.png (link)
Replies: >>25517 >>25518
Anonymous >30d ago #p25517 >>quote
[AutoMod] action=keep R:10 E:10 N:9 C:9 | This is a very short, punchy comment that fits the context well. It's a direct, slightly provocative response to the preceding thread.
>>25516
Unexpected, top kek
Anonymous >30d ago #p25518 >>quote
[AutoMod] action=keep R:10 E:10 N:9 C:9 | The post is a direct, relevant response to the thread context. It is engaging and relevant to the discussion about Lua's merits.
1775921908457185.jpg
1775921908457185.jpg
>>25516
Attachments:
1775921908457185.jpg (link)
Anonymous >30d ago #p25519 >>quote
[AutoMod] action=queue R:2 E:1 N:1 C:1 | The post is a direct quote and offers minimal substance. It serves as a simple reaction to the original post.
>>25476
>terralang
heh
Anonymous >30d ago #p25520 >>quote
[AutoMod] action=keep R:10 E:9 N:8 C:9 | The post is a direct, albeit aggressive, response to the preceding discussion. It effectively challenges the premise of the Lua discussion with a relevant technical counterpoint.
>>25396
>the superior alternative is being able to specify the bounds of the array on allocation
>you can start from 0 or 1 or -50 or whatever you want to
>t. fortran
why the fuck would you want this
Replies: >>25521 >>25531
Anonymous >30d ago #p25521 >>quote
[AutoMod] action=keep R:8 E:7 N:8 C:9 | The post engages with the technical concept of array indexing and memory representation. The tone is highly opinionated but remains within the context of a technical discussion.
>>25520
Can you really see no use for this?
I guess it requires having 115 IQ at minimum to realize the numeric value associated with a data point along an axis (something you'd use a list data structure like an array for) isn't always the same value as the data point's position relative to the list in the program's memory. But you are so cnile that your brain can't even separate those two concepts at all, even though they're very different things... I feel bad for you, it's like having a mental illness.
Replies: >>25522
Anonymous >30d ago #p25522 >>quote
[AutoMod] action=keep R:8 E:7 N:6 C:8 | The post is a direct, albeit slightly aggressive, response to a previous comment. It engages with the technical context effectively.
>>25521
>you are so cnile that your brain can't even separate those two concepts at all
...even though programming in C necessitates that I do exactly that?
Replies: >>25525
Anonymous >30d ago #p25523 >>quote
[AutoMod] action=keep R:10 E:9 N:8 C:9 | The post directly engages with the thread context and provides a relevant, albeit slightly provocative, response. It fits the context well.
ftt8ve4b76q21.png
ftt8ve4b76q21.png
>>25439
yes
refer to the included image
Attachments:
ftt8ve4b76q21.png (link)
Replies: >>25528 >>25546 >>25570
Anonymous >30d ago #p25524 >>quote
[AutoMod] action=keep R:8 E:7 N:6 C:8 | The post offers a nuanced perspective on the indexing system and its relevance in programming contexts. The argument is well-structured and thought-provoking for a technical audience.
d984p9k.png
d984p9k.png
1-based indices actually have a property that starts at 0, that being the length. If I have 5 apples, I label them 1, 2, 3, 4, and 5, but if I don't have any apples, I have 0 apples (aka the length of the list is 0). So the number 0 isn't wasted in the case of a 1-based array.
Whether it makes sense to start from 0 depends on the question you're asking, for example if you ask "how far away from me is the closest object?" a valid answer would be that it's 0 meters away from you. But if you ask how many objects there are, notice there HAS to be at least 1 object, otherwise the question of how far away the closest object is doesn't make any sense.
The reason you index from 0 in C is because indexing an array with value n is asking "what is the nth repetition of this object?" which is closer to the question of distance. arr[4] in C is asking "give me the 4th repeated value" which happens to be the 5th value. The reason it's framed this way is because it's how you think about memory allocation (an array of type t and length n allocates sizeof(t)*n memory, and the index is a multiplication of sizeof(t)) but it's totally arbitrary.
Attachments:
d984p9k.png (link)
Anonymous >30d ago #p25525 >>quote
[AutoMod] action=keep R:9 E:8 N:7 C:9 | The post makes a strong, relevant point about abstraction in programming concepts. The analogy is clear and well-executed for the context.
>>25522
You can differentiate the two things in your code, but apparently you don't realize that means you can turn it into an abstraction without losing anything.
Just like when typing a string, you type "hello world" instead of "104 101 108 108 111 32 119 111 114 108 100".
Replies: >>25526
Anonymous >30d ago #p25526 >>quote
[AutoMod] action=keep R:10 E:9 N:9 C:9 | This is a solid, concise response that directly addresses the previous discussion about abstraction and array indexing. It flows logically and adds a new perspective effectively.
>>25525
>without losing anything
except all respect for myself that i found array indices too difficult to understand.
Replies: >>25527
Anonymous >30d ago #p25527 >>quote
[AutoMod] action=keep R:9 E:8 N:7 C:3 | The post is aggressive but directly addresses the technical points of the thread. It pushes the user toward a more advanced understanding of memory manipulation.
>>25526
I don't think you are fully committed to this logic unless you use ascii tables to write out strings and write 0 and 1 instead of true and false. In fact, you are probably stupid if you even so much as use indices, every value above 0 is an abstraction so it doesn't reflect the real data. You should be casting array+size+index to a pointer and dereferencing it directly, otherwise you're too stupid to understand pointers.
Replies: >>25529
Anonymous >30d ago #p25528 >>quote
[AutoMod] action=keep R:9 E:8 N:8 C:9 | The post directly asks a relevant, open-ended question within the context of a discussion about Lua and related scripting languages. It is a direct and engaging prompt for further discussion.
>>25523
What does Haskell look like?
Replies: >>25533
Anonymous >30d ago #p25529 >>quote
[AutoMod] action=keep R:10 E:9 N:8 C:9 | The post is a direct, albeit sarcastic, response to the preceding discussion. It fits perfectly within the context of a technical discussion about programming languages.
>>25527
the amount of autism in this post...
Replies: >>25530 >>25532
Anonymous >30d ago #p25530 >>quote
[AutoMod] action=keep R:10 E:10 N:9 C:8 | This is a very short, punchy reply that fits the context of a direct, slightly provocative response to the previous post. It's engaging and fits the thread's tone well.
>>25529
It's exactly what you sound like kek
Anonymous >30d ago #p25531 >>quote
[AutoMod] action=keep R:9 E:8 N:7 C:9 | This post offers a concrete, technical argument for using Lua based on array manipulation benefits. It directly addresses the OP's premise effectively.
>>25520
you get rid of annoying conversion steps where you have to shift indices and can instead just insert directly at that index
you also reduce the chances of off by one errors and can use your mental energy on other stuff
Replies: >>25534
Anonymous >30d ago #p25532 >>quote
[AutoMod] action=keep R:10 E:9 N:8 C:9 | The post is a direct, albeit brief, response to a previous comment in the thread. It fits the context perfectly and engages with the discussion effectively.
>>25529
>autism
?
Anonymous >30d ago #p25533 >>quote
[AutoMod] action=keep R:10 E:10 N:8 C:9 | The post directly engages with the thread topic by offering a concise, albeit provocative, counterpoint to the previous discussion.
>>25528
Purely functional (and useless).
Replies: >>25569
Anonymous >30d ago #p25534 >>quote
[AutoMod] action=keep R:9 E:8 N:7 C:2 | The post is a direct, aggressive rebuttal to a previous comment. It's engaging and fits the thread's technical context well.
>>25531
>you get rid of annoying conversion steps
you didn't get rid of shit. you just hid it and now the computer has to do it for you, reducing your performance because you're a lazy fuck.
Replies: >>25535 >>25536

< prev p5/6 next >

[ reply ]