Re: Question about SETFIELD nil emission in table constructor codegen

bil til <[email protected]>
Newsgroups gmane.comp.lang.lua.general
Message-ID <CAOnDXmGcUo9jdN0YpzALPhZU+Mc1ii7AfO87mtxp2QwiuuMXzQ@mail.gmail.com>
Am Sa., 28. Feb. 2026 um 18:12 Uhr schrieb 'Bernard L'île' via lua-l
<[email protected]>:
>
> As a further optimizations, table literals with variable components *could* (but need not) be built at compile time and then augmented with setfield opcodes to fill in the variable parts.
>

Such optimizations are typical for "offline compilers" like e. g. C
family. Typically use "multi-cycle" compling. I a first step not much
optimization, and ten more and more... . This complete process does
not need to take care very much on resources or timing, it just takes
"as long as it needs" and uses "as many resources as it needs"... .
The main thing is to get a very efficient and compact machine code in
the end.

But Lua is a script language with very efficient runtime compiler. Any
time or also RAM spoiling would be not very friendly here at all for a
huge and dominant part of applications.

-- 
You received this message because you are subscribed to the Google Groups "lua-l" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [email protected].
To view this discussion visit https://groups.google.com/d/msgid/lua-l/CAOnDXmGcUo9jdN0YpzALPhZU%2BMc1ii7AfO87mtxp2QwiuuMXzQ%40mail.gmail.com.
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.