> Lua adds a /completely new programming layer/ to typesetting besides the
> TeX macro layer. And both layers are rather orthogonal to another. Any
> formats should play nice with the Lua layer. That is, they shouldn't
> force Lua package authors to target a particular format.
Lua package authors need a way to register a callback, and there can be
only one way per format... Also, suppose that somebody decides to write
a new luatexbase2 with a different interface, that would make things
really impossible to handle, and it couldn't be used in LaTeX nor Plain
without breaking everything, so no luatexbase2 can be written... So
there can be only one interface for packages supporting LaTeX and
Plain... what's the point of not including it in the format? Any other
format can include it too... Apart from philosophical questions which
seem to have 0 impact on the reality of luatexbase/LaTeX development, I
really see no downside in making luatexbase into the format. That was
its first purpose anyway.
> I think there are a few more formats in TL. But anyway, while different
> formats satisfy different demands, they make up for fragmentation of the
> TeX ecosystem. This is bad when the same typesetting problems are
> solved multiple times each solution targeting another format.
That's another discussion, but I think you're exposing the reason why
many people now use a monolitic ConTeXt instead of LaTeX where you have
dozens of more or less incompatible packages just to make a table...
> Ouch, I've not been aware of that. That's certainly ConTeXt's fault and
> should be fixed on their side.
The developpers of ConTeXt are the developpers of LuaTeX, believe me,
they're perfectly aware of what they're doing.
> Come on, you are an experienced open-source programmer. "Technically
> impossible" is a polemic term for "not yet implemented". ConTeXt is
> buggy. That's all.
Well, you should discuss that with Hans, I'm not interested in this
conversation as I've never compiled a single ConTeXt document. Right
now, ConTeXt is designed this way, and format-independant packages are
not possible, period. I've discussed this in length at the time where I
wrote luatexbase, and it took time for me to understand his vision. I
can't say I 100% agree with him, but I'm not in a position where I can
fork luatex and context to make them suit my view of what they should be.