I'd prefer to code libraries in lua while maintaining compatibility with pdflatex, without shell-escape. While it may be possible to implement a lua interpreter in pure latex, it would be significantly simpler and more efficient if a restricted lua environment (with os.execute restricted to allowed binaries, write access allowed only in the current folder etc) would be available in restricted mode.
So I have a few questions/requests:
- In lualatex, how do you restrict lua when it is run in restricted mode (no shell escape)? Is there a way to start a lua interpreter in the same mode as the one used in lualatex easily?
- Would you agree to move this lua interpreter to the allowed list of packages?
I'd prefer to code libraries in lua while maintaining compatibility with pdflatex, without shell-escape. While it may be possible to implement a lua interpreter in pure latex, it would be significantly simpler and more efficient if a restricted lua environment (with
os.executerestricted to allowed binaries, write access allowed only in the current folder etc) would be available in restricted mode.So I have a few questions/requests: