Nikolai Weibull wrote:
Hans Hagen wrote:
[Extending pdftex with lua]
Heh, extending a language with another one...
combining a typographic language with a procedural/oo/functional one -)
I guess it could have its uses. I'd rather use Ruby, but it has a larger footprint and perhaps heavy OO wouldn't be a real merit for this type of extension.
sure, ruby may be better, but it's getting so large .. .
I don't quite see the usefulness from the examples you have included.
that's just interfacing quite some low level messing around can be done more elegant if we have 'normal' datatypes (like floating points), multiple hash support, string processing, etc if there is a complete interface to the mvl for instance (access to tex's internal lists), we can built better routines e.g. multi column handling, catching border cases, etc
Could you perhaps give a couple more? I like to see more of the stuff you're envisioning.
the latest pdftex has a few new primitives, think of hex conversion, regular expressions and such, and there will never be enough of that; could be done more conveniently with a real language Hans ----------------------------------------------------------------- Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.com | www.pragma-pod.nl -----------------------------------------------------------------