1. Lua is a terrible choice of a programming language IMHO (at least dealing
with encodings in it used to be nightmare, though IDK how is it now). Some
embedded JS engine may be better.
2. If to implement something in lua, one can ask why not to implement
everything in lua? Replacing a C++ parser with Lua one opens a can of worms in
the sense of thinking about which can and which cannot.
3. Kaitai Struct may be helpful if you wanna write a parser in lua (or in C++,
JS, or Rust). Disclaimer: I'm involved into this project. Parsers generated by
it are considered to be memory safe (in the sense they are gejerated
au6omatically, not handcodedby humans, but I am not very sure in it since I
don't remember any audit, I feel like integer overflows can be the main source
of memory unsafety).
--
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/rpm-software-management/rpm/issues/1306#issuecomment-755709738
_______________________________________________
Rpm-maint mailing list
[email protected]
http://lists.rpm.org/mailman/listinfo/rpm-maint