aboutsummaryrefslogtreecommitdiffhomepage
path: root/org/config_nix.org
Commit message (Collapse)AuthorAgeFilesLines
* pod: carry tools/po4a, the translation working setRalph Amissah2026-09-221-0/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | A pod now carries its catalogues, so a translation can be updated rather than only retyped: providing the .pot and .po (the means of maintaining it). A directory walk, where every other thing the pod writer carries is named. A catalogue set is whatever the translator has, and enumerating .pot and .po files would mean the writer deriving the document's languages a second time, from a second place, to say what it already reads from the manifest. Done once, on the last language, as the markup blocks are. The tree is not language specific, so a pass for each language would re-read all of it, 5.5 MB ten times over for live-manual, into an archive the next pass overwrites. Every name is checked before it is carried, by the rule the pod reader applies to an archive it is handed. The writer is reading a directory someone else may have filled, which is the reason the reader checks. The cost is small, and it is the whole argument for compressing the archive as a stream rather than per member: uncompressed content 6972418 -> 13167489 +89% the .sisupod 692942 -> 891388 +28.6% 5.5 MB of catalogues cost 198 KB, because the .po files largely repeat markup already in the archive and whole-stream compression sees it. Per-member deflate could not. (assisted by Claude-Code)
* pod: read when zstd-wrappedRalph Amissah2026-09-221-3/+6
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | sisupod using zstd compression recognised by first bytes. <doc>.sisupod: spine reads one before it writes one, so when the name changes (from .zip to .ssiupod) every pod already published stays readable. A .sisupod is one zstd frame wrapping the archive spine already builds. The reader unwraps the bytes and hands the same archive to the same parser, so every guard downstream is untouched: entry names, per-entry and total size, path depth, escape and symlinks. Which container it is comes from the first four bytes (rather than the name). A pod published as a plain .zip reads as it always did, a .sisupod reads, and either one renamed reads too. The suffix is still recognised, both spellings, for the argument and for a url. libzstd is declared rather than bound: provides the whole surface of fifteen extern C prototypes (there is nothing to generate and no upstream tree to track, which is the arrangement sqlite3 already has). dub links it with "libs": [ "zstd" ]; nix needs zstd.out rather than zstd, whose default output is the binaries and carries no library at all. A frame declares its uncompressed size in its own header, and for a pod fetched over https that number is attacker controlled. The declared size is checked against a ceiling before a buffer is asked for, a frame that will not declare one is refused, and what comes out is checked against what was promised. The ceiling is the extraction limit the archive reader already applies, so the two bounds agree. Measured: output built from a .sisupod is byte identical to output built from the same pod's .zip, 359 files over text, html, epub, odt and .ssp for three documents, live-manual's ten languages included. A truncated frame is refused and the document skipped. free_culture 2863504 -> 1099736 2.60x the_wealth_of_networks 4294022 -> 1172649 3.66x live-manual 6972418 -> 675970 10.31x (assisted by Claude-Code)
* things nix, including flake.nix updateRalph Amissah2026-09-211-5/+77
|
* org files cosmetic, remove word BUGRalph Amissah2026-05-051-1/+1
|
* org headers rearranged (& odd hilighting issue)Ralph Amissah2026-05-041-6/+6
| | | | | - odd hilighting issue ... must result from my org config, but "fix" makes things easier for me.
* upkeep, update a few pathssisudoc-spine_v0.18.0Ralph Amissah2026-04-221-3/+3
|
* package.nix cosmetic line-breaks for build commandRalph Amissah2026-04-131-1/+4
|
* nix keeping: nix-shell, nix-build derivation.nixRalph Amissah2026-04-111-101/+129
|
* flake.nix dmd build fix overlay: revert to GCC14Ralph Amissah2026-04-091-6/+11
| | | | | | | | | - revert to using GCC14: (current) GCC 15 introduced nullptr in its headers, and DMD's ImportC parser needs update to handle it, monitor and update - (nix ldc overlay, minor comsetic)
* nix cleanup flake.nix and shell.nixRalph Amissah2026-04-071-391/+191
|
* package housekeeping, minorRalph Amissah2026-03-191-0/+22
|
* org-mode header, minor (set: results silent)Ralph Amissah2026-01-101-1/+1
|
* 2026Ralph Amissah2026-01-091-1/+1
|
* flake.nix po4a perl depsRalph Amissah2026-01-081-2/+2
|
* nix flake minor housekeepingRalph Amissah2025-10-311-15/+19
|
* housekeeping, nix & env, minorRalph Amissah2025-10-131-1/+27
|
* (editor emacs org-mode includes)Ralph Amissah2025-09-261-8/+27
|
* org, property header-args results output noneRalph Amissah2025-09-141-1/+1
|
* nix flake and env updates, ldc using llvm-20Ralph Amissah2025-06-121-9/+9
| | | | - .env/ removed as unused & unmaintained
* org ready ldc-1.41.0-beta1; flake using ldc-1.40.1Ralph Amissah2025-04-181-14/+12
| | | | - plus minor housekeeping/tidy
* overlays at ldc-1.40.1, dub-1.39.0, dtools-2.110.0Ralph Amissah2025-03-221-6/+18
| | | | | | | - following nixpkgs pretty much - ldc-1.40.1 (based on D 2.110.0) - dub-1.39.0 - dtools-2.110.0 (overlay changes)
* org, touch, minorRalph Amissah2025-02-121-1/+1
|
* org, reorganize version infoRalph Amissah2025-02-121-28/+55
|
* org blocks, identify syntaxRalph Amissah2025-01-051-28/+28
|
* 2025Ralph Amissah2025-01-011-1/+1
|
* flake.nix, removed flake-utilsRalph Amissah2024-12-091-2/+2
|
* nix build flake.nix fixRalph Amissah2024-12-031-3/+3
|
* nix build houskeeping, version updates, incl. dmd & dubRalph Amissah2024-12-021-5/+5
|
* nix minorRalph Amissah2024-06-291-1/+4
|
* nix flake and envrc-nix minorRalph Amissah2024-05-171-3/+13
|
* dub (dlang) prefer dub run to dub buildRalph Amissah2024-05-071-8/+8
|
* work on more generic install + instructionsRalph Amissah2024-05-061-21/+18
|
* set nixVersions.nix_2_21Ralph Amissah2024-05-031-3/+3
|
* comment out nixpkg nixVersions.unstableRalph Amissah2024-05-021-3/+3
| | | | - nixVersions.unstable no longer available
* 0.16.0 sisudoc (src/sisudoc sisudoc spine)sisudoc-spine_v0.16.0-devRalph Amissah2024-04-101-2/+2
| | | | | - src/sisudoc (replaces src/doc_reform) - sisudoc spine (used more)
* 0.15.0doc-reform_v0.15.0Ralph Amissah2024-04-101-1/+10
|
* flake.nix cosmetic minordoc-reform_v0.14.0Ralph Amissah2024-03-201-4/+4
|
* nix flake & env upkeepRalph Amissah2024-03-101-32/+86
|
* 2024Ralph Amissah2024-01-021-1/+1
|
* org, spine ver & doc header (copyright & license)Ralph Amissah2023-12-171-6/+7
| | | | | | - org import: reuse settings in another org file using code block to evaluate other org file spine_version_info_and_doc_header_including_copyright_and_license.org
* .envrc re-adjust & update direnvRalph Amissah2023-12-171-0/+1
| | | | | | | - nixDirEnv (a copy of .envrc) used for flake.nix (getting around an issue that arose when building project; may revert to direct use of .envrc)
* nix flake related modificationsRalph Amissah2023-12-111-1/+1
|
* 0.14.0sisudoc-spine_v0.14.0-devRalph Amissah2023-11-201-1/+1
|
* 0.13.0sisudoc-spine_v0.13.0-devRalph Amissah2023-11-151-1/+1
|
* nix housekeepingdoc-reform_v0.12.0Ralph Amissah2023-11-041-1/+1
|
* updates incl. ldc-1.35.0, direnv-2.4.0Ralph Amissah2023-10-151-2/+2
|
* housekeeping, updates incl. ldc-1.34.0, dub-1.34.0Ralph Amissah2023-09-051-2/+2
|
* flake.nix minorRalph Amissah2023-07-111-12/+8
|
* flake nix build dub, set HOME, dub >= 1.31.0 fixRalph Amissah2023-07-091-0/+12
| | | | | - fixes dub >= 1.31.0 build failure, attempted to build in /homeless-shelter
* nix configureRalph Amissah2023-06-231-43/+44
|