Hi,

Thanks Hans for the new upload! Always nice to see some
performance improvement!

I seem to get errors with `mtxrun --script fonts --reload` when `OSFONTDIR`
contains `ttf` files, for instance:

```
otf reader      | fatal error in file
'/home/florent/.local/share/fonts/SourceSans3-SemiboldIt.ttf':
/home/florent/lmtx/scripts/context/lua/mtxrun.lmt:6373: attempt to call a
nil value (upvalue 'formatted')
debugger        |  1 :
/home/florent/lmtx/tex/context/base/mkiv/font-otr.lua : 2372
debugger        |  2 : /home/florent/lmtx/scripts/context/lua/mtxrun.lmt :
6373
debugger        |  3 :
/home/florent/lmtx/tex/context/base/mkiv/font-otr.lua : 1041
debugger        |  4 :
/home/florent/lmtx/tex/context/base/mkiv/font-otr.lua : 2102
debugger        |  5 :
/home/florent/lmtx/tex/context/base/mkiv/font-otr.lua : 2195
debugger        |  6 :
/home/florent/lmtx/tex/context/base/mkiv/font-otr.lua : 2281
debugger        |  7 : C function
debugger        |  8 :
/home/florent/lmtx/tex/context/base/mkiv/font-otr.lua : 2375
debugger        |  9 :
/home/florent/lmtx/tex/context/base/mkiv/font-otr.lua : 2518
debugger        | 10 :
/home/florent/lmtx/tex/context/base/mkiv/font-syn.lua : 1113
debugger        | 11 :
/home/florent/lmtx/tex/context/base/mkiv/font-syn.lua : 1025
debugger        | 12 :
/home/florent/lmtx/tex/context/base/mkiv/font-syn.lua : 1186
debugger        | 13 :
/home/florent/lmtx/tex/context/base/mkiv/font-syn.lua : 1143
debugger        | 14 :
/home/florent/lmtx/tex/context/base/mkiv/font-syn.lua : 1196
debugger        | 15 :
/home/florent/lmtx/tex/context/base/mkiv/font-syn.lua : 1293
debugger        | 16 :
/home/florent/lmtx/tex/context/base/mkiv/font-syn.lua : 1321
debugger        | 17 : /home/florent/lmtx/scripts/context/lua/mtx-fonts.lua
: 259
debugger        | 18 : /home/florent/lmtx/scripts/context/lua/mtx-fonts.lua
: 695
debugger        | 19 : C function
debugger        | 20 : /home/florent/lmtx/scripts/context/lua/mtxrun.lmt :
23213
debugger        | 21 : /home/florent/lmtx/scripts/context/lua/mtxrun.lmt :
23417
```

Cheers,
Florent

Le ven. 16 oct. 2026 à 09:15, Hans Hagen via ntg-context <[email protected]>
a écrit :

> Hi,
>
> I pushed an update but before one immediately picks up that one, best
> maybe wait till those who normally do some tests are okay with it (or
> just make a copy of the old installation). The reason is the following:
>
> There was this report on the 1 sp difference between platforms (cpu
> specific) and although i don't loose sleep overt his esp not if it is
> the backend, i looked into it anyway. As a consequence the serialization
> of floats has been adapted. I don't know if that makes a difference but
> it had the side effect that i also decided to update serialization in
> general. The native lua format routing is not that fast so we aleasys
> had our own (in lua) and that has been updated. It also removes an
> intermediate call plus comes with bit performance gain. That mostly
> affects the backend, which happens to be kind of slow (but flexible).
>
> This means that (on my machine) the test suite gains 5-10% runtime, and
> documents (manuals) some 5% too. But ... for this i had to adapt quite
> some lua files so errors can have crept in (those are then mostly typos)
> .. easy to fix once known. I still have some 500 lines (over a few dozen
> files) to adapt but want an intermediate test. The 2200 file test suite
> compiles ok (no visual checking done as this is mostly crash testing).
>
> The previous upload already had the new (more efficient) http client
> code as used in the installed and the current has the lua socket library
> removed and replaced by a lightweight http server feature (as used in
> e.g. context help system), so less code and less dependencies. One can
> still compile with an option because I still need to adapt some private
> - pet project - servlet code here.
>
> In addition to all this .. the usual fixes etc as discussed in this list,
>
> Hans
>
> -----------------------------------------------------------------
>                                            Hans Hagen | PRAGMA ADE
>                Ridderstraat 27
> <https://www.google.com/maps/search/Ridderstraat+27?entry=gmail&source=g>
> | 8061 GH Hasselt | The Netherlands
>         tel: 038 477 53 69 | www.pragma-ade.nl | www.pragma-pod.nl
> -----------------------------------------------------------------
>
>
> ___________________________________________________________________________________
> If your question is of interest to others as well, please add an entry to
> the Wiki!
>
> maillist : [email protected] /
> https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl
> webpage  : https://www.pragma-ade.nl / https://context.aanhet.net (mirror)
> archive  : https://github.com/contextgarden/context
> wiki     : https://wiki.contextgarden.net
>
> ___________________________________________________________________________________
>
___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : [email protected] / 
https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl
webpage  : https://www.pragma-ade.nl / https://context.aanhet.net (mirror)
archive  : https://github.com/contextgarden/context
wiki     : https://wiki.contextgarden.net
___________________________________________________________________________________

Reply via email to