Re:Lua in the Kernel?
by pansa2 on Friday September 18, 2020 @04:53AM
(#24514488)
Yes. `string.find` is implemented in C. Invoking it (no matter how complex its arguments) requires just a few bytecode instructions.
[ Parent
| on HN ]
Well, then that's library dependent and not an intrinsic part of the language. So shipping Lua safely would mean having to swap or drop parts of the standard library for something a bit more robust.
Apparently, that's what Lunatik does so the work seems to already have been done.
Re:Lua in the Kernel?
by anonymoushn on Friday September 18, 2020 @08:12PM
(#24523230)
Appending strings together is a single bytecode instruction and this cannot really be fixed.