Re:Compact Representations for Arrays in Lua [pdf]
by Jyaif on Saturday June 21, 2025 @05:46PM
(#44340963)
It works in gcc and LLVM, on both arm and x86, so I'd say conservatively that 90% of their users are covered.
[ Parent
| on HN ]
Re:Compact Representations for Arrays in Lua [pdf]
by kragen on Saturday June 21, 2025 @07:06PM
(#44341406)
You have no idea what 90% of their users are using. A lot of them aren't using LLVM or GCC. I'm pretty sure Roblox and WoW, for example, aren't normally compiled with LLVM or GCC. Whether those two games account for 99% of Lua's users or 0.001% depends on how you count, but no matter how you count, you have no idea.
Re:Compact Representations for Arrays in Lua [pdf]
by debugnik on Saturday June 21, 2025 @08:13PM
(#44341683)
Roblox accounts for 0% of stock Lua users, they run Luau. And many uses of Lua you come up with will be using LuaJIT or pinned to an older, possibly forked, Lua release.
I'm not agreeing with the comment you replied to, just nitpicking.
Re:Compact Representations for Arrays in Lua [pdf]
by kragen on Saturday June 21, 2025 @08:39PM
(#44341887)
You have good points.
Re:Compact Representations for Arrays in Lua [pdf]
by canyp on Saturday June 21, 2025 @07:14PM
(#44341438)
I really enjoyed the punchline at the end of that comment and how it authoritatively proves the opening statement. This is what the Internet was made for, folks; this is it right here.
Re:Compact Representations for Arrays in Lua [pdf]
by mananaysiempre on Saturday June 21, 2025 @07:09PM
(#44341419)
Embedders of Lua are not equidistributed across platforms with the general population of programmers or with user-exposed general-purpose computers. Not even close. One of the selling points of Lua is how easy it is to run on a toaster or potato, so disproportionately many ports of Lua are in fact running on toasters and potatoes.
Re:Compact Representations for Arrays in Lua [pdf]
by nxobject on Sunday June 22, 2025 @02:25AM
(#44344358)
The USP of Lua is the fact that's its easy to target embedded and microcontroller with funky/frozen toolchains -- that's why PUC-Rio Lua is written in C89. You're just as likely to have to use a "#pagma packed" as an attribute.