Can you give some motivation, why you need this / what is the purpose
of your question?
I'm asking for an implementation of portable bytecode in Lua, if any.
Do you have any Lua application, where it would be bad for you to
program the ASCII Lua code?
No, not really, but bytecode makes module loading a small bit faster, so I'd prefer to generate it in a platform (e. g. Ubuntu) and then use it in another without recompiling.
Or do you want to safe programming time?
Yes, exactly. I know about some tricks such as stripping spaces, but my question concerns bytecode specifically. Any suggestions?