Compact representations for arrays in Lua [pdf]
sol.sbc.org.br
Compact representations for arrays in Lua [pdf]
1–10 of 22 posts
Re: Compact representations for arrays in Lua [pdf]
#2Re: Compact representations for arrays in Lua [pdf]
#3Irresponsible of them of not advertising this as an option in luaconf.h
Re: Compact representations for arrays in Lua [pdf]
#4Jesus christ, 40% waste in arrays that can be solved by using `__attribute__((packed))`. Irresponsible of them of not advertising this as an option in luaconf.h
"However, this attribute is a gcc extension not present in ISO C. Moreover, even in gcc it is not guaranteed to work [3]. As portability is a hallmark of Lua, this almost magical solution is a no-go."
Re: Compact representations for arrays in Lua [pdf]
#5Jesus christ, 40% waste in arrays that can be solved by using `__attribute__((packed))`. Irresponsible of them of not advertising this as an option in luaconf.h
Here's the rest of that paragraph for you: "However, this attribute is a gcc extension not present in ISO C. Moreover, even in gcc it is not guaranteed to work [3]. As portability is a hallmark of Lua, this almost magical solution is a no-go."
Re: Compact representations for arrays in Lua [pdf]
#6https://github.com/lua/lua/blob/f71156744851701b5d5fabdda506...
Re: Compact representations for arrays in Lua [pdf]
#7Earlier quoted context omitted.
Here's the rest of that paragraph for you: "However, this attribute is a gcc extension not present in ISO C. Moreover, even in gcc it is not guaranteed to work [3]. As portability is a hallmark of Lua, this almost magical solution is a no-go."
[flagged]
Re: Compact representations for arrays in Lua [pdf]
#8Earlier quoted context omitted.
Here's the rest of that paragraph for you: "However, this attribute is a gcc extension not present in ISO C. Moreover, even in gcc it is not guaranteed to work [3]. As portability is a hallmark of Lua, this almost magical solution is a no-go."
[flagged]
Re: Compact representations for arrays in Lua [pdf]
#9Earlier quoted context omitted.
[flagged]
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]
#10Earlier quoted context omitted.
[flagged]
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.
I'm not agreeing with the comment you replied to, just nitpicking.