On February 14, 2016 1:55:01 PM Élie Roux <[email protected]>
wrote:
Maybe this is a silly question, but why don't we just byte-compile
the gregorio lua sources instead?
I'm not sure I really understand what you mean...?
Basically, the cache system takes all the .lua files (or at least tries
to, there are a few edge cases where it doesn't), byte-compile them, and
puts them all in one unique file.
To go in the same direction, more things could be added in the format,
(which is kind of "byte-compiled TeX"), creating a custom one, but
interaction between TeX and Lua in the format is something that hasn't
really been worked on enough for this solution to be viable... I tried
to do something like that a few years ago, but didn't finish because
there were a few bugs in the LuaTeX engine (they have since been fixed).
That would be very helpful to many people, not just Gregorio users, but
that's a lot of work...
I mean rather than using the cache system to byte compile and cache lua
bytecode, why not use texluac to byte-compile the gregorio lua files during
installation to make the compiled lua files directly available, so the
everyone gets the benefit of pre-compilation? I've only taken a very quick
look at things, so maybe that is totally non-viable.
Henry
_______________________________________________
Gregorio-devel mailing list
[email protected]
https://mail.gna.org/listinfo/gregorio-devel