Hi, I just did an upload. Apart from a few catches (like that arrow and some improvements in columnsets) the main additions are in the metafun department and performance. - We added some parpasses (like 'mathbook') and we can now set them up with the align options. The vectors used are defined as constants (engine speak) which makes the performance impact kind of neglectable. - Also some predefined penalty vectors (think widowpenalties) became constant (as it's unlikely or unwise to change them) which is more efficient as they otherwise get copied every paragraph. - When testing with Mikaels math book (290 pages in 7.4 sec on his chromebook) we'd set a new target at 7 and later 6 seconds and eventually could get that and ended up at 5.3 seconds once we noticed that there was an huge graphic involved (so now our target is 4 sec). Caching demanding mp graphics helped but was still good for > .5 seconds. As a consequence we added a new function variant (see luametafun, domain functions so that runtime went down from > .5 seconds to about .03 sec) and we also made sure that inclusion of cached mp pages was more performant (when 'compact' inclusion is enabled in the page streams get parsed). - When multiple lua driven rendering features are used (happens seldom) there can be a bit of a speedup too. If someone thinks that there is a botleneck somewhere .. make an example and tell us. (Of course bying a new fancy laptop would half my runtime anyway but occasionally one wants a challenge.) - There is now a ppchtex-mkiv manual but it's work in progress and it needs checking. One thing I observed is that as we now default to 'double' instead of 'scaled' some rounding / comparison cases differ so when in douuibt, check with: % \ctxlua{chemistry.method = "scaled"} We still need to check / add updated columnset manuals so that might be next on the agenda. That's all, Hans ----------------------------------------------------------------- Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | www.pragma-ade.nl | www.pragma-pod.nl -----------------------------------------------------------------
Op 27 okt 2025, om 23:43 heeft Hans Hagen via ntg-context
het volgende geschreven: Hi,
I just did an upload. Apart from a few catches (like that arrow and some improvements in columnsets) the main additions are in the metafun department and performance.
Thank you very much Hans, I will certainly give the columnsets another try. Robert
- We added some parpasses (like 'mathbook') and we can now set them up with the align options. The vectors used are defined as constants (engine speak) which makes the performance impact kind of neglectable.
- Also some predefined penalty vectors (think widowpenalties) became constant (as it's unlikely or unwise to change them) which is more efficient as they otherwise get copied every paragraph.
- When testing with Mikaels math book (290 pages in 7.4 sec on his chromebook) we'd set a new target at 7 and later 6 seconds and eventually could get that and ended up at 5.3 seconds once we noticed that there was an huge graphic involved (so now our target is 4 sec). Caching demanding mp graphics helped but was still good for > .5 seconds. As a consequence we added a new function variant (see luametafun, domain functions so that runtime went down from > .5 seconds to about .03 sec) and we also made sure that inclusion of cached mp pages was more performant (when 'compact' inclusion is enabled in the page streams get parsed).
- When multiple lua driven rendering features are used (happens seldom) there can be a bit of a speedup too. If someone thinks that there is a botleneck somewhere .. make an example and tell us.
(Of course bying a new fancy laptop would half my runtime anyway but occasionally one wants a challenge.)
- There is now a ppchtex-mkiv manual but it's work in progress and it needs checking. One thing I observed is that as we now default to 'double' instead of 'scaled' some rounding / comparison cases differ so when in douuibt, check with:
% \ctxlua{chemistry.method = "scaled"}
We still need to check / add updated columnset manuals so that might be next on the agenda.
That's all,
Hans
----------------------------------------------------------------- Hans Hagen | PRAGMA ADE Ridderstraat 27 | 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 : ntg-context@ntg.nl / 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 ___________________________________________________________________________________
On 2025-10-27 23:43, Hans Hagen via ntg-context wrote:
[...] We still need to check / add updated columnset manuals so that might be next on the agenda.
That's all,
Just as a comment, yesterday the sources for the new columnsets manual were added: tex/texmf-context/doc/context/sources/general/manuals/mvlcolumnsets/mvlcolumnsets.tex Many thanks, both Hans and Mikael, for this new manual. Looking forward the other columnsets manual, Pablo
the document does not compile on my linux machine: mkxl run stats > used platform: linux-64, type: unix, binary subtree: texmf-linux-64 mkxl run stats > used engine: luametatex version: 2.11.08, functionality level: 20251029, format id: 724, compiler: gcc mkxl run stats > tex properties: 938218 hash slots used of 2097152, 53520 control sequences, approximate memory usage: 113 MB mkxl run stats > lua properties: engine: lua 5.5, format 2, used memory: 58 MB, ctx: 51 MB, max: 120 MB, symbol mask: utf (τεχ) mkxl run stats > runtime: 1.580 seconds, 10 processed pages, 10 shipped pages, 6.329 pages/second system | total runtime: 1.587 seconds of 1.651 seconds graphics > fixes > todo: here we have a test case free(): double free detected in tcache 2 Aborted (core dumped) mtx-context | fatal error: return code: 1 any hints? .F On 30/10/2025 16:56, Pablo Rodriguez via ntg-context wrote:
On 2025-10-27 23:43, Hans Hagen via ntg-context wrote:
[...] We still need to check / add updated columnset manuals so that might be next on the agenda.
That's all,
Just as a comment, yesterday the sources for the new columnsets manual were added:
tex/texmf-context/doc/context/sources/general/manuals/mvlcolumnsets/mvlcolumnsets.tex
Many thanks, both Hans and Mikael, for this new manual.
Looking forward the other columnsets manual,
Pablo ___________________________________________________________________________________ If your question is of interest to others as well, please add an entry to the Wiki!
maillist : ntg-context@ntg.nl / 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 ___________________________________________________________________________________
On 10/30/2025 5:50 PM, vm via ntg-context wrote:
the document does not compile on my linux machine:
mkxl run stats > used platform: linux-64, type: unix, binary subtree: texmf-linux-64 mkxl run stats > used engine: luametatex version: 2.11.08, functionality level: 20251029, format id: 724, compiler: gcc mkxl run stats > tex properties: 938218 hash slots used of 2097152, 53520 control sequences, approximate memory usage: 113 MB mkxl run stats > lua properties: engine: lua 5.5, format 2, used memory: 58 MB, ctx: 51 MB, max: 120 MB, symbol mask: utf (τεχ) mkxl run stats > runtime: 1.580 seconds, 10 processed pages, 10 shipped pages, 6.329 pages/second system | total runtime: 1.587 seconds of 1.651 seconds
graphics > fixes > todo: here we have a test case free(): double free detected in tcache 2 Aborted (core dumped) mtx-context | fatal error: return code: 1
any hints?
there is an invalid (incomplete) pdf that pplib crashes on change [columnset*] to [mvlcolumnset*] in the main file (there's still some error but not fatal) ----------------------------------------------------------------- Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | www.pragma-ade.nl | www.pragma-pod.nl -----------------------------------------------------------------
On 30/10/2025 18:16, Hans Hagen via ntg-context wrote:
there is an invalid (incomplete) pdf that pplib crashes on
change [columnset*] to [mvlcolumnset*] in the main file (there's still some error but not fatal)
0 uncompressed, 18 compressed, 1 not compressed, threshold 40 mkxl run stats > positions: 103 collected, 17 deltas, 97 shared partials, 12 partial entries mkxl run stats > used platform: linux-64, type: unix, binary subtree: texmf-linux-64 mkxl run stats > used engine: luametatex version: 2.11.08, functionality level: 20251029, format id: 724, compiler: gcc mkxl run stats > tex properties: 938218 hash slots used of 2097152, 53519 control sequences, approximate memory usage: 113 MB mkxl run stats > lua properties: engine: lua 5.5, format 2, used memory: 60 MB, ctx: 52 MB, max: 82 MB, symbol mask: utf (τεχ) mkxl run stats > runtime: 1.603 seconds, 10 processed pages, 10 shipped pages, 6.238 pages/second system | total runtime: 4.799 seconds of 4.868 seconds graphics > fixes > todo: here we have a test case free(): double free detected in tcache 2 Aborted (core dumped) mtx-context | fatal error: return code: 1 not yet .F
participants (4)
-
Hans Hagen -
Pablo Rodriguez -
r.ermers@hccnet.nl -
vm