Changelog#
All notable changes to the JFLib library -- the crates under lib/, the styles, the build
(build_rs.py) and its tools -- are recorded here. The format follows
Keep a Changelog 1.1.0, and versions follow
Semantic Versioning 2.0.0 as
docs/VERSIONING.md describes (what is public, deprecations, how
build_rs.py api-diff checks a release). Apps keep their own versions (version= in
apps/NAME/PACKAGE) and their own notes.
Every crate also has a CHANGELOG.md of its own in its folder, written from the crate's side, and
a README.md whose section "What's new" sums up its latest release (docs/VERSIONING.md,
"Each crate's README and changelog").
Add entries with python build_rs.py changelog "What changed" --type added|changed|deprecated|removed|fixed|security --area AREA
(--crate C,..: in those crates' changelogs too); python build_rs.py release X.Y.Z turns
[Unreleased] into a release here and in every crate's changelog.
[Unreleased]#
[0.2.2] - 2026-12-02#
Added#
(JD21) jflib-diagram-core:
groups(Visio's group behaviour: SelectMode, drops into groups, Zu Gruppe hinzufügen / Aus Gruppe entfernen, the ungroup warning),replace(Shape ändern),instance::detach,structure::edge(boundary members of containers); jflib-ui:SEF_UPfor "members first" groupsplat:
fs::fd_path(&File): a path that leads a program this one starts to the open file itself, whatever its name has become (Linux/proc/<pid>/fd/<n>, valid while the file stays open; None on Windows and macOS)Tests: plattest
--test kernelon Windows:fs::Diragainst a folder another handle holds with delete access, renamed and replaced by a junction while open (what is done in it stays in the real folder), junctions refused on the way, and links made by the Dir byte for byte asCreateSymbolicLinkWmakes them; tools/platshared/tray_bus.py plays KDE (watcher and host apart) and GNOME (the panel owns the watcher) and another client that forges aNameOwnerChanged, aListNamesanswer and the panel's calls; BackupCraft's tape_smoke.py (a link planted inbcctl tape extract's target) and vm_smoke.py (a merge into a folder behind a link)plat: What a notch of the wheel scrolls as the system says it:
SysSettings::wheel_lines(WindowsSPI_GETWHEELSCROLLLINES,WHEEL_PAGEfor its "one screen at a time"; KDE's[KDE] WheelScrollLinesof kdeglobals, also while a portal answers; 3 elsewhere) andwheel_chars(WindowsSPI_GETWHEELSCROLLCHARS, else 3),wheel_amount; the overridesjfgui_WHEEL_LINES=N|pageandjfgui_WHEEL_CHARS=N; a change of the mouse's settings on Windows is anE_SETTINGSwithSET_OTHERui:
ui.wheel_lines(),ui.wheel_chars()andui.wheel_notch_px(line_px, page_px, horizontal): the system's lines (a page) and characters of a notch, followed live (UIC_SETTINGS);WHEEL_LINE_DIP(16): the library's line. Its views scroll that many lines a notch: scroll views, lists and documents lines of 16 DIP (48 DIP with three, as before), text boxes, the rich and code editors, the terminal and the code completion list their own lines, image views and diagrams pan by it. docs/GUIDE.md section 5plat: Pixel-precise wheel turns:
E_WHEEL'sbtnsaysWHEEL_FINE(the 120 a notch in fine steps: Windows'WM_MOUSEWHEEL/WM_MOUSEHWHEELwith a delta that is no multiple of 120 -- a precision touchpad, a high-resolution wheel -- or from a touchpad byGetCurrentInputMessageSource, also over popups; Wayland'saxis_value120that is no multiple of 120) orWHEEL_PIXELS(data in physical pixels: Wayland's continuous axes -- a touchpad's fingers, the fraction kept for the next frame --, macOS' precise deltas -- a trackpad, a Magic Mouse)ui:
UiInput::wheel_precise,wheel_px_xandwheel_px_y: a touchpad's or high-resolution wheel's turn in physical pixels (up and right positive; Windows' fine steps aswheel_lines()lines of 16 DIP per 120), which an app scrolls by at once;wheel_x/wheel_ysay the same turn in notches, the fractions of both carried from turn to turn. The library's scroll views, lists, documents, text boxes, rich and code editors, image views and diagrams scroll by the pixels at once, without smooth scrolling. docs/GUIDE.md section 5plat: (E2) The keyboard layout's character of a key event:
Event::yofE_KEY_DOWN/E_KEY_UPholds the location and the character the key gives with Shift, Caps Lock and AltGr as they are but without Ctrl, Alt and the Windows / Super key, and whether it is a dead key (key_y,key_location,key_char,key_dead,KEY_DEAD). Windows asks the layout throughToUnicodeExwithout touching the keyboard state (Windows 10 1607 and later: a pending dead key stays for the text; before, no character), Linux the keymap of X11 and Wayland (xkb_key_y), macOScharactersIgnoringModifiers; the browser and Android give none.key_char_testandkey_layouts_testfor plattest (Windows)ui:
KeyEvent::chandKeyEvent::dead(ui.key_event_take): the character the layout gives the key, as a browser names it (KeyboardEvent.key) also when Ctrl or Alt is held and the key types nothing -- Ctrl+Z on a German keyboard isVK_Zwith'z', its Ctrl++VK_OEM_PLUS(the US layout's "=") with'+', AltGr+Q'@', Ctrl+Shift+Z'Z'; 0 for keys without a character (Enter, Tab, Esc, the arrows, F1 ...). docs/GUIDE.md section 5ui: Script commands
wheel S DY [DX] [fine|pixels](a horizontal turn, a precision touchpad's fine steps, a trackpad's pixels in DIP) andkeydown/keyup ... [char "c"|none] [dead](another layout's character, a dead key); a script's keys have the US layout's characters. docs/GUIDE.md section 12Tests: viewtest's page shows the wheel ("Rad:": notches, the pixels of a precise turn, the system's lines and characters) and the characters of raw keys: tests/wheel.uis (fine steps, pixels and their fractions,
jfgui_WHEEL_LINES5 and page), tests/keychar.uis (Ctrl+Z, Ctrl+Shift+Z, a German keyboard's Ctrl++, a dead key, keys without a character); gallery tests/wheel.uis (a scroll view: the system's lines, a trackpad's pixels at once, fine steps adding up, a page); termtest tests/wheel_fine.uis; diagramtest tests/wheel_fine.uis; editortest tests/code_wheel.uis; svgtest tests/viewer.uis (the horizontal wheel while the wheel zooms); plattest--test keychar(Windows: the user's German and US layouts throughToUnicodeEx; Linux: the fallback keymap) and--test settings(the wheel's overrides; Linux: KDE's WheelScrollLines on KDE only)diagram_core, diagram_io: New crates for diagrams of the Visio kind,
diagram_corefor the model (ShapeSheet cells, formulas, geometry, routing, layout) anddiagram_iofor Visio's file formats (the VSDX family) and exports; the facade shows them asjflib::diagram_coreandjflib::diagram_io. The plan is apps/JFDiagrammer/PLAN.mddiagram_core: The document model (stage JD2 of apps/JFDiagrammer/PLAN.md):
Documentwith foreground and background pages, masters (a stencil is a document without pages), styles, the document sheet, theme parts and other package parts kept as bytes;ShapeTreeof shapes, groups, foreign objects and guides whose slots stay valid across undo; the ShapeSheet storeSheet,Section,RowandCellwith formula, cached value, unit and error as the file has them (Value,Formula,CellError) and Del marks;Extraskeeps what the model does not know at the place it stood;Document::resolvereads a cell through the master shape and the line, fill and text styles (Origin),rowsandsection_indicesmerge inherited, overridden and deleted rows,shape_data,user_cells,hyperlinksandlayersshow them;Unitknows every unit code of a cell and converts to inches, radians and days;StringsandSymkeep cell names and formulas once per document (an ordered index: texts from a file cannot make a lookup slow); edits in aTransactionbecome oneChangethat undoes and redoes by inverse steps (ui::history takes it as one step), formula and value stay a pair (set_formulaleaves the cell stale for the engine,set_constant,set_result, GUARD respected)archive: DEFLATE when writing:
write_with(entries, limits, Method::Deflate(level))compresses with img_core's DEFLATE, deterministically (the same parts give the same bytes); a part that does not get smaller stays stored.writestays stored, byte for byte as beforearchive: ZIP64:
readandZipFstake ZIP64 end records, ZIP64 fields in central and local headers and 64-bit data descriptors (version needed up to 4.5; such archives were Unsupported);writeandwrite_withadd ZIP64 records only where an archive needs them (65535 parts or more, a size or offset of 4 GiB or more)archive:
Limits::ratio: the highest ratio of a DEFLATE part's size to its compressed size, checked for parts over 1 MiB before they are inflated (denser:Limit, a ZIP bomb). The default, 1032, is the most DEFLATE can reach and refuses nothing; a part that claims more isInvalidbefore its buffer is allocated.Limitsalso derivesDebug,PartialEqandEqarchive:
archive::opc, the Open Packaging Conventions (ECMA-376 Part 2) for DOCX and VSDX, taken out of doc_io:Package(read,from_entries,part,content_type,relationships,resolve,main_part,set_part,replace,remove_part,set_relationships,write; parts nobody touched go back unchanged),ContentTypes,Relationship,Rules(macros, exact names, XML limits),normalizeandsame_part(part names compared ASCII case-insensitive and percent-escape aware),rels_name,rels_source,parse_relationships,relationships_xmlTests: codectest
--archive(tests/archive.uis): lib/archive and archive::opc against crafted archives and packages -- round trips (stored byte for byte as before, DEFLATE at every level), hostile names, broken directories, an overlap bomb, limits and a 16 MiB bomb, ZIP64 written (65535 parts, a lowered threshold) and read from foreign layouts, hostile ZIP64 records, OPC packages (unknown parts kept, name equivalence, the exact profile, hostile relationships and content types, macros, XML limits, 20000 parts)diagram_io: Reading the VSDX family (stage JD3 of apps/JFDiagrammer/PLAN.md):
vsdx::read(bytes, &Limits)takes .vsdx, .vsdm, .vstx, .vstm, .vssx and .vssm (Format, by the main part's content type or the extension) into adiagram_core::Document: DocumentSettings, colours, fonts, styles and the document sheet; pages and masters with their sheets, shapes (groups, foreign objects, deleted subshapes), texts with their marks andConnectentries; master icons; themes kept raw; windows.xml, properties, pictures, comments, data recordsets, solutions and unknown parts asDocument::parts, every relationship inDocument::rels; unknown attributes, elements and text in theExtraswhere they stood; nothing recomputed or rerouted. The macro project of a macro-enabled file is kept and never run; one in a file that may not carry macros isError::Macros. Every file is untrusted:Limits::VSDXbounds the ZIP container (100000 parts, 512 MiB a part, 2 GiB in all, no part denser than 200:1), XML nesting, attributes and namespace declarations, shapes, cells, rows, sections, pages/masters/styles and every other item kept, formula and text length; an XML reader of its own without recursion (mixed content, no DOCTYPE, no entities); cycles of styles, masters and background pages areError::Cycle; references that name nothing are kept and reported (Warning)diagram_core:
RelationshipandDocument::rels(every relationship of a package as read, for parts the model keeps as bytes, external targets and the ids kept XML refers to),Document::colors_extras,faces_extrasandstyles_extras,Place::InShapesandPlace::InConnects(what stood inside the Shapes and Connects lists),Document::strings_mut(loaders hand the table toValue::parse,Formula::parseandShapeKind::parse);NO_ID, the ID 4294967295 Visio gives the deleted subshapes of an instance: aShapeTreetakes any number of shapes with it,by_iddoes not find them, they do not use up the IDs,next_idnever hands it outbuild:
build_rs.py testruns the unit tests of the library crates that have them (#[cfg(test)] mod testsin the crate root, so far diagram_core) withcargo test --libon the host, beside the scripts (target folder build/unit-tests)Tests: diagramiotest (tests/vsdx.uis): lib/diagram_io against self-built files of all six formats (every field, extra, part and relationship where it belongs; UTF-16, a prefixed namespace) and hostile packages (broken XML, entities and DOCTYPE, encodings, depth, attributes, the counts of
vsdx::Limits, large drawings in time, cycles, references that name nothing, wrong relationships and content types, macros, malformed IDs, ZIP bombs and lying archives); the local load tests with apps/JFDiagrammer/context/files when it is there (counts against FEATURES.md 1.6)pdf: New crate
pdf(decision V5 of apps/JFDiagrammer/PLAN.md, part of JD12), shown asjflib::pdf: a vector PDF writer.Documentwith pages of their own size,Canvasper page (origin top left with y down, or PDF's bottom left): paths of lines, cubic and quadratic curves, rectangles, rounded rectangles, ellipses and arcs (Pathto keep one), fills with the non-zero or even-odd rule, strokes with width, dashes, caps, joins and miter limit, transforms, clipping, separate fill and stroke alpha, RGB colours; images (Image): JPEG passed through (DCTDecode, progressive and Adobe CMYK too), gray, RGB, RGBA and gfx surfaces with FlateDecode and PNG predictors, alpha as SMask; text in embedded subsets of TrueType and OpenType (glyf and CFF, name-keyed and CID-keyed) fonts as Type0 / Identity-H CID fonts with widths and a ToUnicode CMap, shaped with text_shape (kerning in TJ, ligatures, marks, Arabic, fallback fonts), filled, stroked or invisible; links to URIs and destinations, nested outlines, the document information with XMP metadata and the language. PDF 1.7 with a classic xref table, deterministic, DEFLATE from img_core; fonts whose OS/2 fsType forbids embedding are refused. No PDF/A, encryption or formsTests: pdftest (tests/checks.uis): lib/pdf's output read back by a reader of its own (header, xref offsets, objects, references, stream lengths, filters, content grammar, ToUnicode) and compared with what was drawn -- graphics state, images and their samples, TrueType and CFF subsets against the original fonts (glyphs, checksums, widths, composites), glyph positions, links, outlines, damaged fonts and JPEGs;
pdftest --sample FILEwrites the sample document with every feature, apps/pdftest/reader_check.py checks it with Poppler, pypdf and pdfium where they are installedui: Ribbon shell parts:
ui.ribbon_tabs(register row with the File register and context sets), the ribbon's access keys (ui.keytip,keytip_keys,keytips_level,keytips_off),ui.backstage_begin/backstage_end(BackstageItem),ui.settings_section; Style hooksribbon_box_flags,ribbon_band,ribbon_tabs_height,ribbon_tabs_strip,ribbon_tab,keytip(defaults keep every style's look). docs/GUIDE.md section 6render2d: The CPU path (G6e1): a scene draws without a GPU through lib/gfx (
Scene::draw_cpuinto agfx::Surface,cpu_info,CpuInfo,set_cpu_single) with the camera, the painter's order, the visible layers and the look of a frame on the GPU, highlights and the overlay included: entities found through the R-tree, every point placed relative to the view in f64 and clipped to a guard band before lib/gfx (exact at 1e7 and 1e-6 units per pixel), strokes as convex pieces adding up to the GPU's union (joins cut at the bisectors, else the union of both strips less their intersection), arcs within 1/128 px near the view, curves and fills as the GPU flattens them, dash patterns and hatches cut in f64 with the GPU's flat tones, text from its glyphs' outlines and bars below 7 px per em. The same bytes on every target, also in row bands on lib/gfx's parallel loop. A scene without a device (Scene::new_cpu) does everything but a GPU frame -- picking, snapping and highlighting included -- and is put on a renderer's device and taken off again (attach,detach,attached): the drawing survives a lost device. docs/RENDER2D.md section Der CPU-Wegui:
GpuContent::paints()(default false): a view's content that paints itself on the CPU (render2d's CPU path) is painted wherever there is no device, also where a lost device left its last frame read back, which would otherwise stay whatever changesTests: render2dtest
--test cpu(tests/cpu.uis): the CPU path against the GPU on every image of--dumpby category within bounds, both against lib/gfx's reference, a scene without a device, row bands against one thread, detach and attach; tests/demo_cpu.uis: the demo without a device (--demo --no-gpu), the same pixels as on the GPU;--bench N --scene cad --cpu(the CPU path's time per view, one thread and in bands, against the GPU's image);--dumpwrites the CPU path's images too, tests/engine_web.mjs compares the browser's byte for byte and runs the demo with?gpu=0plat: Whether a process runs:
plat::process_alive(pid)on every target (WindowsOpenProcessand a wait of 0 ms, Linux, Apple and Androidkill(pid, 0); a process of another user counts, the browser has none),plat::process_id()for apps without std andprocess::Child::id(). docs/GUIDE.md section 17ui:
ui::dock_float_id(area, win, k): the window id of a dock area's floating windowk--area + 1 + kin the main window as before, an id of its own hashed from area and window in any other. docs/GUIDE.md section 15build:
build_rs.py testhonours#!only windows linux ...among a script's first five lines ascargo jflib testdoes: on the other targets the script is skipped and counted ("skipped: #!only"); the marker lint reports unknown system namestests: plattest
--test alive(this process, System / init, 0, a child before and after it ends), spelltest tests/window_gone.uis, docktest tests/windows.uis (a dock area of the same id in a second window), fontpicktest tests/picker.uis (Esc in the search box), viewtest tests/onlylinux.uis (#!only)img_jxl:
modular::SqWork/SQ_WORKandfrm::Jf::sq_work: the squeeze budget of a decode, handed on from frame to frame (modular::jm_decodecalled alone has one of its own)diagram_core: Geometry and the display list of the viewer (stage JD4 of apps/JFDiagrammer/PLAN.md):
geometryturns Geometry sections into paths of lines and cubic curves (MoveTo, LineTo, ArcTo, EllipticalArcTo, Ellipse, NURBSTo with Visio's NURBS(...) values, PolylineTo with POLYLINE(...), SplineStart and SplineKnot, InfiniteLine and the relative rows; NoFill, NoLine, NoShow and NoSnap per section; Rounding),Xformand the shape transforms (Pin, LocPin, Angle, FlipX and FlipY, groups:local_xform,page_xform);render::buildmakes a page's display list from the cached values: background pages first, groups by DisplayMode, fills of closed sub-paths even-odd, line patterns and caps, line ends 1 to 45 of its own drawing with their sizes, solid, translucent, hatched and gradient fills (FillPattern 25 to 40, the FillGradient section), simple shadows, texts laid out in their blocks (Character and Paragraph rows, fields with their cached text, wrapping, alignment, TxtAngle, vertical text, the text of mirrored shapes kept readable) through aMeasureof the drawing side, pictures of Foreign shapes, layers (hidden ones, layer colours), the page's theme for values cached as Themed (ThemeInfo, picked by ThemeIndex and ColorSchemeIndex), the drawing scale;Drawing::queryfinds items through a griddiagram_view: New crate
diagram_view(jflib::diagram_view): draws a page's display list (diagram_core::render) on a render2d scene -- its CPU path without a device; gradient fills and pictures drawn by gfx between the scene's layers --PageView(draw,render,fit),FontSetwith the app's fonts and installed ones (FontSource), missing families substituted by class with a width factor, PNG and JPEG pictures decoded, placeholders for EMF and WMFTests: diagramiotest's group render (JD4): the display lists of seven self-built drawings (every geometry row, transforms, lines and line ends, fills, texts, pictures, pages with a theme, a background page and a drawing scale) and their golden images through render2d's CPU path (tests/golden), the local corpus drawn when it is there; --write-golden, --write-drawings, --render-corpus (PNG and SVG); svgcmp.py compares Visio's SVG exports with ours shape by shape (geometry and position within a tolerance)
diagram_core: The formula engine (stage JD6 of apps/JFDiagrammer/PLAN.md),
diagram_core::formula:parsereads the universal ShapeSheet syntax (numbers with units, strings, operators in Visio's precedence, references to cells, sections, rows, other shapes, ThePage, TheDoc, pages, masters and styles, functions) with the byte position of an error;Engine::calculatecomputes every formula of a document, inherited ones in the inheriting sheet (Sheet.Nof a master's formula names the instance's subshape), andResults::writestores what differs (an inherited formula gets an F="Inh" cell);recalcandrecalc_cellsrecompute after an edit what depends on it, following the cells formulas really read, into the same transaction;refreshafter undo and redo;user_set(GUARD, SETATREF redirection),run_action(SETF; OPENTEXTWIN, DOCMD, RUNADDON, GOTOPAGE ... asEffectfor the app, macros never run),evaluate,evaluate_text,guarded,theme_guarded,locks. Functions: maths and logic, text, colours on Visio's HLS scale with TINT, SHADE, MSOTINT and the rest, points and coordinate systems (PAR, LOC, LOCTOLOC, ANGLETOPAR ...), NURBS and POLYLINE, BOUND, THEMEVAL, THEMEPROP and ISTHEMED over the document's themes (colour, font and format schemes chosen by their scheme numbers, quick style slices and variants, DrawingML colour modifiers), shape and page information, the ISERR family. Nothing is computed when a file is opened; a formula the engine cannot compute (an unknown function, a glue helper, a font number of the machine) keeps its stored value and is reported (Keep). Text sizes take the app's fonts throughTextMetrics(else an estimate)Tests: diagramiotest
--only formulas: the formula oracle recomputes every formula cell of apps/JFDiagrammer/context/files when it is there and compares it with the value Visio stored (hit rate by file, kind of cell, place, function and cell name;--show Nlists differences locally), and built drawings of 1000 and 4000 shapes check an edit through a chain of all shapes and that the time grows linearlydiagram_io: Writing the VSDX family (stage JD5 of apps/JFDiagrammer/PLAN.md):
vsdx::write(&doc, &WriteOptions)writes adiagram_core::Documentas any of the six files (WriteOptions::format: a drawing as a template and so on, EX-11; the DEFLATE level; the ZIP bounds,Limits::VSDX.zipby default): document.xml, pages.xml, masters.xml and their parts, themes and every part kept as bytes (unknown packages pass through), the unknown attributes, elements and text of every element at their place, every relationship with its id (new onesrIdN, the main part's of Visio's own type), deleted subshapes with ID 4294967295, children in [MS-VSDX]'s order, numbers in the shortest form that reads back the same; a document without windows.xml gets one of its own (desktop Visio refuses a file without it, error 271, although [MS-VSDX] calls the part unused). Deterministic; a file read and written unchanged reads back as the same model and writes the same bytes again (the local corpus included). The macro project of a .vsdm/.vstm/.vssm goes back unchanged, never run; into a format without macros it isWriteError::Macros. No recursion, no panic; a part kept as bytes without a valid name or content type isWriteError::Part, raw XML from the model that is not well-formed where it standsWriteError::Xmldiagram_io: New documents of JFLib's own (decision V3 of apps/JFDiagrammer/PLAN.md):
vsdx::new_document(kind, Measure::Metric | Measure::Us)makes a drawing, template or stencil with own styles (No Style, Normal, Connector, Guide, Text Only in NetLab colours and Inter), the document sheet, the 24 colour indexes [MS-VSDX] fixes, one page (A4 or Letter landscape; a stencil's without contents), an empty windows.xml and the own DrawingML theme "NetLab" built from the NetLab style's palette (Signalblau, the style's chart series, Inter); nothing in it comes from Visio's filesTests: diagramiotest: the writing tests (group roundtrip): read -> write -> read of the self-built files of all six formats and of the local corpus gives the same model and the second write the same bytes; new drawings, templates and stencils in both measures and in every format, a drawing with own shapes, connectors, a master instance, a group and a picture, a stencil with own masters; hostile models (extras out of place, broken raw XML, characters XML cannot carry, parts named twice or not at all, macros, missing pictures, NaN and extreme numbers, indexes that are no positions, groups 3000 deep, stale relationships, tight ZIP limits);
--write-probe DIRwrites files for a check in Visiodxf: The crate jflib-dxf (lib/dxf, in the facade as jflib::dxf; G6e2, decision 31): DXF in the ASCII format of R12 to 2018 into a model without a GPU -- the header's variables, the tables of layers (index and true colour, linetype, lineweight, off, frozen, transparency), linetypes (dash patterns; complex elements kept as flags and texts), text styles, block records and dimension styles, blocks with their entities, and the entities of the drawing (LINE, POINT, CIRCLE, ARC, ELLIPSE, SPLINE and HELIX, LWPOLYLINE and POLYLINE with bulges, widths, 3D polylines and meshes, TEXT, ATTRIB, ATTDEF, MTEXT with R2018's and R2007's columns, INSERT with MINSERT's array and its attributes, HATCH with every kind of boundary edge and its pattern's line families, SOLID, TRACE, 3DFACE, DIMENSION and ACAD_TABLE through their blocks, LEADER, WIPEOUT, RAY, XLINE; other kinds counted by name).
dxf::loadkeeps a whole file,dxf::readstreams it through aSinkand keeps only tables and blocks (a file of a gigabyte in bounded memory). Strings before AC1021 in the header's code page (the single-byte pages, generated by tools/gen_dxf_codepages.py), UTF-8 after, \U+XXXX everywhere;mtext::parse(MTEXT's inline format codes as paragraphs of runs),specials(TEXT's %% codes),aci_rgb(AutoCAD's colour index),font_substitute(which repository font stands in for an SHX or TrueType font). Files are untrusted input:Limitsbounds lines, the pairs, bytes and points of an entity and what is kept, counts in a file never size an allocation, nothing recurses, a broken file gives what came before the break; a binary DXF is Error::Binary. docs/RENDER2D.md section DXFrender2d:
render2d::dxf(G6e2): a DXF drawing into a scene as lib/dxf reads it (load,read,Options,Loaded): a render2d layer per run of entities on one DXF layer (the file's order is the painter's order, as in AutoCAD;set_layer_visibleswitches all runs of a layer), styles from colours (index 7 after the background), linetypes ($LTSCALE times the entity's scale;linetype_pattern), lineweights ($LWDISPLAY) and transparency resolved by layer and by block (entities on layer 0 of a block take what is by layer from the insert), blocks as render2d blocks (DIMENSION and ACAD_TABLE through their anonymous blocks, MINSERT arrays, attributes as texts), object coordinate systems projected onto the plane, polyline bulges as arcs (one rational quadratic spline where PLINEGEN runs a pattern across the vertices, under a tilted normal and for a constant width), varying widths as fills, hatches with their boundary edges and pattern lines (more than four families: several fills of one boundary, at most 64 families), SOLID, TRACE, 3DFACE, WIPEOUT as fills, SHX and TrueType fonts drawn in substitutes of the repository with a width correction, MTEXT's format codes laid out into single-line texts (runs of font, height, width, slant and colour; under-, over- and strike-through; stacked fractions; paragraph alignment, indents and tabs; columns; background fill); per DXF kind what was drawn, skipped in paper space, hidden, unsupported, refused and approximated;group_of/members(the render2d entities one DXF entity became). docs/RENDER2D.md section DXFTests: render2dtest
--test dxf(tests/dxf.uis): lib/dxf and render2d::dxf on drawings written in the test (tables, every kind, code pages, line ends, a file handed out a byte at a time, broken, cut and 600 randomly damaged files, limits, counts that lie; four small drawings of ezdxf in apps/render2dtest/dxf, MIT: clockwise arcs in a hatch's boundary, caret codes, MTEXT's inline codes, a binary DXF), the GPU against the CPU path;--test dxfcorpus(tests/dxfcorpus.uis, SKIP without the corpus outside the repository: every file loaded, its kinds against an independent count of its entity markers, the GPU against the CPU path with and without text);--dxf PATH [--no-gpu](a drawing in the demo's view: pan, zoom, pick and snap, a DXF entity highlighted as a whole; tests/dxf_view.uis and dxf_view_cpu.uis on the test's drawing),--dxf-shot PATH OUT.png,--bench-dxf PATH(read, insert, memory, GPU and CPU frames of a large drawing)build: Programs without a UI on Android run in an app's process too (docs/ANDROID.md, AN0): beside the executable for
adb shell,app NAME --target androidbuilds its test APK NAME-<abi>-console.apk (tools/android.py build_console_apk: android/exe_main.c with -DJFGUI_CONSOLE_APK behind tools/android_console/ConsoleInstrumentation.java, SELinux domain untrusted_app, Zygote's seccomp filter); an app with ui but without android/AndroidManifest.xml is such a program; tools/android_console.py runs both (--mode shell|app|both,--file,--dir; the APK only on an emulator unless--allow-install),testwith jfgui_TEST_ANDROID runs coretest and asynctest's tasks.uis that way; derived_workspace and the manifest lint take[target.'cfg(...)'.dependencies]Tests: coretest, plattest and asynctest build for Android; what plat lacks there says "not on Android yet" (fs, net, sync, threads) or "not on Android" (child processes, autostart, file types); plattest
--test syscalls(Android): every call of rt's kernel table in a child of its own, allowed or ended by the seccomp filter (SIGSYS)rt:
rt::kernel(the system call numbers, open flags and struct stat per architecture) on Android too, without rt::os's helpersrt: rt::outline_lse(): the way the outline atomics of a static Linux ARM64 program went (LSE or the LL/SC loops; None where a program has none); jfgui_ARM_LLSC=1 in the environment makes them take LL/SC on a CPU with LSE, so the same program checks both ways (docs/ARM64.md, ARM7)
build: build_rs.py: JFLIB_EXTRA_RUSTFLAGS adds rustflags to a build (docs/ARM64.md ARM7: the other way of the atomics, -C target-feature=-lse on a Mac, +lse for Windows ARM64); .github/workflows/arm64-atomics.yml runs plattest --test atomics long on ubuntu-24.04-arm and windows-11-arm, both ways
Tests: plattest --test atomics (tests/atomics.uis; --secs N for long runs on ARM devices): the memory order under many threads -- SpinLock, Mutex, RwLock, Condvar, channel, Sem, the pool, the heap across threads, the event and audio rings, litmus tests with SeqCst and Release / Acquire and Relaxed controls (docs/ARM64.md, ARM7); plat::audio::ring_check runs its writer thread on macOS and iOS too
Tests: render2dtest on macOS (TARGETS mac: Metal at Voll and Basis),
--test bigscatter(4.5 million records going up in one frame, more than one dispatch reaches on Metal, WebGPU and phones),tests/firefox_web.py(render2dtest's browser checks in stock Firefox: a real window shown without activation, a profile of its own, the page reports by POST;--bench), the wall time from submitting to done in--benchand--bench-dxf(lib/gpu has no timestamps on Metal); androidGallery's page "2D-Zeichnung" (Android: a render2d drawing in a view, its check against the CPU path on the device's GPU, its measurement; tests/android_r2d.py) (G6e3)crypto:
argon2::VERIFY_WORK: the most workverifydoes for a PHC stringrt:
os::SYS_IO_URING_SETUP/_ENTER/_REGISTER,SYS_OPEN_TREE,SYS_MOVE_MOUNT,SYS_FSOPEN,SYS_FSCONFIG,SYS_FSMOUNT,SYS_FSPICK,SYS_CLONE3,SYS_PIDFD_GETFD,SYS_MOUNT_SETATTR(x86-64 and ARM64)netio:
ssh::Client::set_time_limit(ms): each followingauth_password,auth_keyandexecends withTimedOutafter that time in allui:
Ui::list_end_full(&mut sel) -> ListEnd { ev, sel, drop }: the end of a list with a dropped row (LF_REORDER) asdrop = Some((from, to)), for any number of rowsrender2d:
RendererDesc::separate_scratch: a render pass of its own for each run of layers whose fragment shader needs scratch memory when the last such run took another pipeline (None: on for Intel under Vulkan, Some forces it either way) (G6e3)Tests: render2dtest --test repeat (tests/repeat.uis): the highlight test's drawing, a layer with an arc and one with fills, drawn twelve times with the same bytes each time, by the renderer as the adapter decides and with a pass of its own for each such run, and both alike (G6e3)
plat: (G7a) The pointer lock and raw relative motion of a window:
win_pointer_lock(w, on),win_pointer_lock_state(w),win_raw_motion_take(w),PointerLock(Off, Pending, Locked, Unsupported, Refused), the eventsE_POINTER_LOCKandE_RAW_MOTION(one until the motion is taken). Windows: Raw Input (WM_INPUT, absolute devices as pixels), the cursor clipped to the window's middle and hidden, back where it was afterwards; Wayland:zwp_pointer_constraints_v1and the unaccelerated motion ofzwp_relative_pointer_v1(Unsupported without one of them); X11: XInput 2XI_RawMotionand a confined grab with no cursor; macOS:CGAssociateMouseAndMouseCursorPositionand the events' deltas; the browser:requestPointerLockon the canvas (unadjustedMovementwhere there is one) from the user's press; Android and iOS: Unsupported. Esc (then no key of the app), the focus going elsewhere, minimizing and closing always let it go. Decoders and test aids for plattest:raw_mouse_decode,raw_abs_delta,xi_raw_decode,wl_fixed,pointer_lock_test,raw_motion_test,pointer_lock_key_test,wl_test_lock,x11t::lock_setup. docs/GUIDE.md section 39plat: (G7a) Where a key sits, the same on every platform: the USB HID usages of the keyboard page as
KC_*,key_code(scancode)/key_scancode(code)for this platform'sEvent::xof a key event, the tableskey_code_set1(Windows' scan codes),key_code_evdev(Linux) andkey_code_mac(macOS' key codes, the ISO keyboard's swapped pair handled),key_code_name/key_code_from_name(the browser'sKeyboardEvent.code),key_label(code): what the current layout prints on the key (Windows, Linux, macOS).Event::xof a key event now carries the usage on macOS, iOS and in the browser (it was 0 there); macOS' modifier keys carry their side (KL_LEFT/KL_RIGHT). build_rs.py check compares the browser host's code table with lib/plat/keycode.rsui: (G7a)
KeyEvent::code: where the key sits as a USB HID usage (plat::KC_*), whatever the layout prints on it;ui.key_code_down(code);ui.pointer_lock(on),ui.pointer_lock_state(),ui.pointer_motion()(the raw motion of the locked pointer for the pass) for the window of the pass,ui::PointerLock; a change of the lock and the motion give passes. Scripts:motion DX DYandkeydown CHORD code N; a headless run plays the lock (locked at once, Esc lets it go). docs/GUIDE.md section 39Tests: (G7a) apps/inputtest: the pointer lock, the summed raw motion and the keys by place to try by hand (its README has the check list per platform); plattest
--test input: the key tables, the decoding of RAWINPUT records, XInput 2 raw events and Wayland's fixed point, the lock's shared state, Wayland and X11 with synthetic events; tools/tests/web_input.mjs: the browser host's lock and key codes with Playwright's synthetic inputphysics: The crate jflib-physics (lib/physics, in the facade as jflib::physics; G7c part 1): collision for games, deterministic to the bit on every target. Vec3, Quat, Mat3, Iso, Aabb in f64;
math::sqrtcorrectly rounded (the processor's on x86-64 and ARM64,sqrt_portableelsewhere),sin,cos,sincos,atan2from rt's portable math. Shapes: sphere, capsule (upright), box, convex hull (ConvexHull::new, quickhull) and static triangle mesh (TriMesh: f32 vertices in its own frame, a binned-SAH tree with 32-byte nodes, active edges against ghost collisions on seams, two-sided triangles).World: bodies with layers in three dynamic AABB trees (still meshes, still bodies, moving bodies);ray_cast,ray_cast_all,cast(a swept convex shape: fraction, contact point, normal, triangle, depth when it started inside; touching shapes moving apart or along are free),overlap,contacts(depth and normal per body and triangle),closest_point;Filter(layer mask, one body left out).query: the same for one shape against one placed shape,query::brutewithout a mesh's tree. GJK, EPA, GJK ray casting with conservative advancement (a Newton fallback on the convex gap), watertight ray/triangle tests, robust slab tests. docs/PHYSICS.mdtests: physicstest (apps/physicstest, G7c part 1): lib/physics against independent references in 11 groups (
--check, tests/check.uis), the determinism checksum (--checksum, the same on Windows, Linux, macOS, the browser and Android), the measurements (--bench); tests/web.mjs runs the WebAssembly builds in Nodegame: The crate jflib-game (lib/game, in the facade as jflib::game; G7b part 1): the game core without a GPU.
World: entities with a generation (stale ids are refused or find nothing), components in dense columns per type (SparseSet: a paged sparse index, a version per change,changed_since,Mutstamps only what is written), systems as functions in a fixed order (Systems), no archetypes, no scheduler, no hash maps;sort_columnsfor the canonical order.Pose(aTransformin f64 now and at the start of the tick) andFixedTick(60 Hz unless set, an exact accumulator, a cap on catch-up steps,alpha, time from outside);Gameties world, resources, systems and clock together.Input: actions (Button, Axis, Motion) bound to keys by where they sit (KeyEvent::code), mouse buttons, the wheel and the raw motion of the locked pointer; sensitivity (0.022 degrees a count), inversion and a factor per platform for the different units of the raw motion (platform_motion_factor: 1 on Windows, Linux and in the browser, 2.5 on macOS, an estimate); the click that asks for the pointer lock fires nothing, the end of the lock (Esc is the lock's) is the game's pause; presses counted per frame and per tick;store/loadin a settings file (base::Ini, the free part ofbase::Settings). Cameras in f64:FirstPerson,Follow(pulled in front of walls through lib/physics),FreeFly. docs/GAMECORE.mdgame_render3d: The crate jflib-game-render3d (lib/game_render3d, jflib::game_render3d; G7b part 1): the bridge from lib/game to render3d. Entities with a
MeshRefare scene instances;Bridge::syncwrites only what changed (new, switched, gone; a pose between two ticks every frame at the frame's alpha, a standing one once),followmoves the scene's origin after the camera,retire_mesh/collectremove meshes and materials throughRenderer::remove_mesh/remove_materialonce unused,resetafter a lost device. A crate of its own, not a feature of lib/game: a game's server built in the same Cargo run never links render3d.tests: gametest (apps/gametest, G7b part 1): lib/game against references of its own in five groups (
--check, tests/check.uis: the world against a model over 200 000 random steps and with a million entities, the tick against floor(t x rate / 10^9), the input rule by rule, the cameras against closed forms, the bridge against a render3d scene built anew offscreen, 0 pixels different), the determinism checksum (--checksum), a probe window for ui's real input path (tests/input.uis: the lock's click, Esc, keys by place, motion; tests/tick.uis: ticks on the virtual clock); gamedemo (apps/gamedemo): a first-person scene in agpu_viewwithAF_GPU_3D, WASD by place, pointer lock with a click, Esc pauses, a scripted shot (tests/shot.uis)geom: The crate jflib-geom (lib/geom, in the facade as jflib::geom; G7g part 1): the modelling kernel of the game engine, deterministic to the bit on every target.
Mesh: positions, normals, UV in f64, indices and points (the topology: a hard edge or a UV seam does not open a surface, parts that only touch stay apart;weldjoins them);transformed,translated,rotated(degrees, exact at multiples of 90),scaled(normals computed again for a scale that differs per axis),mirrored,flipped,merge,array,radial;flat,smooth(an angle threshold),uv_box(box projection in metres);bounds,area,volume,fingerprint. Generators standing on y = 0:cuboid,cylinder,cone,sphere,torus,stairs,arch,extrude(a front-view profile along Z),prism(a floor plan up along Y),sweep(a profile along a path: rotation-minimising frames, mitred corners, closed loops),lathe(a profile about Y).poly: area, cleaning, ear-clipping triangulation,rect,circle,arc,rounded_rect.Mesh::check->Report: closed and manifold, outward, degenerate triangles, bad normals, bounds, area, volume, components, Euler characteristic;Report::json. docs/GEOM.mdgltf:
write_document(&Document): a document as a .glb (meshes with positions, normals, one uv set, u16 or u32 indices; materials by their factors, alpha mode, double-sided; nodes with their local matrices; scenes) thatloadreads back as the same document; textures, images and lights are refused (Unsupported) rather than left outtests: modeltool (apps/modeltool, G7g part 1): modelling with JFScript. A script describes a model through host functions (
geom.*,profile.*,vec.*,model.*, methods of a mesh), lib/geom builds it; modeltool checks it, draws front, side and top view at one scale and a three-quarter view offscreen through render3d with a grid, writes the PNGs, a sheet, report.json and model.glb, keeps a SHA-256 of script, parameters and modules as the cache key and gives errors with file, line, column, the source line and a caret.--check(lib/geom against independent references, the examples' reports; tests/geom.uis, tests/examples.uis),--checksum(the same on Windows, Linux, macOS and the browser),--examples,--api; five reference scripts (crate, stairs, door, house from modules, column) with their sheets and reportsrender3d: Removing meshes, materials and textures (G7f):
Renderer::remove_mesh,remove_material,remove_texture; their places, vertex and index ranges and texture layers are used again, the ids of removed ones stay invalid (ids carry a generation in their high 8 bits; a renderer that removes nothing numbers 0, 1, 2 as before); refused while a scene's instances, a material or another mesh's detail levels use them, and a scene prepared before a removal does not record;mesh_count,material_count,pool_use. docs/RENDER3D.md section Entfernenrender3d: Double-sided materials and glTF's BLEND (G7f):
MaterialDesc(#[non_exhaustive]:blend,double_sided) withRenderer::add_material_desc,set_material_desc,double_sided;AlphaClass::Blend. Double-sided lists are drawn without culling, back faces lit with the shading normal turned round (Scene::list_kinds,ListKind); blended instances go into one list per frame, sorted back to front per instance on the GPU (sort.wgsl) and drawn by one indirect draw after the rest with premultiplied alpha, the depth tested and not written, without shadows and outside the occlusion test's pyramid (Scene::blend_buffer,blend_drawn).gltf::uploaddraws BLEND and doubleSided as the file says. docs/RENDER3D.md sections Doppelseitige Materialien, DurchsichtigesTests: render3dtest
--test sides,blend,remove(double-sided materials, blended instances back to front, removal against a model of 400 random steps), against the ray caster, which now draws double-sided faces and blended layers; the galleriessides,blend,churnin--dump, the levels test and tests/engine_web.mjs;--bench--blend P,--double Pdiagram_view:
diagram_view::export(JFDiagrammer JD12): pages as vector PDF through jflib-pdf (pdf::write: text in embedded subsets as wide as the layout measured it, gradients as shadings, hatches, pictures, the shapes' hyperlinks to addresses and pages, a bookmark per page, pages in the drawing's size;pdf::Sheets: drawings placed on sheets of paper for printing), as SVG (svg::write: paths, text with its measured width, gradients, hatch patterns, pictures as data URIs, links, shape data asdata-prop-*attributes) and as PNG / JPEG (raster::renderat any resolution, a region, the page's colour or transparent;raster::pngwith pHYs,raster::jpegwith the JFIF density);export::pages,export::links,export::page_namepdf: Gradients and hatches (JFDiagrammer JD12):
Shading(axial and radial, several stops with hard edges, one alpha as ExtGState, varying alphas as a luminosity soft mask; identical shadings written once) painted withCanvas::shadeover the clip orCanvas::fill_shadinginto a path;Hatch(angle, spacing, width, colour, alpha, a point the lines run through) withCanvas::fill_hatch: the lines stroked inside the clipped area (tiling patterns showed seams in pdfium);Shading::axial,Shading::radial,Hatch::newTests: pdftest: page 5 of the sample (gradients with 2 and 4 stops, hard edges, soft masks, turned shadings, radial with an offset centre, hatches crossing, turned, even-odd), the reader checks shading dictionaries, functions of types 0, 2, 3, 4, soft masks and their transparency groups, tiling and shading patterns, colour spaces through q/Q and refuses 27 damaged files; reader_check.py samples 17 pixels of page 5 in Poppler and pdfium. diagramiotest's group export (JD12): the PDF of every self-built drawing through pdftest's reader (pages and sizes, bookmarks, shadings, hatches, JPEG passed through, embedded fonts and their ToUnicode text, links to an address and between pages, the same bytes twice), the SVG read back by img_svg and compared with the pixels, PNG golden images (tests/golden/export-*.png) and round trips, JPEG, transparency, the page selection and the links; --write-export-golden, --write-exports DIR (also the local files)
ui: (JD7) Editing shapes on a canvas:
DG_EDITmakesui.diagramthe view only (zoom, pan, the paint) andui.shape_edit(id, &mut SeState, &mut DiagramState, &SeModel, tool) -> Vec<SeEv>takes the left button, the keys, the cursor and the overlays: selection by click, marquee, keyboard, Shift and Ctrl; the eight handles and the rotation handle of turned and flipped frames (SeBox), locked handles grey, the rotation pin after the rotation handle was touched, yellow control points, vertices, the ends of 1D shapes; glue of ends and control points to connection points (static) or whole shapes (dynamic,SeGlue); moves snapped to the grid, the dynamic grid (other shapes' edges and middles, alignment lines) and guides (SeGuide); the connector, line, rectangle, ellipse and text tools; the magnifier (Ctrl + Shift + click, drag, right click); live gestures report totals for the app's preview andSeEv::Cancelon Esc;ui.shape_edit_semsgives one record per shape and per handle ("Größengriff unten rechts", "Drehgriff", "Anfangspunkt" ...: library texts in nine languages)ui: (JD7)
ui.ruler(id, &vp, &RulerSpec) -> RulerEv: a ruler along a canvas in the document's units for the view of a ui.diagram canvas (ticks and numbers 1, 2 or 5 times a power of ten, the page's extent lighter, the selection's edges and middle marked, the pointer); dragging out of it reports a guide (RulerEv::Guide { at, done },GuideCancel)ui: (JD7)
DgPaint::damage(from, to): the world rectangle an edit changed between two content versions; ui.diagram then paints only that part of its backing store again (one shape edited in a large drawing).DiagramState::grid_lines: false keeps the grid for snapping without drawing it (Visio's hidden grid)diagram_core: (JD7)
diagram_core::ops: gestures as cell writes with the formula engine's recalculation in the same transaction (GUARD refused, SETATREF followed, locks respected):move_shapes,set_frame/Frame(resize with the opposite edge kept, turned and flipped too),scale_shapes,rotate_shapes,flip_shapes,set_pin,controls/set_control(XCon/YCon as Visio writes them,Width*k, BOUND kept),vertices/set_vertex/insert_vertex/delete_vertex,group/ungroup(children in group coordinates withSheet.N!Width*kformulas, turns and flips carried over),reorder(Z),new_shape(Basicrectangle, ellipse, text box),set_text,text_frame/set_text_frame,copy/paste(Clip: new IDs,Sheet.N!references and Connect entries rewritten),locks(Locks),frame,boundsdiagram_core: (JD7)
diagram_core::glueanddiagram_core::route: connection points with direction (connection_points,ConnPoint), static glue to a point (PAR(PNT(Sheet.N!Connections.Xk,...))) and dynamic glue to a whole shape (_WALKGLUE, the docking point chosen anew) with Visio's Connect entries (glue,glued,Target,End), the dynamic connector without a master (new_connector, ObjType 2, GlueType 2), lines that glue and keep their form (new_line),dependents,update(only the connectors given: nothing reroutes when a file opens),detach,reset,set_style(Styleright angle, straight, curved),path;route::orthogonal/best: right-angle routes around obstacles by A* over a sparse grid (bend penalty, clearance, the directions of the points)diagram_core: (JD7)
diagram_core::hit: the shape under a point of a display list (at,all_at: fills even-odd, lines with half their width, texts, pictures; shadows and background pages never),in_rect(marquee, whole or partly),top_boxes,item_at,item_box;render::rebuildbuilds the items of some top-level shapes again in place (false when shapes came, went or moved in the z-order),render::measure_text,Drawing::range_of/tops,Grid::replacediagram_core: (JD7)
Transaction::insert_row/remove_row: a row in the middle of an indexed section, the following rows renumbered and the formula references of the sheet following them (Geometry1.X3->X4), an inherited section made local first;Transaction::set_row_kinddiagram_view: (JD7)
PageView::update(&doc, &mut fonts, &shapes) -> Option<[f64; 4]>: the changed top-level shapes again in the scene (entities updated in place where the structure stays), the changed box for a partial repaint;diagram_view::Metrics, the formula engine'sTextMetricswith the fonts and substitutions pages are drawn with (TEXTWIDTH and TEXTHEIGHT give what is drawn);FontSetisClone(a shared handle);PageView::drawkeeps to the clip of its dcTests: (JD7) diagramiotest groups
editview(PageView::update against a page built anew, pixels and display lists, Metrics against the drawn text, timing) andedit(static and dynamic glue through ops and glue, moved, written and read back),--write-gegenprobe DIR; JFDiagrammer scripts edit_shapes, edit_connect, edit_group, edit_save, edit_text, edit_view, edit_golden (golden images of a routed connector and a turned frame's handles); diagram_core unit tests for ops, glue, route, hit and rebuilddiagram_core: Masters from stencils onto pages (stage JD9 of apps/JFDiagrammer/PLAN.md),
diagram_core::instance:import_mastertakes a master of another document (a stencil) into the document of a transaction -- the copy already there with the same UniqueID (MS-02), else a copy with its strings in the new table, its styles matched by NameU (missing ones copied with their bases), the masters its shapes are instances of first and pictures of package parts inline;placedrops an instance with Name in a chosen language and NameU the master's ("Rechteck.7" when the page has one), its text and translated cells in that language;move_masterreorders a stencil;MasterTextsandStencilTextsread the names, QuickInfos, keywords, texts and translations in five languages from JFDiagrammer's JFD_ User cells (else Name, Prompt and ShapeKeywords) with a search over all of them (matches, accents and case folded);join_fields/split_fields,LANGS,base64diagram_io: The stencil build tool (stage JD9 of apps/JFDiagrammer/PLAN.md),
diagram_io::stencil:build(&files, Measure)compiles the text sources of a stencil (stencil.txt, one.masterfile per master with its ShapeSheet sections, optional SVG drawings; the format is apps/JFDiagrammer/stencils/README.md) into a stencil document,build_vssxalso into.vssxbytes: header lines, sections, rows with continuation lines, language suffixes (all five languages or an error) and.metric/.uslines, section, row and cell names checked; constants as values with their unit, every formula computed by the formula engine (an unknown function, a reference into nothing, an error value or a cycle is aSourceErrorwith file and line); the Master attributes Visio writes, name-based BaseID and UniqueID (SHA-1, RFC 4122 version 5; the UniqueID follows the content), the master page at the shape's size,ShapeKeywordsand the JFD_ User cellsdiagram_core::instancereads; icons rendered from the shapes (32x32 ICO with 16 colours and a mask, as Visio writes them); SVG drawings as Geometry (path, rect, circle, ellipse, line, polyline, polygon, g, transforms; curves as exact cubicNURBSTorows, arcs in pieces of at most 90 degrees; several formats as a group of full-size subshapes). The same sources give the same bytesTests: diagramiotest: group
stencils: the start set of apps/JFDiagrammer/stencils in both measures (round trip, the same bytes twice, names, QuickInfos, keywords and translated tips in five languages, Master attributes, GUIDs, icons, geometry with computed values, controls, connection points, the read-back stencil recalculated without change), every master dropped into a drawing in French, the SVG fixtures tests/stencil_server.svg and tests/stencil_cloud.svg, faults with file and line;--write-stencils DIRwrites the stencils for a look in Visioui: The Shapes window of a diagram editor (stage JD9 of apps/JFDiagrammer/PLAN.md, Visio's Shapes pane, generic):
ui.stencil_panel(id, &mut StencilState, &StencilPanel) -> Vec<StencilEvent>with stencils of tiles the app hands in (StencilDef,StencilTile: name, QuickInfo, a preview throughui::Draw;TL_QUICK,TL_ARMED,TL_DISABLED,SD_EDITABLE), a search box with a history and the app's hits (StencilHit), "More shapes", title rows (tabs) for the quick collection (SK_QUICK), the results (SK_SEARCH) and each stencil, a splitter, four view modes (SV_ICONS_NAMES,SV_ICONS,SV_NAMES,SV_DETAILS), the quick part above a line (MS-04), tile drags (stencil_drag_decode) and drops onto editable stencils; only the rows in view are laid out. Every text comes from the app (StencilLabels)Tests: gallery test hook 9106 (
--stencils): the Shapes window with four stencils (one editable, one of 300 tiles), tests/stencil.uis, stencil_search.uis, stencil_drag.uis, stencil_keys.uis (titles, view modes, quick collection, events, menus, search and history, drags and drops, keyboard, the rows in view)ui:
Mi::Listrows take the state of their id like a command:cmd_state(base + k, CF_CHECKED | CF_DISABLED)shows row k checked or disabled (in the window's menus and in macOS' system menu), e.g. the open stencils in JFDiagrammer's "Weitere Shapes"; before, list rows were always plainbuild: Builds of an app for the browser, Android and other styles (build_rs.py's derived workspace) also run the app's own build steps: an app with
apps/NAME/build_steps.rs(pub fn run(app: &Path), called by its build.rs as well) gets it called there with its folder, and its build dependencies; an entry withworkspace = truekeeps the features the app adds (JFDiagrammer builds its stencils so)ui:
SE_PLACE, a tool ofui.shape_editfor placing what the app holds (a shape from a stencil, click + click): a click anywhere, on a shape too, reportsSeEv::Draw { tool: SE_PLACE, a, b: a }at the snapped point; no handles, a drag places nothingnetio: (G7d) WebSocket (RFC 6455): ws::Acceptor answers upgrades in a Server's handler (the connection on a thread of its own; origins, subprotocols, max_connections), ws::connect for clients, ws::WebSocket (recv, recv_timeout, send_text, send_binary, send_fragmented, ping, close; pings answered, close handshake, ping after ping_ms, end after idle_ms), ws::Decoder for untrusted bytes within ws::Limits (frame, message, fragments, messages and bytes a second) with the close code of anything malformed (1002, 1007, 1008, 1009); http::Body::Upgrade / Upgraded hand a 101 answer's connection to a thread of its own, Server::stop waits for them. docs/TRANSPORT.md
plat: (G7d) plat::net on every target (addresses, NetError, host_port; sockets stay Windows', Linux's and Apple's); in the browser plat::net::WebSocket through the JS host (the worker holds the sockets: request 32, jfgui_ws; ws://, wss://, /path for the page's own server; WsLimits; a burst wakes the app once), checked by policy::net_host_allowed against net.connect. docs/TRANSPORT.md
netchan: (G7d) The crate jflib-netchan (lib/netchan, in the facade as jflib::netchan): message channels for games, the same over UDP (unreliable, unordered; a handshake with a stateless HMAC cookie, a token per packet, keep-alives, timeouts, no answer before ACCEPT larger than its request) and over WebSocket (reliable, ordered), sequence numbers and acks of the newest 33 (Delivered, Lost, an ack due after 16 packets without one), the round-trip time; Client (Endpoint::Udp, Endpoint::WebSocket), Server (bind_udp, listen_ws, ws_endpoint, poll, wait, send, disconnect), WebSocket (one non-blocking client type for the browser and the desktop); limits on payloads, packets and bytes a second per connection, connections per server and per address, handshake answers a second; endpoint::ServerCore / ClientCore, conn::Conn and packet without I/O. docs/TRANSPORT.md
Tests: (G7d) nettest (apps/nettest): netio's WebSocket (codec, echo, fragments, ping, close, every malformed frame with its close code, limits, handshake errors, server stop, 32 clients), the channel on a simulated network (loss, duplicates, reordering, wrap of the numbers, a ledger of what was sent, arrived and acknowledged) and on loopback sockets (UDP, WebSocket, both on one server, permissions), fuzzing with a fixed seed (2.1 million cases: frame decoder, packet parser, server and client protocol, acks), --bench (round-trip time and throughput), --serve / --client and tests/web.mjs (the browser's WebSocket and the channel against the same server as a desktop client, Chromium and Firefox)
Tests: tools/winarm_check.py --scripts APP[/SCRIPT.uis],... (any app's scripts), --only gpu (gputest --info, uigputest's output starting with jfgui_GPU_TRACE=1) and --target linux (the Linux programs on an ARM64 Linux machine); .github/workflows/arm64-windows.yml runs every script of gallery, jfWord, gputest and uigputest on windows-11-arm as the runner is (a Vulkan loader, no driver), with a loader of its own and with lavapipe for ARM64, and on ubuntu-24.04-arm with Ubuntu's lavapipe under Weston and Xvfb; arm64-atomics.yml starts only for a push to arm64-test/atomics*. gputest --test glibc checks the crash report with ARM64's offsets, uigputest --test viewcpu is a SKIP without a usable GPU like the other tests, --test canvasoff waits for the canvas's first frame (at most 3 s; Xvfb in the ARM64 VM drew it later than two passes) (docs/ARM64.md, ARM8)
diagram_core: (JD10) Containers, lists, swimlanes and callouts (
diagram_core::structure): membership, list order and callout targets in the Relationships cell of both shapes as Visio writes it (DEPENDSON 1/4, 2/5, 3/6), settings from Visio's User cells (msvStructureType, msvSDContainer*, msvSDList*, msvShapeCategories with required and excluded categories), membership by place after a gesture (every enclosing container, lists by the middle), automatic size (expand, fit), list layout and order, members and callouts carried along when moving, copying and deleting, disband, repair of one-sided relationships, callouts aimed at their target throughControls.Association;structure::cfflays out cross-functional flowcharts (pool, lane list, phase list, horizontal and vertical); the formula functions of FX-12 (CONTAINERSHEETREF, LISTORDER ...), IFERROR andFUNCTION()!Cell; the router leaves ObjType 4 shapes and containers out of its obstaclesJFDiagrammer: (JD10) Structures and connector comfort: Einfügen › Container (six own styles) and Beschriftung (six own callouts), the register Container-Tools › Format (margins, fit, automatic size, styles, heading styles, lock, select contents, disband), shapes join and leave containers when dropped or moved (the container glows, a list shows the insertion bar), a container's inside clicks through, lists with insert triangles and reordering, cross-functional flowcharts (stencil "Funktionsübergreifendes Flussdiagramm", a dropped lane brings its flowchart, the register with Bahn, Trennlinie, Ausrichtung, Titelleiste, Trennlinien, Bahnbeschriftungen; shapes in a lane get "Funktion"), callouts that follow their target and tie by their yellow point, Verbindungspfeile (CN-07) and Shapes verbinden (CN-16), Layout-Verhalten per shape (CN-17) and an editable Seite einrichten › Layout und Routing (PG-11); new stencils stencils/containers, cff and callouts (the stencil build tool of diagram_io takes
hidden: truefor the flowchart's frame and lists); diagramiotest groupsstructures(built as the app builds them, written, read back, carried after reading) andstencils/structure,--write-gegenprobealso writes JD10-Gegenprobe-Strukturen.vsdx; JFDiagrammer scripts structures_container, structures_list, structures_cff, structures_callout, structures_arrows, structures_layoutui: (JD10) Connection arrows and insertion marks in
ui.shape_edit: with the pointer tool a top-level shape under the pointer shows four arrows around its box (SeState::arrows, on by default;SEF_NOARROWSleaves a shape out); a click on one reportsSeEv::Arrow { key, dir }, a drag from one draws a connector from that shape (SeEv::Connectwithga: SeGlue::Shape(key)),SeEv::ArrowHoverandSeState::arrow_hover()tell the arrow under the pointer; the app's insertion marks (SeModel::marks,SeMark) show near the pointer and reportSeEv::Mark { tag };ui.shape_edit_semsnames both for scripts and screen readersdiagram_core: (JD11) Designs:
diagram_core::design, a typed DrawingML theme with Visio's extensions (Design,Scheme,Fill,Line,Effect,FontStyle,Variant,VarStyle,Clr,Slot,Mod;Design::theme_xml); only Visio's identifiers are taken over (the extension URIs indesign::uri, the namespaceNS_VT, element and attribute names), every value is JFLib's own.design::catalog: the own designs NetLab, Contour and Contrast with four variants each (scheme numbers fromFIRST_ID60001).design::apply:apply,set_variantandremoveon a page or every page in one transaction (the theme part installed or replaced, each index cell by the part's own component number, the shapes' formatting of themed cells reset unless THEMEGUARD/GUARD or a LockTheme* cell keeps it, unused own parts dropped),page_design,part_id,find_part.Transaction::set_themes(undoable),formula::Theme::scheme_ids,Engine::themes_changed; the engine also notices changed theme parts by itselfui: (JD11)
ui.color_menu(id, &ColorMenu)->Option<(ColorPick, rgb)>: the swatches of an Office colour menu (design colours with five shades each, variant colours, fixed colours, last used; the current one marked) andcolor_shades(rgb);ui.ribbon_image_tile(id, label, &surface, ver): a gallery tile with a picture the app madeTests: (JD11) diagramiotest group
designsand--design-probe DIR,--write-design-golden DIR; JFDiagrammer tests designs.uis, format.uis, format_painter.uisdiagram_io: (JD13) The template build tool
diagram_io::template(apps/JFDiagrammer/templates/README.md):build(&files, Measure, &stencils)compiles a template's text sources (template.txtwith name, description, category, order, stencils, design, page cells, layers, style cells, context registers;*.starterstarter diagrams with shapes from the built stencils, dynamic connectors and cross-functional flowcharts;rules.txta rule set) into its forms (BuiltTemplate: the blank template and one per starter diagram),build_vstxinto.vstxbytes: the stencils inwindows.xmlas Visio writes them (stencil windows in panel order, the active one), the rule set invisio/validation.xml, the catalogue's texts in five languages in JFD_ cells, values computed, the same sources give the same bytes. At run timestencil_windows,set_stencil_windows,info,registersandto_drawing(a template into a new drawing in one of the five languages). The stencil build tool builds 1-D masters (BeginX..EndYwith Visio's formulas for pin, width and angle)diagram_core: (JD13)
structure::cff::create/create_withbuild a cross-functional flowchart (pool, lane list, phase list, lanes, phases) as JFDiagrammer does;instance::placeputs a 1-D master's ends at the drop point and lets PinX / PinY follow themdiagram_io: (JD13) The own stencils' files are named
jfd_<stem>_m.vssx/_u.vssx(stencil::file_name,parse_file_name): a template names its stencils by file name, and Visio opened its own ARROWS_M.VSSX for our arrows_m.vssxJFDiagrammer: (JD13) The template catalogue (VL-01 .. VL-04): Datei › Neu with categories, pictures rendered from the templates, starter diagrams with a tip shape to delete, metric or US units; the templates Leere Zeichnung, Standarddiagramm, Standardflussdiagramm (ISO 5807, 8 pt, a rule set, a sample) and Funktionsübergreifendes Flussdiagramm (horizontal and vertical, its register comes with the template); a new drawing opens the template's stencils in its order; own templates: Speichern unter › Als Vorlage (.vstx with the open stencils), Meine Vorlagen in the catalogue, a .vstx opened starts a new drawing; PACKAGE file types for the six Visio formats; the stencils Blöcke, Pfeil-Shapes, Standardflussdiagramm-Shapes and Verbinder in the NetLab style, Standard-Shapes and Beschriftungen completed
Tests: (JD13) diagramiotest groups
templates(every template built in both measures, read, written, read back, stencil windows, cells, page size and units, 8 pt, rule set, flowcharts,to_drawing) andstencils/shapes,--write-templates DIR,<folder>-alle.pngin--write-stencil-previews; diagram_io's unit tests run in the suite; JFDiagrammer scripts templates and templates_owngame: The netcode (G7e part 1,
game::net, over lib/netchan):NetServerand the traitRoomSim(rooms by code, a fixed tick, every player's input of the tick or the last one repeated, snapshots every two ticks as deltas against what each client holds: the newest it confirmed over UDP, the last sent over a WebSocket, the map's baseline before; quantised fields, changes ordered by an accumulated priority and cut to 1200 bytes since netchan does not fragment; a join's full state that does not fit a datagram is filled in by priority over the next snapshots, or withServerOptions::fetch_fullfetched over a WebSocket of its own with a ticket);NetClient(ticks ahead of the server on a clock steered by the margin of its inputs, inputs sent with the ones the server may lack, prediction and reconciliation withMovementandPredictor, the others interpolated 100 ms behind the newest snapshot); lag compensation (HitHistory,view_time,hitscan: the others rewound to what the shooter saw, at most 300 ms);RoomCode, room links, names; the bit stream, quantisation grids, the messages;sim::SimNet(netchan's cores on a virtual clock with delay, jitter, loss and reordering);link::serveandNetLinkon real sockets; a reference game (walker::Walker,arena::Arena,bot::Bot). Everything a client predicts computes the same bits as the server. docs/NETCODE.mdtests: gametest: the netcode's groups netcodec (bit stream, grids, deltas against a plain full encoding, the budget's cut, 60 000 malformed inputs, input packets, the input buffer, the predictor, the clocks), lagcomp (rewinds and hitscan against brute force), room (codes, links, names, joins and refusals), netsim (bots on the simulated link in clear, typical, rough and stormy weather: after the link heals every first prediction is the server's state bit for bit; the tick and sequence wraps; the join's full state fetched and filled in; leaving and joining), bots (16 bots against the limits);
--netsum(the checksum of a recorded networked session, the same on Windows, Linux and macOS),--netbench(the measurements of docs/NETCODE.md),--loopback(tests/loopback.uis: UDP and WebSocket clients on real sockets)physics: The kinematic character controller (G7c part 2):
CharacterController::new(CharacterParams)andstep(&state, &world, &filter, &input, dt) -> (CharacterState, StepEvents), an upright capsule that walks, runs, jumps and crouches (standing up only with room), takes steps up tostep_height(an edge carries when the surface beyond it is walkable), ramps up tomax_slope_deg(steeper surfaces are walls it slides down), slides along walls and into corners with Quake 3's clip planes (no jitter), snaps down ramps and stairs, steers in the air (Quake's air acceleration,air_control) and pushes itself out of overlaps by casts. On the ground the velocity approaches the wish velocity (accel), without input Quake's friction brakes; gravity uses the tick's mean velocity (free flight is exact). The same bits on every target; a step reads only position, velocity and crouched.CharacterInput,StepEvents(landed, impact speed, jumped, left ground, ceiling, walls, stepped up, snapped down, stand blocked, pushed out, casts),Touch,MAX_WALL_TOUCHES; defaults for a fast cartoon arena shooter. docs/PHYSICS.md section Der Character-ControllerTests: physicstest
--test character(the character controller in scenes with exact expectations: jump apex and landing tick from the free-flight formula, bunny hops, stairs at four speeds and risers above the step height, the slope limit, walls at many angles, V corners, a low ceiling, snapping down ramps and stairs, a ledge, pushing out, a V gully) and--test charfuzz(random figures on random sealed maps, throws up to 1000 m/s: never inside anything, never through the wall between two rooms, never under the ground; with a counter-test), the controller's checksum as a second line of--checksum,--bench sqrt|map|controller; the math group checks the square roots against an integer root bit for bit, NaN includedrender3d: An orthographic camera (G7f part 2):
Camera::ortho(Some(h): the view h high) andCamera::ortho_at; culling, the occlusion test, detail levels (by size alone), blended instances (by depth) and the sun's cascades (the view's box split uniformly) work for it. docs/RENDER3D.md section Orthografische Kamerarender3d: The cartoon look (G7f part 2):
MaterialDesc::toonwithToon { bands, softness, rim, rim_width }: the sun's and the lights' n.l in bands (in shadow as if turned away), a flat ambient light, a rim; base colour, normal map, emission, MASK, BLEND and double-sided as for PBR.render3dtest --toon-sheet DIRdraws four looks to choose from. docs/RENDER3D.md section Cartoon-Materialrender3d: Outlines and FXAA (G7f part 2):
Scene::set_outline(Outline { width, color, crease }): lines on the edges of the depth buffer (silhouettes, creases), drawn over the opaque image before blended instances and particles;Scene::set_antialias(Antialias::Fxaa): FXAA 3.11 (quality 12) from an image of the renderer's into the target. docs/RENDER3D.md sections Umrisse, Kantenglättungrender3d: The viewmodel (G7f part 2):
Scene::set_viewmodel(Viewmodel { fov_y, near, far }) andScene::add_viewmodel: instances in the camera's space drawn with their own lens in front of the world (the world's depth takes 0 to 0.5, the viewmodel's 0.5 to 1), lit by the scene's sun, shadows, lights and environment; lists apart from the world's, no shadows cast. docs/RENDER3D.md section Waffe vor der Kamerarender3d: Particles (G7f part 2):
Scene::set_particles,add_emitter(Emitter: seed, additive or alpha, discs or streaks, life, speed, cone, size and colour over life, gravity, drag, the viewmodel's space),emit,set_time,clear_particles: born on the CPU from the emitter's seed (the same on every device), moved in closed form in a compute shader, sorted back to front on the GPU, one indirect draw; no read-back. docs/RENDER3D.md section Partikelplat: Android has real threads (docs/ANDROID.md, AN1):
thread_spawn,Thread::joinandSemover Bionic's pthreads and futexes,plat::syncwith Linux's futex code, the pool of Windows, Linux and Apple (parallel_for,Job,thr_count()=cpu_count(),render_parin bands), task's blocking pool andaioon threads instead of between frames on the UI thread, their workers below the UI thread (nice 10, Android'sTHREAD_PRIORITY_BACKGROUND);cpu_count()(sysconf),mem_total()(/proc/meminfo),thread_yield(), asleep_ms()that sleeps,cpu_brand()from /proc/cpuinfo;capabilities()reportsCAP_THREADS.wake()from any thread writes an eventfd that the UI thread's looper watches (android/bridge.c,ALooper_addFd): a frame comes at once instead of with the idle host's next tick (up to 250 ms)rt:
rt::oson Android:syscall6,syscall3,polland the kernel table ofrt::kernel, as on Linux (plat's futexes, eventfd, /proc; docs/ANDROID.md decision 2)tests: plattest
--test threads,atomicsandasync(also its channels) run on Android,--test allchecksmem_totalandcpu_brandthere; coretest's groupplatrunssyncandrandon Android and pattern's 64 KB thread; androidGalleryjfgui_SELFTEST=job(jobtest.rs) and tests/android_job.py: the UI stays smooth while a long job runs on the pool, a job's end wakes the resting UI at oncetests: plattest
--test pool-bench(not inall): parallel_for with 1 .. cpu_count + 1 threads, arithmetic and memory items, the speed-up per count (big.LITTLE: how many workers); androidGallery's tests/android_job.py and android_perf.py take--package NAME(a test build withjfgui_ANDROID_PACKAGEbeside a gallery of another debug key) and--extra NAME=VALUE(another jfgui_* extra of the start,jfgui_RENDER_PAR=0)diagram_core:
dock::snap,dock::dockanddock::reach(stage JD13 of apps/JFDiagrammer/PLAN.md): a 2-D shape with an outward connection point (Type 1) snaps onto the nearest inward one (Type 0 or 2) of another shape within reach, and from anywhere over a container that takes it (equipment onto the height units of a rack), as Visio's point-to-point glue of 2-D shapes; membership in the container keeps it therediagram_io: Stencil sources (stage JD13): the master keys
include:(sections shared by many masters from .inc files, merged under the master's own cells, errors name the included file),scale: 1:N(a master page drawn to scale, line weights on paper) andsize:(the size of a master whose Width or Height is a formula); apps/JFDiagrammer/stencils/README.mdbuild: tools/package.py --arch aarch64 (docs/ARM64.md ARM9): the packages of Windows and Linux on ARM64, one file per processor beside the unchanged x86-64 ones -- APP_Setup_arm64.exe, DEB_VER_arm64.deb, -aarch64.AppImage (the runtime appimagert for ARM64), rpm-aarch64/ (rpmbuild --target aarch64), flatpak-aarch64/ (flatpak-builder --arch=aarch64), -arm64.msix with APP-arm64.appinstaller; --update adds windows-aarch64 and linux-aarch64 to the channel of the same version (update_manifest.other_targets), cross_bins= carries the agents of both processors (docs/PACKAGING.md "ARM64")
Tests: pkg_check.py: --quick checks the ARM64 names and fields of every format, one update channel for both processors and the agents per processor; --arch aarch64 the built ARM64 packages; the .deb unpacked runs the app's scripts; --install-packages installs the app's packages on a machine of their processor (setup in test mode, MSIX, apt, dnf in a Fedora container, Flatpak), runs its scripts and removes them; winarm_check.py --only update runs updatetest --test update and --test apply on ARM64
plat: (AP9) The iPad (docs/APPLE.md AP9): the app's menus in the menu bar of iPadOS through
UIMenuBuilder(plat::sysmenuon an iPad under UIKit: the app delegate builds the main menu, the app's menus between the application menu and Window, the system's File, Edit, Format and View menus gone; rows with a key asUIKeyCommand, also in the overview while Command is held; separators as inline groups);sysmenu_window_row(): whether the window keeps its own menu row as well (true on the iPad, whose bar hides until revealed; false on macOS); an emptysysmenu_settakes the menus out againplat: (AP9) The iPad's pointer: a trackpad's or mouse's pointer without a button moves the mouse (
UIHoverGestureRecognizer; the Apple Pencil's hover a pen without pressure), two fingers on the trackpad and a mouse wheel areE_WHEELin physical pixels (WHEEL_PIXELS), a trackpad's pinch is Ctrl + wheel as on the Mac; none of the recognizers takes or delays a finger. Info.plist namesUIApplicationSupportsIndirectInputEvents(tools/apple.py), so clicks of a trackpad or mouse arrive as the mouse, no longer as a fingerplat: (AP9) The iPad's window sizes: the canvas follows Split View, Slide Over, Stage Manager and the keyboard as before, an iPad's screen now at its full 2 px per point (up to 2752 px on the longer side instead of 2048, which made every iPad's picture soft); no "Done" bar above an iPad's keyboard (it has its own key);
jfgui_IOS_WINDOW=WxHputs the window at that size inside its scene (a look at those sizes without dragging); test aidsios_pad_view,ios_pad_window,ios_pad_keyboard,ios_pad_rotate,ios_pad_menu_build(the main menu built with a stand-in for UIKit's builder: iPadOS builds its own only when the menu is needed),ios_pad_menus,ios_pad_menu_choose,ios_pad_pointertests: (AP9) plattest
--test ipad(an iPad simulator under UIKit, tools/apple.py simapp withjfgui_SIM_DEVICE): the canvas, the app's size and the picture in Split View's, Slide Over's and Stage Manager's sizes, the keyboard, the form factor, the main menu (rows, keys, separators, a submenu, the responder chain, rebuilds, the menus gone without the bar), the window's menu row, hover, wheel and pinch (62 checks); tools/apple.pyjfgui_SIM_SECONDS(how long simapp lets a program run)plat: (G7a part 2) Game pads in one layout on every platform, the W3C Gamepad API's standard mapping:
pad_watch(on),pad_watching(),pads()(the connected pads with the buttons that went down and up since the last call),pad(i),Gamepad(index, name,PadStyle, 17 buttons with analog values,pressed,down,up, two sticks in -1..=1 right and down positive),PadState,PAD_A..PAD_HOME,PAD_LX..PAD_RY,PAD_TRIGGER_PRESS, the eventE_GAMEPAD(PADEV_STATE: one untilpads()is called,PADEV_CONNECT,PADEV_DISCONNECT). Windows: XInput (xinput1_4.dll, else xinput9_1_0.dll, the guide button through XInputGetStateEx), Xbox-compatible pads; Linux: evdev, the nodes of game controllers the user may read, Xbox, PlayStation, Nintendo and simple HID pads mapped, inotify for new ones (a Flatpak needs--device=input); macOS: GameController's extendedGamepad with its connect and disconnect notifications; the browser: the Gamepad API polled by the page every animation frame (service 33,jfgui_pad); Android and iOS: none (pad_watchsays false). The native backends are polled from the window loop's wait (every 4 ms while a pad is connected); pads report nothing held while no window of the app is active. Decoders and test aids for plattest:xinput_map,xinput_decode,EvdevPad,AbsInfo,evdev_is_pad,web_pad_decode,pad_style,pad_vendor_of_id,pad_button_name,pad_test_connect/_state/_disconnect/_reset/_focus,pad_poll_test, Windowsxinput_test_feed/xinput_test_end, Linuxevdev_test_attach/EvdevTestNode, macOSgc_test_pad/gc_test_disconnect. docs/GUIDE.md section 39ui: (G7a part 2)
ui.gamepads(): the game pads connected now (ui::Gamepad, the same asplat::Gamepad) with the edges of their buttons in this batch; the first call starts watching (plat::pad_watch), every change gives a frame, a pad that comes or goes givesApp::command(UIC_GAMEPAD, index | PADEV_* << 8);ui.gamepads_watching();ui::PadStyle. Scripts:pad connect N [xbox|playstation|nintendo|other] [NAME],pad disconnect N,pad press N BUTTON [VALUE],pad release N BUTTON,pad axis N lx|ly|rx|ry VALUE. docs/GUIDE.md sections 12 and 39game: (G7a part 2) Game pads in the input actions:
Source::PadButton(plat::PAD_*),PadAxis(a stick's axis) andPadDir(a stick's direction as a button, with hysteresis) with names for the settings file (PadA,PadLeftX,PadLeftX-), German labels by the pad's style (label_for(PadStyle)),is_pad; an Axis adds a stick's or a trigger's analog value times the scale, a Motion turns with a stick atTURN_RATE(180 degrees a second) x sensitivity with a response curve;PadSettings(sensitivity, a radialdead_zone,curve,invert_x,invert_y;stick,look,store/loadbeside the mouse's in the same section);Input::pad_frame(pads, dt): the pad used last drives the input (a stick only when none does;pin_padfor a split screen), a pad button plays without the pointer lock and fires nothing (pad_playing), the mouse still asks for the lock, the lock taken ends pad play, the active pad gone during it pauses, a button held through a pause counts after its release, a tap between two frames is a press and a release;active_pad,pinned_pad,device()(Device::KeyboardMouse/Pad),pad_held,pad_stick,pad_settings,set_pad_settings;plat_eventtakesE_GAMEPAD. docs/GAMECORE.mdTests: (G7a part 2) plattest
--test pad: the pads' shared state (events, edges, the axes' threshold, values kept in range), XInput records, the evdev parser (xpad, Sony, Nintendo, simple HID pads, SYN_DROPPED and the resync), the browser's record, and each platform's backend through a test hook (Windows XINPUT_STATE records instead of the DLL's, Linux a pipe as a pad's node, macOS a controller of GameController's own); gametest's input group 84 checks more (pad sources, the radial dead zone, looking, pad play, which pad drives, the settings; the checksum unchanged); apps/inputtest shows the pads live, tests/pad.uis plays them, its README has the check list by hand; tools/tests/web_pad.mjs: the browser host's pads with a fakenavigator.getGamepadstests: game1 and game1-server (apps/game1, apps/game1-server, G7h part 1; docs/GAME1.md): the playable core of game 1 (working name Spiel 1, app id org.jfreund.game1) -- a fast cartoon shooter, free for all with one hitscan weapon. The game's logic without a GPU in the app-local crate game1_core (lib/physics' CharacterController and the weapon's timing behind game::net's Movement on the 1/1024 m grid, a RoomSim with lag-compensated hits, death and return, server-side bots, the server's loop on real sockets); the map and the figure in JFScript for modeltool, baked into .g1m files (tools/content.py --check rebuilds them byte for byte); the client with the toon look C, the weapon as render3d's viewmodel, particles, HUD, start, pause and settings menus, practice against bots in this process, rooms by code over UDP or WebSocket (the browser: the page's own server, game1-server --web); the server static on Linux. Test groups map, move, match, netsim, lagcomp, render (--check), --sums (the same on Windows, Linux and in Node), --bench, --loopback; game1-server --check
game: Reliable events in the netcode (
game::net::event): one numbered sequence per direction, every SNAPSHOT and INPUT carries the oldest unacknowledged events up toServerOptions::event_budget/ClientOptions::event_budget(Quake 3's reliable commands: delivered once and in order over UDP and WebSocket, no extra packet, no timer);RoomSim::on_eventandtake_eventswithRoomEvent/To::{All, Player, AllBut},NetServer::send_event,NetClient::send_event/take_event; a client that leaves 512 events unacknowledged is dropped. The bit EXT in byte 0 marks the event part: without events the messages are those of protocol version 1 (docs/NETCODE.md)game: Leaving a room: LEAVE (protocol version 2),
NetClient::leave(Phase::Left),NetLink::leave(LEAVE, then netchan's DISCONNECT): the server removes the figure at once (ServerStats::left)game: Smoothed corrections:
predict::Smootherturns the jump of the own figure at a reconciliation into an offset of the drawn position that decays inClientOptions::smooth_ms(60) and snaps abovesnap(1 m);NetClient::drawn,smoothing; the prediction stays bit for bit the server'sgame: Rooms side by side:
NetServer::set_parallelruns the rooms of a tick on plat's worker pool and merges their messages in the order of the room codes (the same bytes as on one thread); room codes and tickets from the system's random numbers withNetServer::secure/with_random(a seeded xorshift gave its state away with one ticket)geom: Boolean operations on convex solids, as brushes in a map editor (G7g part 2):
Solid(convex cells that do not overlap, sharing their planes) from a convex mesh (from_convex),union,difference,intersection,transformed,to_mesh(one closed surface: where cells touch their faces cancel, points on a neighbour's edge go into it); on meshesgeom::union,difference,intersection. Exact where it decides: a point is where three planes meet, never rounded during the operation, its side of a plane the sign of a 4x4 determinant (f64 with an error bound, Shewchuk expansions near 0: the new moduleexactwithExp,orient2d,Meet,div_round); every corner rounded once to the nearest f64; faces triangulated on the exact geometry alone; planes withinWELD_RATIO(1e-9 of the extent) are one, also between the operands. Bevel:geom::bevelandSolid::bevelchamfer or round edges and corners of a convex solid (segments per quarter turn, corner patches where three faces meet, normals tangent where an arc meets a face, edges along one axis only).Report::problem_at: where the first problem of a mesh lies. docs/GEOM.mdtests: modeltool (G7g part 2): the script's Boolean operations
geom.union,geom.difference,geom.intersection(a result keeps its convex cells and goes into the next one) andm.bevel; the observation modemodeltool --watch FILE, a window with a gpu_view that builds the model again when the script or a module is saved (the pictures' views and a free one, errors above the view);import()only from the script's folder and below; findings about the surface say where they lie first and in which part; the example turm.jfs; the groups csg, bevel, watch and headless window scripts; the checksum folds Boolean operations and bevels now (0fae175a31a0f15e, the same on Windows, Linux, macOS and in Node). The evaluation run: five reference objects built from descriptions with the pictures as the only view (docs/GEOM.md, Der Bewertungslauf)game: (G7b part 2) Assets:
game::assets--Assets<T>loads files through the VFS and decodes them in the background (Loading::Backgroundon plat's blocking pool,Loading::Frames { budget_us }within a budget per update: the browser without threads, deterministic tests), behindHandle<T>with a state (Loading,Ready,Failed), counted references and unloading (update() -> Vec<Change>,set_linger,reload,insert,wait_idle); kinds are types (Asset::decode,Bytes). Spatial audio:game::audio--SpatialAudioover plat::audio's mixer with a listener (the camera'sView),Emittercomponents and sounds at points (play_at),Attenuation(linear, OpenAL's inverse distance clamped) and an equal-power pan;Mixer:Speakersor plat'sMixTest. docs/GAMECORE.mdgame_render3d: (G7b part 2) glTF models and images as lib/game assets:
Model(lib/gltf) andImage(PNG, JPEG);ModelsandTexturesput what became ready on a renderer and take off what was unloaded (Renderer::remove_mesh,remove_material,remove_texture); the componentModelRefandBridge::sync_models: an entity gets an instance per part of its model once the model is up, at its pose, only changes written. docs/GAMECORE.mdplat: (G7b)
audio::Voice::set_gains(left, right)andplay_gains(&Sound, left, right): the gains of the left and the right channel of a voice of the shared mixer (lib/game's spatial audio pans with them; a far sound starts quiet);set_volumesets both as before.MixTest(hidden, for tests): the same mixer without a device, buffer by bufferTests: (G7b part 2) gametest: the groups
assets(Assets step by step and on threads, glTF and PNG kinds, models on the GPU against a scene built from the matrices) andaudio(attenuation and pan against closed forms, sample for sample through plat's mixer without a device); gamedemo: a HUD over the view, the beacon model, a hum, and the window path measured (--bench view,--bench own, tests/bench_web.mjs for the browser)diagram_io: Text fields in the stencil build tool (JD15): a master's [Field] section (Value, Format, Type ...; the tool's own key
Unitgives Value the unit the field shows) and{fld N}marks in its text; a mark without its row is a build error.diagram_core::field::marked/marksread such a text, andinstance::placegives a dropped instance the text with its fieldsJFDiagrammer: (JD15) Dimensions with a text field: Bemaßung horizontal and vertikal in the rack stencil (SH-146, the horizontal or vertical distance of their ends, in paper size on a 1:20 page) and Auto-Bemaßung in Beschriftungen (SH-272, its own length; the text stays upright on lines from right to left)
diagram_io: Reading Visio's XML formats of 2003-2010 (stage JD16 of apps/JFDiagrammer/PLAN.md):
vdx::read(bytes, kind, &Limits)takes .vdx (drawing), .vsx (stencil) and .vtx (template), DatadiagramML after Microsoft's public schema reference, into the samediagram_core::Documentthe VSDX reader fills, so thatvsdx::writesaves it as .vsdx, .vssx or .vstx: cells with formula, value, unit and error (nothing computed), single-row sections flattened, Char/Para/Prop/Act/SmartTagDef as Character/Paragraph/Property/Actions/ActionTag rows (named by NameU, Name or Row_<ID>), Geom as Geometry sections, FaceName IDs of the font cells as font names, base64 pictures as parts (PNG, JPEG, GIF, TIFF, BMP, EMF, WMF; a bitmap without file header gets one), masters with icons, pages, connects, DocumentProperties as docProps, Windows as windows.xml, EventList and HeaderFooter, VBProjectData as vbaProject.bin (a .vsdm, never run); tab stops, solution XML, data connections and other namespaces left out (Warning::LeftOut). Bounded like a VSDX file byvsdx::Limits(the file's size byzip.part_bytes), no recursion;vdx::kind_of,vdx::sniffdiagram_io: Document properties and the window state (stage JD16, DF-09, DF-10):
props::read(&doc)/props::write(&mut doc, &Props)read and write docProps core.xml, app.xml and custom.xml (title, subject, author, keywords, comments, category, language, dates, template, company, manager, hyperlink base, custom properties; a part is only touched when one of its entries changed, app.xml keeps everything else);windows::drawing_window/set_drawing_windowthe drawing window of windows.xml (page, zoom, centre, rulers, grid, guides, page breaks; the other windows stay as written);vsdx::remove_macrostakes a macro project out (for saving as .vsdx after the user's yes), and the writer hangs a vbaProject part without relationship on the main partTests: diagramiotest
--only vdxand--write-vdx DIR: Visio's XML formats of 2003-2010 with self-written files (a drawing with master, groups, glue, fields, a PNG, a background page, properties and windows; a stencil; a bitmap without file header) read into the model and written as .vsdx/.vssx/.vsdm with the same content, hostile files and every limit, macro projects of .vsdm/.vssm/.vstm and a .vdx passed through byte for byte, document properties and the drawing window; JFDiagrammer tests/xml_formats.uis (a .vdx opens with its zoom, Datei > Info shows and edits the properties, Speichern writes a .vsdx), tests/xml_stencil.uis (a .vsx in the Shapes panel), tests/macros.uis (a .vsdm saved as .vsdx asks first; with or without its macros)ui:
ui.tooltips_set(on)/ui.tooltips_on(): every tooltip of the app off and on again, for an app's option "no ScreenTips" (JFDiagrammer's QuickInfos › Keine QuickInfos)JFDiagrammer: (JD15) Small P1 gaps of Datei and the menus: Speichern-Rückfrage before Schließen (Strg+W, Strg+F4), Neu › Erstellen, Öffnen and the window's close, the window without a drawing shows no stale page tabs or status bar (UI-12, KB-01); a file that cannot be opened says so from the command line too and at once from Öffnen (DF-15); Öffnen schreibgeschützt (DM-09) and als Kopie (UI-06), Neu aus vorhandener Zeichnung and the search over the templates (UI-05), a double click on a catalogue tile creates the drawing (UI-04); Speichern unter with the folders used last and the file types, reached from Exportieren › Dateityp ändern (UI-08, UI-11); the options Standardspeicherort für Zeichnungen (UI-15), Keine QuickInfos (UI-13), Anzahl der Rückgängig-Schritte (UI-18) and Eingabetaste beendet die Textbearbeitung (TX-01, KB-10) act; the region gives the units of the drawing at start and of Datei › Neu (LG-07); TopPage read and written, new rectangles and ellipses with the document's default styles (DM-04); the dialog Shape-Name (SP-01), Bahn davor / danach einfügen (ST-05) and the Shape-Daten pane's menu (AB-03); scripts file_ask_save, file_broken, file_open_modes, file_templates, file_save_as, file_options, file_region_us, context_jd15
ui: (JD15)
ui.shape_edit:SeState::partial(the marquee and the lasso also take the shapes they only touch),SeState::snapandsnap_guides(moves snap to guides and to the dynamic grid at all, to guides; for a page that inhibits snapping and the targets of a snap dialog),SPF_OUTWARD(a connection point that points outward only: shown, no target for ends),SeEv::MoveCopy(a drag of the selection that starts with Ctrl + Shift moves a copy of it, live like Move),SeState::right_taken()(the last right release was the magnifier's or a pan's: the app opens no context menu)JFDiagrammer: (JD15) The canvas: Ansicht › Führungslinien hides the guides (not drawn, no snapping, RA-02); Nach Typ auswählen selects guides (RS-31); the dialog Ausrichten und Kleben from the launcher of Visuelle Unterstützung and Alt+F9 instead of a silent toggle (RA-07, DM-03 in part: Ausrichten, Kleben, Dynamisches Gitter, Raster, Führungslinien, Verbindungspunkte anzeigen); Verbindungspunkte shows the points of every shape (RA-06); the status bar shows length and angle of a 1-D shape (SB-02) and its zoom slider has 100 % in the middle (SB-04); each page keeps its view (ZF-08); Ctrl+Shift drag copies the selection along one axis (KB-09), Ctrl+Shift right drag pans (KB-04), Tab without a selection takes the first shape (KB-06); Ctrl swaps static and dynamic glue (CN-03); Type 1 connection points are no glue target, a Prompt is the point's QuickInfo (SS-29); the page cell InhibitSnap (SS-39); Optionen › Erweitert › Teilweise umschlossene Shapes auswählen (ZF-06); the frame edges in Verschieben und Zoomen zoom (AB-06)
diagram_core: (JD15, MS-10) Visio's range of eight:
instance::placeadjusts an instance whose master's drawing scale (PageScale / DrawingScale of its page sheet) is more than eight times larger or smaller than the page's, so it keeps its size on the paper: its constant lengths (Shape and Text Transform, User and Prop values with a unit of length, X and Y of Geometry, Connection and Control rows, a 1-D shape's ends around the pin) timesinstance::scale_factor; the formulas built on them followdiagram_core: (JD15, FX-06) RAND computes: a number 0 <= x < 1 from the engine's generator (SplitMix64), anew each time its cell is computed;
Engine::with_seedandEngine::seedstart it from a seed (every engine starts from the same one)ui: (JD15)
StencilState::no_search: the Shapes window shows no search box (Visio's option to hide the shape search); the query stays until the app clears itJFDiagrammer: (JD15) Small P1 gaps closed: Entwurf › Größe offers envelopes and the US government sizes (RW-02), Seite einrichten more predefined sizes -- ISO A0/A6, ISO and JIS B, envelopes, ANSI A-E, ARCH A-E (PG-04) --, the scale groups Architektur and Bauingenieurwesen (PG-06, PR-07), the units km, yd, mi, Pica, Cicero, Didot also in Größe und Position (PG-07), the page's own unit (PR-08), Gitternetz drucken (PR-05) and the placement style, direction, depth and flipping of Layout und Routing (PG-11); the dialog Text gets its register Zeichen (RS-09), Linie › Pfeile 13 quick choices (RS-21); Shapes verbinden takes the connector master marked in the Shapes panel (CN-16); a shape's Actions rows stand in its context menu and run their formulas (SP-12); the callouts have quick shapes (SH-G04); the shape search reads the QuickInfos, may take one word as enough and can be hidden (SL-04)
diagram_io, diagram_core: (JFDiagrammer JD26) Group masters of parts in the stencil build tool (
[Part NAME]with its own texts in five languages, styles and sections;Sheet.1!,Sheet.2!... name the master shape and its parts), the parts' texts in the language of a drop or a new drawing (instance::localize_parts), and template starters that glue the ends of 1-D masters to connection points (BeginOn/EndOn)Tests: (JD26) diagramiotest group
stencils/business: the general and business-graphics stencils of JFDiagrammer in both measures, every master dropped, the parts' texts in three languages, counts from shape data and control points (SETATREF), values from shape data, the fishbone's glue following a move;probeblatt-jd26.pngand the stencil overviews also in the design Kontrast;templates/starter/glueJFDiagrammer: (JD17) Binary stencils of Visio 2003-2010 (.vss, DF-30) open in the Shapes panel like a .vsx: on the command line, through Weitere Shapes › Schablone öffnen (a filter row of its own) and Datei › Öffnen, and Meine Shapes lists them; diagram_io::vss converts them, import only (NO-12): the notice under the ribbon (Hinweise zur Schablone) says so and counts the reader's notes, nothing is ever written back as .vss (a save writes .vssx), and Visio 2000/2002 (version 6) is named in words when it cannot be read; a .vsx or .vss from Datei › Öffnen no longer asks about the drawing's changes (it goes into the panel); tests/binary_stencil.uis (with diagramiotest's jd17-schablone.vss)
archive: (JD17) archive::cfb reads compound files ([MS-CFB], Microsoft's open specification; the container of Office's binary formats): File::read(bytes, cfb::Limits) checks header, allocation tables and directory (sector numbers inside the file, every chain without loops, the sibling tree without cycles and each entry once, names as the specification allows, file, stream and directory bounded by Limits) and gives entries, children, find(&[path]) and stream(i); version 3 and 4, read only
diagram_io: (JD17, DF-30) vss::read(bytes, DocKind::Stencil, &Limits) imports the binary formats of Visio 2003-2010 (version 11; .vss, also .vsd/.vst as far as their masters and styles go) into the model, import only: the compound file (archive::cfb), the VisioDocument stream's tree of streams with LZSS, chunks, and from them colours, fonts, styles (with Visio's four unnamed ones), the document sheet and masters with BaseID, prompt, page sheet and shapes: cells with formula and value (XForm, 1-D, text transform, line, fill, text block, character, paragraph, protection, misc, group, events, help, layer membership, geometry rows, connection points, controls, user cells, shape data, actions, fields, scratch), formulas turned back into Visio's text (operators, IF/AND/OR, about 50 functions, references by name), texts with their runs and fields; the result goes through the XML of 2003-2010 into vdx::read, so both formats share every rule of the model; vss::to_vdx gives that XML, vss::sniff and vss::kind_of. Bounded like VSDX (file, streams, all streams, nesting, each stream used once, chunks, the XML); vsdx::Error::Binary for a broken binary structure, version 6 named as such; what is not converted is a Warning::LeftOut
sheet_io: The crate jflib-sheet-io (lib/sheet_io, in the facade as jflib::sheet_io; JFDiagrammer JD18, FEATURES.md IM-05 / IM-10, decision F6): XLSX and CSV import and export as typed tables.
xlsx::Workbookreads Office Open XML workbooks (.xlsx, .xlsm with the macros never read, .xltx, .xltm; transitional and strict) through the package's and the workbook's relationships: sheets with state and kind, defined names global and sheet-local with their area, tables (ListObjects) as names, the 1900 and 1904 date systems;sheetgives a sparseGridof the stored values (cached formula results, formulas never evaluated; shared strings with rich runs,_xHHHH_, inline strings, booleans, errors, ISO dates, dates by number format);table/sheet_tableaTablewith column names.csv::readreads RFC 4180 and what Excel writes, detects the encoding (BOM, UTF-16, UTF-8, else Windows-1252) and the delimiter;csv::to_tabletypes numbers, booleans and dates.Valueholds dates as OLE Automation dates. Files are untrusted input:xlsx::Limits(ZIP limits with the compression ratio, rows, columns, cells, shared strings and their bytes, text per sheet, XML nesting) andcsv::CsvLimits; no DTD, no entity expansion, no allocation sized by what a file advertises, sparse cells, no recursion. Writing (JD19, EX-12 / EX-16):xlsx::write(&BookOut, &WriteOptions)-- shared strings with Excel's_xHHHH_escapes, dates with Excel's own number formats, a bold header in a frozen pane, column widths, a filter, Excel's limits (rows, columns, 32 767 characters, sheet names) asxlsx::WriteError, deterministic bytes;csv::write/csv::write_tablewithcsv::WriteOptions-- delimiter, line end, UTF-8 with or without BOM, UTF-16, Windows-1252 (refusing a character it lacks), decimal comma, a guard against formula injection (off by default)Tests: codectest
--sheet(tests/sheet.uis): lib/sheet_io's XLSX and CSV readers against workbooks and texts built in the test -- a ZIP bomb by ratio, a sheet of the full size with two cells, rows, columns, cells, shared strings and their bytes past the limits, one long shared string in 20000 cells, 100000 nested elements, a DOCTYPE with entities, cyclic and swapped relationships, 64 MiB of delimiters, a quote that never closes; controls of 400000 cells and 200000 CSV records; the writers: 400000 cells and 200000 records written and read back equal, a value past Excel's last row, the write limits and a character Windows-1252 lacks refused quicklydiagram_core:
data: external data in a document (JD18, DA-04, DA-05):DataSetswith connections and recordsets (columns, key, cached rows, rows bound to shapes, refresh settings and conflicts as Visio keeps them),Recordset::from_table, the transactionsadd_recordset,remove_recordset,set_recordset,set_connection,link,unlink,auto_link,refresh(rows matched by key or position; conflicts for rows gone, duplicate keys and values the user changed),user_edited,resolve_take_data,resolve_unlink; the connection strings Visio writes for Excel workbooks and text files (excel_connection,text_connection,source_of,ExcelTable);Document::data,data_link,data_links,data_ids,data_shape,recordset;Transaction::set_data; new columns get Visio's shape data row names (_VisDM_and the column's letters and digits,data::ROW_PREFIX),Column::langkeeps LangID as Visio writes it (de-DE) (Visio check with Visio 16)diagram_io:
data: Visio's external data parts (JD18, DF-12):connections.xml,recordsets.xmland each recordset's ADO data part are read intoDocument::dataand written back with Visio's names, content types and relationships (parts that are not understood stay bytes, as before);data::adogives a recordset's rows as an ADO persisted recordset, with Visio's row ID column_Visio_RowID_first; checked against Visio 16: its own data parts (_Visio_RowID_, LangIDde-DE, names withoutrs:name) read, and a drawing Visio saved without loading its rows (every key value the first row's) keeps its row IDs by their order and gets its key values back; without the row ID column Visio 16 never returns fromGetDataRowIDsand "Daten aktualisieren" fails with "???" (hand check 2026-11-29), which is why it is always writtendiagram_io:
textdraw: a connected drawing from a text file (stage JD18, IM-08):parse(text, &Options, &Limits)reads Shape and Link records (comma, tab or semicolon,sep=, quoted fields over several lines, comment lines and field headings, units) into aPlanwith the problems of each line,layoutarranges shapes without a position in layers,applybuilds instances of the chosen masters (else rectangles) with text, size and shape data and glues the links as dynamic connectors; bounded as untrusted input, no recursiondiagram_core: (JD19)
datagraphic: data graphics as Visio stores them (DA-07, ST-08). The model isDataGraphicandItem(Kindtext callout, data bar, icon set, colour by value, heading; a{Label}field expression or a formula of such fields; the callout master; its ownPosor the graphic's default, with Visio's 0..6 positions;Optoptions asProp.msvCalloutProp*; iconRules;Shades by value or range).readtakes a data graphic master (User.visUSEType = 1, Visio's or JFDiagrammer's);createwrites a hidden master with the layer "Data Graphic", the group withvisDGDefaultPosand one subshape per item withmsvCalloutType,visDGField0,visDGItemID,visDGUseMasterandvisDGCalloutField;updatewrites it anew on every shape that shows it;rename,duplicate,delete.applymakes the shape a group with one callout instance per item as a subshape on that layer:Prop.msvCalloutFieldon the shape's row, positions fromControls.msvDGPositionandThePage!User.msvDGCalloutGap, items stacked,visDGDisplayFormat = USE("{UniqueID}"), colour by value throughvisDGCBVFillwith the old colours invisDGOldColors;removerestores everything. Alsoapplied,shapes_with,callouts,fields,resolve_field,icon_formula,shade_formula.datagraphic::legend::insertbuilds the legend as an outer list of containers holding invisible lists of entries, horizontal or vertical. Where Visio's storage is undocumented (icon rules, colour by value, an item's own position, the legend's mark) the module names its ownJFD_cellsdiagram_core: (JD19)
report: shape reports (DA-09, DA-13, EX-12).ReportDeffollows Visio's VisioReportDefinition: scope, criteria, columns with built-in fields, shape data and user cells, grouping with subtotals, grand summary, duplicates, sort keys, precision and units; what a file has that the model does not know is kept as data.runturns a definition into aTablewith group headings, subtotal rows and the grand total, each cell with its text and a typed value. The table shape:place(a group of cell shapes on its own layer, markedUser.JFD_Report*),report_shape,refreshin place,report_layerdiagram_core: (JD19) Formulas: FORMAT and FORMATEX are computed with field.rs's pictures and the document's
Envwhen the value reads only shape data and user cells without a length, angle or duration; other uses keep their stored value as beforediagram_io: (JD19)
report: shape report definitions as Visio keeps them.parseandto_xmlread and write the VisioReportDefinition XML, the same text as a.vrdfile; reading is bounded and takes no DTD, unknown attributes and elements are kept. The definitions in the document sheet'sUser.visPropRptNrows are transactions (stored,find,add,replace,rename,remove)JFDiagrammer: (JD19) Data graphics and shape reports (DA-07 to DA-09, DA-13, ST-08, RD-04, RD-05, RD-07, RD-10, AB-12, RU-06, AS-05, EX-12, EX-16): Daten › Datengrafiken as a gallery of rendered presets, Position, Konfigurieren, Legende einfügen, the pane Datengrafikfelder, Erweiterte Datengrafiken with the dialogs Datengrafik bearbeiten and Element bearbeiten; own callout masters (stencils/datagraphics: text, bars, stars, thermometer, gauge, traffic lights, arrows, flags, rating). The register Überprüfen with Shape-Berichte: the dialog Berichte (predefined Inventar, Netzwerkgeräte, Netzwerkausstattung, Computer, Rackgeräte; .vrd files), the wizard Berichtsdefinition, output as a table shape (Bericht aktualisieren in its menu), XLSX, CSV and HTML; Datei › Exportieren › Daten exportieren (shape data as CSV or XLSX)
Tests: (JD19) diagramiotest groups
datagraphicsandreports(data graphics and report definitions written and read back, the way Visio stores them read),--write-dg DIRand--write-report DIRfor the Visio counter-check; JFDiagrammer's scripts data_graphics.uis, data_graphics_edit.uis, reports.uis, reports_output.uis; codectest--sheetchecks the XLSX and CSV writersTests:
tools/ct_check.py(withtools/ct_check/probe.rs): the secret-dependent operations ofcrypto(X25519, Ed25519, P-256, EAP-PWD, the RSA / DH exponentiation, the AEADs, AES-GCM, key wrap, CMAC, Poly1305, HMAC, HKDF, PBKDF2, the hashes, Argon2id, Base64 and hex) and the key files ofnetio(PEM / PKCS #8, OpenSSH) run under ptrace with several secrets at JFLib's release and development levels, opt-level 3 and the size levels, and must take the same branches and jump-table entries for every secret (x86-64 Linux, also from Windows through WSL); a difference is reported with the function and line where the ways part, a deliberate leak of the probe must be seenTests:
tools/net_fuzz.py(withtools/net_fuzz/fuzz.rs): mutation fuzzing of the parsers of untrusted bytes in compress, netio and netpkt (zstd, LZ4, both X.509 and both DNS parsers, the HTTP readers, netio's TLS server and clients, the dissector and the application-layer parsers), all targets at once for --seconds each, seeded with the system's CA bundle and the reference zstd's frames; a panic, a hang or a slow call fails the run, and a deliberate panic of the probe must be founddocs:
SECURITY.md: how to report a vulnerability privately (GitHub's Report a vulnerability), what a fix brings (patch release, changelog, GitHub and RustSec advisories), the crates in scope, and what has and has not been checked: no external audit, the test suites and tools, the documented limitsnetio:
x509::NameConstraints:permitted_email/excluded_email,permitted_uri/excluded_uri,permitted_dn/excluded_dn,other_forms;x509::Cert:emails(with the subject's emailAddress),uris,dirs,other_namesnetio: TLS server: takes TLS_AES_128_GCM_SHA256 and P-256 (secp256r1) key shares besides ChaCha20-Poly1305 and X25519, as RFC 8446 9.1 requires of every TLS 1.3 implementation; the group is the first of the client's list that the server has (with a HelloRetryRequest for it when the client sent no share), a key share for a group the client does not list or a second share for a group is refused (illegal_parameter), and to a client that sent a legacy session id the server sends the dummy change_cipher_spec of middlebox compatibility (RFC 8446 D.4). Its certificate and signatures stay Ed25519
Tests:
tools/tlsfuzzer_check.py: netio's TLS 1.3 server (coretest --tls-serve) against tlsfuzzer's TLS 1.3 scripts at pinned commits of tlsfuzzer and tlslite-ng (fetched into build/tlsfuzzer, nothing installed system-wide), with the expected result of every script and the reason for each one that does not apply;tools/cov_fuzz.py: coverage-guided fuzzing (libFuzzer through cargo-fuzz, nightly) of the targets of net_fuzz, whose targets and seeds are now intools/net_fuzz/targets.rs, shared by bothx509: The crate
jflib-x509(jflib::x509): JFLib's one X.509 and DER code, netio's, which netio re-exports asnetio::x509andnetio::derand netpkt asnetpkt::x509; it has its ownIpAddrand what netpkt's certificates offered (subject and issuer names,fingerprint_bytes,fingerprint_text,self_signed,ed25519_key,name_list,bytes)netio: TLS:
Trust::Custom(Verifier), a check of the peer's certificates the program brings (a PKI of its own, SPKI pinning, Certificate Transparency, the platform's verifier); a client offers with it what it offers withTrust::SystemTests:
tools/tlsanvil_check.py: netio's TLS client (coretest --tls-anvil-client) against TLS-Anvil's RFC tests, with Temurin 21, Maven and TLS-Anvil pinned and checked in build/tlsanvil: of 232 client tests 192 succeed, 38 need features the client does not offer, 2 fail through defects of TLS-Anvil (KNOWN in the script); the 4 defects of netio it found are fixed (extensions the client did not offer, the answer to a TLS 1.2 close_notify, empty handshake records, a TLS 1.3 ServerHello's legacy_version), the test client closes with close_notify.--serveris there for netio's server, whose preparation fails for now (TLS-Scanner offers no Ed25519); build/tlsanvil/run/client.log tells how each connection of the client endedTests:
coretest --tls-echo PORT(netio's TLS server sending each line back in one record) for tlsfuzzer's test-tls13-lengths, whichtools/tlsfuzzer_check.pynow runs against it (1002 lengths, before every probe waited for an answer the HTTP server does not give); coretest's tls suite feeds netio's server hand-made records around a real ClientHellocompress: DEFLATE, zlib and gzip in both directions, the Brotli decoder, CRC-32 and Adler-32, moved here from img_core and img_jxl:
compress::deflate,compress::zlibandcompress::gzipwithcompress(data, level)anddecompress(data, max_out)(strict: data after the stream is refused;gzip::decompressreads every member, as gunzip does), reusable states (deflate::DeflateState,deflate::InflateState) and*_intovariants in the caller's buffer that report the input a stream took,deflate::Error,deflate::bound;compress::brotli::{decompress, decompress_prefix, Error}(RFC 7932, no encoder);compress::{crc32, adler32}. The encoder gives the same bytes as before at every level, the decoder the same errors; the output buffer ofdecompressgrows with the data, up to max_out. compress still depends on nothing, so the build tools with std use it too.Tests: coretest group
compress: CRC-32 and Adler-32 vectors (Adler-32 against the byte-by-byte definition), DEFLATE, zlib and gzip round trips at levels 0, 1, 6 and 9 with reusable states, streams of Python's zlib,gzip -nand libbrotlienc, two gzip members, trailing, truncated and mutated input, max_out and a zlib bomb.formats: New crate
formats(jflib-formats, shown asjflib::formats): data formats as text without a dependency, for programs that need JSON or XML without the agent interface or the platform layer.formats::json(strict bounded JSON with exact numbers) andformats::jmap(typed records,record!,wire_enum!) came from agent_core,formats::xml(the bounded, namespace-aware XML subset) andformats::encoding(UTF-8 and UTF-16) from base; the code moved unchanged, with the same limits, errors and output.Tests: agenttest runs in the suite (tests/checks.uis): its self-checks of agent_core and of the JSON under it (formats::json: every limit, exact numbers, duplicate names, surrogates, malformed tokens, a byte corpus round trip), schemas, dispatch, tasks, framing and JSON-RPC / MCP; before, only by hand
Tests: coretest group jmap: agent_core::{json, jmap} and base::{xml, encoding} name the types of formats (a value of one path is one of the other; a re-export replaced by a copy would not compile), and record! of agent_core implements formats::jmap::Json
formats: Single-byte character sets and the WHATWG Encoding Standard's labels in formats::encoding (ROADMAP section 13, U4): Charset with every single-byte encoding of the standard (windows-874 and 1250 to 1258, ISO-8859-2 to -16 and -8-I, KOI8-R, KOI8-U, macintosh, IBM866, x-mac-cyrillic, x-user-defined), the DOS code pages of old files (IBM437, 737, 775, 850, 852, 855, 857, 858, 860 to 865, 869) and an exact ISO-8859-1; Charset::from_label, from_code_page, name, code_page, whatwg, decode (U+FFFD for unassigned bytes), decode_char, encode (Error::Unmappable), encode_char; label(name) -> Label with all 228 labels of the standard (Label::Replacement); decode_label, the standard's decode (a byte-order mark wins over the label, malformed input becomes U+FFFD). The tables are the standard's indexes; the generator checks them against its data
Tests: coretest group charsets: every character set (ASCII below 0x80, unassigned bytes as U+FFFD, encode undoes decode, code pages, names and labels), vectors whose expected values come from Python's codecs and the WHATWG index, the labels, decode_label (byte-order marks over labels, malformed UTF-8 and UTF-16, the replacement encoding, limits); spelltest SET microsoft-cp1251, latin9, KOI8-U and x-mac-cyrillic; render2dtest DOS850, DOS737, KOI8_R and an unknown page
formats: One XML reader in two kinds in formats::xml (ROADMAP section 13, U5): Reader, the strict pull reader (well-formed XML 1.0 with namespaces: Event Start / End / Text / CData / Comment / Pi / Eof, Start and Attr with their namespace URIs, ReadError with the byte offset, skip for the raw text of an element, the declaration as XML 1.0 defines it, a DOCTYPE refused; bounded nesting, attributes and namespace bindings, no recursion), and Lenient, the forgiving one for files from editors (Token Start / End / Text / CData / Eof, decode for references, a DOCTYPE's internal entities within a budget of bytes, broken markup read as far as it goes, truncated). xml::parse builds its tree on Reader now, without recursion; Error has Depth and Attributes for the Reader
Tests: coretest group xml: formats::xml's Reader (events, namespaces, errors and their offsets, the declaration, depth and attribute limits, 5000 levels without recursion, skip), Lenient (attributes, references, a DOCTYPE's entities, a billion laughs against the budget, broken markup) and the tree, and 30 000 random and mutated documents through all three (no panic, offsets within the text, the lenient reader always ends); svgtest --render FILE --to OUT.png draws one SVG without a window (for comparing builds)
Tests: plattest --test wirefuzz (tests/wirefuzz.uis): the decoders of other programs' data (CF_UNICODETEXT, DROPFILES, text/uri-list, DIB and BMP, CF_HTML, the clipboard image pack; on Linux D-Bus messages and Wayland events) with valid data and 100 000 random and mutated inputs of a fixed seed: no panic, lengths within the input, text as UTF-8, images as BMP files; docs/PLAT_INPUTS.md lists every way other programs' data reaches plat, its bounds, its unsafe and its tests
Tests: nettest: the seal over UDP in the simulation (nothing of a payload readable on the wire, every byte of a genuine packet changed once, forged DATA and DISCONNECT with the connection's token, replays, a RESPONSE key without a shared secret, the static key right, wrong and missing, a server in the middle with and without the pinned key), the static key on loopback, the fuzz corpus with real handshakes and 50 000 sealed packets (every changed byte refused); --bench measures the seal and the handshake's X25519
installer: The setup speaks the user's language: German, English, French, Spanish, Italian, Dutch, Polish, Arabic and Hebrew (lib/installer/setup.tsv, an i18n::Catalog), otherwise English; --lang CODE chooses. The styles' names and descriptions follow when the manifest has them (label_<style>.<lang>, desc_<style>.<lang>, from styles/S/INFO). Arabic and Hebrew mirror the window, but their text is drawn without bidi reordering, backwards, as in all of the library's controls (ROADMAP section 13, U7)
installer: Installing for all users: the options page asks who the app is for. All users get C:\Program Files<app>, the common desktop and Start menu and HKLM for the uninstall entry, the file types and a browser's registration (install.ini scope=machine); a setup without administrator rights starts itself again with them (the UAC prompt, quiet, waited for) and carries on, a refused prompt leads back to the options. Its uninstall.exe does the same. When the app is installed in Program Files and not for the user, the setup preselects all users
installer: Installing and removing without questions: --quiet (no window) with --all-users / --current-user, --dir, --style, --no-desktop, --no-start-menu, --no-uninstall-entry, --launch and --log FILE; exit codes 0 done, 1 failed, 2 a wrong command line (an unknown option or style), 740 for all users without administrator rights. The uninstall entry carries uninstall.exe --uninstall --quiet as its QuietUninstallString. Without --quiet the options preset the pages
plat: plat::inst for a setup for all users: Root (User = HKCU, Machine = HKLM) and reg_create_in, reg_delete_in, reg_delete_tree_in (the same names allowed as reg_delete_tree), reg_delete_value_in; known_folder 2, 3 and 4: the desktop and the Start menu's programs of all users, C:\Program Files; run_cmdline_wait (start and wait, the exit code). run_cmdline takes the whole command line (CreateProcessW's 32767 characters, it was cut at 520) and starts the program outside a job of the setup when the job lets it go
cargo_jflib: The setup manifest carries the styles' names and descriptions in other languages: styles/S/INFO's further lines name.<lang>= and desc.<lang>= become label_<style>.<lang>= and desc_<style>.<lang>= (cargo jflib package, tools/package.py)
styles: INFO names and describes the style in English, French, Spanish, Italian, Dutch, Polish, Arabic and Hebrew too (name.<lang>= / desc.<lang>= lines), for the setup's pages; so do the INFO files of BackupCraft's and jfOffice's styles
Tests: tools/setup_check.py: setups built from the stub and a payload of its own, run in test mode on Windows or under Wine: the pages in all nine languages, a payload of one style, the quiet mode with its exit codes and log, all users with and without administrator rights (the setup started again, a refused UAC prompt, the preselection), the uninstallers; --shots DIR writes the pages of every language. tools/sign_check.py, pkg_check.py and buildManager's packages test click "Weiter" only on a setup of several styles
Tests: plattest --test dirs checks plat::inst::known_folder 1 to 4 on Windows (the Start menu, the common desktop and Start menu, Program Files as the environment's ProgramFiles, none for 5); --test reg runs its cycle below HKLM too when it has administrator rights (reg_*_in(Root::Machine))
datastore: Secondary indexes (lib/datastore/index.rs): Store::add_index(coll, name, Index) builds one from the records and every commit keeps it up to date; Index::field("owner.id") takes the value at a path of members (an array there gives a key for each element), Index::by(|id, value| keys) computes them, .unique() refuses every transaction that would give two records one key before anything is written, and an index over records that already share one (StoreError::Conflict). Key (Bool < Int < Str; Key::of: strings, booleans and integral numbers, exactly), find, find_one, range (any RangeBounds of keys, Order::Asc or Desc, a limit) and count_key read through them, drop_index and index_names manage them; an index that was not added is StoreError::NoIndex. Indexes are not stored: they are added after each open
datastore: Encryption at rest (lib/datastore/seal.rs): Store::open_encrypted(dir, options, &key) opens or creates a store whose snapshots and log frames are sealed with a 32-byte key (XChaCha20-Poly1305; keys derived with BLAKE3, a key id in every snapshot), Journal::open_encrypted seals each line, bound to its journal and month. A wrong key, an encrypted store opened without one and one in the clear opened with one are StoreError::Key, never cut away by Options::repair; a changed frame is Corrupt, a frame in the clear in an encrypted log is refused. Store::rekey(Some(&key) | None) encrypts a store, changes its key or decrypts it (a snapshot under the new key, a new log, the files under the old key removed; a crash in between leaves what the new key opens), Journal::rekey(dir, from, to) rewrites the journals and is repeated after an interruption; Store::encrypted and Journal::encrypted say which they are
Tests: coretest --only datastore: indexes (fields, arrays, keys of a function, unique ones refusing a second record, two in one transaction and an index over shared keys, a swap of keys in one transaction, ranges both ways with a limit, bounds that would make BTreeMap::range panic, Key::of, none after an open) and a random model of 3000 changes against filter; encryption (nothing of the records in the files, another key and the clear refused also with repair, a torn sealed frame at every byte, a changed frame, a frame in the clear, a snapshot's seq), rekey from the clear to a key, to another and back, sealed journals with planted and moved lines and Journal::rekey; compact twice in a row
cas: The storage is a trait: cas::Store (lib/cas/store.rs) keeps a repository's objects by kind (store::Kind: Config, Pack, Index, Snapshot) and name, the way S3, SFTP or WebDAV keep files -- location, init (a new repository; NotEmpty), lock (one holder; InUse, a StoreLock guard), get, get_range (with a default that reads the whole object), put, delete, list with sizes; implemented for Box and Arc of a store. Its rules: a put is atomic and durable, a delete stays done, reads see every put before them, the lock keeps out holders of other processes and machines. cas::Folder is the store in a folder (the layout as before, also on vfs mounts such as mem://); Repo::create_in, Repo::open_in, Repo::store and peek_id_in take any store, Repo::create, Repo::open and peek_id a folder as before. store::name_ok says which names a store is asked for
Tests: coretest --only cas runs the whole life of a repository twice, in a cas::Folder and in a store of the test (a cas::Store written outside the crate, the tampering through the trait in both), then that store's faults: a failed write of an index (the pack without one, repaired from two ranges of its end) and of a snapshot, short ranges, listings with names no repository writes and absurd sizes, a listing of the snapshots that fails (gc and check stop, nothing is taken); leftovers of a crash in a folder are no objects
Tests: tools/net_fuzz.py and tools/cov_fuzz.py fuzz the parsers that came to compress, formats, netchan and plat: deflate, zlib, gzip and brotli (DEFLATE also into a small buffer, and its InflateState, after any input, decodes a known stream as a fresh one does; Brotli from the reference encoder's streams of coretest), json (default and tight limits), xml (the tree, the strict Reader and the Lenient tokenizer with its entity decoding, which every XML reader of the library is one of), charsets, netchan_packet, netchan_server and netchan_client (fed datagrams; seeds: a real UDP handshake with fixed secrets, its sealed packets included), netchan_open (ChaCha20-Poly1305 and the packet number), plat_clipboard, plat_dbus and plat_wayland (plat::fuzz, docs/PLAT_INPUTS.md); no finding in 200 million mutated and 3 minutes of coverage-guided runs each
Tests: tools/ct_check.py runs on ARM64 as well (the program counter through PTRACE_GETREGSET, every instruction followed since ptrace has no branch trap there, valgrind's client requests in ARM64's form), and .github/workflows/ct-check.yml runs it on x86-64 (rust-version and stable) and on an ARM64 runner when crypto, x509, netio's key files or the tool change, on Mondays and by hand
Tests: tools/ct_check.py --wasm: the probe for wasm32-unknown-unknown in WABT's wasm-interp with --trace; between two marks the executed wasm instructions and the addresses of every load, store, memory.copy and memory.fill must be the same for every secret (branches and table lookups at once, for the wasm the compiler made; a browser's JIT is not seen). All 37 operations without the key files, at all five levels: no difference (Argon2id's data-dependent addressing after 70 % of its instructions, as on x86-64); the workflow ct-check.yml runs it too
Tests: spelltest --test hostile (tests/hostile.uis, in the suite): crafted dictionaries built in memory -- 20 000 empty suffixes that may follow each other, cross products, 3000 prefixes and 20 000 suffixes on every root, 100 000 ICONV and REP entries, a TRY of 60 000 characters, a KEY row of 200 000 letters, MAP groups, 10 000 COMPOUNDRULEs, 100 000 CHECKCOMPOUNDPATTERNs, CHECKCOMPOUNDREP with 50 000 REP rules, 10 000 BREAK patterns, words whose hashes share one slot -- each load, check and suggestion timed against a limit, a word of the list still taken
netchan: A reliable, ordered channel beside the packets, over UDP and WebSocket (lib/netchan/src/reliable.rs, docs/TRANSPORT.md "Zuverlässige Nachrichten"): Client::send_reliable(message) and Server::send_reliable(id, message) (and the endpoint cores) take messages of any size up to max_message (1 MiB); the other side gets each one exactly once, whole and in order, as ClientEvent::Reliable(data) / ServerEvent::Reliable { id, data }. Over UDP a message goes in chunks of a packet in the new packet kind RELIABLE, which shares the sequence numbers, acks and seal of DATA; a chunk goes again when its packet is Lost or no ack came within a timeout like QUIC's probe timeout (round trip, four times its variation, the peer's ack delay; doubled per retry, at most 1 s), and the receiver acknowledges RELIABLE packets after two or within 10 ms. The chunks go out at reliable_bytes_per_s (128 KiB/s, below the server's default limit per client), at most 256 in flight; send_reliable says Size over max_message and Backlog past max_reliable_queued (4 MiB); a peer whose chunks break the protocol (malformed, a message over max_message, more than 512 KiB before their turn) is disconnected (Reason::Protocol). conn::Conn: send_reliable, write_reliable, on_reliable, reliable_pending, with_reliable(reliable::Limits); Stats::resent and reliable_queued. packet::Packet (with the variant Reliable, kind 8), conn::Event, endpoint::ClientEvent and ServerEvent are #[non_exhaustive]; ServerConfig and ClientConfig have the fields max_message, max_reliable_queued and reliable_bytes_per_s. DATA is unchanged byte for byte: gametest --netsum stays 4118995e45c0c067
Tests: nettest --test reliable (45 checks): netchan's reliable channel on the simulated network against a ledger of its own -- 600 messages each way of 1 byte to 200 KB under clear, rough (three seeds), storm and duplicate weather beside unreliable traffic, each exactly once, whole and in order, none twice in the ten seconds after, resends only where packets were lost, nothing left queued; 1 MiB within the server's default limits in 6.05 s without a resend or a dropped packet; Size, Backlog, NotConnected; over a stream in order and never resent; hostile peers on a stream (a chunk cut short, an unknown flag, an empty chunk, a message over max_message, chunks before their turn over 512 KiB: disconnected; a chunk beyond the window: dropped); 70 000 messages past the wrap of the chunk numbers. The udp and wschan groups send 12 reliable messages up to 100 KB there and back over real sockets
compress: Streams: every format in pieces, with bounded memory (compress::stream). Decode::decode(input, out) and Encode::encode(input, out, flush) take input as it comes and write into the caller's buffer; Step { read, written, status } says whether a call wants more input (Status::Input), more room (Output) or is at the end (End, with read stopping at the stream's end). deflate::, zlib:: and gzip::Decoder and Encoder, zstd::Decoder and Encoder, lz4::FrameDecoder and FrameEncoder, brotli::Decoder; gzip, zstd and LZ4 read several members or frames in a row as their tools do (Decoder::single() stops after the first). The memory is the format's window: 32 KiB for DEFLATE, the frame's for zstd (refused above 128 MiB by default, with_window_max) and Brotli, 64 KiB and one block for LZ4. Flush::Sync makes everything so far decodable (an empty stored block for DEFLATE, a whole block for zstd and LZ4). Up to 256 KiB the DEFLATE, zlib and gzip encoders write the same bytes as compress(), the zstd and LZ4 encoders for any size once given it (with_size; Error::Size when the input differs). stream::decode_all(dec, read, write, limit) and encode_all(enc, read, write) pump between a reader and a writer; Xxh32 and Xxh64 hash data in pieces
Tests: coretest --only stream (in the suite): every stream decoder and encoder in pieces of 1 byte to the whole input with output buffers from 1 byte, against the one-shot functions: the same output, the bytes of compress() where promised, every Flush::Sync point decodable, damaged and truncated streams failing exactly where the one-shot decoders fail, bytes after a stream not taken, the pumps' limits, a 64 MiB bomb of zeros. tools/stream_check.py (coretest --stream FORMAT c|d IN OUT): ours against gzip, Python's zlib (with Z_SYNC_FLUSH points), zstd (levels 1 to 22, --long=27, --fast, -T4, --no-check, from a pipe, two frames) and zstd --format=lz4 both ways, and the Brotli streams of the system's WOFF2 fonts in pieces against the one-shot decoder
compress: Zstandard dictionaries: zstd::Dictionary::train(samples, max_size) learns one as zstd --train does (fastCover; k and d chosen on a quarter of the samples; the Huffman and FSE tables from compressing the samples, every symbol kept usable), Dictionary::parse / to_bytes read and write the zstd tool's format (raw content without its magic, or Dictionary::raw), compress_with_dict / decompress_with_dict and dictionary_id(frame); zstd::Encoder and Decoder take them with with_dictionary (the decoder several, chosen by ID; Error::Dictionary for a frame that names one not given). The zstd tool reads our frames and dictionaries and we read its (zstd -D both ways); 600 JSON records of 225 bytes get 3.15 times smaller with a 16 KiB dictionary of ours (the tool's own: 3.22; without one about 1.2)
Tests: coretest --only compress: zstd dictionaries (training, deterministic, parse of to_bytes, 300 records back and at least 2x smaller than without, the stream encoder's bytes, the stream decoder in pieces, several blocks, another or no dictionary, raw content, 400 damaged dictionaries, 1000 damaged frames as the one-shot decoder); tools/zstd_check.py: dictionaries trained by zstd --train and by coretest --zstd train, each used by both sides with zstd -D, raw content both ways
compress: A Brotli encoder: brotli::compress(data, level) at levels 0 to 11 (brotli::LEVEL_DEFAULT 5, LEVEL_MAX 11) and brotli::Encoder in pieces (stream::Encode; with_size gives the bytes of compress(), with_window a smaller window, Flush::Sync makes everything so far readable), brotli::bound. Levels 0 to 9 match over hash buckets as libbrotli does, with lazy matching; levels 10 and 11 parse near-optimally (11 in two rounds); the static dictionary with a space before a word, its first letter in upper case, 44 suffixes and up to 9 letters cut; the literals in 64 contexts (UTF-8 or signed) merged into clusters. JFLib's guide (430 KB) takes 158 KB at level 5 (libbrotli at the same level 163 KB, gzip -9 173 KB) and 147 KB at level 11 (libbrotli 145 KB); libbrotli is 1.5 to 3 times as fast at levels 0 to 9, about as fast at 10 and 11. libbrotli and the browsers read the streams
compress: lz4::compress_hc(data, level) and LEVEL_HC_DEFAULT (9): the LZ4 block format with the longest match along a hash chain of 2^(level-1) candidates, as lz4 -9; a few percent smaller than lz4::compress, as fast to decompress
Tests: coretest --only compress: the Brotli encoder at every level on all samples (bound, smaller with the level, stored when incompressible, the static dictionary's words, the same bytes again, levels clamped, an empty input in one byte, the window), lz4::compress_hc at levels 3, 9 and 12; coretest --only stream: brotli::Encoder in pieces (the bytes of compress() with with_size, Flush::Sync points, a Sync without input, with_window, wrong sizes) and the decoder on our streams; coretest --stream FORMAT c1 (the one-shot encoders) and brotli c; tools/brotli_check.py: our streams at levels 0 to 11 and the stream encoder's through libbrotlidec, libbrotlienc's at qualities 0 to 11, windows of 10 to 24 bits and the modes generic, text and font through our one-shot and stream decoders, the sizes next to libbrotli's
crypto: SHA-224 (sha2::Sha224, sha224) and SHA-3 / SHAKE (FIPS 202, lib/crypto/sha3.rs): Sha3_224, Sha3_256, Sha3_384, Sha3_512 and sha3_224 .. sha3_512, Shake128 / Shake256 with finalize_xof and ShakeReader::read for any output length, shake128 / shake256 (an XOF, not a crypto::Hash). SHA-224 and the four SHA-3 hashes are crypto::Hash (HMAC, HKDF, PBKDF2 over them; Hash::BLOCK may now be up to 168 bytes, SHA3-224's is 144). HashAlg has Sha224 and Sha3_224 .. Sha3_512 (signatures over them, MGF1 with them), and HashAlg::hmac(key, data)
crypto: AES-192: aes::Aes::new, gcm::AesGcm::new, aes_wrap / aes_unwrap and cmac_aes take 24-byte keys
crypto: p384: Diffie-Hellman on P-384 in constant time (public_key, shared, secret_from, as p256's), on a new core for the NIST curves of any size (nist.rs: Montgomery arithmetic whose constants are worked out at compile time, the complete formulas of Renes, Costello and Batina, four-bit windows that read the whole table)
crypto: ECDSA signing on P-256 and P-384 in constant time: ecdsa::sign(curve, secret, hash, digest, extra) with deterministic nonces (RFC 6979, the digest's hash for HMAC_DRBG); extra bytes, when given, go into the nonce as RFC 6979 3.6's additional data and hedge it against faults and a poor random source. ecdsa::public_key and secret_from; verify_p1363 for r || s signatures (IEEE P1363: JOSE, COSE, WebCrypto), der_from_p1363 and p1363_from_der (strict DER) to convert. The same signatures as OpenSSL's deterministic ECDSA, byte for byte
crypto: RSA-PSS signing: rsa::PrivateKey::sign_pss(hash, digest, salt) (EMSA-PSS with MGF1 of the same hash, the caller's salt; an empty salt gives the same signature each time), with the constant-time exponentiation of sign_pkcs1
crypto: ML-KEM (FIPS 203, lib/crypto/mlkem.rs): mlkem::keygen(params, seed) from d || z, encaps(params, ek, m) with the encapsulation key's modulus check, decaps(params, dk, ct) with the decapsulation key's hash check and implicit rejection (a ciphertext that does not re-encrypt to itself gives J(z || c)); Params::MlKem512, MlKem768, MlKem1024 and their ek_len, dk_len, ct_len. No branch or table lookup on secrets, and no division: reductions and Compress are Barrett's with masked corrections (KyberSlash)
Tests: tools/acvp_check.py: lib/crypto against NIST's ACVP vectors (usnistgov/ACVP-Server, pinned): SHA2-224 and SHA3 (AFT and the Monte Carlo test), SHAKE (AFT, VOT), AES-ECB with 128-, 192- and 256-bit keys (the AESAVS sets, MMT, Monte Carlo), ML-KEM keyGen, encapsulation, decapsulation and both key checks, deterministic ECDSA on P-256 and P-384 with SHA-2 and SHA-3: 3608 cases, none failing. tools/wycheproof_check.py also runs ML-KEM (all 12 files), ECDH on P-256 / P-384, ECDSA and RSA with SHA-224 and SHA-3, HMAC with SHA-224 and SHA-3, AES-192-GCM and P1363 signatures of any length (verify_p1363), and checks crypto's DER decoder against netio's: 18532 cases, none failing (453 skipped before, 281 now). tools/crypto_check.py compares the new primitives with hashlib and OpenSSL; coretest --only crypto has their known answers (phase2a); tools/ct_check.py has 12 more operations (P-384, ECDSA signing, ML-KEM keygen / encaps / decaps with good and changed ciphertexts and with a foreign key, AES-192-GCM, SHA3-256, SHAKE256, HMAC-SHA3-256), and a parting the design allows (KNOWN) may be tied to the function it happens in; in wasm both traces are then compared again from where that function returns, which the self-test selftest_resync (an allowed parting, then a leak) checks on every run
Tests: coretest --only stream: the Brotli decoders on prefix codes of up to 15 bits (bytes with Fibonacci frequencies at levels 1 and 11, one-shot and in pieces)
pdf: A PDF reader, pdf::read: Document::open / open_with(bytes, &Options { password, max_stream }) for PDF 1.0 to 2.0 with classic cross-reference tables and cross-reference streams, object streams, incremental updates and hybrid files; a damaged, cut or tableless file is rebuilt from its objects (was_repaired). The standard security handler: RC4 40 to 128 bit, AES-128 and AES-256 (revisions 2 to 6) with the user or the owner password (is_encrypted, encryption_revision, permissions, opened_as_owner). get / resolve and the objects (Object, Dict, Name, Ref, Stream, text_string); decode and decode_until_image with FlateDecode (raw DEFLATE too, damaged data up to the damage), LZWDecode, ASCIIHexDecode, ASCII85Decode, RunLengthDecode and the PNG and TIFF predictors. Pages with their boxes, rotation and inherited resources (page, pages, contents, page_label); content streams as operators (Ops). The text: page_text gives every glyph with its characters, position, advance, width and size, text(i) the page in reading order as pdftotext -raw lays it out (ToUnicode, the base encodings and Differences through the Adobe Glyph List, Type 0 fonts with their CMaps, Type 3 fonts, the 14 standard fonts with their widths, form XObjects, invisible text marked, Hebrew and Arabic in reading order, fake bold once). info, metadata, language, outlines, named_dest, annotations and links with their Action, fields (the interactive form's values, options and widgets; signature fields as stated, not verified), attachments (embedded files with name, MIME type, size, relationship). Hostile input gives an error, never a panic or a hang; every decoded stream is at most max_stream bytes. About as fast as pdftotext, with a third of its memory
Tests: pdftest --only read_*: the reader on files written byte by byte (strings, names, numbers; tables, cross-reference and object streams, an update, a hybrid file, wrong offsets, a missing table, a cut file, wrong stream lengths, page trees with loops), the writer's sample read back (pages, information, outlines, links, all its text), every filter, the encrypted fixtures of apps/pdftest/tests/read (RC4 40 and 128 bit, AES 128 and 256 bit, revisions 2 to 6; user, owner and wrong passwords), text positions and spacing for every kind of font, forms and inline images, outlines, named destinations, page labels, form fields, signatures and attachments, hostile files and 1600 mutations; pdftest --read FILE (JSON, --glyphs, --content, --object); tools/pdf_read_check.py compares the reader with Poppler on a corpus it builds (own files of every structure, damaged ones, Ghostscript, LibreOffice, cairo, groff, the system's PDFs, the encryptions of Ghostscript, LibreOffice and its own fixtures, --fixtures writes them); tools/gen_pdf_tables.py writes the reader's tables
netio: TLS with the keys of the web PKI:
tls::Identityholds anx509::PrivateKey(Ed25519, ECDSA P-256 / P-384, RSA);Identity::new(chain, key)andIdentity::from_pem(certs, key)("PRIVATE KEY", "EC PRIVATE KEY", "RSA PRIVATE KEY"; the key must be the leaf's). Server and client sign the handshake with ECDSA (the hash of the key's curve), RSA-PSS or Ed25519 in a scheme of the peer's list, and take server and client certificates of every kind (a client whose key signs in none of the schemes of the server's CertificateRequest sends no certificate, RFC 8446 4.4.2);Trust::Anchorstakes CAs of any of these keys. A browser can now use a netio server with the certificate of a public CAnetio: TLS: TLS_AES_256_GCM_SHA384 (the key schedule with SHA-384), in TLS 1.2 ECDHE_ECDSA / ECDHE_RSA_WITH_AES_256_GCM_SHA384; the key exchange groups X25519MLKEM768 (post-quantum hybrid of draft-ietf-tls-ecdhe-mlkem; a client sends key shares for it and for X25519), SecP256r1MLKEM768, SecP384r1MLKEM1024 and P-384 on both sides (
tls::kx);TlsStream::group()netio: TLS: SNI on the server:
ServerConfig::identities(certificates for other names, or of other key types for the same name) andServerConfig::select(the program's own choice bytls::Hello: the name, the protocols, the signature schemes; certificates renewed while the server runs); the server confirms a name its certificate has (RFC 6066),TlsStream::server_name(). ALPN (RFC 7301) on both sides:ClientConfig::alpn(names of 1 to 255 bytes, 8 KiB of them at most),ServerConfig::alpn,TlsStream::alpn(), the client's names as bytes inHello::alpn; a client that shares no protocol with the server gets no_application_protocol. https and wss connectors offer http/1.1 (RFC 9325, against cross-protocol attacks)x509:
PrivateKey: Ed25519, ECDSA (P-256 / P-384) and RSA keys from PKCS #8, SEC 1 and PKCS #1 DER (ECDSA without a branch on the secret, checked to be in [1, n - 1] and against a stored public key), written as PKCS #8;public_key,spki,sign(alg, data, random)(ECDSA as DER with RFC 6979 andrandommixed in, RSA PKCS #1 v1.5 or PSS),cert_alg,can;spki_of(&PubKey).CertBuilder::spkiandCertBuilder::sign_key: certificates of any of these keys, signed with any of them (ECDSA with SHA-256 / SHA-384, RSA PKCS #1 v1.5 with SHA-256, Ed25519)crypto:
rsa::PrivateKey::dp()anddq(): d mod (p - 1) and d mod (q - 1) for PKCS #1's RSAPrivateKey, one bit at a time with the subtraction kept by maskplat:
plat::share(&Share): the system's share sheet hands a title, a text, a link and files to another app (Windows DataTransferManager, macOS NSSharingServicePicker, iOS UIActivityViewController with an iPad popover atShare::anchor, Android a chooser for ACTION_SEND through GalleryFiles, the browsernavigator.share; Linux none);share_poll()answers once SHARE_DONE / SHARE_CANCELLED / SHARE_FAILED,CAP_SHAREsays where it exists;Share::filestakes paths or names with a scheme (data://), the system's sheets get the path behind themplat: iOS:
plat::inhibit(INHIBIT_IDLE)keeps the screen on (UIApplication's idle timer off while a guard lives; INHIBIT_SUSPEND alone stays None), the system's text size (Dynamic Type) isSysSettings::text_scale, and files and folders chosen in the system's picker open again after a new start (bookmarks kept in the app's container)pdf: Drawing pages, pdf::read: Document::render(page, &RenderOptions { dpi, region, background, annotations, fonts, max_pixels }) draws a page into a gfx::Surface (FMT_PARGB), the whole page or a region (tiles), over paper of any colour or none; page_pixels(page, dpi) gives its size. Paths filled with the non-zero and even-odd rule, stroked with caps, joins, miter limit and dashes in user space (also under a matrix that scales unevenly), thin axis-aligned rules and frames on whole pixels as Poppler draws them, clipping paths and text clipping; every colour space (CalGray, CalRGB, Lab, ICCBased by its component count or alternate, Indexed, Separation and DeviceN) and functions of all four types (the PostScript calculator compiled once, with a budget per call); CMYK as printing inks look (the Neugebauer model over the colours of the SWOP inks). Text through the outlines of the embedded fonts: Type 1 (a parser of its own: eexec, Subrs, flex, hint replacement, seac), CFF and CID-keyed CFF (seac accents from the charset), TrueType (the cmap rules of 9.6.6.4), OpenType, Type 3; fonts that are not embedded from a FontSource (SystemFonts by default: the installed fonts through text::fontdb, the metric-compatible families for the 14 standard fonts, narrower substitutes scaled to the width of m), every text render mode, glyphs on quarter pixels and cached per document. Images of every bit depth and colour space with Decode, stencil, colour-key and explicit masks, soft masks with Matte, inline images, JPEG (CMYK too) and CCITT Group 3 and 4 (a decoder of its own), averaged when shrunk, bilinear when enlarged; shadings of all seven types (sh and patterns, meshes without seams), tiling patterns coloured and uncoloured; alpha, the sixteen blend modes against a transparent page, soft masks (luminosity and alpha, backdrop, transfer function), transparency groups; annotations through their appearance streams (states, flags), optional content (the default configuration, membership dictionaries). Not drawn: JPEG 2000 and JBIG2 images, knockout and non-isolated groups (drawn as isolated ones), overprint. The work of a page is bounded (operators, pixels painted, forms, patterns, Type 3 glyphs and soft masks inside each other, image and layer sizes): a hostile page gives Error::Limit
text: cff::Cff::outline_seac (the outline and the accent of an endchar with the arguments of seac, for a caller with the glyph names) and Cff::matrix (the FontMatrix in the outline's units); ttf::TtFont::cff (the CFF outlines of an OpenType font)
img_jpeg: JDF_RAW_CMYK: a 4-component JPEG's samples as stored (YCCK after its YCC step, as libjpeg gives them) in the bytes R, G, B and A, for a caller with its own CMYK conversion
Tests: pdftest's render_* groups (524 checks, no system fonts needed): page sizes and boxes, fills, strokes, clipping, every colour space and function type, images with every mask and filter (JPEG, CCITT), shadings and patterns, blend modes, soft masks and groups, Type 3 and a Type 1 font built byte by byte, the sample's embedded fonts, annotations, optional content, hostile pages and 300 mutations; pdftest --render FILE --out PREFIX writes pages as PPM; tools/pdf_render_check.py draws a corpus of every feature (own pages, Ghostscript, LibreOffice, pycairo, cairo, the read corpus, the system's PDFs) with pdftest and with Poppler's pdftoppm and compares pixel by pixel
netio: TLS 1.3 resumption with session tickets (RFC 8446 2.2, 4.6.1):
ServerConfig::tickets(tls::Tickets: stateless tickets sealed with XChaCha20-Poly1305 under keys that are made and replaced each lifetime by themselves, the previous one still taken, orset_keysfor servers that share them;lifetime(a day, at most 7),per_handshake(2),rotate) sends tickets after each handshake and takes them back with psk_dhe_ke (the PSK and a fresh key exchange, no certificates);ClientConfig::sessions(tls::Sessions: a client's tickets kept per server name, trust and client identity, each used once, 8 per server) offers one;TlsStream::resumed,Conn::resumed. A session lasts at most 7 days from the handshake that authenticated it, however often its tickets are renewed. A server takes a ticket only for the same server name and suite hash and, when it asks for client certificates, one whose certificates the same trust takes again (each resumption checks the whole chain, so a client aTrust::Customrefuses since is not resumed); the resumed connection keeps them (peer_certs), and a chain over 16 KiB gets no ticketnetio: TLS 0-RTT (RFC 8446 2.3, 4.2.10, 8), only where the server allows it:
ServerConfig::early_data(the most bytes of early data a ticket allows; 0, the default: none),tls::connect_early(stream, cfg, data)-> the stream and the bytes ofdatathe server took (the caller sends the rest; nothing is resent by itself),Conn::client_early. The server takes early data only with the first PSK, the suite and ALPN protocol of its session, with no more than the server takes now (a ticket that allows more is resumed without it), from a ClientHello within 10 s of the ticket's age and the first time it comes (an in-memory register of 20 s, orTickets::replay_checkfor servers that share tickets), keeps it apart (TlsStream::read_early,Conn::read_early) and hands what is not read there toreadonce the handshake is done; a server that took 0-RTT returns fromacceptafter its flight and may answer before the client's Finished. More early data than the ticket allows is unexpected_messagenetio:
tls::keysched::early_secretandbinder_key(the early secret of a PSK, its "res binder" key)formats: The multi-byte encodings of the WHATWG Encoding Standard in formats::encoding (ROADMAP section 13, U17): MultiByte with Shift_JIS (Windows' code page 932, with the NEC and IBM extensions and the user-defined rows), EUC-JP (JIS X 0208 and 0212), ISO-2022-JP, GBK, gb18030 (GB18030-2022, all of Unicode but U+E5E5), Big5 (with HKSCS-2008) and EUC-KR (Windows' 949, every Hangul syllable); from_label, from_code_page, name, code_page, decode (malformed input becomes U+FFFD, ASCII after a broken lead byte is kept), encode (Error::Unmappable) and encode_html (character references, as browsers submit forms). Decoder: the standard's decoders for input in pieces, for every label (UTF-8, UTF-16, the single-byte sets, the multi-byte encodings, replacement): a character cut between two pieces is finished by the next, the text is the same as decoding all at once; sniffing for the byte-order mark rule, malformed. encoding::from_code_page(n) for the encodings with a Windows code page (65001, 1200 and 1201 too; None for the others, also for 50222, whose SO and SI the standard's ISO-2022-JP does not read) and Label::name. label() names the multi-byte encodings as Label::Multi(MultiByte), decode_label decodes them. The indexes are the standard's (cjk.rs and cjk.bin, 300 KB, written by tools/gen_encodings.py from Python's codecs and the entries where the standard differs: HKSCS-2008, GB18030-2022), checked pointer by pointer against encoding_rs
dxf: The East Asian code pages: $DWGCODEPAGE ANSI_932 and DOS932 are read as Shift_JIS, ANSI_936 and GB2312 as GBK, ANSI_949 as EUC-KR, ANSI_950 and BIG5 as Big5 (until now their bytes above 0x7F became U+FFFD; a trail byte 0x5C is no escape), and \M+NXXXX as the double byte XXXX of AutoCAD's page N (1 Shift_JIS, 2 Big5, 3 EUC-KR, 5 GBK; until now U+FFFD). Johab (ANSI_1361, page 4) stays without a table, with its note
doc_io: clipboard_rtf_decode reads the double-byte code pages of Windows, 932, 936, 949 and 950, by \ansicpg or a font's \fcharset 128, 129, 134 and 136 (until now refused as unsupported): a lead byte and its trail byte, escaped or raw, make one character; a lead byte without its trail byte, text between them or two bytes that are no character are Error::Invalid. Johab (1361) stays unsupported
Tests: tools/encoding_check.py compares formats::encoding with encoding_rs, Firefox's implementation of the WHATWG Encoding Standard (tools/encoding_ref.rs, built offline against encoding_rs from Cargo's registry): every Unicode scalar value encoded alone in each multi-byte encoding, texts strict and with character references, every two-byte sequence, EUC-JP's three-byte and gb18030's 1.6 million four-byte ones, ISO-2022-JP's pairs in each state, random streams of 14 encodings at once and in pieces of 0 to 7 bytes, byte-order marks: 6443 comparisons. coretest --only charsets has 67 new checks (vectors from Python's codecs and the standard), tools/gen_encodings.py --verify compares the 136 034 pointers of the multi-byte indexes with encoding_rs; render2dtest --test dxf the East Asian code pages and \M+NXXXX, jfWord's self-test RTF with the double-byte pages
Tests: (JFDiagrammer) apps/JFDiagrammer/visio_check: JFDiagrammer's files checked in a real Visio on another Windows machine over SSH, without anyone there (visio_check.py FILE..., the machine from JFD_VISIO_HOST / JFD_VISIO_KEY, nothing of it in the repo): an invisible Visio in the logged-on user's session (a scheduled task of the job's own; Visio's COM server dies in an SSH session, PowerShell's COM client hangs in Documents.Open, so the worker is VBScript) opens each file read-only and brings back report.txt (opened, the questions Visio asked while opening, pages, masters, data recordsets), every page as PNG and SVG, a shape list, copies saved by Visio (.vsdx family or 2003-2010 binary) and PDF; MISMATCH where Visio read fewer pages, shapes or masters than the file holds (Visio repairs silently when driven this way); --script CHECK.vbs adds a check of one's own in the same Visio
physics: Rigid bodies (U18; G7i's Physik 2):
Simulationmoves static, kinematic and dynamic bodies (RigidBody,BodyKind) in itsWorld, so rays, casts and the character controller see them where they are. Mass properties from the shape and a density (Shape::mass_properties,MassProps: closed forms, hulls from their tetrahedra) or given; friction, restitution, rolling resistance, damping, gravity scale, layers and masks, sensors, bullets, fixed rotation, gyroscopic forces (Jolt's step, the magnitude of the angular momentum kept). The soft step of Box2D v3 in 3D: substeps, contacts and joints as damped springs, a relax pass, restitution, warm starting. Contact manifolds of up to four points from the faces of both shapes clipped along the GJK / EPA normal (as in Jolt); against a mesh per triangle with its active edges, merged by normal. Speculative contacts as far as a body can move in the step (a turning one up to about a radian a step), sweeps of the translation of fast bodies against what does not move and, with the motion relative to them, against moving kinematic bodies (a bullet also against dynamic and sleeping ones; a body that hits a moving one is carried on with it as far as what does not move lets it), and a ray of the centre of mass against what does not move, so no centre of mass passes through a wall or the ground; a long body that turns faster can push an end through a thin wall. Sleeping islands, contact and sensor events (ContactEvent: begin with the approach speed, end),manifolds(),stats(), forces, impulses,move_kinematic. Joints (Joint,JointKind,JointId,JointError): ball with a swing cone and a twist range, hinge, fixed, slider and distance (rope, rod), with limits,Motors andSprings;joint_position,joint_force.SimulationandWorldareClone: a copy is a snapshot that steps on to the same bits (rollback).math:Mat3operations (inverse, transpose, products, tensors in another frame, skew),Quat::from_scaled_axisandto_scaled_axis. docs/PHYSICS.md section Starrkörpertests: physicstest: the rigid bodies in eight groups -- mass (against closed forms, slices and Tonon's tetrahedron; tensors and inverses of any size), motion (the exact sums of the integrator, an exact spin, damping, forces, gyroscopic forces), contact (resting, restitution heights, friction on a slope, a rolling ball, rolling resistance, collisions, a kinematic platform, mass ratios, a ball in a valley of two merged faces), stack (towers, a pyramid, a heap on a mesh), joint (pendulum periods, joint forces, a chain, limits, motors, springs, welds, sliders, ropes and rods, cone and twist, ragdolls, joints made outside their limits, a rod from one point, a rope whose anchors are put together, a slider that loses its motor, a load on a moving kinematic carrier), ccd (a pellet at 500 m/s against a 1 mm wall and a mesh, bullets, bodies thrown at the ground at up to 150 m/s, two balls racing at each other, a bullet across a moving body, at a sleeping box and against a kinematic box coming at it, a box carried towards a static block), events (also sensors teleported and floors relayered next to sleeping bodies), dynfuzz (random scenes with every joint: no energy but from the motors, the same bits twice, a clone steps on alike); a third checksum line over rigid bodies, contacts and joints (
physicstest dynamics checksum=),--bench dynamicsnetio: TLS OCSP stapling (RFC 6066 8, RFC 8446 4.4.2.1):
ServerConfig::ocsp(tls::Staples: the responses for the certificates a server shows, each checked against its certificate and an issuer that signed it when it is set; one past its nextUpdate, or the end of its delegated responder's certificate, is no longer sent) staples a response to a client that asks for one (status_request). A client asks withTrust::Anchors,SystemandCustom(ClientConfig::revocation,tls::Revocation):Stapled, the default, checks a stapled response withx509::ocsp::check(the issuer from the chain or the anchors) and refuses a certificate it calls revoked (certificate_revoked), takes one without a usable response unless the certificate must be stapled (RFC 7633);Requiredrefuses one without a good response (bad_certificate_status_response);Offasks for none. TLS 1.3 (the leaf's certificate entry) and TLS 1.2 (CertificateStatus). A resumed session takes the status no longer than the response its handshake checked counts, and a client that checks never resumes a session ofRevocation::Off(the revocation check is part ofSessions' key).TlsStream::ocsp_response,Conn::ocsp_response. A certificate entry with an extension the other side did not ask for is unsupported_extension (RFC 8446 4.4.2)netio:
ocsp::fetch(&client, &cert, &issuer): a certificate's status from its CA's OCSP responder (a POST to the first http(s) URI of its authority information access, RFC 6960 A.1; the answer checked);ocsp::refresh(&staples, &client, &chain, issuer)keeps a server's staple current (fetched when none is kept or it is halfway through its validity) and says when to call againnetio:
acme: certificates from a CA that speaks ACME (RFC 8555: Let's Encrypt, ZeroSSL, Google Trust Services, step-ca).Acme::new(client, directory),acme.account(key, &NewAccount)(contact, terms, onlyReturnExisting, external account binding with HS256),account.issue(&ids, &cert_key, &mut solver, &OrderOptions): the order, each authorization proved by aSolver, the certificate request, the chain (checked to be for the certificate key and every identifier). Step by step:new_order,authorization,respond,wait_authorization,finalize,wait_order,certificate(alternate chains too). Challenges:Http01(a handler for /.well-known/acme-challenge/ in a netioServer),TlsAlpn01(RFC 8737:setupmakes atls::ServerConfigshow the challenge certificate to a client that offers only "acme-tls/1", one challenge per name at a time (the same one twice shares it); a TLS server counts "acme-tls/1" among its protocols only for such a client, so one without protocols of its own still answers the others without ALPN), dns-01 by a solver of the program's (dns01_name,dns01_value),Solversfor several. DNS names, wildcards (dns-01) and IP addresses (RFC 8738); renewal information (ARI, RFC 9773:Acme::renewal_info,ari_id,OrderOptions::replaces), profiles, must-staple;Account::revoke,revoke_with_key,change_key,update_contact,deactivate. Account keys ES256, ES384, RS256, EdDSA (not every CA takes EdDSA: Let's Encrypt and Pebble do not); every request a JWS with a fresh nonce (badNonce tried again with the nonce of that answer), every URL of the CA https (relative Location and Link headers resolved as RFC 3986 does), answers bounded, waits following Retry-After (the finalize answer's too) up toAcme::timeout_ms(no look after it)x509:
ocsp: OCSP of RFC 6960 and RFC 5019 --CertId(SHA-1, or SHA-256 and longer),request,Request::parse(for a responder),check(der, &cert, &issuer, now)(signed by the issuer or a responder it delegated to with id-kp-OCSPSigning and, when it has a key usage, digitalSignature -- each certificate the ResponderID names is tried --, about this certificate, current within 5 minutes of clock skew; a response without nextUpdate for a day; unknown critical extensions refused) ->Response(Status::Good/Revoked { time, reason }/Unknown,expiresandrefresh_at, which end with a delegated responder's certificate:responder_until;next_fetch(now): a minute away at the earliest, before the response expires),ResponseBuilder(a private CA's responder; the key must be the signer's),error_response,CertId::encode;Request::parserefuses unknown critical extensions, a request's and each certificate's.csr: certificate requests (PKCS #10, RFC 2986) --CsrBuilder(DNS names, addresses, must-staple; signed with anyPrivateKey, RSA from 2048 bits),Csr::parse(the signature checked; an extension twice, an empty subject alternative name and bytes after a TLS feature refused).Cert:aki,ocsp_urls,ca_issuers,tls_features(RFC 7633),ocsp_nocheck,spki(),must_staple(),ocsp_signer();CertBuilder:ocsp_urls,must_staple,ocsp_signing;der::ENUMERATEDTests: coretest suites
ocsp(115: responses, delegated responders, times, malformed bytes, CSRs, stapling both ways, resumption and revocation, ClientHello records,ocsp::fetch/refreshagainst a responder in the process) andacme(76: an ACME server in the process that checks every JWS, validates http-01, tls-alpn-01 and dns-01 for real and notes a client that ignores Retry-After; issuance, account keys, accounts, faults, relative URLs, ARI, revocation, key change, EAB, the JWK thumbprints of RFC 7638 and RFC 8037); 69 mutations of the checks, each caught. tools/tls_interop.py 114 (OCSP: openssl ocsp reads our responses, its responder answersocsp::fetch, CSRs both ways, stapling with s_client -status and s_server -status_file in TLS 1.3 and 1.2);tools/pebble_check.py: netio::acme against Pebble, Let's Encrypt's ACME test server (release binaries into build/pebble; authorizations hardly reused, 1 % of nonces refused; 29 checks: every challenge type, wildcards, IP addresses, profiles, account keys, ARI, revocation, key change, deactivation, EAB; docs/EXTERNAL_SUITES.md); net_fuzz targetsocspandcsr; coretest--ocsp-tool,--acme-pebble,--tls-serve --ocsp FILE,--tls-get --revocation .. --show-ocsp --web,--tls-web --revocation requiredTests: tools/ct_check.py: at opt-level 3 with Rust 1.98,
str::split'snextis a function of its own, andpem::decode_alltests its answer (another line or none) on its own line, which memcheck saw come from the key's characters; the line ends are PEM's public layout, and the line is declassified with that reason. .github/workflows/ct-check.yml gives the x86-64 jobs 240 minutes (150 cut a slow runner off in z)Tests: .github/workflows/ct-check.yml runs every optimization level as a job of its own (
ct_check.py --opt LEVEL, natively on both machines and in wasm): 20 jobs of 15 to 70 minutes, the longest levels first, at most 9 native and 3 wasm at a time, instead of four of up to 215 minutesplat: UDP answers without net.connect: with a PERMISSIONS file a UdpSocket whose address net.listen allows (a fixed port through the check, port 0 when a rule covers it, looked at quietly) may send to the addresses it received a datagram from in the last 60 s; every other datagram still needs net.connect. net::AnswerSet keeps at most 1024 senders per socket (two generations of 512), so forged source addresses cannot grow it; only a datagram renews an address. UdpSocket::answers_to, answer_peers, policy::net_listen_granted. Without a manifest nothing changes. apps/game1-server/PERMISSIONS drops net.connect : (keeps localhost for --check)
plat: New permission key gamepad: with a PERMISSIONS file plat::pad_watch (and ui.gamepads) reads game pads only when the manifest lists gamepad; otherwise pad_watch says false and opens nothing, PERMDENY gamepad (once: ui.gamepads asks once). ask gamepad asks at the first call, ui.gamepads starts watching in the frame after a yes (policy::gamepad_allowed, gamepad_granted). Without a manifest pads work as before; a test script's pads need nothing. The packages map it: Flatpak finish-args --device=input only with gamepad (Flatpak 1.15.6 and newer; tools/package.py writes only the manifest when the local Flatpak is older, which refuses the option), MSIX and the macOS sandbox add nothing. inputtest lists it
img_jp2: A JPEG 2000 decoder (U19), written from ITU-T T.800: JP2 and JPX files and raw codestreams (J2K); every progression order and POC, tiles and tile-parts in any order, precincts, layers, SOP / EPH, PPM / PPT, every code-block style (bypass, reset, terminate-all, vertically causal, predictable termination, segmentation symbols), ROI max-shift, the 5/3 and 9/7 wavelets with any image and tile offsets, RCT and ICT, sub-sampled components, 1 to 24 bits, signed and unsigned; from the JP2 header the colour space (sRGB, grey, sYCC converted to RGB, CMYK, CIELab, an ICC profile), the palette and the channel definitions (opacity, premultiplied).
decode(data, &Options) -> Result<Image, Error>withOptions::reduce(lower resolutions),max_pixelsandconvert_sycc(false: sYCC stays as coded); damaged files give what was decoded up to the damage, limits on pixels, code-blocks and precincts refuse hostile ones; the same bits on every target;img_jp2::CODECfor img_all (8-bit ARGB; CIELab files areERR_UNSUPPORTEDthere). lib/img_jp2/README.mdimg_all: JPEG 2000 among the image formats:
use_all_codecsregisters img_jp2's codec asIMGF_JP2(jp2;j2k;j2c;jpx;jpf, image/jp2), the slot beforeIMGF_SVG;register_slottakes it too,register_externalstops before it (the external codecs keep their numbers 23 to 52; a 31st external registration, which got slot 53 before, now gets 0, and a stored 53 now names JPEG 2000)pdf: Drawing pages:
JPXDecodeimages through img_jp2, with the codestream's own size and bit depth (16-bit samples stay 16 bits), Decode ignored (but for stencil masks), the samples at their own precision when it is 1, 2, 4, 8 or 16 bits (Indexedand colour-key masks see the values as coded; other precisions are scaled, the mask ranges with them), a colour space of the dictionary taking the place of the JP2 header's (sYCC then stays as coded), and without one the header's enumerated space (sRGB, grey, sYCC, CMYK, CIELab) or, for an ICC profile or none, DeviceGray, DeviceRGB or DeviceCMYK by the channel count (the profile is not applied);SMaskInData(the opacity channel as a soft mask, premultiplied colours made straight on the samples, at 8 or 16 bits)tests: tools/jp2_check.py: img_jp2 against SerenityOS's JPEG 2000 test images (fetched at a pinned commit into build/vectors: every code-block style, Kakadu, JasPer and OpenJPEG files) and 300 decodes of files Pillow's OpenJPEG writes with every option it has (also at reduced resolutions), the codec through img_all, 6000 damaged copies (codectest --jp2-mutate) and the decode time of a 2500 x 3500 page; codectest --jp2, --jp2-mutate and --jp2-bench; pdftest's render_image with JPEG 2000 images (colour spaces from the JP2 header, SMaskInData, damaged, cut short, too large); pdf_render_check.py's image pages with JPEG 2000 against Poppler
plat: certs:
verify_tls_server_roots(chain, host, roots, time), the system's checks with only these CAs as trust anchors, nothing fetched, no revocation (Windows: a chain engine with an exclusive root store that takes CA certificates as anchors too; macOS and iOS:SecTrustSetAnchorCertificatesOnly); an empty host checks no name. On Linuxroot_bundletakes the fileSSL_CERT_FILEnames instead of the distribution's bundle and adds the files in the folders ofSSL_CERT_DIR, as OpenSSL doesnetio: roots:
verify_system_roots(chain, host, roots, now), the system's checks against only these CAs (tests of them:tools/limbo_check.py --system);reload()(the bundle read again at the next check, after settingSSL_CERT_FILE, say);roots::Reason,roots::Refused(plat's)Tests: The system's trust on Windows, macOS and Linux runners (.github/workflows/system-trust.yml; on changes of the trust, the TLS client, x509 or the tools, Mondays, by hand): coretest's new group systrust (the system's checks against a CA of their own and the reason of each refusal, the time given, IP addresses;
Trust::System's extra CAs in a handshake and as a server's client_auth; on LinuxSSL_CERT_FILEandSSL_CERT_DIR), badssl.com throughTrust::Systemwith the reason of each refusal (tools/tls_web_check.py --internet-only [--target linux|win|mac]; revoked and incomplete-chain shown, not counted) and x509-limbo through the system's checks (tools/limbo_check.py --system, coretest's--vectorsoperation x509system: each answer against limbo's and netio's own, the differences of a system listed with their reason inSYSTEM_KNOWN)x509:
check_leaf(leaf, now, name, usage): the checks ofverify_chainthat concern the leaf alone (no unknown critical extension, valid at the time, the extended key usage, digitalSignature, no keyCertSign or name constraints on a certificate that is no CA, the name), for a path a system's verifier decided (netio::roots);Cert::eku_allowsis publicTests: compress in pieces under fuzzing (
tools/net_fuzz/targets.rs, also fortools/cov_fuzz.py):stream_deflate,stream_zlib,stream_gzip,stream_brotli,stream_zstdandstream_lz4feed the stream decoders in pieces of 1 byte to 5 KB with output buffers of 1 byte to 4 KB, in two schedules, and hold their output against the one-shot decoder's and the rules of aStep;roundtripchecks thatcompress()and the stream encoders (in pieces, with Sync flushes) of every format and level give the data back and, without Sync, the same bytes ascompress(). They found the zstd window (Fixed) and the Brotli encoder's subtraction past zero for short dictionary words (Fixed, found by the library review as well).tools/brotli_check.py --vectors: google/brotli's own test data (45 streams, 23 originals) through our decoders and encoders, no libbrotli needed; the streams are also fuzz seedsplat:
screen::pick_startandscreen::capture_starton macOS: the pick through the system's loupe (NSColorSampler, no right needed; the colour in sRGB, Esc isCancelled), pictures through ScreenCaptureKit (macOS 15.2 and later, beforeCGWindowListCreateImage) in sRGB -- they need the user's screen recording right for the program (elseDenied, and the system's dialog once);pick_test_pointanswers from a picture there too;mac_screen_access()(tests) says whether the program has the rightplat: Android (docs/ANDROID.md AN2):
plat::netwith sockets (TCP, UDP, IPv4, IPv6, timeouts: the Linux calls with rt::kernel's numbers), names through Bionic'sgetaddrinfo(netd: private DNS, VPNs, the app's network), the interfaces without netlink and MAC addresses,hostname;NetError::no_internet(): an app whose manifest lacksandroid.permission.INTERNETgetsNetErrorKind::Deniedwith the codesocket()gave (EACCES, or EPERM from netd's eBPF program on Android 15) and a message that names the manifest, a failed lookup too.plat::certson Android:root_bundle()from the system's CA folder (ANDROID_CA_DIRS: Conscrypt's APEX, else the system image's;android_ca_dir()), only the system's CAs;net.connect/net.listenare enforced there. Unix sockets wait forplat::fs(AN3)jflib:
netioon Android too (it needed plat's sockets, docs/ANDROID.md AN2);updatestill not therecargo-jflib:
cargo jflib android: the manifest it writes hasandroid.permission.INTERNETwhen the app has no PERMISSIONS or namesnet.connectornet.listenthere; an ownandroid/AndroidManifest.xmlwithout it is refused with those rules (without it Android refuses every socket)Tests: Android (AN2):
tools/android.pyrefuses an own AndroidManifest.xml withoutINTERNETwhen PERMISSIONS namesnet.connectornet.listen(manifest_gaps), the test APK of a console program getsINTERNETby the same rule;jfgui_ANDROID_NO_INTERNET=1buildsNAME-<abi>-console-nonet.apkwithout it,tools/android_console.py --no-internetruns that one. coretest runs its network groups on Android (http, tls, tlsweb, systrust with the system's CA folder, tlsres, ocsp, acme, dns, tlscore; the sockets of the group plat andandroid_net: getaddrinfo, interfaces, the message without INTERNET), green on the emulator (API 35) and on a Galaxy A56 (Android 16), inadb shelland in the test APK;tools/tls_web_check.py --internet-only --target androidruns the public servers (google, github, badssl.com) from a device by adb, in both ways, all right on the A56plat:
plat::scan: the system's scan dialog --scan_start(title)opens it,scan_poll()answers once withScanned { name, data }(the file as the scanner wrote it, PNG by default) orScanError::Cancelled/Failed,scan_open(),scan_available(); macOS through ImageKit's device browser and scanner view over ImageCaptureCore (local and network scanners), Windows and LinuxUnavailableuntil WIA and SANE followdiagram: (JD29) jflib-diagram-core: lists drop their starting rows as Visio's do (
structure::start_items,add_start_items,item_master,place_item,master_name:msvSDListItemMaster1..N = USE("NameU")); line ends drawn by a master (BeginArrow = USE("Composite"), PatternFlags 1026), andinstance::import_masterbrings the masters a master names withUSEalong; the formula functionUSE()diagram: (JD29) jflib-diagram-io: stencil masters with
line_end: true(a custom line end, PatternFlags 1026) and\nline breaks in texts; template starters withList(a row of a list),In(a member of a container) and a connector master between two shapes (Stencil/MasterwithFrom/To)JFDiagrammer: (JD29) Software and database stencils (SH-222 to SH-227, SH-251 to SH-258): UML class, use case, activity, sequence, state machine, component, deployment and communication; database notations crow's foot, Chen, IDEF1X, UML, entity relationship and object-relational, 139 masters in five languages in the NetLab style, the standard symbols in their UML 2.5 and ER forms. Classes and tables are lists like Visio's: dropped with their starting rows, the insert marks add a row, a row's text wraps and the list grows, rows reorder; relationships switch their kind and cardinalities in the context menu; templates UML (VL-70) and Datenbankmodell (VL-71) with samples (classes, sequence, use cases, crow's foot, Chen, IDEF1X)
Tests: (JD29) diagramiotest group
stencils/software(every master dropped, lists with their starting rows, inserting, wrapping and reordering rows, the composition's line end, context menus, contrast design),--write-jd29-overview,--write-jd29-probeand--write-jd29-gegenprobe DIRfor the Visio counter-check; JFDiagrammer scripts software_lists.uis and software_templates.uisimg_jbig2: A JBIG2 decoder (U20), written from ITU-T T.88: PDF's embedded form with its JBIG2Globals (
decode_embedded) and JBIG2 files, sequential and random-access, every page (decode_file); generic regions (MMR; templates 0 to 3 with adaptive pixels and TPGDON; data of unknown length), refinement regions (templates 0 and 1, TPGRON), symbol dictionaries and text regions (arithmetic and Huffman with the standard and custom tables, refinement and aggregate coding, retained contexts, every reference corner, transposed), pattern dictionaries and halftone regions (skip, grids at any angle), intermediate, immediate and lossless regions, striped pages of unknown height, every combination operator; the segments are decoded once, in their order, a page's onto the page its association names (a damaged segment ends its page with what was decoded before it; the global segments and the other pages go on); a stream's work, its pages' and regions' pixels, is bounded (four timesOptions::max_pixelsplus 2^22;decode_fileleaves out the pages past it), bitmaps the allocator refuses areError::Limit, and a symbol dictionary or text region whose arithmetic data has run out stops there instead of decoding up to that bound from the fill;img_jbig2::CODECfor img_all (it decodes the first page only). lib/img_jbig2/README.mdimg_all: JBIG2 among the image formats:
use_all_codecsregisters img_jbig2's codec asIMGF_JBIG2(jb2;jbig2, a file's first page), the slot beforeIMGF_JP2;register_slottakes it too,register_externalstops before it (the external codecs keep their numbers 23 to 51; a 30th external registration, which got slot 52 before, now gets 0, and a stored 52 now names JBIG2)pdf: Drawing pages:
JBIG2Decodeimages through img_jbig2, with theirJBIG2Globals, the size of the JBIG2 page, also as stencil maskstests: tools/jbig2_check.py: img_jbig2 against SerenityOS's 111 JBIG2 test files (fetched at a pinned commit into build/vectors), each bit for bit as jbig2dec (through Ghostscript) and Poppler (pdfimages) decode it or, where one of them draws it blank or otherwise, as the other or SerenityOS's reference image; the same files drawn by lib/pdf, four of them opened through img_all, 8000 damaged copies (codectest --jbig2-mutate) and three files made there (pages whose segments interleave, pages without an end of page, a global dictionary after a damaged page); codectest --jbig2, --jbig2-embedded and --jbig2-mutate; pdftest's render_image with a JBIG2 image (also as a stencil mask, with globals, damaged, too large)
cidmap: A new crate (U21): the 59 predefined CMaps of ISO 32000-1 Table 118 for Adobe-GB1, -CNS1, -Japan1 and -Korea1 (
predefined(name): code space, CIDs with notdef ranges,usecmaptaken in) and their CID -> Unicode tables (to_unicode(collection), Adobe's Adobe-XX-UCS2), 261 KB of data from Adobe's files (BSD-3-Clause, licenses/adobe-cmap-resources-LICENSE.md) made by tools/cidmap_gen.py. lib/cidmap/README.mdimg_core: ICC colour transforms for every device space (U22):
icc_cms::ColorTransform(grey, RGB, CMY, CMYK, 2 to 15 colours, Lab, XYZ; matrix/TRC, lut8, lut16, mAB, mBA; four intents, black point compensation with LittleCMS's detection; one colour in f64) andColorGrid(1 to 4 inputs, many pixels, prelinearised), within 0.0012 of LittleCMS on the 74 profiles of its checker. lib/img_core/README.mdpdf: ICC colour management (U22): ICCBased spaces through their profiles, the rendering intents of
ri,RIand/Intent, black point compensation, the resources' DefaultGray / DefaultRGB / DefaultCMYK and the output intents of PDF/X and PDF/A for device colours, the ICC profile of a JP2 header; pages stay sRGBtests: tools/cms_check.py: icc_cms against LittleCMS 2 through ctypes (every installed profile of colord and Ghostscript, LittleCMS's v4 copies and three made here, all intents, with and without BPC: 1372 transforms), its grids against the exact transform, hostile profiles and 3000 mutations (codectest ops 327 to 330); tools/icc_pdf_check.py: 283 pages of ICC fills, 8- and 16-bit images, intents, Default*, output intents, JPEG and JPEG 2000 against pdftoppm and LittleCMS; pdftest's render_icc (225 checks)
pdf: Chinese, Japanese and Korean fonts (U21): the predefined CMaps through cidmap (code lengths, CIDs, so widths and embedded CID glyphs), and without a ToUnicode their text through the collection's CID -> Unicode table (ISO 32000-1 9.10.2, also under Identity-H); drawing gives a font that is not embedded a system font of its language (
FontQuery::lang), with vertical punctuation in its vertical formtests: tools/cidmap_gen.py --check: every code of the 59 CMaps and every CID of the four tables as pdftest --cidmap decodes them equals Adobe's files (the installed copies of poppler-data and Ghostscript compared too); tools/cjk_check.py: a PDF per CMap with text encoded by Python's codecs, in a font that is not embedded and without a ToUnicode, read as the original text and drawn as pdftoppm draws it; pdftest's read_cjk (27 checks) and render_cjk
plat: Android has
plat::fsandplat::watch(docs/ANDROID.md, AN3): Linux's code (the kernel's calls throughrt::os) on the names of android_files.rs --/config,/data,/cache,/tmp,/documents,/importsand the rest of/are the app's storage,/system,/product,/procand the system's other folders their real paths, also forread_file,dir_listand the other file functions;\separates as in those names.Diropens component by component and never triesopenat2there (the app's seccomp filter ends the process with SIGSYS on x86-64); an absolute link target is kept as its real path and read back as its name;local_zone_idfrom the propertypersist.sys.timezone;watchwith inotify;File::create_new(O_EXCL).fs::hard_linkis false on Android: SELinux refuses apps every hard linkrt:
rt::os::renameon Android (renameat2, elserenameat), as on Linux, forplat::fsjflib:
jflib::casandjflib::datastoreon Android too (plat::fsthere since AN3, docs/ANDROID.md); docs.rs builds them foraarch64-linux-androidTests: coretest's groups datastore and cas run on Android, its group plat checks files, watch and the local zone there; plattest
--test kernel(fs::Dirwithoutopenat2; without fork, clone and dup2),vfs,trash(Android has none) andcontent'sFile::create_newrun on Androidnetio: HTTP client (security plan 2e): Content-Encoding decoded as the body arrives (gzip, br, zstd with a window of up to 8 MiB as RFC 9659 allows, deflate as zlib;
Client::decode, on by default: a request without the caller's Accept-Encoding or Range offers "gzip, br", Content-Encoding and Content-Length then leave the answer's headers,max_bodyholds for the decoded body too,HttpError::Encoding); redirects (Client::redirects/with_redirects(n), off by default: 301, 302, 303, 307, 308 with a Location resolved byUrl::join; https to http refused; 303, and 301 / 302 after POST, go on as GET without the body and its headers; Authorization, Cookie, Proxy-Authorization and Host stay behind on another origin;with_redirect_check(f), asked first (a redirect to http that it lets pass is then refused);Client::fetch->Fetched { url, response };HttpError::Redirect); cookies (with_cookies(Arc<Mutex<netpkt::cookie::Jar>>): the Set-Cookie of every answer stored, redirects included, the jar's cookies sent where the caller set no Cookie header); a connection pool (with_pool(Pool::new()),Pool::with_limits(per_host, max_idle, idle_ms): connections kept per origin, proxy with its credentials and TLS layer, a kept one with the timeouts of the client that takes it, a kept one looked at before use, a GET sent once more on a new connection when a kept one ends before its answer); HTTP proxies (netio::proxy:Proxy::new(url)with user:password, a proxy per scheme,no_proxy(list)with names, addresses and CIDR ranges,Proxy::from_env()with http_proxy in lower case only (httpoxy), https_proxy / HTTPS_PROXY, all_proxy and no_proxy as curl reads them; http in absolute form, https through a CONNECT tunnel,HttpError::Proxy(status); loopback and localhost go direct);Client::deadline_ms(a whole request, redirects and retries included: each address connected to, every read -- a TLS record in pieces too -- and each 16 KiB piece of a write wait at most the time left; a write that runs out of time is TimedOut; the name lookup and the TLS handshake are the resolver's and the connector's (the handshake's timeouts are the time left when it begins), a handshake that ends past the deadline, done or failed, is TimedOut);Client::request_on(stream, ..)(one request over a connection the caller opened);Url::join(RFC 3986 5.2, by netpkt::uri),same_origin,authority,pathnetpkt:
psl: the Public Suffix List (ICANN and private sections, 10 507 rules as of 2026-11-27):public_suffix,registrable_domain,is_public_suffix,LIST_COMMIT,LIST_DATE. The tablepsl_data.rsis generated bytools/psl_gen.pyfrom publicsuffix/list at a pinned commit and stands under the MPL-2.0 (licenses/PSL-LICENSE.txt)Tests: coretest group
httpclient(154 checks): URLs and the references of RFC 3986 5.4; status lines, interim answers and framing from scripted answers; every Content-Encoding, in chunks, two gzip members, damage, bytes after the stream, bombs, zstd's window; redirects between two origins and from https; cookies with the suffix list; the pool and Session against a server that closes, smuggles a second answer or answers in HTTP/1.0; the deadline; a proxy with credentials and CONNECT tunnels.tools/cookie_check.py: the 222 cookie tests of abarth/http-state through the client, its jar, redirects and HTTP proxy (217 pass, 5 known with their reasons; docs/EXTERNAL_SUITES.md). Fuzz targetshttp_client,url(a URL's text parses to the same URL) andcookie(the jar and the suffix list) for tools/net_fuzz.py and tools/cov_fuzz.py;coretest --http-get URL [--proxy URL] [--redirects N] [--cookies]netio: DNS (security plan 2f, part 1): records of any type:
dns::lookup(name, rtype)anddns::Resolver(new(Config),system(),lookup,resolve,with_cache(entries),clear_cache) ->dns::Lookup { name, aliases, records, ttl }: netpkt::dns's records of the asked type, of the name the CNAME chain led to; NODATA as no records, NXDOMAIN asNotFound, SERVFAIL / REFUSED asOther; the root as ".". Queries with EDNS(0) offering 1232 bytes, asked again without it after a FORMERR without OPT (RFC 6891 7). A cache per name and type: the answer's lowest TTL (at most a day), negative answers by their SOA (RFC 2308 5, at most an hour), 1000 entries by default, only records bound to the question. DNS over TLS (RFC 7858;dns::Server::tls(addr, name): the certificate checked for the name, the connection kept) and over HTTPS (RFC 8484 over HTTP/1.1;Server::https(url),.at(addrs)for bootstrap addresses; POST with id 0, connections kept) inConfig::secure: with them the plain name servers are not asked, and queries are padded to 128 bytes (RFC 8467).Config::timeout_msandattempts(resolv.conf'soptions timeout:andattempts:).dns::read_reply(answer, query) -> dns::Reply: an answer's checks for a transport of one's ownnetpkt:
dns: SRV, DNAME, DS, CDS, SSHFP, RRSIG, NSEC, DNSKEY, CDNSKEY, NSEC3, NSEC3PARAM, TLSA, SVCB, HTTPS and CAA as typedRData(Ds,Dnskeywithkey_tag()andrdata(),Rrsig,Nsec3,Nsec3Param,Svcbwithparam,alpn,port,ipv4_hints,ipv6_hints,ech,is_alias) and their zone-file text as dig prints it; names in their data written without compression and read only so, but an SRV target (RFC 3597 4); malformed data refused (DnsErr::BadRecord): SVCB / HTTPS in service mode by RFC 9460 2.2 and 8 (keys out of order or twice, a mandatory key missing, a known key's value of the wrong form), a CAA tag that is empty or not letters and digits, a type bitmap's windows out of order or of 0 or over 32 bytes. EDNS(0):Edns(udp_size,ext_rcode,version,dnssec_ok,options;ede()for RFC 8914),Message::edns(several OPT records or a malformed one: an error),set_edns,rcode()with the extended bits;OPT_*,SVC_*, the newTYPE_*,RCODE_BADVERS,base32hexTests: coretest group
dnsres(80 checks): a test zone over UDP, TCP, DNS over TLS and over HTTPS on loopback -- every type, CNAME chains, records of other names, spoofed datagrams, the RCODEs, the search list, EDNS and the FORMERR fallback, truncation, the cache (TTLs, negative answers by their SOA, a full cache), encrypted servers without a plain fallback, padded queries, kept connections; groupdnsmsg(123 checks): the new types on the wire and as text (the root zone's KSKs with their key tags 20326 and 38696 and DS digests, RFC 4034's NSEC example, RFC 9460's SVCB examples and malformed ones, RFC 4648's base32hex) and EDNS.tools/dns_check.py: the same names and types throughcoretest --dns-tooland dig, over systemd-resolved, DNS over TLS of Cloudflare, Google and Quad9 and over HTTPS of Cloudflare and Google, and a local Unbound (plain and DNS over TLS): 70 cases, all the same (docs/EXTERNAL_SUITES.md). Fuzz targetdns_reply(read_reply);dns_netpktwith every type, a message read, written and read again the same (names without case)crypto:
ed448(new): Ed448 signatures (RFC 8032 5.2):Keypair::from_seed(&[u8; 57]),sign,sign_ctx(a context of at most 255 bytes),verify,verify_ctx,valid_public_key; strict verification as ed25519's (canonical points, S below L, [S]B = R + [k]A without the cofactor); the field in 56-bit limbs, 2^448 folded as 2^224 + 1; scalar multiplication with masked selects and scalars modulo L bit by bit (tools/ct_check.py:ed448_keypairanded448_signtake one way at every level, memcheck sees no branch or address made from the secret). Checked with RFC 8032 7.4's vectors (a context too) and Wycheproof's ed448_test.json (87 of 87)crypto:
rsa::PublicKey::verify_pkcs1_sha1(digest, sig): RSASSA-PKCS1-v1_5 with SHA-1, for protocols defined with it (DNSSEC's algorithms 5 and 7);HashAlgstays without SHA-1, so nothing else signs or verifies with itnetpkt:
dnssec(new): DNSSEC's checks without I/O (RFC 4033-4035, 5155, 6840, 9276, 9824, 9905):records(&msg)->Signedwith eachRecord's owner and RDATA in canonical form (RFC 4034 6.2 with RFC 6840 5.1), taken from the message's bytes (a record written again from its parsed form need not be the same bytes);rrset,sigs;verify_rrset(set, sigs, keys, now, &Policy, &mut budget)->Checked { ttl, signer, wildcard }(the RRSIG's fields, its time with a tenth of its span as skew, the key's tag, algorithm, zone flag and REVOKE bit; its TTL no longer than the RRset's, the RRSIG's own, its original TTL and its time left, RFC 4035 5.3.3; every signature computed counts against the caller's budget);signing_input(the bytes an RRSIG signs, for a signer as for the check);verify_sigfor RSA/SHA-256 (8), RSA/SHA-512 (10), ECDSA P-256 (13) and P-384 (14), Ed25519 (15), Ed448 (16), RSA/SHA-1 (5, 7) only withPolicy::sha1(RFC 9905);ds_digest/ds_matches(SHA-1, SHA-256, SHA-384);key_usable; the proofs of denial:deny_nsec,deny_nsec3->Denial(NoName, RFC 9824's NXNAME too; NoData, empty non-terminals and wildcards too; OptOut; Iterations aboveNSEC3_MAX_ITERATIONS, 50),deny_ds->DsDenial(a delegation without DS, no delegation, opt-out),wildcard_nsec/wildcard_nsec3;nsec3_hash,canonical_cmp(RFC 4034 6.1),label_count,parent_of,is_below_or_eq,wire/text,unbase32hexnetio: DNSSEC validation (security plan 2f, part 2), off by default:
dns::Config::dnssec: Option<Dnssec>(Dnssec::root(): the root zone's KSK-2017 and KSK-2024 as anchors;none(),anchor(zone, ds),sha1(on)for RSA/SHA-1); queries carry DO and CD (RFC 4035 4.9.2: this side validates); the chain of trust from the anchors down, DNSKEY and DS records asked for as needed and kept per zone; every RRset of an answer checked (the CNAMEs of its chain, a DNAME's synthesized CNAME, wildcards with the proof the name is not there), NXDOMAIN and NODATA by their NSEC or NSEC3 proof, unsigned data from the anchor down until a delegation turns out insecure; an NSEC synthesized from a wildcard (its RRSIG of fewer labels than its owner) proves nothing (RFC 4592 4.7); a wildcard answer needs an NSEC that covers the next closer name with no name below it (RFC 4035 5.3.4); the chain checked as it is read (a CNAME first; a CNAME beside other data at its owner, two CNAMEs, or records at the end of a chain with NXDOMAIN are bogus); a signer named above the anchor makes nothing below it insecure (the name's own path from the anchor decides); what is known of a zone is kept no longer than its proof holds;Lookup::security(Security::Secure,Insecure,Unchecked); a bogus answer is refused (NetErrorKind::Otherwith codedns::BOGUS, kept 30 s); RFC 9824's compact answer (NOERROR with NXNAME) is NotFound. Policy: RSA/SHA-1 unsupported by default (RFC 9905), a SHA-1 DS ignored beside one of SHA-256 or SHA-384 (RFC 4509 3), NSEC3 above 50 iterations insecure (RFC 9276)netio:
dane(new): DANE for TLS clients (RFC 6698, 7671):Tlsa,lookup(&Resolver, host, port)(the TLSA RRset of_PORT._tcp.HOSTonly when DNSSEC finds it secure; bogus is an error),trust(..)->tls::Trust::Danewith usable records orTrust::Systemwithout,check(tlsa, chain, name, ocsp, now)->Match(the record's usage, orSystem;Match::pkix),may_use_pkix; an absolute host name (a final dot) looked up without the search domains;tls::Trust::Dane(Vec<Tlsa>): DANE-EE (the key, neither name nor validity checked), DANE-TA (a CA the server sent or the record's own, the chain and the name checked), PKIX-TA and PKIX-EE with the system's check (a root of the system's bundle can match PKIX-TA); records of unknown parameters passed over; TLS 1.2 allowed as with System; tls::Revocation and the stapled OCSP response count where a PKIX usage or the system's check decides (a staple asked for when a PKIX record is there, Required wants a good one, a session resumed only with one), not for DANE-EE and DANE-TA (RFC 7671 5.1, 5.2)Tests: coretest group
dnssec(97 checks): RFC 8080's Ed25519 and Ed448 examples (keys from their seeds, the signatures of its verified Errata ID 4935 made again byte for byte), RFC 6605's ECDSA P-256 and P-384, RFC 5702's RSA/SHA-512, RFC 5155's NSEC3 hashes and the proofs of its Appendix B, RFC 4034 6.1's canonical order, the policy, a KeyTrap budget; groupdnsval(75 checks): zones signed in the test (a root with NSEC, a TLD with NSEC3 opt-out, NSEC and NSEC3 zones, Ed25519 KSK and ZSK, Ed448, P-256, RSA/SHA-512) served by a test resolver -- secure answers, wildcards, empty non-terminals, CNAME chains across zones, a DNAME, a truncated answer over TCP, the TTL no longer than the signature holds; insecure ones (no DS, opt-out, a DS of an unknown algorithm, 100 NSEC3 iterations); bogus ones (a changed, expired or missing signature, an NXDOMAIN without proof, a DS of no key, a stripped DS answer, a wildcard's NSEC expanded to the name to deny its MX, a forged CNAME beside a signed RRset, a signed RRset with NXDOMAIN, a wildcard answer below an empty non-terminal, a signer or an NXDOMAIN's signer named above the anchor); a signed zone below an insecure one with a signed DS (insecure); the TTL no longer than the RRSIG's own; an absolute host name's TLSA without the search domains; groupocsp: Trust::Dane with PKIX-EE and Revocation::Required (a good staple, none, a revoked one), DANE-EE without one; DANE-EE, DANE-TA, a wrong name, a mismatch, an insecure zone's records. crypto's group: Ed448's vectors.tools/dnssec_check.py: coretest against delv for secure, insecure, negative and broken zones of the internet (extended-dns-errors.com, dnssec-failed.org) and againstopenssl s_client's DANE for DANE hosts: 39 the same, 3 known (RFC 9905's SHA-1, RFC 9824's compact answer); zones signed by dnssec-signzone and ldns-signzone (108: algorithms 8, 10, 13, 14, 15, 16; NSEC, NSEC3, NSEC3 with opt-out; expired and changed signatures) served by Unbound's auth-zone, against delv and a validating Unbound: 828 the same, 36 known (RFC 4592 4.7's synthesized NSEC, a wildcard's NODATA under opt-out);tools/wycheproof_check.pywith Ed448; fuzz targetdnssec;coretest --dns-tool .. --dnssec [--anchor ..] [--sha1]and--dane-tool HOST [PORT]netio:
roots::verify_system_chain(chain, host, extra, ocsp, now):verify_system, and the path the system trusts, leaf first up to its root or extra CA (Windows' and Apple's own path, a root the server left out included; Linux and Android the path x509 builds to the bundle, else to an extra CA); netio's check of the leaf after the system's yes as before.dane::checkmatches a PKIX-TA record against the CAs of that path first, so a record of the root the server leaves out passes on Windows and Apple too, whose roots no bundle holds (on Windows and iOS it was passed over and the connection refused; RFC 6698 2.1.1, RFC 7671 5.4); a CA the server sent or of the bundle that the chain leads to still countsplat: certs:
verify_tls_server_chain(chain, host, ocsp, extra, time) -> Option<Result<Vec<Vec<u8>>, Refused>>:verify_tls_server, and on a yes the chain the system built (DER, leaf first, up to the root or extra CA it trusts, a root the server left out included): Windows the first simple chain of CryptoAPI's chain context, macOS and iOSSecTrustCopyCertificateChain; None on Linux and Androidx509:
verify_path(chain, anchors, now, name, usage) -> Result<Vec<Cert>, String>:verify_chain, and the path it found (the leaf, the intermediates it went through in their order up, the anchor)Tests: coretest group
systrust: the path the system trusts ends in an extra CA the server did not send (Windows CryptoAPI, Apple's Security framework, Linux), its refusals by reason; on Linux PKIX-TA records (0 0 1, 0 1 1) of the bundle's CA the server leaves out passdane::check, one of another digest or for another name does not; with--internet(.github/workflows/system-trust.yml, Windows, macOS, Linux) a public server's chain (badssl.com, else www.google.com, github.com): the system's path ends in a root the server left out, a PKIX-TA record of it passesdane::checkand a handshake withTrust::Dane, one of another digest neitherplat: Android prints (docs/ANDROID.md, AN4):
plat::printandPrintDochand the job's PDF to the system'sPrintManager(android/GalleryPrint.java, aPrintDocumentAdapterthat passes the PDF on as it is); its dialog -- a printer or "Save as PDF", paper, copies, pages, a preview -- comes after the call returned (0: the dialog has the job; the UI thread must not wait).PrintDocthere takes the pages into one PDF (pdf_native) and opens the dialog atend; a program without the Java host answersERR_UNSUPPORTED; the test variantjfgui_PRINT_TOas elsewhere.capabilities()reportsCAP_PRINTandCAP_SYSTEM_FONTSon Androidplat: Android's system fonts (docs/ANDROID.md, AN4):
policy::font_dirs()is/system/fonts,/product/fontsthere, and an app with a manifest may read/system/etc/fonts.xml;processandserviceare modules on Android too and answer "not supported" (every startprocess::ENOTSUP, the service manager an error text, a serviceNotInstalled), so apps build for every target without a cfg of their owntext: Android's fonts.xml:
FontConf::system()reads/system/etc/fonts.xml(also throughjfgui_FONTCONF, recognised by its<familyset>): a named family prefers the families of its fonts (sans-serif -> Roboto), an<alias>accepts its target, a fallback family of a language (ja, ko, zh-Hans, zh-Hant) comes first in sans-serif (itsfallbackFor="serif"fonts in serif), und-Zsye are the emoji;sys_families()lists the default family and every fallback family in the file's order,sys_family(db, file, index)the family of one of its fonts.fallback.rstries those families in that order (Android: after the language's fonts, before the built-in list);FontDb::face_by_fileandfontdb::file_familyfind a face by its file name and read a file's family name; built-in Android rules and fallback families stand in where the file is missingcargo-jflib: The Android host prints (android/GalleryPrint.java, copied into the package as for the other host files)
Tests: fonttest runs on Android (
--fallback LANG CP..: the system fallback per code point after fonts.xml's families; the selftest reads a fonts.xml over the fixture fonts); coretest's group plat checksprocessandserviceon Android; the androidGallery prints from its card 06 andandroid_system.pychecks the print dialog (A4, one page), Back (cancelled) and "Save as PDF" through the save dialog (the job done, the PDF holds the test picture; a phone only with--save-pdf, the dialog's button only with "Save as PDF" chosen; Samsung's My Files as the save dialog); for a phone--package(a test build beside the installed gallery),--only print(no setting of the system changes) and--pdf-out FILErender3d: Renderer::has_material
plat: inst::reg_exists_in, reg_get_sz_in (reading the registry) and secure_dir (a folder for all users: the administrators as owner, a DACL of its own)
Tests: Fuzz targets
img_jp2andimg_jbig2for tools/net_fuzz.py and tools/cov_fuzz.py (tools/net_fuzz/targets.rs; img_core, img_jp2 and img_jbig2 in both generated manifests). img_jp2 decodes through img_all's codec (into ARGB) and at a lower resolution with the components as coded, under a cap of 2^20 pixels (a pixel costs some hundred times as much under cov_fuzz's instrumentation: at 2^22 a 520-byte file of 33 x 65052 empty-tiled pixels, 30 ms in release, passed libFuzzer's 10 s); seeds: pdftest's images, JP2 headers made around them (palette and component mapping, ICC, channel definitions in another order and with opacity, sYCC, CIELab, CMYK, 64-bit and open-length codestream boxes) and, where Pillow is installed, 17 small files of OpenJPEG (tiles, precincts, the five progressions, layers, the 9/7 wavelet, 16 bits, PLT, a raw codestream). img_jbig2 decodes files (every page, and the codec) and PDF's embedded form with its JBIG2Globals, under a cap of 2^22 pixels; its 23 seeds cover every kind of segment, with symbol dictionaries (arithmetic with retained and used contexts, Huffman), text regions, pattern dictionaries and halftones encoded in targets.rs (an MQ encoder in the decoder's context numbering) so that they decode, generic and refinement regions, striped pages of unknown height, random-access files and the files of tools/jbig2_check.py's layout suite. No finding in 300 s each of net_fuzz (img_jp2 728,309 runs, img_jbig2 597,935) and of cov_fuzz (43,254 and 10,362 runs)build: Android in CI (docs/ANDROID.md AN5):
tools/android_ci.pybuilds coretest, plattest, asynctest and jfWord for x86-64, makes an AVD of its own from the system image (API 35), starts the emulator without a window and runs the tests peradb shelland in their test APKs; the workflowandroid.yml(Ubuntu runner with KVM, sdkmanager and the emulator directly, no actions from outside; started by hand) runs itbuild:
jfgui_ANDROID_CONSOLE=1: an app withandroid/AndroidManifest.xmlbuilds as a program foradb shelland its test APK instead of its APK (jfWord's self-test and scripts in an app's process);tools/android_console.py --touch NAMEputs an empty file into the run's folders (a script that replaces a file)jfWord: Android (
TARGETS,android/AndroidManifest.xml, packageorg.jfreund.jfWord): documents through the system's picker, printing through Android's print dialog, the system's fonts; on a phone the file view has a narrower side bar and recent files without their columns.apps/jfWord/tests/android.pyruns the self-test and the scripts files, editor and print on a devicejfWord: Datei / Drucken: the pages as the preview lays them out, one picture each at 200 dpi, through the system's print dialog (
plat::PrintDoc) where the platform prints;tests/print.uis(test variantjfgui_PRINT_TO)tests: Third review, group 5: codectest --sheet csv_limits/table and xlsx_names (sheets, names, 10000 sheets with 100000 names, one table named 29000 times), codectest zip_limits/ratio_write, diagramiotest vss/bounds (parentheses, a formula past formula_bytes, a million fields, 200000 rows, overlapping streams) and data/hostile ids, columns, prefix, coretest's zstd frames under a 1 MiB dictionary; against the code before: 33 s, past 90 s, past 90 s, past 90 s, accepted (212 MB), 42 s, 13.5 s, unbound, 63 s.
tests: Third review, group 6: diagram_core unit tests texts_within_max_text and many_shapes_dropped_into_a_container; diagramiotest data/bulk (auto_link of 2000 shapes, refresh of 100000 rows), export/pictures/budget, export/svg/*/ids, render/cpu-passes (the frame pixel for pixel the same without the gradients outside the view); against the code before: 13.2 s for the 3000 shapes, 2.1 s for the refresh, 2 GB and 8.5 s for the 30 pictures, two ids twice in the SVG of a page with a background, four copies of the pictures.
pdf: Forms (U23):
pdf::edit::Updatechanges a document that pdf::read opened and saves it as an incremental update (add,add_stream,set,set_stream,delete,get,save): the file before stays byte for byte (a signature still verifies over the bytes it signed; whether a certification's DocMDP permissions allow the change is the verifier's judgement),set_fieldandflattenchange all or nothing, an encrypted file keeps its encryption (RC4, AES-128, AES-256), a repaired one gets a whole cross-reference.set_fieldfills in text fields, check boxes, radio buttons, combo and list boxes (FieldValue) with new appearance streams in the /DA font, or in fallback fonts of aFontSourceembedded as subsets (Cyrillic, CJK, Arabic, Indic, ...); a form with NeedAppearances gets the appearances of all its fields and loses the flag, /XFA is dropped;flattendraws fields into their pages. The writer makes fields:Canvas::text_field(quadding, multiline, password, MaxLen, comb),check_box,radio,combo_box,list_box,push_button,signature_fieldwithTextField,FieldStyle,FieldFont(Helvetica, or a font embedded in full) andAlign. Drawing makes the appearance of a field that has none or whose form asks for it (NeedAppearances), as Poppler does; annotations are drawn from the state a page begins with.read::Document::fieldsgives a button's export value where its state is a place in /Opt; a free entry of an incremental update deletes the object (it read the older one before).read::Error::Invalid,Dict::remove. lib/pdf/README.mdtests: tools/pdf_form_check.py: lib/pdf's forms against qpdf (libqpdf through ctypes: no errors in the filled and flattened files, every value set read from /V), Poppler (libpoppler-glib: the values a viewer shows, its filled forms read back, its NeedAppearances appearances), pdftoppm (filled and flattened pages drawn alike), pdfsig (the signature of a file openssl signs still verifies over its bytes after a field is filled, pdfsig sees the later revision) and Ghostscript (reads the filled, flattened, Poppler-filled and signed files): the writer's form, forms of every kind of field made here (also RC4- and AES-encrypted, with object streams) and CUPS's forms (125 checks in 12 cases); pdftest's group form (308 checks),
pdftest --formand--fillTests: coretest cas: gc of a folder repository whose data folder or a pack folder is a link to another repository's (the other one's packs stay), in a folder mount and in mem://; BackupCraft's security_smoke.py (hand-made tapes with a link followed by a file below it and with unsafe set ids, bcctl's saved token per server, a pairing code used by 16 enrollments at once, immutability at create and attach, a nested source behind a link, the admission limit and a cancelled queued operation), session_expiry_smoke.py and tests/session_reset.uis (the console after an expired sign-in and after sign-out), vm_smoke.py --flood-console (a guest that keeps printing), agent_smoke.py (another host name does not get the saved token; the removal checked with the agent's own certificate)
tests: Third review, group 7: JFDiagrammer ui_review3.uis -- Esc at a guide keeps the selection, Enter edits the text, a key tip over a selected shape types nothing into it, a Ctrl+Shift zoom rectangle reaches 800 %; against the code before all four fail (the selection dropped, no text box, the shape's text box with the S, 100 %).
pdf: Encryption (U24a):
Document::set_encryption(Some(Encryption))writes a document encrypted with the standard security handler,Encryption::aes256(user, owner)(revision 6, Algorithms 8 to 10 of ISO 32000-2; a PDF 1.7 file gets Adobe's extension level 8) orEncryption::aes128(revision 4, AESV2, passwords in PDFDocEncoding and their first 32 bytes, as qpdf and Acrobat take them; the reader converts them so too),.permissions(Permissions::PRINT | ...)(the eight bits of Table 22),.encrypt_metadata(false),.with_seed(seed)(the key, the salts and the file ID from the seed: the same document gives the same bytes; the seed is the key, so a fresh random one for each encryption, fixed ones for tests; without it the system's random numbers, which the browser lacks); RC4 is not written. Every string and stream is encrypted (the XMP metadata stream not withencrypt_metadata(false)), the /Encrypt dictionary and the trailer are not; an empty owner password is the user's, user and owner passwords that are one after the cut (127 or 32 bytes) are refused, and a password that is both opens as the owner (the reader now tries the owner password first); AES-256 passwords are cut at 127 bytes, also inside a character, as ISO 32000-2 and qpdf have it.edit::Update::save_full(&Full { security, break_signatures })writes a document again in full: every object the trailer reaches, with the update's changes, the older revisions and unreachable objects gone, the numbers kept (the section lists their runs only), object streams and a cross-reference stream when the file had them (not where strings would lose their protection, not the catalog of an encrypted file);Security::Keep(its key, streams copied as they are),Security::None(decrypted, /Crypt filters taken off, also indirect ones; bytes AES cannot have made, also the IV alone, are an error; no bytes at all are an empty stream, as viewers read them),Security::Encrypt(&Encryption); changing the encryption of an encrypted file needs its owner password, a file with signatures (also when the update removed them) needsbreak_signatures.Permissions::from_preadsread::Document::permissions.tests: tools/pdf_sign_check.py: the writer's encrypted files (the sample and the form, AES-256 and AES-128) against qpdf (libqpdf through ctypes: no errors, refused without and with a wrong password, the owner password, the permissions), Poppler (the password, the permissions, the title, the text), pdftoppm (drawn alike) and Ghostscript; files written in full: the sample encrypted by qpdf (AES-256 and AES-128, with and without object streams) decrypted, encrypted anew and kept, the eight encrypted files of the reader's tests decrypted (qpdf checks them, Poppler finds the same text, pdftoppm draws them as before), the user password refused for decrypting, a 128-byte password cut at 127 bytes as qpdf cuts it, a file that encrypts strings but not streams keeping its titles encrypted, a cut AES stream (also the IV alone) refused for decrypting, unknown modes and --security and --cipher that disagree refused (302 checks in 22 cases); pdftest's group crypt (544 checks: passwords in UTF-8 and PDFDocEncoding, 127 bytes also inside a character, one password for both, permissions, no mark in the clear, drawn as the plain file, seeds, the eight files kept, decrypted and encrypted anew, files with tables, cross-reference and object streams, updated, repaired and signed ones (also with the signature taken out by the update), indirect /Crypt filters and ones the update added, object numbers up to 8 million, a direct /Root, an encrypted empty stream, a deleted number still referred to, passwords that the cut makes one, 600 mutated and cut files through save_full)
tests: Third review, group 8: render3dtest particles (71.6 min with a lasting emitter: 4 alive), physicstest (bad sizes of static bodies, a box on bumps: at most 16 manifolds), gametest (an asset loaded again while it lingered, ten HELLO and LEAVE, Follow::zoom(1e300)), modeltool --test bounds (a sphere of 256 x 128, a bevel of 64 segments, a weld within 10) and gltf (a primitive without triangles); against the code before: 10 alive, 0 of 4 refused and 34 manifolds, Loading for good, 2 rooms and the player refused, no end, 284 s and no end, not refused. render3dtest --bench-blend measures the blended draw (0.74 against 35 ms with one blended grid of 300 000 indices on an RTX 2070 Super; still open).
tests: Third review, group 9: render2dtest dxf (GBK and EUC-KR before UTF-8), coretest tlsweb (1100 KeyUpdates with data between them, 1025 without) and systrust (Windows: a revoked staple with an extra CA), nettest sim (a reliable chunk over the bucket, a client of max_payload 600, a RESPONSE for a live connection, a flood of CONNECTs, the key work of one /24), plattest pad (Linux: a pad that went: the next poll looks again).
Changed#
tests: modeltool and editortest take JFScript d78579a (its stage S5: hardware floating point with the software's bits, JFScript's docs/FLOAT.md; no scan of the pending drops per new host object); the root Cargo.toml takes
jflib-rtfrom this workspace for it too, besidejflib-agent-core. modeltool's checksum staysff9e060c8233c600; the measurements of S5 are in docs/S5_MEASUREMENTS.md (modeltool --bench,tools/script_bench.py,tools/script_event_bench)netio:
dns::Confighas the fieldssecure,timeout_msandattempts, so a struct literal of it needs..Config::default().resolve_with(andresolveon Linux) ask throughResolverwithout a cache: with EDNS(0); an answer over UDP that does not fit is ignored and the wait goes on (before: the next server); after no server answered no other name of the search list is asked (TimedOutat once); servers that failed (SERVFAIL, REFUSED) areOtherinstead ofTimedOut.dns::parse_answermakesread_reply's checksnetpkt:
dns::RDatais#[non_exhaustive]and has variants for the new types (records of them wereRData::Other; a match over it needs a_arm);RData::textwrites the root as "." in names (a null MX: "0 .");type_by_nametakes "TYPE" only with digits after itnetio:
dns::Lookuphas the fieldsecurity;dns::Resolver::clear_cacheforgets what DNSSEC knows of zones toopdf:
FontQueryhas a fieldlang(the language of a CJK font's collection), so a struct literal of it needs one more fielddiagram_core: (JD19, Visio check)
field::formatreads Visio'sesc(n)pictures (whatFIELDPICTURE(0)gives, the Format of Visio's callout fields) as the general picturediagram_io: (JD19, Visio check)
report: "exists" and "does not exist" are written as Visio's own definitions write them, Condition 8 with the Boolean Value 1 or 0 (an earlier 7 reads as "does not exist"); new definitions are written withAdvancedFilter="0", with which Visio applies the criteriadiagram_core: (JD19, Visio check)
Master::new: a new master's shapes get IDs from 5, as Visio's masters; Visio takes a data graphic's callout master only when its shape has ID 5. Masters read from a file keep their IDsdiagram_core: (JD19, Visio check) Formulas: a Value cell (User, Prop, Field ...) keeps its result's type the way Visio marks it, a string with the unit STR, a colour COLOR, a point as
PNT(x,y)with PNT (Transaction::set_result_unit); unmarked, Visio read texts, colours and points back as numbersdiagram_core: (JD19, Visio check)
datagraphic: what Visio 16 needs to see a data graphic: items and callout masters carryUser.visDGCalloutItem = 5(callout masters alsovisDGDefaultPosandvisDGStackHeight0), an instance names its item withDEPENDSON(item shape ID),USE({UniqueID})without quotes, a graphic's UniqueID in the pattern Visio gives its masters (Visio changes other ones when it opens a file); colour by value falls back toTHEMEVAL("FillColor")in its User cell. Visio lists and applies text and data bar items; icon sets and colour by value it draws but does not listdiagram_core: (JD19, Visio check)
report: Visio's codes, each checked with Visio's report add-on: SummaryTypes 1 count, 2 total, 4 average, 8 minimum, 16 maximum, 32 median (Func::Medianis new); Condition 4 is <, 5 >=; a definition withadvanced_filterset runs without its criteria, as in Visio; the grouping column comes firstdiagram_core: (JD21v) The routing styles lay the ways a real Visio 16 laid in a counter-check: the direction gives only the axis; right angles and network straight across beside each other, else an L leaving the begin's top or bottom, past obstacles in the free part of a side; straight corner to corner; organization chart and flowchart bend one stub before the end's / after the begin's shape; tree one straight line; the stub and the clearance are half the page's AvenueSize; WalkPreference changes no way; ConFixedCode 6 / 0 after routing as Visio writes it
tests: modeltool takes JFScript c970852 (stage S1 of JFScript's direction paper, docs/GEOM.md): the parameters of its script functions have English names (
m.bevel(width, segments, axis),geom.cone(r, h, segments, r_top), decision G9.3; descriptions and messages stay German), what the host accepts but is very likely a mistake is a warning at the call (more arguments than a function reads,closedofgeom.sweepno bool, a secondmodel.name/budget/uv_scale, a material defined again differently) on the console, inreport.json(warnings) and in the watch window, and a failedmodel.expect_sizeormodel.budgetnames its line (report.json's rules carryfileandline); the checksum stays0fae175a31a0f15e. editortest builds against the same JFScripttests: modeltool takes JFScript a21a0c3 (stage S2, host objects, docs/GEOM.md "Was JFScript braucht"): a mesh is a host object of type
meshinstead of the map{mesh, tris}(==is identity,m.trisa read-only property, a mesh the script drops is freed), a vector is a value typevecwithx/y/z,+ - * /and==(every point argument still takes a list[x, y, z];m.bounds()andvec.*in 3D give avec), one descriptionhost::api()(script::Api) gives--api, the extra-argument warning and the member messages, and JFScript's language services check the script and its modules (an unknown member of a mesh or a vec is a warning with its place, before the host's). Cache keymodeltool-key-3, the report's timing hasmeshesandmeshes_peak. treppe.jfs computes its handrail with operators: the same meshes bit for bit, its fuel 265 instead of 275, so the checksum isff9e060c8233c600. editortest builds against the same JFScripttests: modeltool takes JFScript 415aca4 (stage S3, docs/GEOM.md "Was JFScript braucht"): it compiles once with its description (
script::compile_api), so the language services' warnings come from the same parse as the program (a module's when it is imported, among the host's in the order they came; until now all of the modules' came before the host's);host::api()declares every form of a function or method (m.move(x, y, z)andm.move(v: vec | list), three ofm.scale,geom.merge/union/difference/intersectionwith a listmeshes: list<mesh>,vec(v),vec.addand its kin with lists of two numbers,model.expect_size(size)), unions (material: str | map,other: vec | list,bounds(): map | nil) and parameters that may be left out without a default (name?,axis?,x?), andApi::removedfor the methods of a mesh S2 took away as functions (geom.move wurde entfernt – nimm m.move, a warning before the run and the error of the call, which saidUnbekannte Funktion geom.move); every function and method takes named arguments by these signatures (geom.box(w: 2, h: 1, d: 3),m.bevel(0.1, segments: 3),model.add(m, name: "deckel")), a name a function does not take is an error before the run (geom.cone hat keinen Parameter segmens – meinst du segments?), for a method a warning and the error of the call. Cache keymodeltool-key-4; modeltool has no choice of language and stays German. The checksum staysff9e060c8233c600. editortest builds against the same JFScript: its JFScript texts follow the UI language (script::set_language), and completion offersawait(29 items where there were 28)plat: (E2)
Event::yof key events carries the key's character above its location: code that compared it with aKL_*takesplat::key_location(y)(KeyEvent::locationis as before)plat: Wayland's touchpad (its continuous axes) and macOS' trackpad deliver
E_WHEELin physical pixels withWHEEL_PIXELSinstead of 120ths (Wayland: 12 a pixel, macOS: 3 a point); the UI makes notches of them aswheel_lines()lines of 16 DIP, so its views follow the fingers' way (they scrolled 4.8 times it on Wayland, 1.2 times on macOS)ui: A notch of the wheel scrolls the system's lines (
ui.wheel_lines()) in the library's views, no longer always three; headless runs stay at threedoc_io: The DOCX reader's package checks (content types, relationships, part names) are archive::opc's with
Rules { exact_names: true, .. }; DOCX files open, are refused and are saved exactly as beforestyle_netlab: NetLab's ribbon: a 92 DIP band without side frames, the register row with the selected register open toward the band, context registers, key tips; large buttons with a 32 DIP icon over two caption lines (only ribbons use them; JFNetworker's look stays)
diagram_core: The theme cells (ThemeIndex, ColorSchemeIndex, EffectSchemeIndex, ConnectorSchemeIndex, FontSchemeIndex, the variation and embellishment indices) and the quick style cells inherit from the styles: the line and font ones with line and text, the others with fill (
Category::of); shapes took them only from master shapes and so never got the document's themeui:
ui::launchon Android takes a headless run (--shot, --script, --agent-json, --agent-mcp) as on the desktop, like iOS; the rest stays the Java host's. The desktop's runner adds about 290 KB to an APKui: The scripts'
commithands the text toplat::ime_commit_textin one call, as a platform does (editortest code_commit: 100000 bytes)Tests: render2dtest --bench-dxf names a lost device and measures the next view on a new one (on the HD 610 the kernel reset the whole of Zurich's first frame after 3 s) (G6e3)
render3d: The camera's culling without the occlusion test and the shadow cascades claim the places of their lists in four turns by list: lists that share warps (opaque and MASK instances of a mesh, a few meshes in turn) no longer cost an atomicAdd per instance (10 % MASK: 0.145 to 0.067 ms for 1 million cubes). docs/RENDER3D.md section Zähler der Listen
ui: A run whose UI output stays on the CPU for good (no Vulkan loader, no usable adapter, a display that takes no dma-bufs, ...) says why in one line of the log at info level,
gpu: output: none in this run (REASON): the windows go through the CPU path: in the ring for crash reports andplat::log_recentand in the log file, on stderr only withjfgui_LOG=info; the screen stays silent as before. On LinuxGpuOutput::errornames a display without dma-bufs so instead of "no child window" (docs/ARM64.md, ARM8)diagram_core: (JD11) The display list works out cells stored as "Themed" through the formula engine (THEMEVAL with the style lists, colour transforms, variants, line ends, fill patterns), so a design applied shows at once;
ThemeInforeads the format scheme's number fromvt:fmtSchemeExas Visio writes it; the text tool's box uses the style "Text Only" for its text toodiagram_io: (JD11) New documents are themed: a style "Theme" (ID 5) with THEMEVAL() cells, "Normal" based on it, "Connector" on the connector scheme's style 1, "Text Only" with the dark font style 1 and Visio's text contrast rule; the page shows the design NetLab, variant 1 (its theme part now carries Visio's extensions); the root style holds the NetLab look without a design
rt, physics, geom:
fx::sqrt_portable: the correctly rounded binary64 square root from f64 operations and one 64 x 64 bit product (Newton's method, then an integer test picks the neighbour), with the bits ofsqrtsdfor every input, NaN included, on every target. Where the processor's root is not used (the browser, the x86-64 Android emulator)fx::sqrtdis this function now instead of the bit-by-bit integer root, several times faster with the same bits (docs/PHYSICS.md, Messwerte). lib/physics and lib/geom had a copy each;physics::math::sqrt_portableandgeom::math::sqrt_portableare thin wrappers of rt's now, theirsqrtisrt::fx::sqrtdon every target, and NaN results followsqrtsd(the negative default NaN for a negative number, a quieted NaN for a NaN), somath::sqrtgives the same bits on every target for NaN toorender3d:
render3d::Camerahas a field more,ortho(None: perspective as before); code that builds aCamerawith all its fields addsortho: None(Camera::look_atsets it)diagram_core:
instance::import_master: a master whose NameU the document has already (the same name in two stencils) gets ".ID" in Name and NameU, as Visio names itdiagram_io: The stencil tool's SVG import keeps the document's order as JFNetworker's tools/vsym.py does: consecutive elements of one format share a subshape, a format that comes back later is a subshape of its own (before, every format was one layer where it first appeared and later parts vanished under the body); overlapping filled parts of one format get subshapes of their own (no holes from the even-odd rule); sub-paths of one kind share a Geometry section; an SVG group gets SelectMode 0; SVG masters get new UniqueIDs
build: .github/workflows/arm64.yml replaces arm64-windows.yml: besides ARM5's and ARM8's checks it builds template's ARM64 packages (setup and MSIX on windows-latest, .deb, AppImage, .rpm and the Flatpak manifest on ubuntu-latest), installs and starts them on windows-11-arm and ubuntu-24.04-arm and runs lib/update there; by hand (workflow_dispatch with parts all, checks or packages) or a push to arm64-test/...
ui: (AP9)
ui.menubar(None)of the main window gives the menus to the iPad's menu bar too and keeps drawing its row there (the user's decision of 2026-11-19); a pass whose main window draws nomenubar(None)takes the app's menus out of the system's bar again (macOS as well: a page without the bar leaves no stale menus up there). The iPad staysFF_TABLET(FF_PHONEbelow 600 points) in every window, also a large one in Stage Manager (the user's decision of 2026-11-19)ui, plat: The browser: the app's main window fills the page's canvas without a window frame, as on Android and iOS: no library title bar, no caption buttons (also not in a title bar of the app's own,
AF_CUSTOM_TITLEBAR), no resize grips; the browser tab shows the title. Before, it looked like a window inside the page.plat::win_state(0)reportsWST_MAXIMIZEDthere instead ofWST_CSD; on every canvas host (the browser, Android, iOS) window 0's place and size follow the host alone:win_set_rect(0, ..),WCMD_MAXIMIZEandWCMD_RESTOREleave it. The library's tool windows keep their title bargame: A client over a WebSocket aims for one tick more input margin (
ClientOptions::stream_margin, set byNetClient::set_reliable, which NetLink calls): measured over WLAN, 2.7 instead of 12 corrections a minuteui: (G7b) Veils: a cell of the base layer with something over a GPU view (
ui.gpu_view; a game's HUD, a menu's panel) is composed on the GPU instead of reading the view's frame back in every frame. The CPU draws what lies over the view once over a black and once over a white view; the output's pass draws the cell as K + T x frame (fs_veil), the CPU's "over" to one level; a new frame of the view costs those cells nothing (before: the whole frame read back and waited for, 1.3 ms at 1200 x 700 on an RTX 2070 SUPER, and the cells drawn and uploaded again). Text in veils is greyscale; at rest the framebuffer gets the true pixels once (gp_settle).jfgui_GPU_VEIL=0andUi::gpu_test_veil(false)give the way before;GpuOutput::veil_cells,veil_rects,veil_draws,veil_settles;GPU_OUT_FS_VEIL. uigputest--test viewplain: no frame read back while the view turns under something, the screen against the CPU's picturediagram_core: (JD15, DM-04)
ops::new_shape: a rectangle or an ellipse of the drawing tools takes the document's default line, fill and text styles (DocumentSettings DefaultLineStyle, DefaultFillStyle, DefaultTextStyle, those that exist; else "Normal") as a line of the line tool already did; the text box keeps "Text Only"ui: (JD15)
ui.shape_edit:SeState::show_pointsshows the connection points of every visible shape (also while glue is off), not only those of the shape under the pointer; Ctrl while dragging a dynamic end swaps static and dynamic glue (over a connection point the whole shape, over a shape its nearest connection point); Ctrl + Shift + right drag pans the view (a right click with them still zooms out); Tab and Shift+Tab without a selection take the first and the last shape; Ctrl + Shift on a selected shape: a drag copies, a click zooms in as elsewherediagram_core: (JD15, SS-18) Dynamic glue reads WalkPreference: an end whose bit is set (1 Begin, 2 End: visWalkPrefBegNS, visWalkPrefEndNS) docks on the top or bottom of its shape when that way is as short and has as few bends as the cheapest one
diagram_core: (JD15, SL-04)
MasterTexts::matchessearches the QuickInfos in the five languages toonetio: TLS: a Certificate message may hold 20 certificates (10 before), and an intermediate in it that cannot be read is left out instead of failing the handshake, as browsers do; the peer's own certificate must still be readable
Tests: tools/limbo_check.py and coretest's x509chain leave an unreadable intermediate out, as netio's TLS now does; docs/EXTERNAL_SUITES.md: limbo 28 failures (+14 optional) instead of 51 (+16), none of them changes what netio accepts; the 5 testcases with directory-name constraints, which netio processes now, are run (and pass) instead of skipped
Tests: tools/net_fuzz.py: the targets ipv4_reassembly and ipv6_reassembly (netpkt's fragment reassembly fed mutated, reordered, duplicated and overlapping fragments); a worker that dies outside the calls it guards is reported as a finding instead of being left out of the report
netio: TLS 1.2: a server without the extended master secret is taken again (since the review of 2026-10-23 it was refused, and with it the TLS 1.2 servers of badssl.com and other old servers). The Triple Handshake attack the extension closes needs session resumption or renegotiation, which netio's client does neither of; resumption, once it comes, will require it
Tests:
tools/ct_check.py: with valgrind installed, every operation also runs under memcheck with its secret marked undefined (BoringSSL's way), which reports branches on the secret and addresses made from it, table lookups at a secret index included; a deliberate lookup of the probe (selftest_lookup) must be reported, and the places where a secret becomes public on purpose are listed with their reasonsnetio:
x509::Cert::ipsandCertBuilder::ipsarex509::IpAddr(the same shape asplat::net::IpAddr;IpAddr::from([u8; 4])/from([u8; 16]),from_octets,octetsconvert);netio::x509andnetio::derare the crate jflib-x509netpkt:
netpkt::x509is the crate jflib-x509 (one parser for the library, with its strict checks):CertSpecisx509::CertBuilder(withserver_auth/client_auth),Cert::fingerprintis the hex text (the bytes:fingerprint_bytes), the Ed25519 key ised25519_key()instead of the fieldkey, addresses arex509::IpAddr;check_chainand the F_* fault bits staybuild: A program names a crate with the head of a path only:
netio::x509::Certneeds netio in its manifest, not x509 (a crate netio re-exports); the manifest lint asked for x509 as wellimg_core:
inflate,deflate,gzipandchecksumcall jflib-compress, where the code lives now (compress::deflate,zlib,gzip,crc32,adler32); their functions keep their names, signatures, bytes andERR_*codes. The internal code tablesinflate::{LBASE, LEXT, DBASE, DEXT, CLORDER, rev16}are gone. The crate's licence is MIT or Apache-2.0 again; the zlib, miniz and stb_image notices moved with the code.img_jxl: The Brotli decoder moved to jflib-compress (
compress::brotli);img_jxl::brotli::decompresskeeps its signature and codes,img_jxl::brotli_tabis gone, and the crate's licence no longer includes Brotli's MIT.plat: The PDF streams of
printare compressed withcompress::zlibwithout any hook (the same bytes as with the hook that ui set until now); before, a program without ui wrote uncompressed streams. The hook goes through a lock instead of anunsafetransmute.archive, pdf: DEFLATE and CRC-32 come from jflib-compress instead of img_core; the crate no longer depends on img_core.
agent_core:
agent_core::json,agent_core::jmap,agent_core::record!andagent_core::wire_enum!are re-exports offormats::json,formats::jmapand their macros, where the code lives now; the items and their behaviour are the same,agent_core::Valuestays.base:
base::xmlandbase::encodingare re-exports offormats::xmlandformats::encoding, where the code lives now; the items and their behaviour are the same.cas, datastore, gltf, update, archive, doc_core, doc_io: cas, datastore, gltf and update read and write their JSON through
formats::jsonand no longer depend on agent_core; archive, doc_core and doc_io read their XML and encodings throughformatsand no longer depend on base (doc_core so no longer on plat either). Their API is unchanged: the types they take and return (json::Value,xml::Node,xml::Limits,xml::Error) are the same types as before.spell, dxf: spell and dxf decode with formats::encoding's character sets instead of tables of their own. Changed bytes: in the windows-* pages an unassigned byte of 0x80..0x9F is the C1 control of the same number (as on Windows and in browsers) instead of U+FFFD; ISO8859-9 / latin5 is windows-1254 and TIS-620 windows-874 (their punctuation in 0x80..0x9F instead of C1 controls); KOI8-U 0xAE and 0xBE are ў and Ў (WHATWG's KOI8-RU). spell takes every label of the WHATWG standard after its own spellings (ISO8859-1 stays each byte its code point); dxf takes ANSI_n and DOSn by their code page, so DOS737, 775, 858 and 862 have tables now
build: tools/gen_encodings.py writes formats' single-byte tables and WHATWG labels (lib/formats/src/charsets.rs) and replaces tools/gen_charsets.py (spell) and tools/gen_dxf_codepages.py (dxf); --verify compares the tables and labels with the WHATWG data of encoding_rs in Cargo's registry and with Node's TextDecoder
formats: xml::parse: an undefined entity is Syntax (it was Unsupported; XML calls it not well-formed), more than 64 attributes on an element are Limit (it was Syntax), and names may use letters beyond ASCII as XML allows
diagram_io, img_svg, diagram_core, text: diagram_io, img_svg, diagram_core (theme parts) and text (fontconfig files) read their XML with formats::xml instead of readers of their own: diagram_io on the strict Reader, the others on Lenient, each with the tree and limits it had. The same results: every SVG of the repository and 45 deliberately broken ones render byte for byte as before, img_svg's tree is the same on 208 000 inputs with mutations (but for the fix below), every file diagramiotest writes is the same, fontconf reads the system's 63 fontconfig files to the same rules. Theme parts and fontconfig files with broken markup are read as far as it goes now instead of ending there; their character references that are no character are U+FFFD
plat: The readers of other programs' data that only Windows used, CF_UNICODETEXT and the DROPFILES block of a drop, are portable code (clipdrop.rs) and run through the fuzz checks on every OS; Windows' clipboard and drops read the same as before. plat::fuzz (hidden, no API) reaches these readers, the D-Bus decoder and the Wayland event decoder with any bytes
build: api-diff follows a
pub useinto another crate of the API (tools/apidiff.py): the module, item or macro it names, also through a re-exported module (pub use formats::json;thenpub use json::Value;), shows that crate's lines -- signature, fields, variants, methods, impls -- under the re-exporting path, so an item that moved to another crate and stays re-exported is no change (against 0.2.1: 159 breaking changes instead of 297). A re-export through which nothing shown is found (a module a codec crate does not show, rt::os) and one of a crate outside the API stayuselines; theuselines of older snapshots are read the same wayinstaller: A payload with one style (PACKAGE styles= with one name, the default of cargo jflib package) has no style page: the setup starts on the options page, which has no "Zurück" then. "Start the app" and a browser's "Make it the default browser" moved to the last page, where Fertigstellen does them; scripts that click "Weiter" on a setup of one style click "Installieren" at once
plat: Windows: plat::assoc::browser_request finds a web browser registered for all users (RegisteredApplications below HKLM) as well as one of the user's
cas: Repairing a lost index file (repair_index, and gc before it sweeps) reads the index from the pack's end in two ranges instead of the whole pack. A pack the index names but the store does not have is Corrupt ("pack ... missing"), it was Io; a snapshot id with a NUL is refused like the other invalid ids (NotFound), and snapshot_ids leaves out names that cannot be ids. Repo::open reads repo.json again once it holds the lock, and Repo::create takes the lock before it writes repo.json
docs: SECURITY.md: the crates x509, netchan and formats in scope, compress with DEFLATE, gzip and Brotli, plat with the data of other programs and a pointer to docs/PLAT_INPUTS.md; the fuzzing covers compress, formats, netchan and plat
spell: The n-gram step builds an affixed form only when its length can be within reach of the word (and finds the edit distance only within its limit, and drops duplicates through a set): real suggestions are faster, hu_HU 35 -> 9 s for 400 (the slowest 953 -> 275 ms), ko_KR 43 -> 20 s, the same answers
game: The netcode's matches over netchan's ClientEvent and ServerEvent take the new events with a _ arm (it does not use the reliable channel)
plat:
net::resolveanswers a name under .localhost (app.localhost) with the loopback addresses, as "localhost" itself and as netio::dns does on Linux (RFC 6761 6.3): on Windows such a name went to the system resolver and needed a net.connect rule of its name, so the same app resolved it differently by system (and since netio::dns asks plat on macOS and iOS, there too); written absolute (app.localhost.) as well, and a net.connect rule of the name (app.localhost:8080) covers the loopback addresses of the answerbuild: Kritzel, the Build Manager and permprompt have English catalogues (the reasons of permprompt's ask lines too); python build_rs.py i18n also reads the reasons of an app's PERMISSIONS files
compress: zstd::compress uses the tables the decoder already has when that is cheaper: the literals with the previous block's Huffman tree (treeless), a sequence code in Repeat_Mode. Frames of several blocks get up to 4% smaller; the zstd tool reads them as before
cargo-jflib: cargo-jflib compresses with jflib-compress instead of its own DEFLATE and LZ4: the .deb's archives, the update channel and the source tarball with gzip at level 9, the setup's payload and the PNGs with zlib at level 9, the AppImage's SquashFS with lz4::compress_hc; its PNG reader with zlib::decompress, CRC-32 from compress. The bytes of the packages change, they get 0.2 to 0.3 % smaller
compress: The Brotli decoder is 2.2 to 4.8 times as fast, brotli::decompress / decompress_prefix and brotli::Decoder alike: a bit reader with a 64-bit buffer refilled bytewise instead of single bits; prefix codes as lookup tables (8 bits, then second-level tables, as libbrotli builds them) instead of a walk bit by bit; the literals of a block in one run, without the context when all 64 contexts of a block type name one tree; copies of up to 32 bytes as one copy of a fixed size, dictionary words without an allocation. brotli::Decoder runs whole commands at once while the input surely holds them and the output has room, and goes step by step only near the ends. The same streams are accepted and refused as before, with the same errors, and brotli::Decoder returns the same Step for every call. On our streams and libbrotli's (levels 1, 5, 9, 11) of five kinds of data, the one-shot decoder now reads 270 to 800 MB/s (before 107 to 263), the stream decoder 250 to 790 (before 102 to 277); libbrotli 340 to 980
pdf: jflib-pdf depends on jflib-crypto (MD5, SHA-2 and AES for the reader's decryption); its license is (MIT OR Apache-2.0) AND BSD-3-Clause AND OFL-1.1 for the Adobe Glyph List and the widths of the Liberation fonts in the reader's tables (lib/pdf/licenses/)
netio: (breaking) TLS:
tls::Identity::keyis anx509::PrivateKey(Identity::new(chain, keypair), orkeypair.into());tls::ClientConfigandtls::ServerConfighave new fields, built asClientConfig { identity: Some(id), ..ClientConfig::new(trust, "host") }andServerConfig { client_auth: Some(trust), ..ServerConfig::new(identity) };tls::keyschedtakes the suite's hash and secrets of its length (Schedule::new(hash, psk, shared),Transcript)netio: TLS: connections that do not trust the system's CAs (
Trust::Anchors,Pinned,Any) offer the TLS 1.3 suites, groups and signature schemes of web connections (they stay TLS 1.3 only, without the TLS 1.2 fallback); before they offered ChaCha20-Poly1305, X25519 and Ed25519 only, and two JFLib programs now agree on X25519MLKEM768x509:
PubKey::Rsaholds n and e without leading zero bytes, asPrivateKey::public_keygives them (a certificate's INTEGER kept its sign byte)pdf: pdf depends on rt, text, plat, img_core and img_jpeg (glyph outlines, the system's fonts, JPEG) and is a compute crate (opt-level 2 in development builds: it draws pages); its generated tables gained the glyph names of the standard encodings and CFF's standard strings
netio: (breaking) TLS:
tls::ClientConfighas the fieldsessions,tls::ServerConfigthe fieldsticketsandearly_data; a config built with..ClientConfig::new(..)/..ServerConfig::new(..)keeps compiling and resumes nothingnetio: https resumes its sessions:
trust::system_connectorandtrust::connectorwithServerTrust::Cakeep the tickets of the servers they reach (a pin andAskcheck every handshake's CA and do not resume)netio: TLS server: a ClientHello with pre_shared_key but no psk_key_exchange_modes is refused with missing_extension (RFC 8446 4.2.9, 9.2), and one with pre_shared_key may leave out signature_algorithms when its PSK is taken (9.2). TLS client: a NewSessionTicket during TLS 1.2 is unexpected_message (one comes only to a client that asked for tickets), a TLS 1.3 ticket with an extension that does not belong in it illegal_parameter, an empty one decode_error
diagram_core: (JD21v) Dynamic connectors route only around placeable shapes, as Visio 16 does: ObjType with bit 1 and without 4 (a group with 8 stands for its placeable members, a 1-D shape that is no connector counts too); drawn shapes with ObjType 0 become placeable when a connector is glued to them. The legs of the right-angle router keep out of the way of the other connectors glued to the same shapes (Visio spreads connectors leaving one side), and glue::crowded names the connectors a moved placeable shape crowds
netio: TLS clients with
Trust::Anchors,SystemandCustomask for a stapled OCSP response by default and refuse a certificate a usable response calls revoked;ClientConfig { revocation: Revocation::Off, .. }keeps the earlier behaviour.ClientConfig::revocationandServerConfig::ocspare new fields (a config built with..ClientConfig::new(..)/..ServerConfig::new(..)keeps compiling)x509: A certificate with a critical or malformed authority information access (bytes after its list, an access location that is no GeneralName among them), a malformed TLS feature extension (bytes after its list too) or an id-pkix-ocsp-nocheck that is not NULL is refused (x509-limbo webpki::malformed-aia now passes)
web: (G7b) The browser host ticks by the app's next deadline: after a batch the worker reports jfgui_frame_delay (batch-complete's delay) and the page gives a timer due before the next idle tick (33 ms) a tick at its time with the next animation frame, in place of that idle tick. A view that draws through ui.timer(id, 1) now runs at the display's rate (gamedemo in headless Chrome: 30 -> 165 frames/s on a 165 Hz screen), while an app at rest or with a slow timer (a caret blinking) is woken as often as before (30 batches/s). tools/tests/web_pacing.mjs measures both
plat: certs:
verify_tls_server(chain, host, ocsp, extra, time)answersOption<Result<(), certs::Refused>>, the reason (certs::Reason:UnknownCa,Expired,Name,Revoked,Usage,Other) and the system's own words with its code, instead of a text alone; it checks the extra CAs (a company CA) under the system's policy (Windows: once more with them as CryptoAPI's only roots where its own give no path; macOS and iOS:SecTrustSetAnchorCertificatesbeside the system's), hands the system the stapled OCSP response and the time to check at (Windows:CERT_OCSP_RESPONSE_PROP_IDon the leaf, its revocation from the staple and what Windows has cached, nothing fetched for it, revocation not known is no refusal; macOS and iOS:SecTrustSetOCSPResponse,SecTrustSetVerifyDate), takes a name with the trailing dot or an IPv6 address in brackets, and speaks Englishnetio: roots:
verify_system(chain, host, extra, ocsp, now)answersResult<(), roots::Refused>(the system's reason and words,roots::Reason) and hands the system the extra CAs and the stapled OCSP response (which it does not check itself: the TLS client does incheck_staple, another caller withx509::ocsp::check); after the system's yes netio checks the leaf once more (x509::check_leaf: its name -- no subject CN, IP addresses and the trailing dot as on Linux --, its usage, no CA's extensions on it, no unknown critical one; and a key netio takes), so a system that takes a CA's certificate, keyCertSign or name constraints in a leaf says the same as Linux.Trust::System: the TLS alert follows the reason (certificate_expired, certificate_revoked, bad_certificate for another name, unsupported_certificate for another usage, unknown_ca); with TLS 1.2 the chain is checked at the ServerKeyExchange, after a stapled response that may come between, so the system reads it as well.system_anchorsreads the bundle again when it changed (looked at once a minute at most)netio: Android:
dns::resolvegoes through the system's resolver (plat::net::resolve, getaddrinfo);Config::system()has no name servers and no hosts file there (no /etc/resolv.conf). docs.rs builds netio for aarch64-linux-android toonetio: netio takes JSON from
formats::jsoninstead ofagent_core::json(the same module; netio no longer depends on jflib-agent-core)diagram: (JD27 and JD29) jflib-diagram-core:
render::styledraws the line ends 1 .. 45 as Visio 16 does (the paths of its SVG export, checked against a sheet of all 45 Visio drew: crow's feet 24 .. 38, hollow diamond 22, open heads 1, 3, 12, the IDEF1X dot 42 ...) and sizes them as Visio does (arrow_unit); before, many numbers were guessed (12 was a filled diamond)netio:
Url::parsechecks the host: a name of letters, digits and - . _ ~ (an IDN as its A-label), a dotted IPv4 address, or an IPv6 literal in brackets (with a zone as RFC 6874 writes it). A name that ends in a number must be a dotted IPv4 address, so "0x7f.1", "2130706433" and "127.1", which resolvers in the manner of inet_aton read as 127.0.0.1, are refused. Bytes beyond ASCII and " < > ` { } in the target are percent-encoded, "host:" is the default port, port 0 is refusednetio: The HTTP client offers gzip and br and decodes them by default (
Client::decode);Sessiontakes its client's proxy, cookies and decoding; headers whose name is not a token or whose value holds a control character (NUL among them; a tab is fine) are not written. netio depends on jflib-compress and jflib-netpkt; a Proxy-Authorization header of the caller's goes to a proxy only, never to the server.http::Reader::set_deadline: a read waits for bytes only until the deadline, not the stream's whole timeout (the server's limit for a request head too).tls: a read with a timeout waits for the next bytes only as long as that timeout has left, and gives the stream below that much as its read timeout (a stream whosewait_readabledoes not wait), so a record that comes in pieces no longer stretches itnetpkt: cookies: a Domain attribute that is a public suffix by the list ("co.uk", "github.io") makes a host-only cookie when it is the host's own name and is refused otherwise (6265bis 5.6);
site_ofis the registrable domain by the list instead of the last two labels. The crate's licence is "(MIT OR Apache-2.0) AND MPL-2.0" for the list's tablejflib: 0.2.2 has incompatible changes although its number does not say so (docs/VERSIONING.md would ask for 0.3.0):
netio::tls::Identity::keyis anx509::PrivateKeyandnetio::tls::keyschedtakes the hash;netio::roots::verify_systemandplat::certs::verify_tls_servertake more arguments and answerRefused;netpkt::x509is the cratejflib-x509(CertSpecisCertBuilder,Cert::keyaPubKey,Cert::fingerprinta text);netpkt::dns::RDatais#[non_exhaustive]; the tables ofimg_core::inflateare gone;plat::gpu_thread_spawntakes a boxed closure.jflib = "=0.2.1"stays on the release before
Deprecated#
- plat:
set_print_deflate: compress::zlib is the default; the hook still replaces it.
Fixed#
netio: DNS (security plan 2f, part 1, after the review): a UDP answer cut in the middle of a record and marked truncated (systemd-resolved cuts at the size the query offered) did not parse, so the resolver ignored it until its timeout; it counts as truncated now and the query goes again over TCP. NODATA is kept at most an hour like NXDOMAIN (it was kept up to a day); an NXDOMAIN at the end of a CNAME chain no longer than the chain's TTL.
localhostis recognised by its last label (x\.localhostis one label, no name under localhost), and only a final dot that is not escaped makes a name absolute (a\..).Server::Httpswith a URL other than https is refused before anything is sent (the variant can be built withoutServer::https); a bootstrap address keeps its IPv6 zone. netpkt: a DNAME with bytes after its target is refusedpdf: A colour space named G, RGB or CMYK in the resources is that one when a page names it; the abbreviations of inline images took those names everywhere (U22)
diagram_io: (JD19, Visio check) A
CellwithoutVwhose only content is text takes that text as its value: Visio 16 writes long strings with line breaks so (the report definitions ofUser.visPropRptN); before, the text went into the extras and the value stayed emptydiagram_io: (JD13) Rows of Geometry and Connection sections are written with their type
Talso where a shape inherits it (a resized master instance), as Visio writes them; Office's previewer (VPREVIEW.EXE, Explorer's preview pane) hung on every drawing with such shapes and took Windows Explorer with it, and desktop Visio passed over those rows and drew the shapes with their master's geometry (a resized arrow or box at the master's size)ui: The code editor's horizontal wheel scrolled the wrong way: tilted right it scrolled left (Shift + the wheel was right)
ui: An image view whose wheel zooms panned twice as far with the horizontal wheel while the vertical one stood still (and not at all in a right-to-left window)
ui: The fine steps of a precision touchpad (Windows' wheel deltas below 120) were cut off one by one where whole lines count: the terminal never scrolled with steps below 40, the code completion list scrolled three rows on each of them (and on two notches at once), Ctrl + each of them zoomed a diagram a whole step; they add up now
Tests: linuxtest's Wayland synth test expected key events at x = 0, y = 0, as before the scan code and the location came (E2)
build: jflib-build: a project in a folder with a blank in its path (
My Projects/app) links for Linux again -- the path of the linker's map was split at the blank when lld links (one static file,cargo jflib package) and had the blank turned into a comma behind cc's-Wl,; it is one argument now (through cc as-Xlinker)archive: Archives with many parts: the checks for duplicate names and overlapping records take O(n log n) instead of quadratic time
render3d: Textures taller than wide are resampled columns first: rows first held height x size floats (a 1 x 32768 texture: 1 GiB for 128 KB of texels)
shader:
reflect::constant_valuesmeasures each type once and refuses constants of more than 4 Mi words in all: nested composites, a ConstantNull of a huge array or nested structs took any amount of memory or exponential time when a compute pipeline was madewgsl: An override-sized workgroup array is at least 1 long in SPIR-V compiled with the defaults (max(n, 1) as specialization constant operations): specialized later to 0 or a negative value it was empty, and the robust index clamp and its zero initialisation were unbounded
img_bmp: The metadata scan takes an embedded PNG or JPEG's size wherever the decoder decodes one (BI_PNG in an OS/2 header too) and refuses an embedded file it cannot read: the BMP header's size passed the caller's pixel limit while the decoder unpacked the embedded image
img_heif: Items are found by id in logarithmic time: the boxes after iinf looked their entries up linearly, items x entries already in a probe
gltf: Scenes are read and their instances counted without walking every node once per scene (scenes x nodes; nodes without a mesh never reached the limit), and a document keeps at most 64 different notes
gfx:
PDataflattens at most 2^20 points of curves per walk, a cubic past that is its chord: a large SVG path of tight curves made hundreds of MBspell:
token_errorstries runs of at most 8 parts of a hyphenated word: a word of 1000 parts took 500 000 checks in the UI threadplat:
parallel_forwith the featureunwind: a panic in an item of the calling thread cancels the job and waits for the workers before it unwinds: caught withcatch_unwind, they went on using the freed jobplat: Windows: the open dialog's result is split into a folder and names only when it is such a list: one file chosen with multiple selection on came back with the rest of a longer suggested name as a second file
plat: Linux: reading the clipboard or a drop from another program ends after 30 s in all (Wayland, X11 with INCR): the 3 s deadline started anew with every piece, so a program sending slowly froze the app for as long as it liked (up to 512 MB)
plat: macOS: a GUI app catches SIGTERM with a handler that does nothing instead of ignoring it (the dispatch source reports it as before): its child processes inherited the ignored signal and could not be ended with a plain kill
update: An apply that ended in the middle (a crash between two files, or after the app bundle's exchange) keeps its backup of the old version at the next start and finishes there, also when the new program is the one starting: the second attempt backed up files already replaced as the old ones, and a rollback then kept the new version
gpu: Vulkan, several threads: a buffer or image dropped while another thread has taken the pending uploads but not submitted them yet is destroyed only after their submission: it took the next submission's value, which could be another thread's submission without the uploads, and the driver then copied from or into a destroyed buffer
wgsl: An assignment to a swizzle of a vector in memory (
v.xz = ...) stores only those components in SPIR-V: it loaded and stored the whole vector, a race with other invocations writing its other componentsui: Dock: a floating window is found by its slot when the dock's windows are walked: the app changing the layout in the same pass made the stored index name another floating window or none
img_jxl: Modular images: a squeeze of a channel whose shift is already above 30 is refused (
ERR_HDR, as libjxl does): squeeze steps on a 1 x 1 channel added an empty channel each, up to 65536, each inserted into the middle of the list (74 KB took 232 s)ui: A suggestion menu open in a window that closes or whose state is freed (
ui.window_destroy) goes with the window: it stayed an app-wide entry, and the menu key opened no menu in any other window until a right click replaced itui: Esc in a text box inside the top popup closes the popup and gives the focus back to where it was when the popup opened, as Esc anywhere else in it does: in the font picker's search box it only took the focus away and left the family list open (the next click then closed it instead of opening it)
ui: A dock area of the same id in a second window floats its panels in windows of its own: both used the window ids
id + 1 .., and the second one took over the main window's floating windows ("window 501 begun twice in one pass")plat: Android and macOS with std:
read/write(Android) andfree(macOS) declared withvoid *buffers as libc and std declare them (the clashing declarations warned); the workspace no longer lists the apps' style crates it never uses (unused workspace dependencyon every target); iOS no longer warns of the unusedobjc_msg_superimg_jxl: Modular images: the squeeze steps of a decode may move at most 2^24 channel entries in all, over its frames and groups (each step's residuals go in as one block), beyond that
ERR_LIMIT: steps on a palette's meta channel, which has no shift to count, inserted a channel each near the front of the list (74 KB took 56 s; now refused in about 0.3 s)plat: Windows: a service whose
runends with an error code is started again, as systemd (Restart=on-failure) and launchd (KeepAlivewithSuccessfulExitfalse) do it --service::installset the failure actions but notSERVICE_FAILURE_ACTIONS_FLAG, without which they only follow a process that ends without reportingSERVICE_STOPPED, andrun_servicedoes report the stop (with error 1066), so the service stayed stopped. A stop that was asked for is reported without an error whateverrunreturned, so it is never answered with a restart. Services installed before keep their setting until they are installed againwgsl: The "meintest du" suggestions compute the edit distance only near the diagonal (a whole table over two names of 50000 characters was 2.5e9 steps per candidate), and past
MAX_ERRORS, whose messages are dropped, no unknown name walks every known oneimg_svg: XML reader: a repeated attribute is found by sorting an element's attributes once (the first one counts, as before; with more than
MAX_ATTRSattributes a repeated one now counts towards the limit), and entity references are looked up by binary search: both walked up to 512 and 256 entries for every attribute and every reference of the filetext:
segment::wrap_end/wrap_end_hyphread the break opportunities in a window that grows while its text fits, and measure the rest of the paragraph only that far: every line scanned and measured the whole rest (quadratic over a long paragraph). A line start inside a character counts from that character's start (it panicked); words longer than about 256 characters are no longer hyphenated (they were found and hyphenated whole for every line)text:
segment::word_boundscounts a run of regional indicators along instead of walking back over it for every pair (quadratic in the run)text:
Text::hitmeasures the line once instead of every prefix up to the hit (quadratic in the index)ui: Wrapped labels and multi-line text boxes check the text for UTF-8 once per layout, not once per line, and do not measure the rest of the paragraph before each line (both quadratic over a long paragraph)
plat:
a11y::Node::offset_atwalks the text once (char_rect for every offset counted from the start: quadratic, a screen reader's hit test on a long text box hung)plat: Windows: the backup of a file association's registry keys walks them with a list instead of recursion (keys nest up to 512 deep, each level held a 32 KB buffer on the stack)
spell: COMPOUNDRULE matches with a table over rule elements and parts (trying every way the
*and?elements could share the parts was exponential in their number)base:
pattern::Regex: the matcher follows jumps and splits with a list instead of recursion, one level per alternative and per optional repetition (6000 alternatives took about a megabyte of stack)plat:
plat::date()andplat::unix_time_ns()on Android: the system's clock (Bionic's CLOCK_REALTIME, UTC as on Linux) instead of the browser's host calendar, which no Android host sets -- every Android app saw 1970-01-01 00:00 UTC (found by plattest in AN0, docs/ANDROID.md)plat: Windows on ARM64: function pointers that plat looks up once (GetProcAddress: the drop functions of shell32, the pointer and touch functions of user32, Shell_NotifyIconW, GetDpiForMonitor) are published with Release and read with Acquire; with Relaxed another thread on a weakly ordered CPU could see the last of the three pointers of WM_DROPFILES before the first (docs/ARM64.md, ARM7). The cooperative Job of the browser and of Android hands its items' results to a thread that polls done() or items_done() (Release / Acquire)
render2d: In Firefox (WebGPU through wgpu: Naga, HLSL, DXC without IEEE strictness, which may regroup float sums) the f32 pairs lost their low bits: the compiler regrouped the error terms of the two-sums and of Dekker's products, lines at 1e-6 units per pixel vanished, the drawing at 1e7 moved by pixels. Every step of the exact arithmetic now goes through opq (common.wgsl: two_sum, split_f, two_prod, dd_add, dd_mul, rel2, dd_sqrt; stroke.wgsl: arc_from); the SPIR-V of the visibility and vertex shaders grows, the images on Vulkan, Metal and in Chromium stay byte for byte (G6e3)
render2d: A frame with more changed records than one dispatch of the scatter shader reaches (Metal, WebGPU and many phones: 65 535 workgroups of 64, 4 194 240 records; the first frame of a city's drawing) was refused at finish; the change buffer is now bound and dispatched in pieces of what a dispatch and a storage binding reach, with a barrier between them. Where one dispatch reaches it is one piece and the same commands as before (G6e3)
Tests: render2dtest's window test waits for the view's newest frame in the framebuffer (without the UI's output, macOS's default, its first check could see an older picture); the cpu test bounds the ink of flat tones by 0.2 % (GPUs round the blend differently: NVIDIA rounds the source to 8 bits, Apple blends exactly), takes its bounds from gallery::cpu_bounds and checks the CPU path's hash (G6e3)
update:
startup: a program on trial whose version is neither the trial's nor the one it replaced (the package's own number differs from its manifest's) ends the trial and records the manifest's version as bad: healthy() could never end it, and an older number had the same update offered and applied at every startplat: Linux D-Bus: a message over 1 MiB, a big-endian one or one this reader cannot read is skipped; it closed the connection for good, so any client of the bus could cut off sleep, settings, IME and tray messages with a message of 2 MiB
plat: Linux: the agent control socket lives in $XDG_RUNTIME_DIR/jfgui-agent when that is set (another user could make /tmp/jfgui-agent-<uid> first and so block it); tools/jfgui-agent.py looks in both
plat: Linux:
spawn_self/restart_selffork twice, so no zombie stays behind while the app runs on, and a failed exec comes back as -1 (it was invisible)plat: Linux portal: the receive buffer grows for a long Response (a multiple selection of up to 4096 files; over 64 KiB it was lost), and a print connection still open is closed before another portal call instead of losing its descriptor
plat: X11: the end of a clipboard transfer whose requestor was the root window no longer clears our event mask on it (work area and Xft.dpi changes stopped arriving); Wayland: a finger or pen on a popup no longer marks the popup as the pointer's (later mouse positions were off), and a transfer to a client that reads nothing gives up after 30 s instead of holding its slot
plat: Windows tray: the symbol's window is a hidden top-level one, so TaskbarCreated arrives and the symbol comes back after Explorer restarts (a message-only window gets no broadcast); a notification's balloon or that message arriving while Shell_NotifyIconW runs on the same thread is handled afterwards instead of spinning on the tray's lock for good
plat: Windows: the colour pick ends as cancelled when its overlay is closed from outside (Alt+F4); it stayed open for good and every later
screen::pick_startwas refusedplat: Windows clipboard: another program's block (up to 1 GiB) is copied with an allocation that may fail (no room: nothing read) instead of ending the process
plat:
ime_commit_texttakes text of any length (up to 16 MiB): what the queue of 16 commits cannot hold yet waits and follows as the app takes them; a paste or dictation over 64 KiB was cut there without a word (iOS, macOS while composing, Linux IBus, the browser)plat:
AtomicFileon a folder mount (Linux, macOS) keeps the file's permission bits (a 0600 file became 0644); a systemd unit's Description has every control character as a space (a \r let it add directives)gpu: Vulkan: a dropped timestamp query pool waits for the open upload like a buffer (a device without hostQueryReset records its reset there); a swapchain whose images or semaphores could not all be made is not kept half (the next acquire indexed its empty lists); a swapchain's surface is kept until the swapchain is destroyed (the Swapchain's own surface went first when it was dropped)
gpu: Browser:
write_texturechecks that the region's bytes lie inside the data after the offset (only the offset was checked, and writeTexture read past the slice)render3d:
Scene: a buffer that could not be made while growing makes every capacity start again at the next frame (the raised ones no longer fit the buffers);wait_slotafter a timeout waits again at the next call (it went on writing into a slot the GPU still used)img_av1: A frame size larger than the sequence header's max_frame_width / height is ERR_HDR (5.9.5)
img_hevc: pps_cb/cr_qp_offset and slice_cb/cr_qp_offset (also with the PPS's) outside -12 ..= 12 are ERR_HDR
img_webp: The decoders' frame-sized buffers (VP8 planes, VP8L pixels and groups, the alpha plane) are allocated with ERR_NOMEM when there is no room instead of ending the process
img_jxl: A file with 32-bit float samples is a JPEG XL (probe and meta work, IMF_FLOAT) whose decode is ERR_UNSUPPORTED; it was ERR_HDR
shader: The validator refuses a composite type that names itself or a type declared after it (
Rule::Type): the layout's walks over such a cycle overflowed the stack; layout sizes past u32 are None, a scalar of no whole bytes has no layout (a divisor of 0). shadertest fuzzes the validator and the disassembler with 6000 mutated moduleswgsl:
false && f()/true || f()with a runtime right side is no const-expression (as Tint): it was folded to the constant, soconst c = false && f();was acceptednetpkt:
eapol::Rsne::parsereads the AKM count: the capabilities come after every AKM suite (they were read as if there were always one), no AKM suite is no elementui: Agent interface:
ui.commandof a command bound to a domain action whose input schema needs fields isinvalid_input(the action ran with an empty input past the check every other call has)ui: Code editor: accepting a completion checks again that its start is still where the word at the caret begins, else the list closes (after an edit since it opened the cut went from a stale position, on another line or past its end)
ui: Terminal: the local echo of a line is written apart from the peer's escape state (an open sequence of its output took the echo in, or the echo ended the peer's sequence); closing the search bar clears its hits (they stayed marked in the text)
ui: Window state: a tool window restored at a place where (almost) nothing of it is on a monitor is moved onto the nearest monitor's work area, as the main window (it opened off-screen after a monitor was gone)
ui: Text box: undo to a state longer than a smaller capacity cuts it on a character's start (it could cut a UTF-8 character); a password box's accessibility record gives caret and anchor as indices of its dots, and a screen reader's selection in it maps back to the characters (they were byte indices of the hidden text)
ui:
History:undo/redowhile a group is open close it first, its edits so far are the newest step (undo reverted the older step under them, redo did an undone step over newer edits);can_undo,can_redoand the labels count the open groupui: A box nested beyond the layout's limit pushes no clip or disabled level and its
box_endpops nothing (it took the parent's frame, clip and disabled level); an expander beyond the 16 kept ones opens no content card (its box stayed open)doc_layout: A character or note mark wider than its line stands alone on a line, a line taller than the page alone on a page, both past the edge: content that can never fit made
paginatefail withError::Limitfor the whole document (the note-aware paths keep their rules)datastore: A torn last log frame whose payload holds the bytes
BCW1is cut like any torn frame: only a whole valid frame behind a damaged one makes it damaged (a bare magic made the store refuse to open)cargo_jflib: Debian package: a pre-release version is written with
~(1.2.0~beta.1, older than1.2.0for dpkg; with-it counted as newer), the description's lines are indented and a multi-line summary is joined (a line break ended the field and brokecontrol); Android:versionCodeis MAJOR * 1 000 000 + MINOR * 1000 + PATCH (with 10000 / 100, 1.0.100 had the code of 1.1.0), a version outside that is an errorjflib_build: A program with std gets the linker map's path through
-Xlinkeras one argument too (behind-Wl,a comma in the path split it)netio: SSH: a peer that sends only messages to skip (ignore, debug, banners, global requests) while an answer is due ends the session after 1024 of them (login and opening a channel never returned); data past the channel window the client granted is a protocol error
rt: Portable
pow(1.0, y)is 1 for every finite y (from |y| > ~1.3e300 on it was NaN), NaN for an infinite one as on the x87simd: WebAssembly SIMD128: float arithmetic and square roots follow SSE's NaN rule (the first NaN operand quieted, else the negative indefinite) like the NEON and scalar code; WebAssembly's own NaN made results differ on ARM machines
Tests: androidGallery's page "2D-Zeichnung": two fingers zoom and pan together however late the second one comes down (ui.touch_two holds a second finger back once the first one's drag is older than 200 ms, meant for strokes; the page takes the pair from ui.touch_fingers), found in the user's hand check on a Galaxy A56 (G6e3)
ui:
list_endpacks a drop intofrom | to << 16only while both fit in 16 bits: a move from or to a row past 65 535 is no longer reported (no EV_DRAG, the row stays selected) -- the packed value gave another item and another place (list_end_fullreports them)render2d: On Intel's Gen9 under Mesa (HD 610: Mesa 26.0.3 and 26.2.6) a layer drawn with fs_full (arcs, dash patterns) and one drawn with fs_fill (fills) in one frame had blocks of 2 x 2 pixels wrong at random (highlighted strokes, the dash pieces of DXF linetypes): both fragment shaders spill registers, and the driver gave the two draws the same scratch memory with their own per-thread sizes (1 and 2 KB) while their threads ran side by side. On Intel under Vulkan such a run of layers (fs_full, fs_fill, fs_text_all, the overlay) now gets a render pass of its own after a barrier when the last such run took another pipeline (RendererDesc::separate_scratch); no pixel changes, elsewhere the command stream is as before (G6e3)
web: Browser: a key that writes a punctuation mark gives the key code the native hosts give (+ , - . as VK_OEM_PLUS / COMMA / MINUS / PERIOD, the keypad as VK_NUMPAD*, others by the key's place) instead of its capital letter's code: typing "$" was Shift+Home and replaced the text before the caret, "." was Delete, "%" Shift+Left, "#" End
web: Browser: a stored file that cannot be imported at the start (too big, no memory) is left out and named in the console; it stopped the whole start, so the app never started again on that origin
android: Android: a text longer than 256 KiB goes to the keyboard as a window of 192 KiB around the caret, and its edits are put back into the whole text: such a text gave the keyboard no copy, and its next key replaced the text by an old one
render3d: A scene whose draw records grew without its list_first (once detail levels had made that grow first) drew nothing: the culling counted into the old records
plat: Windows: files and folders made by
fs::write_file_privateandfs::mkdir_privategrant the user the process runs as by name, besides SYSTEM, the administrators and the owner. Made by a process run as administrator, their owner is the administrators' group, and the same user without administrator rights could no longer open them.gpu: Metal: binding a Bindless table keeps what it holds retained while useResources reads it; the ids were taken under the table's lock and handed to Metal after it, so a set_* on another thread could free a texture first (a dangling pointer to Metal)
gpu: Metal: the swapchain's throttle counts per layer what was presented and what reached the screen, and per swapchain only what is taken and not presented; the layer's entry goes with its last surface. A new swapchain on a window's layer (after a lost one) did not see the old one's drawables on their way, so nextDrawable could block up to a second, and dropping a second surface reset the count, so the window drew about once a second
plat: iOS: a text box of no width or height no longer panics when UIKit asks for the position at a point (VoiceOver, the space bar's trackpad): clamp got a minimum above its maximum
diagram_core: (JD7) Formulas: a point computed for a cell (
PAR(PNT(...))in EndY) is that cell's coordinate when another formula reads it --ATAN2(EndY-BeginY,EndX-BeginX)of a glued line read x for EndY before. The oracle of the local files rose from 94.67 % to 95.28 % of the stored formula cellsrender2d: Dash patterns of strokes in a layer with a fill (fs_fill draws them) were gone on Intel's Windows driver (UHD 615, 31.0.101.2135): full_body decides the pattern's pass where it computes the share of the exact pattern (tf), not in a later test dashed && tf < 1.0 that this driver's compiler found false in fs_fill with tf 0 (G6e3)
gpu: Vulkan: a render pass that recorded no draw clears its clearing attachments once more at its end (vkCmdClearAttachments). On Intel's Windows driver (UHD 615, 31.0.101.2135) a pass that only cleared, after a global barrier earlier in the command buffer, was written after the copy behind it, so the copy read the image before (render3d's empty scene showed the frame before); the barriers are Vulkan's, with a draw in the pass it was right
netio: dns::resolve (Linux, macOS): a numeric address or localhost no longer reads /etc/hosts and /etc/resolv.conf, which an app's rules do not grant on macOS (a PERMDENY line for every connection to an address)
Tests: diagramiotest
formulas/growthno longer fails on a busy machine: it compares 2000 with 16000 built shapes (the fastest of three runs each) against 32x, between linear work with the memory hierarchy's own factor (measured 10 to 16x) and quadratic work (64x); before, one run of 1000 against 4000 shapes (7 ms) met load and cache effects (17.8x seen) against 10x.formulas/oracle-time's ceiling of 10 s grows with how much slower the machine is than an idle one.diagramiotest --growth REPSprints the times for 1000 to 16000 shapesdiagram_core: (JD11) THEMEVAL's estimates of JD6 settled against [MS-VSDX], Office's notes on ECMA-376 and a Visio 16 file with computed theme values: Visio's vt:lineStyles lists lead with the entry of matrix 0 (matrix i reads entry i; read i-1 before), the "Connector..." names choose the scheme as the "Line..." ones do, FillColor2 is the fill colour slice itself, a missing ln@cap is flat (1), colour transforms chain in floating point and round once, text takes the major font when the minor one is empty; own designs write the leading line style entry
wgsl: SPIR-V: a && b and a || b go through a u32 variable (1 for true) instead of a bool one. Intel's Windows driver (UHD 615, 31.0.101.2135) took such a bool for false in large fragment shaders (render2d's fs_fill: the pass of a dash pattern, the end of an arc in an insert); with OpPhi instead it went wrong in far more places. The embedded SPIR-V of render2d and render3d is written again
render3d:
FrameStats::visibleandlateof a scene without blended instances added what the read-back's place of the blended draw happened to hold (G7f part 1; on llvmpipe garbage, elsewhere usually 0): it is cleared nowdiagram_core: Sections with thousands of rows were quadratic to build, compute and draw:
Section::row/row_posfind an indexed row by its index (rows stay sorted),insert_posappends without a search,Transaction::add_rowtakes the next index without merging every inherited rowdiagram_io: The stencil tool rendered each master's icon after a recalculation of the whole stencil: a stencil of 150 masters took minutes; the icon instance now inherits the values computed for the master
Tests: pkg_check.py without --quick: the finish-args of an app against glibc include --device=dri, as package.py writes them (the check failed for template); pkg_linux.probe() reports a Windows without WSL instead of failing
img_svg: img_svg: an element whose name holds a byte that is no UTF-8 was never closed by its end tag (the end tag's raw bytes were compared with the start tag's name as Latin-1)
plat: Wayland: an event for an object that is already gone closed only the first 8 of its file descriptors, the rest stayed open; every one is closed now. The event arguments are decoded by a pure function (decode_args), which the fuzz checks reach; a message that does not hold what its signature says ends the connection as before (ROADMAP section 13, U6)
netio: TLS: a plaintext alert during the handshake ends the connection like an encrypted one (it was answered with unexpected_message); a Finished of the wrong length is answered with decode_error instead of decrypt_error (RFC 8446 4.4.4)
netio: TLS server, as tlsfuzzer checks RFC 8446: an empty alert record is answered with unexpected_message, a record that holds only padding (no content type) with unexpected_message instead of bad_record_mac, a protected record over 2^14 + 1 bytes of inner plaintext (padding included) or a plaintext record over 2^14 with record_overflow; a ClientHello with supported_groups but no key_share with missing_extension, one with a legacy_version below 0x0303 with protocol_version; a second dummy change_cipher_spec, or one before the first ClientHello, with unexpected_message; a second ClientHello that differs from the first in more than key_share, cookie, early_data and padding with illegal_parameter (as does early_data in it); and 0-RTT data the server does not take is skipped as RFC 8446 4.2.10 asks (at least 64 KiB of it) instead of ending the handshake; application data or a change_cipher_spec between the parts of a handshake message split over records with unexpected_message (RFC 8446 5.1; application data inside a KeyUpdate was delivered); an empty application_data record counts as 0-RTT data only when the client offered early data (one between the parts of a ClientHello was skipped and the handshake waited), and after a HelloRetryRequest nothing is skipped once the second ClientHello came (a record that does not open is bad_record_mac); a pre_shared_key that is not the last extension with illegal_parameter (RFC 8446 4.2.11)
netio: TLS server: a second ClientHello whose pre_shared_key has new binders or ticket ages, as RFC 8446 4.1.2 allows, is taken; it was refused with illegal_parameter, which ended the handshake of a client that holds a ticket (from an earlier server under the same name) after a HelloRetryRequest
netio: TLS client: an extension in the ServerHello or EncryptedExtensions that the ClientHello did not offer (an unknown type, a GREASE value) is refused with unsupported_extension, one it offered in a message that does not answer it with illegal_parameter (RFC 8446 4.2, RFC 5246 7.4.1.4, RFC 8701 4;
tls::conn::AL_UNSUPPORTED_EXTENSION). They were ignored; TLS-Anvil found itnetpkt:
tls::Coreas a client: an extension in the ServerHello or EncryptedExtensions that the ClientHello did not offer (an unknown type, a GREASE value) is refused with unsupported_extension (tls::AL_UNSUPPORTED_EXTENSION), one it offered in a message that does not answer it with illegal_parameter (RFC 8446 4.2, RFC 8701 4); they were ignored, as in netio's client, where TLS-Anvil found itnetio: TLS, as TLS-Anvil checks the client: a TLS 1.2 peer's close_notify is answered with one (RFC 5246 7.2.1); an empty handshake record, protected or not, is unexpected_message (RFC 8446 5.1; a protected one was taken, a plaintext one was decode_error); the client ignores a TLS 1.3 ServerHello's legacy_version (RFC 8446 4.2.1; anything but 0x0303 was protocol_version) and refuses one older than TLS 1.2 only without supported_versions
netpkt:
tls::Coreas a client ignores the ServerHello's legacy_version, which RFC 8446 4.2.1 says a client must (anything but 0x0303 was protocol_version); supported_versions says the versionbuild: build_rs.py changelog --crate: in the changelog of a crate that was never released (only [Unreleased]), a new section went after the link reference at the end of the file; it goes before it now
installer: The uninstaller deletes uninstall.exe and its folder once it has ended, trying once a second for up to five minutes: it tried once after two seconds, and Windows deletes no running program, so both stayed whenever its last page was open longer (not checked on Windows: Wine deletes running programs). The removal page said the files were being installed
Tests: plattest builds for Windows again: t_wire.rs (wirefuzz, U6) kept a counter only Linux changes as mutable, which -D warnings refused; its Windows part (100 000 cases) passes, under Wine
datastore: On Windows, a second compact() with no transaction in between failed with Io (cannot open the log): it opened the log that was open already, and Windows opens a file for writing once. The log that is open is kept now
ui: Hebrew and Arabic in labels, buttons, check boxes, radio buttons, headings and lists read backwards ("מחיקה" as "הקיחמ", also on the Windows setup's pages): shaping is off there, and with it the bidi reordering. A line with right-to-left characters is now laid out by the Unicode bidi algorithm also without shaping (
text::Text::set_bidi, on by default;text::has_rtl): its runs in visual order, a right-to-left run shaped with its TrueType / OpenType fallback font (Arabic joined, marks placed, brackets mirrored), other right-to-left text drawn cluster by cluster from the right, brackets mirrored; measure, draw,caret_x,hitandselection_spansread the same layout (128 such lines are kept). Lines without right-to-left characters keep their metrics and pixels. Text fields draw, place the caret and select in that order too (a selection as its visual spans); the rich-text and code editors keep such letters in logical order, as their carets are.text_shape::visual_runsandEngine::shape_runshape one directional runcas: gc deleted every pack when the snapshots folder could not be read (a refused read_dir: the rights, a network share gone): it took the folder for one without snapshots. It now stops with the error, and check fails too (snapshot_ids alone still answers an empty list). gc also keeps a pack whose index file it cannot delete, where it deleted the pack anyway: the index left behind named chunks that were gone, and on the next open it could win over the copies a repack had moved
netio:
dns::resolveon macOS and iOS asks the system's resolver (getaddrinfo, asplat::net::resolvedoes there) instead of reading /etc/hosts and /etc/resolv.conf: names behind a VPN with name servers of its own (split DNS),.localover mDNS and the rules of iOS resolve, and a sandboxed Mac app, which may not read those files, resolves names at all; the app's net.connect rules apply as beforenetio:
dns::resolve(the own resolver, Linux andresolve_with): an answer with "no such name" (NXDOMAIN) counts only when it carries the query's question, like every other answer (it was taken before the question was compared, so one with the right id and another question could make a name not found); names in answers are compared label by label (a dot or backslash inside a label is escaped, a byte outside printable ASCII is \DDD as in RFC 1035 5.1), so a record whose owner is one label "www.example.com" no longer counts for the name www.example.complat:
net::resolveon Windows, macOS and iOS keeps the zone of a link-local IPv6 address the system resolver returns (sin6_scope_id; a name under .local often has one): the addresses came back without it, and a connection to them failednetio:
dns::resolveandresolve_withanswer a name under .localhost written absolute (app.localhost.,localhost.) with the loopback addresses as well: it went to /etc/hosts and the name servers (RFC 6761 6.3). And a net.connect rule of such a name (app.localhost:8080) now covers the loopback addresses of the answer, which were not registered with the app's rules, so a connection to them was Deniednetio: HTTP server: a connection the client ends (its close_notify over TLS, or a closed socket) is ended with the server's close_notify, as RFC 8446 6.1 asks; before the server only closed the socket (TLS-Anvil AlertProtocol.sendsCloseNotify)
netio: TLS: a handshake message longer than a record (a certificate chain of over 16 KiB) goes in several records (RFC 8446 5.1); it went in one record, which the peer refused (record_overflow)
crypto:
rsa::PrivateKey::iqmpof a key whose q has more 64-bit words than p: q is reduced mod p first; the words above p's length were dropped, and the coefficient a key file keeps was wrongplat: iOS: a change of dark mode, contrast, motion or text size while the app ran never reached it (no E_SETTINGS): the host now marks the app as started when UIKit takes over
JFDiagrammer: (JD26 Visio check) The general and business-graphics stencils draw in Visio as in JFDiagrammer: lines of
style: ConnectorwithQuickStyleType 3setQuickStyleLineMatrix 2(Visio takes the quick style cells from the fill style and has no dk2 in its line lists: it drew them in the variant colour, JFDiagrammer in slate); the fishbone's categories and effect take the variant's line (100, bold and dark in both), a category draws its box first (the design's arrowhead goes on the end of the last path, so it sits on the bone in both), Primary cause 1 hasQuickStyleType 3like its siblings; fourteen 1-D masters of the style Normal (block arrows, flexible arrows, bus, circle from centre) haveQuickStyleType 2(Visio drew a 1-D shape of type 0 from the connector list: grey with a dark line)diagram_io: (JD26 Visio check) The stencil tool writes a text block whole: a master or part that sets some of its six cells gets the others as the shape's box (Visio reads a missing one as 0)
diagram_core: (JD26 Visio check) Fill patterns 2 .. 24 drawn as Visio draws them (its 8 x 8 bitmaps: directions and spacings of the hatches, the dot patterns as a tint), patterns 36 .. 39 from the corners
diagram_io: (JD26 Visio check) The style Connector of new documents draws in variant colour 7: Visio shows NetLab's connectors slate (variants 1 .. 3) as JFDiagrammer does, not in the variant's blue
JFDiagrammer: (JD26 Visio check) 25 masters with the design's arrowheads (curved, dotted, wavy, jump, double and single arrowheads, dot and arrow, line with arrow, elbow and curved connectors of Blocks and Connectors; polyline and zigzag arrow) have
QuickStyleType 3: Visio gives a shape without ObjType 2 the design's arrows only then (each 1-D master of both stencils dropped in Visio 16); the masters that take line 2 or the variant's line from the style Connector keep variant colour 1 (QuickStyleLineColor 100)diagram_io: (JD26 Visio check) New documents number their styles as Visio does (1 Text Only, 2 None, 3 Normal, 4 Guide, 6 Theme, 7 Connector): Visio renamed ours by number, and its connector tool drew in our drawings in the guide's look
compress: zstd:
decompressrefuses a match that reaches farther back than the frame's window (its Window_Size, the content size when that is smaller, and a dictionary's content), as the stream decoder and the zstd tool do; before, it took such frames (nothing was read outside the output, but the two decoders answered differently for the same bytes)render2d: At a join whose two squared distances are equal up to JOIN_TIE (1e-4 of them) the pixel is the incoming segment's as both segments decide it: the outgoing one keeps a pixel only when it is nearer by more. Intel's Meteor Lake driver rounded the two sides of a near tie differently, and both gave up a pixel at a turn back (changes test, WS33); on the RTX 26 pixels of 16 of the 273 --dump images changed (near ties the outgoing segment had owned)
ui: Scripts:
gpu expect screenon Windows failed where something that takes no clicks lies over the script's window -- an overlay such as Discord's or the GPU driver's (topmost over the whole screen, hit tests pass through it) or a shadow: when the window as DWM composes it equals the framebuffer, that is a note now, as another window on top of ours already was;plat::win_test_composed(w)(test aid): the client area as the system composes it, PrintWindow withPW_RENDERFULLCONTENT(the GPU child's swapchain too, nothing of what lies on top; None on the other systems). docs/GPU.mdui: Scripts: a
gpu onaftergpu offleft its new windows at 320 x 240 (the size asked of the closed ones stayed), so every GPU check after it was only "the system keeps the window at another size (no result)": diagramtest's gpu_canvas.uis checked nothing of its switches (jfgui_GPU_CANVAS_PAN,jfgui_GPU_CANVAS_CPU,jfgui_GPU_CANVAS), Kritzel's nothing ofjfgui_GPU_CANVAS_ZOOM;gpu offforgets that size with its windowstests: uigputest: viewplain.uis's veils on the screen failed on Windows where an overlay that takes no clicks (Discord's, the GPU driver's) drew over the window, which the hit test passes through: when the window as the system composes it (plat::win_test_composed) equals the CPU's picture, that is a note now, as for gpu expect screen
pdf: Drawing pages: a soft mask takes the place of the image's
Mask(ISO 32000-1, Table 89):SMaskand the opacity channel of a JPEG 2000 image (SMaskInData), which stands for it; before, a colour key or stencil mask was applied as wellplat: policy on Android: the thread id of the asking thread (
plat_tid) and other threads waiting for an answer, as on the other systems; with threads since AN1 every thread had id 0 there, so a plugin's scope could have covered other threadsdiagram_core: A cell with
SETATREF()(no reference), a cut-offDEPENDSON(in a Relationships cell and a spline or NURBS degree from the file (NURBS(1,1e12,0,0)) no longer crash or ask for terabytes; a formula more than 512 operators deep (1+1+1+...) is too complex, its evaluation overflowed the stackimg_jp2: Tile-part and PPM lengths saturate: on 32-bit targets a tile-part length near 2^32 wrapped in front of the part (the parts went round forever) and a PPM length could slice backwards
compress: Brotli: compressing text with dictionary words of 4 to 8 letters no longer subtracts past zero (a panic where overflow checks are on, as in the debug builds of apps)
diagram_io: VSS: a formula block whose length wraps on 32-bit targets ends its row instead of panicking or looping
cas:
Folder: a pack name whose first two bytes are not whole letters is refused instead of panickinggame: net: a count of 0xFFFFFFFF in a peer's inputs or events no longer overflows on 32-bit targets
pdf: PostScript calculator functions:
bitshiftby -2^63 shifts everything out (its negation overflowed)diagram: (JD29) jflib-diagram-core:
THEMEPROP()no longer reads a shape's quick style cells, so a quick style cell may askTHEMEPROP("Embellishment")without a circular referencediagram: (JD29) jflib-diagram-core:
instance::import_masteralso findsUSE(""Name"")inside a string of a formula (an action's SETF), so a relationship whose menu offers composition brings the composition's line end alongpdf: Drawing CCITT Group 4 (and the 2-D rows of Group 3) no longer searches each row's reference line from its start at every step: a hostile image of many changes per row took seconds a row
pdf: Drawing vertical writing: a glyph's shift to its vertical origin (half its width, 0.88 em) was scaled by the font size twice; vertical text landed far left of and below its place, mostly off the page
plat: Android:
plat::mkdirover an existing file reported success (docs/ANDROID.md, AN0 finding 2)netpkt: cookies: a Domain attribute with a dot at the end ("example.org.") matched the host without it; it now matches no host and the cookie is not stored (RFC 6265 5.2.3; http-state domain0014, domain0015)
datastore: Store::rekey holds the lock until the files under the old key are removed; it let go before: a commit or compact of another thread in between made a newer snapshot and log, which rekey took for old ones and removed (the commits after them lost; on Windows the open log stayed and rekey failed). After the new snapshot the store seals with the new key also when the new log does not start; start_log switches file, name and length together once the file is empty (a failed truncate left the old length beside the new file)
netchan: Client over a WebSocket: a packet of its own that the WebSocket cannot queue (WsOptions::max_unsent bytes waiting: reliable chunks, acks, keep-alives) ends the connection, Disconnected(Closed(1011)), as the server ends one that does not take what it is sent; it was dropped and counted as sent (a false Delivered, the server waiting for the chunk until EARLY_MAX)
game_render3d: Models and Textures: what the renderer refuses to remove (the bridge's instances still use it until sync_models runs after the update, a material of the app names a texture) comes off with the next update (waiting()); the ids were dropped and the meshes, materials and textures stayed on the GPU for good, with every model unloaded or reloaded while an entity showed it
game_render3d: Bridge::sync and sync_models: an entity render3d refuses (a removed mesh, a pose that is not finite) is left out and counted (SyncStats::failed), the others go on and the next sync tries it again; the error ended the sync and every later sync ran into the same entity, so nothing after it was added or moved any more. A model whose parts fail half way takes the instances it added off again
game: Assets::reload keeps the value until the new one has come, as documented: get() gave None while it loaded, and for good when the file did not decode; a reload that fails keeps the old value without a change
diagram_core: data::refresh refuses (Invalid, nothing changed) data whose source lacks a key column of the recordset: it matched the rows by position then, and every bound shape got another row's data without a conflict; data::missing_key names those columns
installer: A key of the app's own that exists with another program's command (a scheme such as mailto) is neither written nor removed; a setup for all users overwrote the computer's handler and its uninstaller removed the key, for every user (setup.log: kept)
JFDiagrammer: Daten aktualisieren with a source that lacks the key column says so (Der Datenquelle fehlt die Schlüsselspalte) and changes nothing, instead of matching the rows by position
tests: nettest wschan: the echo of a message the server could not queue yet (Backlog, under load) is sent later instead of dropped (1945 of 2000 came back under load); a client whose own packets the WebSocket cannot take ends the connection
pdf: Opening a hostile file takes bounded time and memory: cross-reference streams keep object numbers up to 8 388 607 and no free entries (one of a few KB named hundreds of millions), decode at most 256 MB together, and a stream that several sections name (XRefStm) is read once; the decoded object streams held stay within max_stream (older ones are dropped and read again, all of them within four max_stream and 64 bytes for each byte of the file), and an object at the wrong place of its object stream is found by its number instead of a search through the index; a repaired file's objects are read only up to the next object's header (strings inside strings were read to the end of the file for each)
pdf: The pages of a tree share what they inherit and the /Resources they name (a direct /Resources of 10 000 entries over 10 000 kids was copied for each kid, also before a repeated one was skipped, and 5000 pages on one /Resources object held 5000 copies of it); copies of a
Dictshare their entries until one of them changes;fields()shares the name and value kids inherit (a /T of a megabyte over a million kids) and gives at most max_stream bytes of names, values and optionspdf: Text:
text_stringdrops language escapes in one pass (a string of a million of them took minutes); the end of an inline image is looked for in the 256 bytes after each EI, and all the candidates of a content stream within four times its length (a hex string after each of millions of EIs was read to its end for each);page_textcounts the bytes of a content stream each time it runs (a form of a megabyte of white space drawn a million times had no operators to count)pdf: Drawing a hostile page takes bounded time and memory: the bytes of content streams, forms, CharProcs, patterns and font programs count as operators each time they are read or decoded, and so does every glyph shown, an invisible one too; a CharProc, a pattern (by reference and the matrix of its space) and a font program (by its stream; a substitute by its file, whatever name found it) are decoded once and shared, within byte limits (4096 fonts on one FontFile2 held 4096 copies of it; each
scnparsed the pattern and drew its tile again, so ordinary pages ran out of work); soft masks and clips that are no rectangle count their pixels as work and what they hold as memory (at most 64 bytes for each pixel of the page; 256 masks on each of 12 levels were tens of GB)pdf: Drawing: functions are parsed once for each reference, with 4 million samples and 4096 functions together, and one call does at most 10 000 steps through all of them (a stitching function named one sampled function 1024 times; arrays of arrays of programs ran 1024 programs for each pixel); Type 1 subroutines are decrypted once (a long one called thousands of times was copied and decrypted for each call); a mesh shading is no longer copied for each
sh, each of its triangles counts as work, a width of 0 bits is refused; an image counts its pixels when it is loaded, a JPEG's own size counts against max_pixels, the decoded images of a page are kept within 256 MB and shrinking one takes half the memory; a glyph larger than 4096 pixels or far from its origin is filled as a path (it was not drawn, and the rasterizer of the glyph cache grew to its width, 512 MB for a glyph of 2 million pixels)tests: pdftest's groups read_budget and render_budget: 20 files of a few MB that took minutes to hours or many GB in the reader and the renderer (lib review of 2026-11-27), each within 20 s and with what it should give
diagram_core: (S6) The formula engine keeps the readers of a cell as a set and leaves the dependency graph alone when a recomputed cell reads what it read before. A cell every shape reads (a style's, a page's) had a sorted list with a reader per cell of the drawing, and every recomputation moved it: on a drawing of 10 000 shapes setting one shape's text took 3.3 s, a fill formula 29 ms, the undo of moving 100 shapes 286 s; now 0.15 ms, 0.03 ms and 0.09 s (release, Ryzen 5 3600). Results, their order and the graph's content are the same.
jfWord: Documents the system's picker hands out (Android's content:// names): the file type and the title come from the document's display name (
plat::display_name), the system's save dialog is not followed by a second question whether to replace the document, recent files keep their namebuild:
tools/android.pytakesJAVA_HOMEon Linux and macOS too (it looked forjavac.exethere and fell back to the PATH)img_jp2: The layer-resolution progressions (LRCP, RLCP) pass only over the components that have precincts at a resolution, and each pass over a layer and a resolution counts against the budget of the packets looked at: 8192 empty components with 65535 layers and 33 resolutions (25 KB) took 50 s, 7281 POC volumes over them ran for days (now 0.1 s, with packets the budget ends them after about 1.5 s).
img_jp2: A tile's structures (resolutions, precincts with their code-blocks and tag trees, the coded data, the progression lists) are counted in bytes, at most the size of the samples (at least 64 MB); a band without code-blocks in a precinct makes no tag trees: 2 million empty packets of 1 x 1 precincts (2 MB of zeros) committed 2.4 GB, now Error::Limit at 106 MB.
img_jp2: Memory: Options::max_mem bounds what a decode holds at once (the samples, a tile's planes, its structures; 0, the default, adds no limit) and img_all's codec takes it from ImgDec::maxmem less the ARGB surface (it was ignored); the planes go into the image one component after another (the first three wait for each other under a multiple-component transform), a component's code-blocks are freed after its plane and bands without data are not allocated: a 4-component 8192 x 8192 file without data committed 2.3 GB, now 1.35 GB.
tests: codectest --hostile jp2_layers, jp2_poc, jp2_precincts and jp2_mem: empty components under 65535 layers, POC volumes over them, empty packets of 1 x 1 precincts, Options::max_mem and ImgDec::maxmem (the old code took 50 s, ran past 90 s, committed 2.4 GB, ignored the limit).
sheet_io: csv::to_table takes a count of values (rows times the width, the padding included) and gives Limit("cells") past it: one record of 16384 fields over 100000 short ones passed every CsvLimits and padded them to 1.6 billion values (52 GB); the columns past the header that hold nothing are found once per record, not once per column and record.
sheet_io: xlsx::Limits::sheets and ::names bound the sheets and the defined names with the tables of a workbook (10000 and 100000 by default); each name finds its sheet in a map, not by lowering every sheet name (10000 sheets with 100000 names: 10^9 strings), and a worksheet or table part several sheets share is read once (10000 sheets on one worksheet naming one table 29000 times: 290 million names, past 50 GB).
diagram_io: Binary stencils (.vss): a formula links the pieces of its values instead of copying the text for each operator (a value in 200000 parentheses took 33 s, now 28 ms) and is left out past Limits::formula_bytes; a text counts its fields as it goes and walks its character, paragraph and tab runs with a cursor (a million fields: past 90 s, now 0.6 s) and is bounded by Limits::text_bytes; streams whose pointers overlap are refused (300 pointers into one stream of 1 MB read 300 MB).
diagram_io: Binary stencils (.vss): the rows of a section, the strings of an object, the Geometry order, the row names, the styles' and masters' name indices, the masters and the shapes of a master with their children are looked up in maps instead of searched (200000 rows of a section: past 90 s, now 0.1 s); the size limit is checked before a value is escaped (a character becomes up to six bytes), as in the XML formats (.vdx) for the text of an element.
diagram_io: Data parts of VSDX files: connection and recordset IDs, columns, the attributes of a recordset's schema, the key values by row, the relationships and parts by name are looked up in maps (100000 connections took 42 s, now 0.14 s; 16000 columns of 20 rows 13.5 s, now 0.35 s); writing puts the new parts and relationships in at once and finds free part names in a set; a prefixed foreign attribute (mc:Ignorable) keeps the declaration of its prefix, which was dropped (the written part had an unbound prefix). Writing a package names new pages and masters from where the last free number was, not from 1 for each (O(P^2)).
compress: zstd: a dictionary's content stands before each frame's output as a history of its own instead of being copied into the output and out again for every frame, in decompress_with_dict and the stream Decoder (110000 empty frames of 9 bytes under a dictionary of 1 MiB took 63 s).
archive: write_with stores a part DEFLATE would pack past the writer's Limits::ratio: what is written within limits reads within them (a VSDX or XLSX with a large uniform part, written with the readers' ratio 200, was refused by the same reader).
diagram_core: Formulas: a text a formula makes is at most 1 MiB (&, SUBSTITUTE, REPLACE, REPT, LOWER, UPPER), checked before it is built; past it #VALUE! (SUBSTITUTE of a 1 MiB text into each character of one asked for a terabyte, cells that double a text from cell to cell too). A format picture's zeros are padded at once, not inserted one at a time at the front (quadratic in their number).
diagram_core: structure::settle with many shapes: the page's containers gathered once and what moves as a set for drop_targets and edge::targets (each moving shape went through every top shape and every moving shape), and the container's side of the shapes that join it written once after the loop (its list read and written again for each member): 3000 shapes dropped into a container took 13.2 s, now 0.2 s.
diagram_core: data::auto_link binds all its rows in one change of the data sets (link for each shape copied the data sets, each copy a step of the undo); data::refresh finds old columns, rows by ID, removed rows, duplicate keys and each column's old place in maps (100000 rows took 2.1 s, now 0.3 s).
diagram_view: PageView decodes each picture source once for all its items and keeps its pictures within PIC_BUDGET pixels (256 MB; past it a placeholder; PageView::picture_pixels says how many): 30 pictures of 4096 x 4096 held 2 GB. The CPU drawing passes over gradients and pictures outside the view, so they neither cost a pass of their own nor split the layers into passes.
diagram_view: Export: SVG writes each picture once in <defs> and a <use> for each item (each item wrote its bytes again), gives a background page's shapes ids with their page (shape IDs are unique per page only: the same id twice), finds the links of shapes and their parents in a map; PDF reads and hashes each picture source once per page, not twice for each item; the link boxes of a page are gathered through a map.
ui: Diagram editing: the lasso tests the shapes only when its outline got a point, and first against the outline's box (every shape against every point in each frame); the snapping of a move skips the cheap cases first and finds the moving shapes by binary search (a search through them for each shape and frame).
ui: Key tips: while the mode is on, and two passes after one of its keys, typed text goes nowhere (the key was taken, its character not: a key tip "S" over a selected shape opened the shape's text with an S, the next letters went into it); past "0A".."0Z" the keys are "01A".."09Z", which no other key begins ("0AA" was never reachable: typing "0A" chose "0A").
ui: Diagram editing: Enter on the selection edits its text again (behave took it as a click of the canvas: only F2 worked); a zoom rectangle drawn with Ctrl+Shift zooms in up to the highest zoom (Viewport::zoom_to; Viewport::fit stops at 100 %, so a rectangle at 400 % zoomed out); the arrow keys that pan the view without a selection draw the pass again (canvas and overlays showed two views); a shape nothing glues to (SEF_NOGLUE) gets no connection arrows (dragging one glued a connector to it); a dashed frame is drawn where it is in the window (at most 400 dashes counted from its start: a long edge zoomed far in had none in view).
ui: Ruler: Esc while a guide comes out of the ruler is used up (it ended the guide and the drawing's selection too). GPU output: the veils' texture goes LINGER after the last veil, as an empty layer's does (it stayed until the GPU output ended: up to some 33 MB).
render3d: Particles: the places of records older than the longest life (particles::LIFE_MAX, 4000 s) are zeroed before their age in 32-bit microseconds wraps (4295 s): a lasting emitter keeps the clock's epoch, and records the ring never overwrote woke 71.6 min after their birth for their life again (10 alive instead of 4 in render3dtest's particles check).
physics: Simulation::add refuses a static or kinematic body whose sphere or capsule radius, capsule half height or box half size is not finite or not positive (BodyError::Shape, Shape::sizes_ok): one NaN size broke the tree of the bodies near it. A convex against a mesh makes at most 16 manifolds, the deepest (a box on 2 cm bumps of 5 cm made 34, each new point matched against all of them).
game: Assets (Loading::Frames): an entry dropped while it waited for its decode and loaded again within the linger goes back into the queue (it stayed Loading for good: wait_idle and loading screens hung). Net server: a room a HELLO without a room made goes as soon as its maker leaves it alone, and when its maker's join fails (ten HELLO and LEAVE filled max_rooms and refused the next player). Follow::zoom takes at most 1000 notches (a scale of 1e300 looped for ever).
geom: Boolean operations: a convex cell has at most MAX_PLANES (4096) planes, else TooBig at once (a cell costs the square of its planes: a sphere of 256 x 128 took 284 s, a bevel of 64 segments minutes). Mesh::weld uses a grid of cells as wide as the tolerance (the x-sorted window tested every pair within it: a tolerance taking in every point never ended).
gltf: write_document refuses a primitive without triangles (its accessor of count 0 made a file the reader refuses) and a .glb of 4 GiB or more (try_write_glb, new: write_glb cast its lengths to u32 unchecked).
game_render3d: Textures::update: an image the renderer refuses no longer stops the later ones of the update; it gives the first such error after the others went up and is tried again by the next update.
gpu: Metal swapchains: present counts the frame off its own swapchain, and a present that fails no longer counts as on its way to the screen (nextDrawable waited up to a second a frame for it).
dxf: Strings of a multi-byte code page (ANSI_932, 936, 949, 950) go through the page first and are taken as UTF-8 only where the page finds them malformed: short runs of such bytes are valid UTF-8 too (a layer "墙" in GBK, C7 BD, read as "ǽ"; "창" in EUC-KR, C3 A2, as "â").
netio: TLS 1.3: KeyUpdates are counted since the last application data either way, not over the connection's life (a peer that updated its keys every hour ended the connection after 43 days with unexpected_message); 1025 without data between them still end it.
netchan: A reliable chunk larger than the token bucket goes when the bucket is full and leaves a debt the rate pays back (reliable_bytes_per_s below half a chunk made the channel stand for good). The client tells the server its max_payload in CONNECT and RESPONSE (fields after those of before, 0: not given), and the server sends a connection at most the smaller limit (ServerCore::max_payload(id)): it sent up to its own, the client dropped the rest, reliable chunks went again for ever. The UDP reading threads drop datagrams larger than a packet before they queue them (packet::max_datagram; the queues held up to 512 MiB on the server, 256 MiB on the client).
plat: Linux gamepads: a pad that goes makes the next poll look at /dev/input again (one plugged in again between two polls under the same eventN was not opened until another node came); without inotify every look tries the skipped nodes again (one refused before udev gave the seat its rights stayed ignored). share(): Windows before 10 2004 (no ShareCanceled) answers SHARE_DONE once the sheet has its items, macOS refuses a window not on screen and iOS a controller that does not present (SHARE_NONE): a sheet that never answered held every later share() at SHARE_NONE. Windows: the system's TLS check keeps the leaf's revocation check (cache and staple) on the extra CAs' path too. Windows before 10 1607: win_key_label takes the key's name instead of ToUnicodeEx, which put a dead key into the keyboard state there. Android IME: a long text's window comes back only when the text did not change since its snapshot (a change of the same length was overwritten) and its ends are character starts.
Security#
- netio: DNS over UDP: an answer from the server asked with the query's id but another question, or malformed, made the resolver give up on that server; it is now ignored and the wait for the real answer goes on, so such a datagram no longer ends the query (a forged one that does fit, with the server's address, the id and the question, still counts: checking it is DNSSEC's part)
- netio: DNSSEC (when on): bogus answers are refused; the work one answer can cause is bounded: 48 queries for keys and DS records and 64 signatures per lookup (KeyTrap, CVE-2023-50387), NSEC3 above 50 iterations insecure without hashing (CVE-2023-50868), at most 32 NSEC3 records looked at
- plat: Windows
fs::Diropens every entry relative to its folder's handle (NtCreateFilewithOBJECT_ATTRIBUTES.RootDirectoryandFILE_OPEN_REPARSE_POINT, one name at a time; a junction, symbolic link or other name surrogate on the way refused), renames relative to the target folder's handle, removes through the entry's handle and sets a link's reparse data on the new entry itself: what lies below an open folder is found through the handles, never through a path. Folders are no longer held open withoutFILE_SHARE_DELETE; a folder another program held open with delete access could be renamed and replaced by a junction after the Dir opened it, and entries were then named by a path through that junction - plat: Linux tray:
Activate,SecondaryActivate,ProvideXdgActivationTokenand the menu's clicks (dbusmenuEvent/EventGroup) count only from the unique name that ownsorg.kde.StatusNotifierWatcheror anorg.kde.StatusNotifierHost-*/org.freedesktop.StatusNotifierHost-*name (KDE: plasmashell; GNOME's AppIndicator extension: gnome-shell), asked of the bus when a sender is new; the bus's answers andNameOwnerChangedcount only fromorg.freedesktop.DBus. Any client of the session bus could run the app's tray commands (a program of the same user that claims a host name still can) - BackupCraft: An instant VM's merge opens its folder from the restore folder without following a link and makes the disk files there itself (never an existing name, never through a link); QEMU gets the open files (
fs::fd_path), not their path.bcctl tape extractworks below its target folder relative to open folders (bc_fs::open_dir/open_parent), as the server's restores. Both checked their paths by name, and a link on the way was followed - plat: Windows: dwmapi, crypt32, winmm, iphlpapi, bcrypt and avrt are loaded from System32 when first used instead of being imported by the program: a DLL of such a name beside the program (a setup in the download folder) was loaded in their place
- plat:
screen::pick_test_point, the colour picker's test aid, obeysscreen.capturelike the picker: it read screen pixels without the permission - netpkt:
dns::read_name(and sodns::Message::parseand the dissector) follows at most 126 compression pointers per name, as Go's resolver: a chain of pointers, each one step back, let every name of a message walk the whole message (quadratic in its size) - img_png: Metadata: only the first iCCP chunk (and the first compressed XMP) is inflated, also when it fails: each further chunk with a bomb past the 16 MB limit was inflated again, up to about 32 MB of work each
- text: CFF: a Private DICT is read to at most 64 KiB: each of up to 256 font DICTs may name its own, and walking each to the end of the file was 256 times the file
- netpkt:
ssh: the strict key exchange of OpenSSH (kex-strict-c/s-v00@openssh.com) against the Terrapin prefix truncation (CVE-2023-48795): offered in the first KEXINIT and used when the peer offers it too (its KEXINIT first, nothing else during the first exchange, sequence numbers from 0 after each NEWKEYS); OpenSSH 9.6 uses it with the core (tools/ssh_interop.py --core checks it now) - netpkt:
radius: Response, Accounting and Message-Authenticator compared in constant time (crypto::ct_eq), not with==;tls::Coreoverwrites its handshake and traffic secrets when it is dropped - crypto:
eappwd::sharedrefuses a peer scalar of 1 (RFC 8146 2.1; hostapd since CVE-2019-9497);argon2::verifyrefuses a PHC string that asks for more thanVERIFY_WORK(2^24 KiB times passes) instead of running it (4 GiB with 2^32 - 1 passes passedvalid());aes::Aes::newoverwrites the expanded key words with a store the compiler keeps - netio:
ssh:private_keyoverwrites the key file's decoded bytes and text,auth_passwordthe message with the password, once used - plat: Linux
secret: the plain copies of a secret in the messages it builds and reads are overwritten (the D-Bus connection overwrites every encoded message once written and the bytes it has read), and sealing no longer grows a copy of the value - cas: A repo.json without its MAC no longer opens (
Corrupt): it was sealed again as genuine, so whoever could write it could change signers, retention and keys (every published version writes the MAC) - update: The backup of a replaced file carries its SHA-256 (backup/list "H sha256 path"); the way back checks every copy before it puts one back and again while it copies, so a changed copy leaves the new version whole ("R path" of earlier backups still works)
- cargo_jflib: jfgui_SIGN_PFX_PASS is taken out of the environment when cargo-jflib starts, so the processes it starts (cargo, linkers, gpg, the app under
run) no longer inherit it; signtool still gets it on its command line (it has no other way), a certificate from the store (jfgui_SIGN_THUMBPRINT) needs none - plat: Linux sandbox (seccomp): io_uring, the new mount API (open_tree, move_mount, fsopen, fsconfig, fsmount, fspick, mount_setattr) and pidfd_getfd are denied; clone with a flag for a new namespace is denied, clone3 answered ENOSYS (its flags sit behind a pointer; libc then uses clone); process_vm_readv is allowed on this process only, so the crash handler gets its backtrace again
- plat: Linux:
process::run_elevatedlooks for a bare program name in the system's folders only (/usr/local/sbin ... /bin) and hands pkexec the full path: pkexec searched the caller's PATH, so a program the user's PATH put first ran as root - plat: Linux session bus: the portal's Response of autostart and the power inhibit, the GlobalShortcuts Activated, the Flatpak update monitor's signals and the Secret Service prompt's Completed count only from the service's own unique name (any client may send a signal of that name on the predictable path)
- plat:
dnd::drag_starthands the system only files the manifest lets the app read, and offers a move (the target deletes the original) only when it may write them all; the browser'sdownload/persistand Android'spersistcheck the manifest (read / write) like a file access; Android reads a streaming provider's document to at most 256 MiB, with allocations that may fail - gltf: The image files read count against
Limits::buffer_bytestogether (each file again for every image naming it): only each file's size was limited - ui: Permission dialog: the target, plugin, reason and rule are wrapped and whole, control characters and the characters that change the writing direction show as
<U+XXXX>(a long target lost its end at the dialog's edge, U+202E could turn a file name around, NUL ended the text) - ui: Terminal: a change into or out of
TM_SECRETdrops (overwrites) the input typed so far: a hidden line showed in the next mode's input line, a visible one became part of the secret - ui:
TB_MULTI | TB_PASSWORDis a one-line password box: the multi-line box ignoredTB_PASSWORDand showed the password in plain text - agent_core:
describeanddiscovershow anAccess::Localaction's name, description and access only: unavailable (forbidden), without its schemas (they revealed what an external call of it does not) - android: Android: the keyboard gets the box's kind -- a password keyboard without personalised learning for TB_PASSWORD, a multi-line one whose Enter breaks the line for TB_MULTI, one line with Done (sent to the app as Enter, EV_COMMIT) otherwise -- and restarts when the focus goes to another kind of box; it was always a plain text field (Gboard learned passwords, no line break, Done never reached the app)
- ui: A text a screen reader sets for a password box is taken as the box's dots with the user's change (the kept dots stand for the hidden characters): a Backspace of TalkBack (browser, Android) set the password to the dots
- diagram_io: diagram_io: an XML part with "<?>" (a processing instruction without a target) made the reader panic, which ends an app built with panic = abort; it is a syntax error now (found by the fuzz corpus of coretest's group xml)
- crypto: The masks of secret-dependent selects pass an optimization barrier (
ct_mask). On x86-64 with Rust 1.98 LLVM had compiled the masked final subtractions of the P-256 field arithmetic and of the Ed25519 scalar reduction into branches, the select over all 16 entries of P-256's window table into a jump table indexed by the secret nibble, and at opt-level 2 with LTO (JFLib's release) the window select ofbn::Mont::pow_ctinto a branch: the time and the memory accesses ofp256::public_key,sharedandmul_point(EAP-PWD too), of Ed25519 signing and ofpow_ct(RSA signing, the Diffie-Hellman of plat's Secret Service client on Linux) depended on the secret. Results are unchanged; P-256 is about 24 % slower - crypto: EAP-PWD's hunting and pecking no longer branches on whether a round's x has a point:
p256::y_for_x(variable time before) has no branch on x up to its answer, andeappwd::pweuses its branch-free core, so which rounds find a point no longer shows in the way the program takes (the partitioning of Dragonblood, CVE-2019-9494, and the cache attacks after it).p256::scalar_add(the Scalar rand + mask of a commit),p256::secret_fromand the subkeys of AES-CMAC select without branches as well;tools/ct_check.pyfound them - netio:
x509::Cert::verifyreads an ECDSA signature (certificates, TLS CertificateVerify) strictly as DER: nothing after the SEQUENCE or in it after s, r and s in the shortest form of a non-negative INTEGER. Bytes appended to the signature and zeros put before r or s were accepted, so a CA-signed certificate could be re-encoded into copies with other fingerprints that still validated (no forgery; Wycheproof's InvalidEncoding cases, tools/wycheproof_check.py now without a failure) - crypto: Base64 and hex without a branch on a character or a value and without table lookups:
b64::decodeanddecode_urllook at every character before they answer,b64::encodeandhexcompute the characters instead of reading an alphabet at the value,unhexlikewise. Private keys come this way from PEM files, OpenSSH key files and PHC strings (the attack of "Util::Lookup", 2021, on the key decoding of other libraries); the results are unchanged - netio: TLS refuses handshake data that crosses any change of the read key (RFC 8446 5.1): the application keys after Finished and those of a KeyUpdate count too; before, only the first keys did
- netio: X.509 closes what x509-limbo found: name constraints are processed for e-mail addresses, URIs (their host) and directory names too, and a constrained form netio does not process refuses the certificates below it (such constraints were dropped); they apply to the intermediates below a CA as well, not only to the leaf. Refused now: RSA keys under 2048 bits or not in whole bytes, an unknown critical extension in a trust anchor, an empty extended key usage, a subject alternative name that is empty, of an unknown form, an iPAddress of another length or a dNSName outside the preferred name syntax (an underscore, a leading dot), NameConstraints without subtrees, critical AKI / SKI, name constraints or keyCertSign in a leaf without cA, a CA with an empty subject. Self-issued intermediates no longer count against pathLenConstraint
- netio: DNS: an answer counts only with addresses of the asked name, or of the name its CNAME chain in the answer leads to (at most 8 steps); records for other names in an answer were taken as well
- crypto: EAP-PWD's commit and shared secret no longer check the password element and the points made from it as if they came from outside:
point_ofbranched on their secret coordinates (p256::mul_point_known,add_points_known; the peer's element is still checked) (tools/ct_check.py's memcheck found it) - netio: PEM (
pem::decode_all) is read line by line, each line compared with the markers, instead of with a substring search across the text, whose steps depended on which Base64 characters a private key has (tools/ct_check.py's memcheck found it); a marker must stand on a line of its own (RFC 7468) - netchan: netchan encrypts and authenticates its UDP channel (packet format version 2; ROADMAP section 13, U3): the handshake exchanges ephemeral X25519 keys (RESPONSE carries the client's, ACCEPT the server's and a confirm of the derived keys), then every DATA and DISCONNECT is sealed with ChaCha20-Poly1305 under keys of this connection alone, the header authenticated, the nonce the packet's full 64-bit number (seal.rs). A changed, forged or replayed packet is dropped before anything else is done with it (Stats::forged); keep-alives and their acks are sealed too. Optionally the server has a static key the client pins (Server::set_static_key, public_key, ClientConfig::server_key; as Noise NK): then nobody on the path can take the server's place, and a wrong or missing key ends with Reason::ServerKey (DENY_KEY). Forward secure: the server's ephemeral keys come from a ratcheting generator, ServerCore keeps no seed, keys are zeroed when dropped. Handshake packets are padded to 96 bytes, and every answer before a connection stays smaller. Over a WebSocket nothing changes (wss:// is its encryption). Breaking for the unreleased crate: ClientCore::new takes 32 random bytes instead of a nonce, Packet::Response, Accept and Disconnect have new fields, Reason::ServerKey is new
- spell: A crafted dictionary (config://hunspell is the user's to fill) could make checking and suggestions hang: 20 000 empty suffixes that may follow each other took 2 to 9 s for a check and 540 s for a suggestion, cross products of 3000 x 3000 empty affixes 7 to 63 s for a suggestion, the forms of the n-gram step more than 120 s, 10 000 BREAK patterns 0.95 s for a check; words whose hashes collide loaded with the square of their number, 23 000 affix rules in 0.56 s. The work is now bounded by counts, not a clock, so the answers still never depend on the machine: every affix rule tried (also as the inner of two suffixes and in a cross product), COMPOUNDRULE, CHECKCOMPOUNDPATTERN, BREAK pattern and REP rule of CHECKCOMPOUNDREP takes a unit, 6 million for a check, 64 million for a search for suggestions, 32 million for the n-gram step's forms; the generators (TRY, KEY, REP, MAP) stop once they are spent. The word list looks for a word at most 128 slots on and keeps the rest in a sorted map beside the table; the rule groups and the outer suffixes are found in one pass. Now at most about 0.15 s for a check and 1.6 s for a suggestion. 20 real dictionaries give exactly the answers they gave before and use a sixth of the bounds or less (the most: 638 000 for a check, da_DK; 10.9 million for a search, hu_HU)
- netio: TLS: the secrets of the key schedule are wiped when a connection is dropped, and a traffic secret when KeyUpdate replaces it (also the copies a handshake made of them); a hybrid key exchange wipes its ECDH secret when the ML-KEM half is refused
- netio:
Trust::System(extra): the system checks the extra CAs (a company CA) under its own policy -- Windows CryptoAPI with them as its only roots where its own give no path, Apple's Security framework with them as anchors beside its own -- and its answer stands; on Linux they count where the bundle gives no path to a CA. A chain the system refused for another reason -- a certificate it knows to be revoked or a key it distrusts, an expired one, one for another name or purpose, one without the Certificate Transparency Apple asks of public roots -- stays refused; before, netio's own check took it when it also led to one of the extra CAs (a company CA the system trusts as well) - netio: HTTP client and
Session: an answer without Content-Length or Transfer-Encoding on a kept-alive connection was read as empty, and its body became the next answer (response desync); it now runs to the end of the connection, which then closes (RFC 9112 6.3). A connection carries another request only after a body of known length read to its end with no byte after it, without Connection: close, not after HTTP/1.0 without keep-alive and not after an answer with both Transfer-Encoding and Content-Length. The status line needs three digits from 100 to 599 ("+200" and "20" were taken); at most 16 interim answers come before the final one (an endless 100 Continue held the client as long as the server liked), an unasked 101 is refused;http::Readertakes Transfer-Encoding only as exactly "chunked" over all its header lines (a second line was not looked at), for a server's requests too - netpkt: cookies: without a public suffix list any Domain with a dot was taken, so evil.github.io could set a cookie for github.io and every site below it (cookie tossing); the Public Suffix List now decides
- installer: An installation for all users puts its folder (and the payload's folders) under the administrators with a DACL of its own (SYSTEM and administrators full, users read and run) and takes only a new, empty or its own folder: in a folder chosen outside Program Files (D:\Apps) users could swap the program or the uninstaller that runs with administrator rights, or put a DLL beside them
- installer: The uninstaller removes only shortcuts the setup made (a .lnk in the desktop or start menu folder of the scope); it deleted any path install.ini named, with administrator rights for an installation for all users
- cas:
Folderlists and removes through open folders (plat::fs::Dir): the repository's folder is taken as it is, a folder below it that is a link -- data, a pack folder, index, snapshots -- is refused, also one swapped in after gc listed it. gc followed such a link and removed another repository's packs as orphans of its own (a gc of a repository whose data folder leads to another one now stops with the error).Repo::set_immutable_daysreads the current value under the lock it writes with: a raise that came in between is never lowered - BackupCraft: An operation (backup, restore, verify, copy, tape, VM, replica, repository check and gc, update, push) is admitted before its session is made: at most 32 at once, running and queued, the next request gets 429; one queued operation that is cancelled ends at once with its session (every request made a thread that waited for one of the 8 slots). A CDP job keeps at most 16384 changed paths (4 MiB) and then walks everything (an agent could grow the server's memory without bound). An instant VM's serial console goes through a pipe into console.log, capped at 1 MiB, and the console and boot checks read its end only (a guest could fill the disk). The immutability asked for when a repository is created or attached reaches the repository itself, and opening a repository raises its own to the database's value (the repository kept 0 days, and retention removed points that showed as protected). bcctl sends a saved token only to the server it was saved for. A pairing code is taken and removed in one transaction (two enrollments at once each got an identity). The console forgets the settings forms, open dialogs and typed passwords at sign-out and drops answers of the old session. The agent wizard quotes the server address and the code for PowerShell (typographic quotes included) and sh. Tape set ids are tokens (letters, digits, - and _), never paths, also from an imported tape. A local backup reads each file in its folder opened from the shared folder (plat::fs::Dir) and refuses a source whose folders on the way are links
- netchan: A RESPONSE from an address with a live connection no longer replaces it, only one quiet for a second (ServerStats::kept): someone on the path who saw a CHALLENGE could end it. challenges_per_s counts only the key work, after the cookie and the connection limits, for all addresses and a sixteenth for each prefix (IPv4 /24, IPv6 /48); CONNECTs are answered without it (a flood of forged CONNECTs throttled new players).
[0.2.1] - 2026-11-16#
Added#
- ui:
FD_BUILTIN: the app chooses the library's own file dialog for aui.filedlgcall on every platform (Windows, Linux, macOS, Android, the browser), so it looks and behaves the same everywhere and in every style; it lists what plat's file functions see. Before, only the environment variablejfgui_FILEDLG=builtinchose it, for every dialog of a run. docs/GUIDE.md section 7 - ui: Test scripts: a line
only OS...: COMMANDruns one command on the systems it names (only windows linux: key ctrl+q),!OSon every system but that one; the names are those of cargo jflib test's#!only(windows linux macos ios android wasm32), which skips a whole script. The app decides it where the script runs, so build_rs.py test, cargo jflib test and runs by hand behave alike; an unknown name is a parse error. docs/GUIDE.md section 12 - ui:
ui.drop_defer()andui.drop_finish(effect)work for the app's own drags too: a drag of the app dropped onto one of its targets waits for the target's answer like another program's drop -- its source reportsDS_ACTIVEuntil the answer, thenDS_ENDwithdrag_effect()andUIC_DRAG_ENDasdrop_finishsays (0: not taken); afterDROP_DEFER_MS, or when a new drag of the app overtakes it, as it was delivered. Withoutdrop_deferthe source'sDS_ENDcomes in the passes right after the drop's (no longer in the same pass as the target'sDS_DROP); in the drop's passesdrag_allowed()says the source's effects, as for other drops;dragging()is false once the drag was dropped. docs/GUIDE.md section 7 - render2d: Text (G6c): fonts from TrueType or OpenType bytes (
Scene::add_font, parsed by lib/text), text styles like DXF's STYLE (TextStyle: font, fallback fonts, a fixed height, width factor, oblique angle, drawing units or pixels), single lines with DXF TEXT's alignments (Shape::Text,Text,HAlign,VAlign, backward, upside down, aligned and fit between two points) and the basics of MTEXT (Shape::MText,MText: line breaks, a wrapping width, line spacing, the nine attachment points), shaped by HarfRust through lib/text_shape (kerning, ligatures, bidi, Arabic joining, fallback fonts per run). Glyphs come from an atlas of multi-channel signed distance fields made on the CPU from the outlines (two size classes, tiles on demand, the same bytes on every target); the coverage comes from the distance through the map's Jacobian, so width factors, oblique angles and uneven inserts stay sharp, and every pixel blends once per text; below 7 px per em a text is drawn as one bar per word, from 160 px per em as a fill of its outlines (texts in blocks stay glyphs); texts work in blocks like any entity.text_layoutand the freelayout_text/layout_mtextgive the layout (the extent for picking, the outlines for a CPU path),text_info,atlas_hash. docs/RENDER2D.md section Text - plat:
watch::Watcher::watching(): whether every root (Linux: every folder below them) is watched now - netio:
Stream::end_is_clean()(default true): after a read gave 0, whether the peer ended the stream in order;TlsStreamanswers whether close_notify came - render2d: Picking, area selection, object snaps, highlighting and an overlay (G6d): a spatial index of its own (an R-tree of f64 boxes, built in one go by the first query and kept in step with every change; each block indexed once in its own units, queries go down through the inserts' inverse transforms, arrays and nesting included) behind
Scene::pick(exact against what is drawn: widths in pixels or units, caps, joins and miters, arcs and curves themselves rather than their flattening, fills even-odd with holes, hatched areas, texts by their quad; topmost first in the painter's order; inside blocks the insert and the path of nested inserts down to the entity; hidden layers skipped, a filter for an app's layer lock),Scene::select(window and crossing by rectangles and polygons, an insert as a whole) andScene::snap/snaps(endpoint, midpoint, centre, quadrant, intersection, perpendicular, tangent, nearest and insertion; aperture, kinds, a base point, AutoCAD's priority), all in f64 and exact at 1e7 and 1e-6 units per pixel;grip_points; highlighting of selected and hovered entities and of inserts as a whole (set_highlight,HL_SELECTED,HL_HOVER) through a mask of two bits per record and instance, of which only the changed words go up, never geometry (without a highlight every pipeline, its SPIR-V and every image stay as they were); an overlay made anew every frame (Scene::overlay: rubber bands, window and crossing boxes, grips, snap markers, fills; in drawing units or pixels) drawn after the scene with the same anti-aliased stroke and fill code from its own per-frame buffers. docs/RENDER2D.md sections Auswahl und Fang, Hervorheben, Überlagerung - netio:
x509::CertBuilder::sign_ext(further extensions; one with the OID of a built-in one replaces it) andx509::extension;server::MIN_BODY_RATEandhttp::Reader::set_min_rate - rt, plat, gpu: Intel Macs (
x86_64-apple-darwin, macOS 13 and later): rt detects the processor by CPUID (AVX2, FMA, BMI2) and computes the decimal conversions on the x87 unit as on Windows and Linux, with the same bits; plat calls libSystem's functions with 64-bit inodes (stat$INODE64,readdir$INODE64,statfs$INODE64...), returns Objective-C structures over 16 bytes throughobjc_msgSend_stretand reads the crash context of x86-64; gpu's Metal backend likewise. Checked under Rosetta 2 on an Apple Silicon Mac; Metal on Intel and AMD GPUs is built, not checked. docs/INTEL_MAC.md - build:
build_rs.py --target mac --arch x86_64builds the Intel Macs' programs intobuild/mac-x86_64(run and test start them under Rosetta 2 on an Apple Silicon Mac);tools/apple.py universalandtools/package.py --formats dmgjoin both parts into one program for every Mac (lipo). The disk image is now<App>-<ver>[-<style>]-universal.dmg(was-arm64.dmg), and its update channel names the same bundle and image formacos-aarch64andmacos-x86_64. docs/INTEL_MAC.md, docs/PACKAGING.md - cargo-jflib:
cargo jflib macandcargo jflib package --formats dmgbuild one program for Apple Silicon and Intel Macs (both targets, joined by lipo; the Intel part needsrustup target add x86_64-apple-darwin),cargo jflib mac --arch aarch64|x86_64only one of them; the disk image isNAME-VERSION-universal.dmg(was-arm64.dmg), the update channel names it and the bundle formacos-aarch64andmacos-x86_64; the helpers cargo jflib runs on the Mac itself are built for its own processor
Changed#
- ui, plat: Drag and drop: 0 as the effects a source allows means it does not say, so every effect (
DE_ALL), everywhere:DragData::allowed()of a drag witheffects0 (the app's own drags, inside the app and dragged out), theallowedofplat::drag_query,drag_query_allanddrag_decide, another program's hover without effects indrop_effect_set's highlight. Before, these took 0 as copy and move, whileui.drag_allowed()and the effects of a drop took it as every effect. A drag that names no effects can be linked now (Ctrl+Shift inside the app, a target that only links, other programs); a source that must not be linked names its effects (DE_COPY | DE_MOVE). Files are still never moved. docs/GUIDE.md section 7 - plat:
watch::Watcher::takereportsoverflowafter each wait while a root or folder is not watched (watching()false), so a caller that rescans onoverflowpolls until the watcher sees everything again; before, a lost root reported one overflow and then nothing - base:
Settings::set,set_atandresetreport whether the value or the file changed: setting the default removes every line of the key, also one that already read as the default (an explicit default, an invalid value), and that counts as a change (dirty,revision). A text is kept as the file holds it -- CR, LF and NUL as blanks, no blanks around it -- and a value whose line would be longer than 64 KiB is not set (false) - base:
Ini::setrefuses a line longer than 64 KiB (key=value, a new[section]) and drops the blanks around a value, as reading does:getaftersetgives what a reload gives - jflib, jflib_build, cargo_jflib, rt, plat, gpu, ui: Linux needs no flags:
cargo runbuilds a JFLib app on Linux as on Windows and macOS, without--target. rt, plat, gpu and ui pick the build against glibc in their build scripts (--cfg jfgui_glibcunless-C target-feature=+crt-staticasks for one static file), jflib-build links the program to a fixed address with-no-pieinstead of demanding-C relocation-model=static, and the template's.cargo/config.tomlhas no Linux tables any more (one static file: its two rustflags, commented, and--target). A project made from a template up to 0.2.0 drops the[target.*-unknown-linux-gnu]tables of its.cargo/config.toml; with them it still builds with--target. Building a Linux program on Windows now goes throughcargo jflib package, which adds rust-lld itself. lib/jflib/README.md, Good to know - gpu: Metal on an Intel Mac's GPU (Mac2 without an Apple family) reports subgroup sizes from 8 to 64 (
Limits::subgroup_min_size,subgroup_max_size: the driver chooses per pipeline), andDevice::create_compute_pipeline_sizedtakes only 0 there; Apple's GPUs stay at 32
Fixed#
- ui: Scripts:
type "..."typed only the first 255 bytes of its quoted text (bench N typetoo,commit1023): they take the whole string now, as long as a script line (16 KiB, the limit of a line and of a label) - ui: The state widgets keep by id is kept per window, as the state slots since 0.2.0: the code and rich-text editors' views (scroll position, find bar, completion list), the colour pickers' fields and wheel images, the font pickers' lists and searches, the spell checks of
TB_SPELLboxes and their suggestion menu, the charts' drawings and line-chart cursors, the dock and window areas (dock_begin,desk_begin), the file dialog (filedlg), the canvases ofcanvas_damage/canvas_gpu_damage, the target of the menu key and of a focus group's arrows, the colour picker a pipette pick is for. A widget of the same id in two windows (a browser's windows built by the same code) took over the other's state: a find bar showed in both, a hex colour being typed was overwritten, a font list or a file dialog opened again in every pass (its search, selection and name lost), a chart's cursor was lost, a spell menu in a second window closed at once. Calls that name an id address the window being built when it has such a widget; else (outside the passes too)code_status,code_events,code_diag,code_popup_itemandspell_errorsread the first window that has the widget,code_find,code_revealandrichtext_linkgo to the first editor of the id that is built,canvas_damageto the canvas in every window. docs/GUIDE.md section 13 - plat: Windows:
fs::read_dirreturned what it had listed so far as the whole folder whenFindNextFileWfailed with another error than the end of the listing (a backup then missed the rest without a word);Nonenow - plat: Windows:
fs::write_file_privatetook a file that already had its sibling's name (NAME.tmpN) over -- emptied it and kept its access rights, so whoever could read that file could read the private data. The sibling is always a new file now (CREATE_NEW, the next number when a name is taken), and a failed write removes it - plat: Linux and macOS:
fs::joinandfs::parenttook\for a separator: a folder whose name ends with\got no/before the child, a name with\was cut there (listings, the watcher and backups addressed other files,mkdir_privatemade extra folders).\separates on Windows and in vfs names only - plat: Linux trash: an entry of a mount's
.Trash-$uid(or.Trash/$uid) could be trashed into that trash again -- its new info file pointed into the trash, the old one was left without its file -- and the home trash was not recognised when$XDG_DATA_HOMEhad.or//in it. Both are refused now - plat: Windows:
Watcher::newreturned before the roots were read, so a change right after it could be missed, and a root whose read failed (deleted, its drive gone) was given up for good after one overflow.newnow waits until every root's first read is pending (a root that cannot be read fails it); a lost root is opened again every second - plat: Linux: the watcher left the folders of a folder whose listing failed (no descriptors left) unwatched for good, and a root moved away kept its watches -- its changes came under the old path -- while a folder made at its path was never watched (also after a deleted root). Such folders and roots are tried again every second
- plat:
fs::write_file_privatereports true when a rule allows the file but not its folder: the folder's fsync after the rename was checked against the manifest and made it report false although the file had been replaced - wgsl:
atomic<vec2<u32>>(enable atomic_vec2u_min_max;) is refused outside the storage address space: a workgroup variable of it was taken, andworkgroupUniformLoadof it panicked in the SPIR-V backend - text: Line breaking with soft hyphens stops measuring the later soft hyphens once one does not fit (each measures from the line's start): 30 KB of text with many of them froze the UI, cubic over the lines
- text: The CFF charstring operator
rollrotates in one pass: a roll of the whole CFF2 stack cost num × r moves while the budget counted one operator, and such a font took about 35 s to load - ui: The syntax highlighter nests at most 32 levels within a line (template strings in
${..}, Nest and Element rules); deeper, the rest of the line keeps the construct's colour: each level was a recursion, and a long line of "`${" ran the stack out - ui: Terminal: cursor moves (
ESC[H,f,G,C) reach column 1024 at most: the spaces up to a far column made 12 bytes into a scrollback line of 32000 cells - netpkt: IMAP
tokensnests lists at most 64 deep and takes the rest of the line as one atom: a line of(ran the stack out, in the parse and in the drop of the result - img_jpeg: The scans of an image go over at most 64 times its blocks; further scans are left out as after a missing EOI: thousands of empty scans with a restart interval kept the decoder of a small file busy for minutes
- img_jxl: The bit reader's position saturates instead of wrapping: past u64::MAX (an extensions bundle, a section offset of a crafted table of contents) it read the stream again from its start while
check()saw no error - base:
Settings: a reset left a line of the key in the file when the value already read as the default, and only the first line when the key was there twice -- after a restart the old value came back. A text with a line break or blanks around it read back otherwise after a restart, andtext()of a key outside the schema ignored its maximum - base:
Ini::setaccepted a line longer than 64 KiB that the file then read as a malformed line (the key gone, the keys after a long header in the section before), andIni::sectionscompared every header with every name before it (a file of 50 000 headers: seconds) - plat: Windows:
rename,write_fileand the other writers that replace a file (atomic writers,fs::write_file_private) no longer fail while another program holds the old file open for a moment, as a virus scanner or the search indexer does with a file just written. They rename with POSIX semantics (FileRenameInfoEx, Windows 10 1709), which replaces a file held with FILE_SHARE_DELETE where MoveFileEx gave ERROR_ACCESS_DENIED, and wait up to about a quarter second for a holder that does not share deletion; without a POSIX rename (FAT, network shares, another volume) MoveFileEx as before. plattest failed a different file-replacing check now and then under load - netio: Server: a request body sent a byte at a time (each within
read_ms) held a worker as long as the client liked; a body must now bringMIN_BODY_RATE(1 KiB a second) on average after a firstread_ms, else the connection ends - netio: TLS: records that carry no data (empty application data records) kept
TlsStream::readgoing without end, past the read timeout and the HTTP deadlines, which are checked between reads; a read now ends with TimedOut after the stream's read timeout without data - netio: X.509: a wildcard certificate (
*.example.com) passed a CA's excluded name constraint for a host it stands for (secret.example.com) or for the subdomains of its base (.example.com); and the extended key usage of the CAs on the path was not checked, so a CA for client certificates (also a trusted one) could certify a server - base:
xml::parse: a literal]]>in an attribute value was refused (it is allowed there, not in text); a declaration with a line break or tab after<?xmlwas refused; the declaration went through the element parser, soversion="1.0"passed as 1.0 and a namespace attribute in it vanished (now read as written: version, encoding, standalone in this order);xmlns:with an empty prefix set the default namespace and names with an invalid local part (p:1,p:.x) or prefix (xmlns:1p,xmlns:p:q) passed; and every element and attribute name kept its own copy of the namespace URI, so 1 MB of text could hold hundreds of MB -- the names a tree keeps are now at most 16 times the text limit (Error::Limit) - doc_io: HTML clipboard import: a long run of bare ampersands looked for the closing
;through the whole rest each time (quadratic); a reference is looked for in its first 32 bytes only - base:
pattern::Regex:(a*){0}(and{0,0}, BRE\{0\}) matched likea*, the zero interval was dropped; repetitions of nothing ((){255}{255}{255}{255}) took billions of compile steps because they emit no instruction; and deeply nested groups or long repetition chains (a{2}{2}...) went down the stack without a limit. A zero interval is now the empty match, a compile has a step budget, groups nest at most 32 deep and an atom takes at most 8 repetitions (ReErr::TooBig;{1}does not count) - base:
metrics::Window: a bucket of a slot counted at most u32::MAX while the slot's total went on (wrong quantiles after tworecord_nof u32::MAX), andhist_betweenleft out older slots the ring still held when the interval ended past the newest slot.hashring::Ring::sharesgave every member 0 when all tokens lay at one place; the first of them owns the circle - datetime:
cron: a day field beginning with*and a step (*/2) let either day field match, Vixie cron wants both (0 0 */2 * mon: odd Mondays, not every Monday and every odd day);7-7as the day of the week meant every day, it is Sunday - plat: Windows: the buttons of a system title bar work (a main window without AF_CUSTOM_TITLEBAR, windows with PWF_SYSFRAME): the window procedure made the non-client messages of every caption button (WM_NCMOUSEMOVE, WM_NCLBUTTONDOWN, WM_NCLBUTTONUP on HTCLOSE, HTMAXBUTTON, HTMINBUTTON) presses in the UI, so the X, maximize and minimize of such a window did nothing; only the library frame's buttons, which the UI draws, take that way now
- ui: The GPU output: a window whose swapchain could not be made because the device was lost (lost while no window showed on it: the others on the CPU path, hidden or kept at another size) no longer tries again on the lost device every 2, 4, 8 ... seconds; every window goes to the CPU path and a new device follows, as for a failure while showing. Test scripts:
gpu onprints a SKIP when the screen's work area cannot hold the script's window (the system keeps it smaller, on the CPU path), instead of checks that cannot hold there. - ui: On a phone or a tablet a vertical scroll view rolled sideways as soon as the natural width of its content was wider than the view: a wrapping text counts there unwrapped, a view inside that rolls sideways itself with its whole content, so nearly every page rolled sideways into nothing, and the finger after a sideways swipe only stopped that roll (no tap, no press and hold on a slider). It rolls sideways now only while its content is laid out wider than the view, and only as far as that content reaches. docs/GUIDE.md section 38
- ui, rt: The unit tests of an app's library crate with std and ui::main! (the template of
cargo jflib new --std) build withcargo test --lib: main!'s panic check refused the test build (Cargo builds tests with unwind), and ui::test_main! next to main! defined jfgui_main twice (E0428). main!'s own jfgui_main links the tests now, its panic check leaves cfg(test) out; ui::test_main! stays for library crates without main! (an app's style crate)
Security#
- plat:
fs::symlinkandfs::hard_linkwant write access to the target as well (a relative symlink target counts from the link's folder): the rules check a path as it is written, so with a manifest a link at a writable path led to files the app could only read or not reach at all; without a manifest every target may be written, under one a target with..is refused (the system resolves it after links) - plat:
assoc_unregisterplays back only record lines for the places a registration writes (Windows: Software\Classes, Software\Clients, RegisteredApplications; Linux: the .desktop and MIME files of $XDG_DATA_HOME, the user's mimeapps.list): config://assoc.list could set any HKCU value (an autostart entry under Run) or delete and rename any file of the user - plat:
process::Command::spawnwith a relative program path and acwdchecks the file it starts on Linux and macOS (cwd/program), not the same name below this process's folder - plat:
watch::Watcher::newchecks its folders against the manifest on Windows too - plat: The answers of the permission tests (
jfgui_PERM_ANSWER,jfgui_PERM_TIMEOUT,jfgui_PERM_STORE) are read when the program starts, so a value the app sets later answers none of its questions. docs/PERMISSIONS.md says what the rules hold against: content that steers the app and its mistakes, not an app that goes around them on purpose - appimagert: Without $XDG_CACHE_HOME and $HOME the runtime unpacks into $TMPDIR/appimage-run-<uid> and only when that folder is this user's alone: it used /tmp/appimage-run, which every user can make, and would have started another user's AppRun from it
- plat: Windows:
process::Command::spawnandprocess::launchrefuse a.bator.cmdprogram (87) when it or an argument holds",%,!,^,&,|,<,>or a line break: cmd.exe reads its command line by its own rules, and arguments quoted for CommandLineToArgvW could run further commands (the class of CVE-2024-24576) - plat:
open_foldershows a file or a package selected in the Finder (open -R) instead of opening it, which started apps and .command scripts (macOS); on Windows it starts the Windows folder's explorer.exe, not one ShellExecute may find in the current folder - netio: A response without a length, which runs to the end of the connection, ends only at an orderly end: a reset, or a TLS connection closed without close_notify, is an error instead of the whole body (a body cut short passed for complete)
- netio: SSH
exec: the names ofexit-signalrequests count againstmax_outlike the output (a server could send any number of them) - cargo-jflib:
cargo jflib web --serveserves only plain names below the bundle, and only to the Host 127.0.0.1 or localhost: on WindowsGET /C:/...and..\reached any file, and a web page could read the bundle through DNS rebinding - ui: The file dialog takes a chosen path longer than its
capas not chosen (the system's dialogs) or says it is too long (the library's own): the path was cut, reported as chosen and granted as cut, possibly a parent folder underfs.user - ui: The permission dialog's two allowing buttons take no input for half a second after a question appears (window runs): a double click or a held key meant for the previous question answered the next one unread
- plat: Linux: a portal's
Responsecounts only when it comes from the portal itself (the sender of its reply to the request): the request path is predictable, and another client on the session bus could answer a file dialog with files of its choice - tools: Only APKs signed with the debug key are debuggable (aapt2 --debug-mode): the app manifests no longer set android:debuggable, and a release-key build stops on a manifest that does, so another app can no longer pass jfgui_* settings through launch extras to a release build
- cargo-jflib: cargo jflib android: --release refuses a manifest that sets android:debuggable, debug APKs are debuggable through aapt2 --debug-mode; a copied clipboard image is shared as a new file each time and earlier copies are deleted, so an app that kept a descriptor of an earlier image cannot read later ones
- plat: plat::net::resolve on Windows and Apple refuses host names with NUL or other control characters, so the system resolver can no longer look up a shorter name than the one the net.connect rules allowed; plat::clr_run checks the plugins rules for the managed program and every DLL of the runtime's and the program's folders, not only coreclr.dll; with fs.user the values of the library's options (plat::VALUE_OPTS, e.g. --theme /) are no longer granted as user files (--theme-file, --shot and --script still are)
- web: The browser loader passes ?theme= only as a plain theme name and the worker drops arguments containing line breaks, so the page address can no longer add arguments or grant files
- appimagert: Extracting an AppImage drops setuid, setgid, sticky and world-write bits of the image and respects the umask; --appimage-extract refuses a squashfs-root that is not the user's own folder or a current folder where other users can rename entries, and keeps the extracted folders private until it finishes
- plat: plat::trash on Linux opens and checks a mount's trash folder by folder through descriptors (no links; .Trash must be owned by root or the user, files/ and info/ by the user), so another local user can no longer redirect a trashed item by swapping a folder
- plat: The stored permission answers (config://permission-decisions.txt) stay protected from the app's writes while another store or memory is chosen (--script, perm store, jfgui_PERM_STORE), as does every store chosen in the run, and they can no longer be written through another name of the same file (a Windows 8.3 name, another case on macOS, a hard or symbolic link); Android content:// documents opened on behalf of a plugin need the plugin's own fs.user as well
- plat: Linux: the single-instance socket refuses same-user peers from another mount or process namespace (sandboxed apps) and checks the peer pid was not reused; IBus input-context signals, logind PrepareForSleep and notification signals are accepted only from the bus name that owns the service; the X11 client sends its MIT-MAGIC-COOKIE-1 over the abstract socket only to a peer running as the user or root
- plat: fs::mkdir_private refuses an existing folder that is a link, belongs to another user or that others may write to (Windows: whose DACL grants anyone but SYSTEM, the administrators or the owner access), and makes an own folder that others may only read owner-only; Windows: service::install copies a program outside Program Files to %ProgramFiles%<name> and registers that copy, so a LocalSystem service no longer runs a program its user can replace (new service::program_path)
- crypto: eappwd::pwe always runs at least 40 hunting-and-pecking rounds and selects the first point without branching, so its time no longer shows how many rounds a password needs (Dragonblood, CVE-2019-9494); the element is unchanged
- netpkt: imf::fold, Message::header_bytes and Draft::to_bytes no longer let CR, LF or NUL in a field start a new field (header injection), and the FTP, SMTP, POP3 and IMAP command builders (to_line, fmt_path, imap::line, imap::quoted) leave out CR, LF and NUL so an argument cannot start another command; fmt_path also drops angle brackets from the address and blanks from parameters
- plat: Windows: URL schemes are registered as
"<exe>" -- "%1"and plat::args keeps the URL after -- as one argument, so a quote in a link cannot add options; ui stops reading options at --. Apps registered before keep the old command until they are registered again - plat: New plat::fs::Dir works below an open folder without ever following a link (Linux openat2 with a step-by-step O_NOFOLLOW fallback, macOS openat walk, Windows folders held open without share-delete), with set_file_times / set_file_mode through a file's own handle; TcpStream::peer_uid returns the user id of the other end of a Unix socket (SO_PEERCRED, getpeereid)
[0.2.0] - 2026-11-14#
Added#
- Style netlab is an official style:
jflib::style_netlab,JFLIB_STYLE=netlab,cargo jflib package --styles netlab. The crate jflib-style-netlab is on crates.io (0.1.0, published on its own on 2026-11-10 from the state of v0.1.0, for JFNetworker); the style brings its copies of the Inter fonts andicons.bininassets/ - render3d: The crate jflib-render3d (lib/render3d, in the facade as jflib::render3d), the core of the 3D engine on lib/gpu: meshes in shared buffers, a table of materials, scenes of instances with f64 positions relative to an origin, a camera with reverse Z, a sun, visibility in a compute shader and one instance list per mesh (one multi-draw on Voll, one indirect draw per list on Basis and in the browser), from the same WGSL;
render3dtest, tested against a ray caster on the CPU (docs/RENDER3D.md) - gltf: The crate jflib-gltf (lib/gltf, in the facade as jflib::gltf): glTF 2.0 import of .gltf (external files, data URIs) and .glb into a model without a GPU: triangles with positions, normals and uv (byte strides, normalized uv, sparse accessors, flat normals where the file has none), pbrMetallicRoughness materials with their five textures, PNG and JPEG images decoded by img_png and img_jpeg, samplers, nodes with f64 world matrices, the instances of a scene, decompose; files are checked as untrusted input and bounded by Limits, a required extension is Unsupported (docs/GLTF.md)
- render3d: Textures: one texture array per size class (128 to 2048) and colour space, chosen per instance through its material in the fragment shader, the same WGSL on Voll, Basis and WebGPU; mip levels by a box filter on the CPU (sRGB in linear light), other sizes resampled, glTF's wrap and filter modes done exactly in the shader with one sampler, alpha mode MASK; Material carries glTF's five textures and their factors for PBR; add_texture, texture_info, mip_chain (docs/RENDER3D.md)
- render3d: Mirrored instances: a transform with a negative determinant goes to its mesh's list of mirrored instances, drawn by a second pipeline with clockwise front faces and correct normals; negative scales are no longer Invalid
- render3d: render3d::gltf::upload puts a jflib-gltf Document on the GPU: its primitives as meshes, its images as textures, its materials, and the instances of a scene for Scene::add; render3dtest tests textures, mirroring and glTF against the ray caster and in the browser
- plat: macOS and iOS (aarch64-apple-darwin, aarch64-apple-ios, aarch64-apple-ios-sim): rt and the core of plat through libSystem: the start, arguments and environment, time, files, threads, semaphores, the wake-up; windows answer as without a display until the window backend (docs/APPLE.md, AP2)
- build: build_rs.py app, lib and run with --target mac and --target ios (--sim: the simulator) on a Mac; tools/apple.py packs a program as NAME.app and starts it in the simulator or on an iPhone; jflib-build accepts macOS and iOS
- render3d: PBR after glTF 2.0 Appendix B (GGX, separable Smith, Schlick) with all five textures (normal maps on a tangent frame from derivatives), exposure and Khronos PBR Neutral in the fragment shader (Scene::set_exposure, set_tonemap), the split-sum's second sum from an embedded table (DFG); cascaded shadow maps of the sun (Scene::set_shadows, Shadows: up to four cascades culled on the GPU, snapped to the texel grid, PCF, MASK's holes); point and spot lights after KHR_lights_punctual (Scene::set_lights, Light); environment light from 9 spherical harmonics and a prefiltered cube (Renderer::set_environment with a procedural Sky or six faces, Scene::set_environment); render3d::gltf::upload returns lights and suns (docs/RENDER3D.md)
- gltf: KHR_lights_punctual: Document::lights, Node::light, lights_of(scene), Limits::lights; the extension may stand in extensionsRequired (docs/GLTF.md)
- plat: macOS and iOS: plat without windows (docs/APPLE.md, AP3): processes through posix_spawn, sync, sockets, file system, random numbers, folder watching (FSEvents, macOS), trusted certificates (Security framework), services (launchd), local control sockets and the single instance, the keychain as secret store, crash reports through signals with the call chain; coretest and plattest's windowless tests pass on a Mac
- plat: plat::service::plist_text: the launchd property list a service install writes on macOS
- plat: macOS windows through AppKit (docs/APPLE.md, AP4): NSApplication with the library's own event loop, windows with a layer-backed view of our own (the frame as a CGImage, Retina scale, the library's frame or the system's title bar), mouse, keys (Command acts as Ctrl), text and input methods through NSTextInputClient, the trackpad (fine scrolling, the pinch as Ctrl + wheel), cursors (custom ones, CUR_NONE), popup windows, owned windows hanging on their owner, win_enable, the pasteboard (text, HTML, RTF, PNG, images: a TIFF arrives as PNG), the Open and Save panels (FD_FOLDER chooses a folder), drag and drop both ways, monitors, the appearance, accent colour and accessibility settings with E_SETTINGS on a change; plattest --test window and --test dnd test it in real windows without a user
- build: build_rs.py test NAME --target mac; programs with windows started from SSH run in the logged-in session (tools/apple.py gui); gallery, uitest and dndtest build for mac
- ui: the source inspector opens the editor on macOS too (CLion, VS Code: in PATH, the Toolbox's script, /Applications)
- build: Linux on ARM64: static programs start and run (rt: system calls with svc, memcpy and its relatives for ARM64, getauxval and the constructors for the LSE atomics of compiler-builtins; plat: _start, the thread start, the crash handler without registers); build_rs.py run and test NAME with --arch aarch64 --target linux start them under qemu-aarch64 in WSL, tools/host_exec.py picks the emulator from the program's header; portabletest --math-dump and tests/math_diff.py measure what ARM64 computes differently in rt::x87 (docs/ARM64.md, ARM2)
- render3d: Occlusion test of the camera against a depth pyramid in two phases (Scene::set_occlusion, on by default when the depth attachment can be sampled): phase 1 draws what phase 2 of the frame before saw, a compute shader builds an R32Float pyramid of the minimum depth (reverse Z), phase 2 tests every instance in the view against it and draws what is newly visible; the same WGSL on Voll, Basis and WebGPU; Renderer::depth_texture, Renderer::pyramid, Scene::late_buffers, FrameStats::late and FrameStats::occlusion; render3dtest --test occlusion (docs/RENDER3D.md)
- gpu: TextureView::usage (public on Vulkan, new in the browser) and TextureView::same (identity of a view and its clones, a cache's key)
- render3d: Detail levels (Renderer::set_lods, Lod, LODS_MAX, lods, cull_sphere): a mesh takes other meshes, or none (contribution culling), below a projected size; the visibility picks per instance from the camera's distance, the shadow cascades take the camera's pick; ListInfo::room; render3dtest --test lods
- gpu: A queue of its own for compute and copies on Vulkan, only when asked for (Adapter::create_device_with with DeviceOptions::compute_queue; create_device stays at one queue with exclusive resources): Device::compute_queue -> Option<&ComputeQueue> (a family without graphics where the device has one, None in the browser, when not asked for and with jfgui_GPU_COMPUTE=0), ComputeQueue::encoder, submit, submit_after; Queue::submit_after waits for submissions of either queue through their timelines; Device::wait, is_done and wait_idle take both; with it, buffers and textures other than render targets are shared concurrently (docs/GPU.md)
- plat: macOS: the app in the system (docs/APPLE.md, AP7a): the app and Window menus (Cmd+Q asks the main window through E_CLOSE), the Dock icon brings the main window back, E_POWER and E_SESSION_END (NSWorkspace, SIGTERM), tool windows that take the keyboard only for a text field, inhibit (IOKit power assertions), trash (the Finder's trash), the recent documents (NSDocumentController), the system's spell checker (NSSpellChecker), the print dialog (NSPrintPanel, the job's PDF through PDFKit)
- plat: macOS and iOS: system_languages and system_locale ask CoreFoundation (LANGUAGE and LC_* set by hand still win, LANG alone does not)
- plat: macOS services (docs/APPLE.md, AP7b): the tray as an NSStatusItem with its menu, notifications through UNUserNotificationCenter (in an app bundle), the Dock tile (badge, progress, the tasks as the Dock menu), files and URLs the system opens with the app (application:openURLs:, as UIC_OPEN), global shortcuts (Carbon RegisterEventHotKey), autostart as a LaunchAgent
- render3d: Lists per alpha class: a list is keyed by mesh, side and AlphaClass (Opaque, also glTF's BLEND, and Mask); opaque lists are drawn by a fragment shader without discard (fs, so the early depth test stays), MASK lists by fs_mask; in the shadow passes opaque casters are always depth only, MASK casters take fs_shadow unless Renderer::set_shadow_mask(false); on Voll one multi-draw per side, class, index width and pass, only for combinations with room; detail levels take the lists of the same side and class. AlphaClass, Material::alpha_class, Renderer::alpha_class, ListInfo::class, ListInfo::record, FS_MASK_SPV; render3dtest --test alpha and --bench --mask P (docs/RENDER3D.md)
- build: build_rs.py packs every mac program as NAME.app as well (tools/apple.py mac_bundle): Info.plist from PACKAGE (name, version, app_id, file types, URL schemes), the icon as .icns from res/app_*.png, signed ad hoc; with sandbox in PERMISSIONS the App Sandbox and the entitlements its rules need; tools/apple.py gui runs the bundled copy (notifications)
- cargo-jflib: cargo jflib mac [--run]: the app as target/jflib-mac/NAME.app on a Mac (as build_rs.py's bundle); cargo jflib test skips a script whose #!only line does not name the target's system
- ui: Views of GPU content in a window (ui.gpu_view, GpuContent, GPU_VIEW_FORMAT, Ui::gpu_view_info, GpuViewInfo, GpuOutput::view_quads): a 3D scene beside widgets, under popups and tooltips, drawn by the app's content on the UI's own device; where the window shows through its swapchain the output's render pass draws its frame, the framebuffer gets it read back when somebody reads it and once at rest, pixel for pixel; on the CPU path every frame is read back, without a device the content paints; a lost device detaches the content and attaches it to the next one; AF_GPU_3D builds the UI's device at level Voll on the fastest adapter; jfgui_GPU_OUTPUT=0 keeps the windows on the CPU path and the GPU for views, jfgui_GPU_VIEWS=0 reads every frame back (docs/GPU.md "3D-Ansicht")
- Tests: uigputest tests views of a render3d scene in real windows (view, views2, viewsize, viewlose, viewplain, viewcpu, viewoff, viewbasis) against render3d offscreen and render3dtest's ray caster; --bench view measures them; docs/RENDER3D.md shows the connection to render3d
- plat: iOS through UIKit (docs/APPLE.md, AP5): the app's runtime takes Android's host path, a host in Rust drives it (apple_ios.rs): one scene with a view inside the safe area and above the keyboard, the frame as the layer's contents, fingers with their coalesced samples, the Apple Pencil as a pen, an iPad's pointer as a mouse, the on-screen keyboard (UIKeyInput) and a hardware keyboard, rotation, the display link resting while the app is idle, active / background / termination as E_FOCUS_*, E_POWER and E_SESSION_END, the appearance, reduced motion and darker colours as system settings; the clipboard through UIPasteboard, Open / Save as / folders through UIDocumentPickerViewController (answering later, as on Android), URLs through UIApplication, spell checking through UITextChecker
- build: build_rs.py test NAME --target ios --sim runs an app's scripts in the simulator (tools/apple.py sim starts programs in the repository's folder: jfgui_CWD on iOS); the iOS bundle's Info.plist names its scene and orientations; androidGallery and plattest build for ios; plattest --test clip checks the real clipboard (not in all)
- plat: Linux on ARM64: plat as on x86-64 (docs/ARM64.md, ARM3): crash reports with x0 .. x15, pc, the access from the ESR record and the call chain from the CFI (bl / blr, the link register of a leaf); programs against glibc (their _start, TPIDR_EL0, glibc's 64-byte pthread_attr_t and PTHREAD_STACK_MIN); the page size at run time for the heap's page runs (rt::os::page_size from AT_PAGESZ: 4, 16 or 64 KB) and 64 KB guard pages for threads; the seccomp filter for AUDIT_ARCH_AARCH64; cpu_brand from MIDR_EL1, stack_aligned, crash_test; plattest, linuxtest, lifetest and sandboxtest pass in an ARM64 VM with 4 and 64 KB pages (but plattest's screen.uis, which needs RandR's refresh rates that Xvfb lacks). The crash guard with its AAPCS64 trampoline and the ELF loader for EM_AARCH64 (its relocations, the instruction cache, the page size) are written and wait for ARM4
- plat: plat::sandbox::denied_syscalls (Linux): the system calls the seccomp filter refuses with EPERM; sandboxtest calls every one of them
- build: jflib-build: the glibc stubs of ARM64 bring getauxval (rt::os::page_size)
- plat: iOS after the check on the iPhone: a bar with Done above the on-screen keyboard (an iPhone has no key that closes it), notifications through UNUserNotificationCenter (asked the first time; refused: NoteClosed), the motion sensors and the location through Core Motion and Core Location (web_sensors.rs's host interface, as on Android); the block helpers of macOS's notifications are shared with iOS (apple_block.rs)
- ui: GpuViewInfo::read_frame, the newest frame of a view read back into its CPU copy; jfgui_GPU_VERIFY in the browser leaves out the rectangles the output's pass draws views in
- build: A .dmg for macOS: tools/package.py --formats dmg and cargo jflib package --formats dmg (on a Mac; per style) put NAME.app on a compressed disk image beside a link to /Applications; tools/apple.py dmg; with jfgui_MAC_IDENTITY the bundle and the image are signed with that certificate, the hardened runtime and a time stamp instead of ad hoc (docs/APPLE.md AP8a)
- update: lib/update: kind app replaces a macOS app bundle as a whole (unpacked beside it, its signature checked against the installed one's designated requirement, the two folders exchanged in one step, a copy of the old bundle as the backup; trial and rollback as for an exe); plat::pkg::app_bundle_follows and app_bundle_swap; tools/package.py and cargo jflib package write the app entry and the .dmg into the channel for macos-aarch64; updatetest --test app (docs/UPDATES.md)
- build: CI for Apple: .github/workflows/apple.yml (started by hand) runs coretest, the scripts of gallery and updatetest on macOS, plattest's windowless tests, androidGallery in the iOS simulator and packs a .dmg of BackupCraft on GitHub's arm64 Mac runners (docs/APPLE.md AP8b)
- jflib: The feature unwind of jflib (with std, passed on to rt, plat and ui): a program built with panic = "unwind" keeps running after a panic the app catches with std::panic::catch_unwind, on any thread; a panic that leaves the program's start, a thread of plat (the pool, spawn_blocking) or reaches a callback of the system uncaught still ends it with JFLib's crash report and exit code 3; rt::panic_hook then reports only those, rt::panic_take gives the text of the last panic of a thread, rt::abort_on_unwind guards an entry point; without the feature panic = "abort" stays required (docs/GUIDE.md, "An app with std"); cargo jflib new --std names the feature in its Cargo.toml, crates_accept.py checks it on hallo3
- ui: Canvases that take the keyboard and set their cursor (a web view): the hit box flag HB_KEYS (next_flags of a canvas, or behave) keeps every key with the focused widget, Ctrl + letter, Tab, F6 and Ctrl+Z too (no accelerator, no keyboard navigation, no Enter / Space action, no undo_keys); ui.key_take() takes the first unconsumed key; ui.accel_run(key) hands a key back to the command table; HB_CURSOR_SET takes a canvas's cursor bits as given, so CUR_ARROW is the arrow; apps/viewtest tests them (tests/keys.uis)
- ui: Popups at a point the app learns later (a web engine's context menu): ui.popup_open_at(id, x, y) opens a flyout of the app's own anchored at the point, ui.menu_popup_at(menu, x, y) a runtime-drawn menu there; while a popup of the window is open a canvas with HB_KEYS leaves the keys to it (ui.key_take gives none); apps/viewtest tests/menus.uis
- ui: ui.sem_rect(kind, id, rect, label, value): a semantic record of content an app draws itself inside a canvas (the links and headings of a web page), without a hit box of its own and without touching last_rect: scripts find it by its label and a click on it reaches the canvas at that place, screen readers get it with its kind's role; apps/viewtest tests/links.uis
- cargo-jflib: cargo jflib test takes --features F,.. (repeated, Cargo's forms), --no-default-features and --dir DIR (DIR/.uis instead of tests/.uis, relative to the package's folder), for scripts of a build with other features; the other commands refuse these options instead of ignoring them
- ui: StyleList::scrollbar_room: a style whose scroll bars stay visible keeps their room free right of the content of a view that scrolls only vertically, overflowing or not (as CSS scrollbar-gutter: stable), and counts it in the view's natural width; netlab keeps 10 DIP, so content no longer runs under its bar (the other styles keep floating bars)
- render3d: Shadows::BASIS (2 cascades of 1024 texels up to 100, split and reach as DEFAULT) and Shadows::for_level(Level): the shadow default for a device's level, decided for level Basis (the browser, older and weak GPUs, phones); Shadows::DEFAULT stays the default for Voll; render3dtest --shadow-shots DIR draws the shadow gallery on Basis with both (docs/RENDER3D.md)
- ui: Ui::gpu_test_hold(win, on) (test aid): a window's frames are not shown while on, as if the display did not answer; GpuViewInfo::held counts the frames of a view that had to wait for its window
- plat: Linux on ARM64: plugins and loadable modules (docs/ARM64.md, ARM4): rt::plugin_abi!, the calling convention of plugins and modules as a macro (extern "win64" on x86-64 as before, extern "C" on ARM64 and elsewhere; a function pointer type and a function); the crash guard with its AAPCS64 trampoline, the ELF loader for EM_AARCH64 (its relocations, the instruction cache, the kernel's page size) and the module host on Linux ARM64; the module jxlenc for ARM64 (modules/modrt with rt's ARM64 files and its own memcpy and relatives for ARM64); plattest's guard and lib tests and codectest --jxlenc pass under qemu-aarch64 and in an ARM64 VM with 4 and 64 KB pages
- plat: plat::LIBE_ARCH: lib_open refuses a plugin or module built for the other processor (x86-64 on ARM64, ARM64 on x86-64) with its own code instead of LIBE_FORMAT, on Windows too (ERROR_BAD_EXE_FORMAT and the file's Machine); the module host's line says "built for another processor"
- build: build_rs.py builds the loadable modules for --arch aarch64: on Linux with segments aligned to 64 KB (-z max-page-size=65536: they load on kernels with 4, 16 and 64 KB pages) and inline atomics (compiler-rt's outline helpers need a constructor), on Windows as ARM64 DLLs; pe_verify and elf_verify check the architecture and name a library of the other one
- build: Notarization for macOS: with jfgui_MAC_NOTARY (a profile of xcrun notarytool store-credentials) beside a Developer ID in jfgui_MAC_IDENTITY, tools/package.py --formats dmg and cargo jflib package --formats dmg send the bundle and then the image to Apple's notary service and staple both tickets, so a downloaded .dmg passes Gatekeeper; tools/apple.py notarize; over SSH tools/apple.py runs codesign with a certificate and notarytool in the Mac's logged-in session (the keychain); updatetest --test app with jfgui_MAC_IDENTITY checks Developer ID bundles and refuses the same app signed ad hoc (docs/APPLE.md AP8c, docs/PACKAGING.md)
- ui: ui.form_factor() and ui.mobile() (FF_DESKTOP, FF_TABLET, FF_PHONE; jfgui_FORM): on a phone or a tablet only, the title bar has no caption buttons, a menu bar that does not fit becomes one menu button, the status bar and vertical scroll views roll sideways while too wide, windows and content dialogs keep inside the screen and roll their content; a desktop window stays as it was however narrow (docs/GUIDE.md §38)
- gpu: Metal backend of lib/gpu (level Basis) on macOS and iOS, MSL from SPIR-V in lib/shader (shader::msl); the UI's output through a CAMetalLayer, off by default on Apple (jfgui_GPU=1)
- render2d: render2d: the core of the 2D renderer for CAD (G6a1): a retained scene of lines and polylines with layers and styles, strokes with analytic coverage and exact caps and joins, f64 coordinates relative to the camera, visibility on the GPU; test app render2dtest
- ui: On macOS the app's menus live in the menu bar of macOS (between the app menu and the Window menu): ui.menubar(None) of the main window publishes the AppDesc's menus there with the commands' labels, states and accelerators (Command for MOD_CTRL) and draws no row in the window; a row chosen up there runs as from the window's bar. plat::sysmenu (sysmenu_supported, sysmenu_set, sysmenu_take, SysMenuItem). Headless runs keep the window's bar, jfgui_SYSMENU=0 too (docs/APPLE.md "Menüs in der Menüleiste", docs/GUIDE.md); before, macOS's full-screen band covered the window's menu bar
- Tests: Safari in the browser tests: tools/tests/web_apps.mjs --engine=safari drives a real Safari on a Mac through safaridriver (tools/tests/safari.mjs, the part of Playwright's API the test uses over W3C WebDriver); tools/tests/safari_tunnel.py starts the driver over SSH and carries both directions, so the test runs on another machine; template, gallery, jfWord and Kritzel pass in Safari 27.2 (docs/APPLE.md AP1)
- render2d: render2dtest: render2d now really runs in the browser (WebGPU; Chromium headless, three bundles) and the images against Vulkan are numbers: apps/render2dtest/tests/engine_web.mjs, a measuring scene (a town plan, --scene cad), --test churn (many random changes between two frames, byte for byte) and tools/gen_area6.py (area6 written by a script, --check)
- ui: Syntax highlighting of the web's languages for view-source and developer tools: Highlighter::javascript() (template strings over lines with their ${..}, regular expressions, members that are no keywords), css() (selectors, at-rules, properties, units, colours, nested rules), html() (also XML and SVG: tags over lines, attributes, comments, entities, doctype; the content of <script> as JavaScript and of <style> as CSS) and wat() (the text format of WebAssembly), the grammars JAVASCRIPT, CSS, HTML, WAT and Highlighter::for_name of their extensions (Markdown fences too); Rule::Nest (a part between two delimiters with another grammar's rules) and Rule::Element (an element whose content is another language) for grammars of one's own; editortest --test model checks them
- plat: Print jobs of several pages: plat::PrintDoc::begin(&job, pages) shows the system's print dialog (printer, paper, orientation, copies, a page range of 1..=pages), page() / copies() / wants(n) tell what was chosen, add_image(&src) adds a page laid out as layout() places it, add_pdf(bytes) prints the app's own PDF as it is where pdf_native() (Linux), end() / abort(); Windows: PrintDlgExW and GDI page by page; Linux: the portal's dialog and one PDF of several pages for its Print; the test variant jfgui_PRINT_TO everywhere, ERR_UNSUPPORTED on macOS, iOS, Android and in the browser otherwise; plattest --test printdoc
- ui: Several files at once in the file dialog: FD_MULTI (with FD_OPEN) lets Windows' dialog and Linux's portal choose several files and the library's own dialog mark rows with Ctrl+click and Shift+click (quoted names in the name box, typed ones too); ui.filedlg_paths() and plat::file_dialog_paths() give every chosen file, path the first; the pickers of macOS, iOS, Android and the browser choose one for now; viewtest tests/files.uis, plattest --test window (Explorer with two names) and portal_bus.py (OpenFile with multiple)
- ui: The script language: click S takes the modifier words shift, ctrl and alt (held during the click), as dblclick does
- ui: More mouse cursors (a web page's CSS cursor): CUR_NOT_ALLOWED, CUR_NO_DROP, CUR_GRAB, CUR_GRABBING, CUR_HELP, CUR_PROGRESS, CUR_ZOOM_IN, CUR_ZOOM_OUT, CUR_CELL, CUR_VTEXT, CUR_ALIAS, CUR_COPY, CUR_CONTEXT_MENU, CUR_ALL_SCROLL, CUR_COL_RESIZE, CUR_ROW_RESIZE and CUR_SIZE_N/S/E/W/NE/NW/SE/SW (CUR_X0..CUR_X_END) on Windows (system cursors where it has them), X11 (cursor font), Wayland (cursor-shape: all), macOS (NSCursor) and the browser (CSS), plat::cursor_fallback's nearest shape elsewhere; ui.cursor_next(shape) gives the next hit box any shape, ui.cursor_at(x, y) tells the cursor at a point, ui.cursor_replace(handle, ..) draws a custom cursor anew and ui.cursor_free(handle) frees it; viewtest tests/cursors.uis
- ui: Raw key events for canvases that pass the keyboard on (a web page's keydown / keyup): ui.key_event_take() gives each key as it went down or up as a KeyEvent (vk, mods, down, repeat, scancode, location KL_STANDARD / KL_LEFT / KL_RIGHT / KL_NUMPAD); a key's up gives a pass while such a canvas has the focus; the platform events carry the scancode and location (E_KEY_DOWN / E_KEY_UP: Event::x, Event::y) on Windows, X11 and Wayland, plat::evdev_location; the script commands keydown and keyup (with scan N, left / right / numpad), the key names shift and ctrl; viewtest tests/keyraw.uis
- ui: An input method for fields an app draws itself (a web page's input in a canvas): ui.ime_enable(on, purpose) with IP_TEXT, IP_URL, IP_EMAIL, IP_NUMBER, IP_PHONE, IP_PASSWORD, IP_SEARCH (Windows: no input context for passwords; Wayland: the content purpose), ui.ime_preedit() gives the composition to draw at the caret; Windows hides the input method's composition window while the app draws it (plat::ime_inline; the code and rich-text editors too), plat::ime_purpose; the script command preedit; viewtest tests/ime.uis
- ui: Independent app windows: WF_APP gives a window of its own on Windows (a top-level window with its own taskbar button, not minimized or hidden with the main window) without the library's title bar, so the app draws one with titlebar_begin / titlebar_end (its own widgets, the caption buttons acting on that window); X11, Wayland and macOS give it an owned window for now; viewtest tests/appwin.uis
- ui: A name for a canvas's own record: ui.canvas_label(label) right before ui.canvas names its K_CANVAS record (screen readers, a script's canvas:"Label"); the GUIDE says that rt::panic_take()'s file has backslashes on Windows
- ui: Unit tests of a library crate with std (an app's own style crate): ui::test_main!() and rt::test_main!() define the jfgui_main stub its test binary needs to link (#[cfg(test)] in lib.rs)
- build: cargo jflib package takes a style of the app's own: PACKAGE styles= (or --styles) may name a crate of the app's dependencies with [package.metadata.jflib] style = "NAME" (its INFO file names it in the setup); it is built without JFLIB_STYLE, the library's styles as before
- ui: Dock groups that move as a whole: a panel with DP_GROUP takes its whole group along when it is the shown tab -- the group menu's "Links / Rechts / Unten andocken" and "Lösen" and a double click on the strip's empty part move or float every tab, the shown one stays shown (an app's developer tools); DockState::dock_group_to(id, side) and float_group(id, rect) for the app's own commands; docktest "Gruppe", tests/group.uis
- ui: A script turns the system fonts for missing characters on or off from where it says system env jfgui_FONT_FALLBACK 1 (or -): headless runs start without them, so a shot of text the app's fonts lack (CJK in a style with Latin fonts) shows the font's ? for each character unless the run or the script asks for them
- plat: Windows on ARM64 (docs/ARM64.md, ARM5): rt's __chkstk for ARM64, the TEB through x18, the crash guard with the ARM64 CONTEXT and unwind data for its trampoline (.pdata / .xdata from SEH directives), crash reports with x0 .. x15, pc and the call chain from RtlVirtualUnwind (every slot the unwind codes read is checked against the thread's stack first), cpu_brand from the registry, crash_test; win_clr refuses an x64 CoreCLR with a message of its own; coretest, plattest, gallery and codectest with the module jxlenc build for aarch64-pc-windows-msvc; tools/winarm_imports.py checks a program's imports, tools/winarm_check.py and the workflow arm64-windows.yml run them on windows-11-arm, where they pass but plattest's screen.uis (the runner's screen is covered by Windows' setup); tools/host_exec.py knows the processor under the x64 emulation of Windows on ARM
- render2d: render2d: arcs and circles (Shape::Arc, Shape::Circle, ARC_STEP) with coverage from the circle itself, butt, round and square caps, no seams at the pieces' joints and translucent rings blended once; dash patterns in Style (dash, dashes, dash_unit, dash_phase, Style::dashed; up to DASH_MAX = 8 entries in pixels or drawing units) on lines, polylines (continuous across joins and around a closed one), arcs and circles, a flat tone below a period of 2 px; within 1/16 px at 1e-6 units per pixel near 1e7 (rings 0.0073 px, dash ends 0.045 px); layers with arcs or dashes draw with a second pipeline (VS_FULL_SPV, FS_FULL_SPV), solid strokes +0.3 to 0.5 % on the RTX 2070 SUPER; the measuring scene with door swings, circles and dashed axes and edges; tests arcs, dashes, phase
- gpu: Metal reaches level Voll on devices with Metal 3 (A14/M1 and newer): bindless tables as argument buffers, multi-draw, the indirect count (the render pass suspended for a compute pass), draw parameters and subgroups
- render2d: render2d: curves, fills and hatches (G6b1): quadratic and cubic Bézier pieces (Shape::Quadratic, Shape::Cubic), ellipses and elliptic arcs (Shape::Ellipse), B-splines up to degree 3, rational ones and DXF's knots included (Shape::Spline), with every stroke style, flattened on the CPU per zoom band within 1/32 px (curve::FLAT_TOL), only where the view is for curves too large to flatten whole (at most CURVE_MAX segments), Scene::reflattened; fills (Shape::Fill) of any number of rings made of lines, arcs and curves, even-odd, crossing rings untangled, triangulated in f64 (fill::prepare, an earcut written anew), their edges smoothed exactly and every pixel blended once (the third pipeline, VS_FILL_SPV, FS_FILL_SPV); hatches in Style (hatch, hatches, hatch_width, Style::hatched, HatchLine, HATCH_MAX, HATCH_DASH_MAX) computed in the fragment shader from the camera's place in f64, a flat tone below 2 px; within 1/16 px at 1e-6 units per pixel near 1e7 (curves 0.0048 px, hatch lines 0.0028 px); the measuring scene with filled buildings, hatched walls, splines, Béziers and ellipses (--g6a2b: the scene of G6a2b); tests curves, fills, hatches
- plat: VoiceOver on macOS (docs/VOICEOVER.md): every node of the accessibility tree is an NSAccessibility element under its window (roles and subroles, names, values, states, frames, the focus, the hit test), with press, increment / decrement, values, focus and selection, the text attributes of text boxes (characters, lines, the insertion point, the selection, the rectangle of a range) and the notifications of the tree's changes; dialog windows are AXDialog; the first question of an assistive technology turns the tree on; plattest --test a11y-mac checks it in a real window, --test a11y-show shows the demo for probes by hand
- plat: VoiceOver on iOS (docs/VOICEOVER.md): the nodes are UIAccessibility elements of the host's view, lists, tab strips, dialogs and menus containers, with traits, values, double tap, swipes on sliders and the Escape gesture, each running a frame at once so that VoiceOver reads the new state; text boxes and the view are UITextInput (VoiceOver moves in the text, the keyboard sees the text around the caret, marked text becomes the preedit); the tree follows VoiceOver's and Switch Control's switches; plattest --test a11y-ios checks it under UIKit in the simulator
- render2d: render2d: blocks and transparency (G6b2): blocks (Scene::add_block, set_block, block, remove_block, insert_in; Block, BlockId) placed with Shape::Insert (Insert: an f64 point, rotation, a scale per axis that may mirror and scale unevenly, MINSERT arrays; nested up to BLOCK_DEPTH = 16, cycles refused), their records once on the GPU and every insert an instance whose transform alone goes up (1000 moved inserts: 160000 bytes, no record), a per-frame instance pass that puts the camera into each instance's block units exactly, visibility per instance and then per record, curves and fills flattened per block and zoom band; styles by block per property (Style::by_block, BY_BLOCK_COLOR, BY_BLOCK_WIDTH, BY_BLOCK_DASH); a block's entities draw on their insert's layer (DXF's layer 0); AutoCAD's transparency of 0 to 90 % per layer (Layer::transparency, changing it sends no records), per entity and by block (Style::transparency, Transparency, TRANSPARENCY_MAX), blended per object; Scene::instance_info (InstanceInfo); inserts near 1e7 within 1/16 px at 1e-6 units per pixel (0.0214 px scaled by 1e5 and mirrored); the measuring scene with doors, windows, stairs, furniture, trees, manholes, columns, lamps and the label glyphs as 94671 inserts of 29 blocks (--g6b1: the scene of G6b1, --expand: every insert written out, --scene estate: a block of 1001 records inserted 10000 times); tests blocks, transparency
- plat: Web browsers (E13): PACKAGE browser=1 (schemes= with http and https) registers the app as a web browser -- Windows: the setup and --register write the ProgID <app>URL, Software\Clients\StartMenuInternet<app> with its Capabilities (URL and file associations) and RegisteredApplications in HKCU instead of keys of http / https, uninstall.exe and --unregister remove them; Linux: Network;WebBrowser; in the .desktop file; macOS: http / https as the web URL type and the web documents with their system types in Info.plist; MSIX refuses it. plat::default_browser_status() (Default, NotDefault, Unknown) and plat::default_browser_request() (Windows: Settings at the app's page of the default apps; Linux: mimeapps.list and KDE's kdeglobals as xdg-settings; macOS: Launch Services, macOS asks), plat::assoc::package_entries, browser_status / browser_request, AssocError::NotRegistered; ui.default_browser / ui.default_browser_request (headless: the script command system browser default|other|unknown)
- ui: Scripts: wait real MS lets real time pass while the app's own threads work -- their wake-ups (plat::wake) reach App::command as they come and the virtual clock follows the real one, so timers fire (an engine on threads of its own); wait MS stays the deterministic virtual clock. sync MS soft: reaching MS is no failure (a note is printed); viewtest tests/realwait.uis
- build: The Windows setup of a web browser (PACKAGE browser=1) offers "Als Standardbrowser festlegen" on its options page ("Make <App> my default browser" in other languages), checked as in Firefox's setup: Fertigstellen opens Settings at the app's page of the default apps through plat::assoc::browser_request, the page of the app's plat::default_browser_request (Windows lets no program take it itself); test mode (ASMINST_SHELL_DIR) and script runs only print setup_default_browser: ms-settings:...; the Linux and macOS packages have no pages (docs/PACKAGING.md)
- plat: Drawn cursors (lib/plat/cursor_art.rs) for the shapes the systems lack: grab, grabbing, zoom-in, zoom-out, cell, vertical-text, alias, copy and context-menu on Windows (CreateIconIndirect at the system's cursor size for the window's dpi, as white as Windows' own) and X11 (ARGB cursors through RENDER at XCURSOR_SIZE, Xcursor.size or 24 * dpi / 96, dark as Adwaita and Breeze), the same images on Wayland without cursor-shape, zoom and cell on macOS; made once per size instead of cursor_fallback's shape; plat::cursor_probe for tests
- tools: tools/i18n_check.py checks an app outside the repository by its path (a cargo app such as ../BrowserGUI): its folders count except build output (build/, target/), hidden folders and git submodules, its places read from the folder that holds it
- ui: ui.calendar(id, &mut y, &mut m, &mut d, &DateRange): date_picker's month calendar in place, without a popup, for a panel or a flyout of the app's own; DateRange::new(mode, min, max) with CAL_DAY (DateRange::DAYS), CAL_WEEK (ISO weeks: rows from Monday with their number, the date becomes the Monday) and CAL_MONTH (a year's twelve months, the 1st); dates outside min .. max and the arrows beyond them are disabled
- ui: ui.popup_close_id(id): closes popup id and the popups opened inside it, the flyouts it sits in stay open
- datetime: datetime::iso_week(y, m, d) -> (year, week), iso_weeks_in_year(y), iso_week_monday(year, week): ISO 8601 weeks (the civil helpers days_in_month, weekday, days_from_civil were already public there)
- ui: ui.code_reveal(id, line): the code editor scrolls a line into view in its next pass (into the middle when it was not in view, its folds opened) without the keyboard focus or the caret moving: a debugger's execution line while the page or the DevTools toolbar keeps the keyboard
- ui: ui.drop_pos_px() and ui.drag_over_px(): a drop's and a drag's place in px of the window, exact (logical like last_rect; minus a canvas's UiInput::rect the pixel of the canvas); drop_pos and drag_over stay DIP, rounded (at 150 % three pixels share two DIP)
- simd: simd::copy_stream_rows (also gfx::blend::copy_stream_rows): copy_stream for a block of rows with one fence at the end
- cas: Writer::finish_unsaved -> (WriteStats, Unsaved) and Unsaved::save_snapshot: finish a writer and save its snapshot with gc kept out in between
- base: xml::Limits (bytes, elements, nesting; the default is parse's) and xml::parse_with(text, limits)
- ui: A web page's accessibility tree (section 19 of the guide): the kinds K_TABLE, K_ROW, K_CELL, K_COLHEADER, K_ROWHEADER, K_LANDMARK (LM_*), K_TREE, K_TREEITEM, K_RADIOGROUP, K_TOOLBAR, K_TOOLTIP, K_SEPARATOR, K_ALERT, K_STATUS, K_LOG, K_METER, K_SPIN, K_SCROLLBAR, K_ARTICLE, K_FIGURE (KIND_NAMES_MORE, kind_name, K_KIND_END); setters on the returned record (Sem::ax, SemAx): id64, parent, name, desc, url, value_text, states (AS_*), set_pos, level, cell, span, grid, live (LIVE_*), range, text_sel; parents named instead of rectangles, records out of view (AS_OFFSCREEN); ui.a11y_request_take (A11yRequest, A11yAction: focus, click, scroll into view, expand / collapse, increment / decrement, values, texts, selections) for records with an id64; ui.announce; ui.a11y_active; the script command a11y (actions, expect, dump) and expect S unfocused / unselected / closed; apps/a11ytest
- plat: plat::a11y: Sub (Node::sub; Node::role stays the nearest basic role, so a bridge that does not know Sub falls back to it), the further Node fields desc, url, set, item_level, cell, grid, live, the states S_REQUIRED .. S_SELECTABLE, the actions A_EXPAND, A_STEP, A_SCROLL, A_SELECT with Op / OpRequest / request_op / take_ops, announce with Change::Announce, Change::Live for live regions, SUB_TEXTS / sub_name / Node::role_text, WinTree::grid_size / cell_at / headers / headers_of / live_root / subtree_end; UI Automation: control types, landmarks, AriaRole / AriaProperties, descriptions, form states, PositionInSet / SizeOfSet / Level, LiveSetting, IsDialog, the patterns Grid, GridItem, Table, TableItem, ScrollItem, Selection, LiveRegionChanged, SystemAlert and the notification event; AT-SPI2: roles, attributes, states, Table, TableCell, Hyperlink, Selection, the actions expand / collapse / increment / decrement, ScrollTo, Announcement; the browser: a11y_wire VERSION2 (Mirror::set_version, jfgui_a11y(2), E_ANNOUNCE), ARIA roles and attributes of web/a11y.js, its live regions, jfgui_a11y_act kinds 6 to 13
- gfx: gfx::set_parallel(f) / parallel() / ParallelFor, COPY_PAR_MIN, COPY_STREAM_MIN: the loop large copies run on (the UI runtime passes plat::parallel_for, as for img_core); gfxtest --bench-blit times a 4K canvas's blit against the memory's limit
- ui: UIC_A11Y (arg 1: a screen reader or another accessibility client came, 0: it left), also while the app is idle; plat::a11y::check_due() (the window loop asks active() by itself then) and plat::a11y::epoch(); A11yRequest::new(win, id, action) for an app's tests; plattest --test uia-idle and a11y-cost
- ui: ui.drop_effect_set(effects): the DE_* effects the drop target of the last drop_target call takes in this pass (default DE_ALL; 0 refuses the drag there: no drop, no highlight); the platform answers a drag over it with one of them, so the system's pointer shows copy, move, link or no (Windows DragOver / Drop pdwEffect, X11 XdndStatus, Wayland wl_data_offer.set_actions, macOS through plat::drag_query); the app's own drags pick from them too. plat::drag_query_all (the effect and every effect taken) and plat::drag_decide; the script command dragover expect copy|move|link|none [ctrl] [shift]; dndtest's page target (apps/dndtest/tests/effects.uis)
- plat: plattest --test present-bench [--size WxH]: what a 4K frame's presents cost in a real window (the whole frame, a caret, a line of text, 20 blocks, a band) and the present's copy alone against plain row copies (plat::present_copy_bench, doc hidden)
- crates: Every crate has a README.md written for its page on crates.io and docs.rs, with a section "What's new" about its latest release, and a CHANGELOG.md of its own in its package; build_rs.py changelog --crate writes an entry into the crates' changelogs too, build_rs.py release cuts them all and refuses a README whose "What's new" names another version, build_rs.py check and tools/publish.py check both files, build_rs.py new --lib writes a changelog and the frame of a README that check refuses until it is written (docs/VERSIONING.md)
- build:
build_rs.py testruns the scripts side by side:--test-jobs Nat a time (default half the logical CPUs,jfgui_TEST_JOBS; 1 = one after the other), Windows and Linux together, the checks after the scripts beside them. An app's scripts keep their order and never run on both targets at once;#!lock desktop/#!lock audioand#!serial WHYamong a script's first lines,apps/NAME/tests/jobs.txtfor a whole app (independent,independent targets,lock,serial); each job starts its Linux programs through one WSL process of its own (linux_task.py serve); render3dtest's and gputest's validation in parts (--test A,B,--except). At the end the times of build, scripts and checks and the slowest scripts and apps;build/test-report.jsonandbuild/test-times.json(the longest work first in the next run).test --quickwith a warm build: 16 to 20 minutes under the load of other sessions instead of about 70 (63 of them scripts one after the other) - plat:
vfs::Provider::create_new(a new file where nothing is, the check and the creation in one step; the default uses the OS exclusive create ofos_path) andvfs::Stream::deferred(bytes reach the provider only by sync or drop) - plat:
fill_random,random_bytesandrandom_u64on Android (bionic'sarc4random_buf); the browser has none, which the docs now say (a web page takescrypto.getRandomValues) - ui: A drop's answer to its source after the drop, for a target that learns later whether it took it (a web page's drop handler in another process):
ui.drop_defer()in the pass of the drop (DS_DROP,UIC_DROP) keeps the answer,ui.drop_finish(effect)gives it (the effect, 0 = not taken; an effect the source does not allow becomes the first it does), at mostDROP_DEFER_MS(3 s) later, else as the drop was delivered with a UIWARN; a drop that is not deferred is answered after its passes with the effect it was delivered with, as before. X11 sendsXdndFinished(accepted, the action) then, Wayland finishes the offer or destroys it without finish, Windows ends the operation of a source inIDataObjectAsyncCapability's async mode (EndOperation); macOS, the browser and other Windows sources answer at the drop (drop_defersays false). docs/GUIDE.md section 7 has what the source sees per platform - ui:
ui.drag_allowed(): theDE_*effects the source of the drag over the window allows (Windows the effects of itsDoDragDrop, X11 itsXdndActionList, Wayland itssource_actions, macOS the operation mask, the app's own dragDragData::allowed();DE_ALLwhere the platform does not say); after a drop the effects its source allows (as the platform gives them with the drop, else as the hover before it said), from itsE_DROPto the end of its passes (DS_DROP,UIC_DROP) and, afterdrop_defer, until its answer went -- the effectsdrop_finishanswers within; a target that hands them on with the drop need not remember the hover's - plat:
drop_allowed()(read afterdrop_data_take) anddrop_set_allowed(effects)(the OS layers): the effects the source of a drop allows, as the platform gives them with the drop -- WindowsIDropTarget::Drop's effects, X11 theXdndActionListwith the lastXdndPosition's action, Wayland the offer'ssource_actions, macOS the operation mask ofperformDragOperation:; 0 in the browser and on Android - plat:
drop_hold(on),drop_waiting(),drop_finish(serial, effect): the OS layers keep a drop's answer to its source open afterE_DROPuntil the program gives it (the UI turns it on for its windows); Windows' data object of the app's drags offersIDataObjectAsyncCapability(async mode off);dnd_test_drop_async/dnd_test_async_endfor plattest - ui: Script commands
drop expect copy|move|link|none|pending(the answer the last drop's source got) anddrop ... sync(a platform that answers at the drop);drop ... allows copy|move|link(the effects the source allows, given with the drop);dragover X Y ... copy|move|link(the effects the source allows) is documented - Tests: dndtest's "Später" defers its drops (tests/later.uis, also
drag_allowedin a drop's pass and while its answer waits, a drop's own effects, a drag that left); tests/effects.uis drops refused for want of an effect the source allows; plattest --test dnd checks the answer after the drop through OLE with a data object in async mode anddrop_allowed, --test dnd-x11 withtools/platshared/dnd_x11.pythe heldXdndFinished,XdndActionListand the drop's effects; viewtest has two app windows with their own title bars (tests/titlebars.uis) and a paragraph of 516 bytes (tests/longtext.uis)
Changed#
- ui: The built-in catalogue has no row "Neuer Ordner" any more: only JFNetworker used it, which keeps its own (
ui::i18n::tfalls back to the text itself). - gpu: Validation with jfgui_GPU_VALIDATE now also checks what shaders read and write through their bindings (syncval_shader_accesses_heuristic, off in the layer by default): a missing barrier between two shaders no longer goes unreported
- The guide and the README install
cargo-jflibfrom crates.io; the hint to install it from a checkout is gone.tools/publish.pykeeps Cargo's output inbuild/publish.logtoo. - render3d: A material row is 80 bytes (G5a: 64) and what reaches the colour target is opaque (alpha 1), as glTF wants for OPAQUE and MASK
- render3d: Sun::color is illuminance in lux (KHR_lights_punctual; Sun::DEFAULT 0.75 pi), materials are shaded as PBR instead of Lambert, nearest texture filtering loads the texel (textureLoad) instead of sampling its centre
- img_core: The MIME type of Paint.NET files is
image/x-paint.net(it wasimage/x-PaintCraft, a leftover of a renaming). - plat: The CoreCLR host's AppDomain is called
JFLib.ClrHost(wasPaintCraft.PdnHost). - Modules:
modules/jxlencis built next tocodectest, which loads it with--jxlenc FILE(build_rs.pyAPP_MODULES);modules/modrt/mem.rsis modrt's own file now (it was a copy oflib/plugin/mem.rs). - Tests:
lib/text_shape's shaping test reads its font fromJFLIB_SHAPING_FONT(wasPAINTCRAFT_SHAPING_FONT); the codec checks' fixtures (a1_rgba.png,a6_photo.png,pdn/) are inapps/codectest/fixtures/. - rt: rt::portable::math (rt::x87 on ARM64, Android and in the browser): pow, sin and cos within about half an ulp (were up to 118 ulp for pow and 1e-15 absolute for sin and cos, far worse beyond +-20): double-double intermediates without FMA, a table-driven log2 and exp2 inside pow, any finite angle reduced exactly (Cody-Waite below 2^19, Payne-Hanek above); still the same bits on every processor (docs/ARM64.md)
- rt: rt::portable::math (rt::x87 on ARM64, Android, Apple and in the browser): exp2, log2 and atan2 (and so rz_exp2, rz_log2) within about half an ulp (were up to 4, 5 and 5 ulp): exp2 and log2 from pow's double-double tables, atan2 from a table of atan(j/32) with a double-double quotient; subnormal results of exp2 and pow are rounded once; log10_round keeps its series and its x87 integers (docs/ARM64.md)
- render3d: The renderer's own depth buffer (Renderer::set_size) can be sampled (TextureUsage::SAMPLED), FrameStats::visible counts both phases of the occlusion test and FrameStats::draw both passes
- render3d: A view's uniform block is 208 bytes (UploadInfo::bytes of a frame without changes: 688); the bounding sphere of a mesh with detail levels holds every level
- render3d: Scene: which list an instance is in is settled by Scene::prepare (the class is its material's, which the renderer holds): add, remove, set_mesh, set_transform and set_material only mark it, Scene::lists shows what the last prepare settled, a material that changes its class through Renderer::set_material moves its instances with each scene's next prepare; draws_buffer, late_buffers and cascade_buffers hold a list's draw record at ListInfo::record (records lie by index width, class and side), no longer at the list's index; FS_SPV is now the opaque lists' fragment shader without discard
- render3d: render3d encodes sRGB in the fragment shader for 8-bit colour targets without sRGB (Rgba8Unorm, Bgra8Unorm: a window's swapchain, ui::GPU_VIEW_FORMAT), by the definition, the clear colour too; RendererDesc::encode_srgb (default true, false keeps the light linear), RendererDesc::encodes_srgb, Renderer::desc; RendererDesc is #[non_exhaustive] (RendererDesc::new, then set fields)
- ui: A view's frame is bound to the display: while its window is on its swapchain and has not shown its last frame yet (no free image, the display has not answered, less than 4 ms since the last present), a new ver does not ask the content to draw; it draws the newest once that frame has arrived, at the latest 100 ms later. A view drawn as fast as the app can no longer starves the compositor on the same GPU (Intel under Linux: before, no frame was presented at all, now nearly all); with presentation keeping up nothing changes (docs/GPU.md "3D-Ansicht")
- plat: Independent app windows (WF_APP) are top-level windows on X11 and Wayland too: no WM_TRANSIENT_FOR, type normal, not hidden with the main window / an xdg_toplevel without a parent (they were owned windows there); viewtest --app-window, tools/x11check.py appwin
- ui: TB_PASSWORD boxes set the input method's purpose themselves: IP_PASSWORD while they have the keyboard, the purpose of before after it (another field, ui.ime_enable, the box gone with its window); apps no longer call plat::ime_purpose. With it: X11 keeps the keys of an IP_PASSWORD field from IBus (as GTK does), Wayland sends the content type again when the purpose changes while enabled, Windows applies the purpose's input context when a window gets the keyboard; viewtest tests/password.uis
- ui: The script command system browser default|other|unknown is followed by UIC_ACTIVE 0 and 1 (only 1 when the app was not active), as after the user's choice in the system's settings: an app that keeps the status (GUIDE section 21, whose example now does) reads it again without system focus out / in
- plat: Linux: default_browser_status reads KDE's [General] BrowserApplication of kdeglobals when no mimeapps.list names a default of http and https (on KDE)
- plat: plat::dl_sym and plat::dl_close (Linux with glibc, Android) are unsafe fn: the dynamic linker reads a wrong handle's structures before it could tell
- plat: plat::inst::reg_delete_tree deletes only keys below Software\Classes (a ProgID, a URL scheme) and below Software\Clients\StartMenuInternet (a web browser's key) and returns false for any other name; it took every name, an empty one meant all of HKEY_CURRENT_USER
- plat: Windows: plat::a11y::active() turns false again 10 s after the last question of a UI Automation client when none listens for events (any client turned it on for the whole run before), true with the next question
- plat: plat::open_url and policy::url_allowed take only absolute URLs (a scheme of two or more characters, as RFC 3986 spells it), with or without a manifest: a path (
C:\x.exe,\\server\share\x,x.exe) went to ShellExecuteW or Launch Services, which start it as a program - ui: MV_OPEN_LINKS and RT_OPEN_LINKS open only http, https and mailto links by themselves; a document's other links (file:, ms-msdt:, search-ms:, relative ones) still reach the app (MdEv::link, richtext_link), which decides -- a link in a Markdown file or rich text could start a program
- gfx: Dc::blit copies an XRGB source from 1 MB on in row bands on the loop of set_parallel, from 12 MB on with streaming stores (the same bytes): a 4K canvas frame (3840 x 2160) takes 1.9-2.0 ms instead of 4.9-5.9 ms on the UI thread (Windows; Linux 2.0 instead of 4.5 ms; a streaming copy on every thread, the memory's limit, about 1.7 ms); blits through dirty rectangles stay cut to them
- ui: markdown_view and html_view publish a table's rows in view with the table kinds: K_TABLE around them (grid: rows and columns), K_ROW per row, K_CELL per cell (a header row's K_COLHEADER) with its row and column, instead of a K_TEXT per cell
- plat: Android: the accessibility host (android/GalleryAccessibility.java, bridge.c, the copies of cargo-jflib) reads the rich format (a11y_wire VERSION2, jfgui_a11y(2)): tables and trees as collections with their cells, headers and places, the place in a set, descriptions, a link's address, invalid fields, meters, live regions, announcements, and the further actions (show on screen, expand / collapse, increment / decrement, select)
- build: cargo jflib package without --formats packages an app with jflib's feature std in the default's formats of the system it runs on (Windows: the setup, Linux: the .deb) instead of refusing it on Windows; an error about another system's formats names those to pass
- ui: The accessibility tree of a frame whose records, windows and carets equal those of the tree published last is not built or published again (a 64-bit key of its inputs is compared): 3,400 rich records cost 0.13 ms per frame then instead of 2.2-4.8 ms (release, plattest --test a11y-cost); a changed page builds it in 1.5-2.1 ms instead of 2.0-3.9 ms (its candidates reserved). The script command a11y dump prints descriptions, addresses, values with their range and a slider's or meter's value text
- plat: plat::a11y: set_active wakes the UI thread when the flag goes off too (an idle app never noticed a client left). Windows: UiaClientsAreListening alone (the touch keyboard's host TextInputHost, TabTip or a vendor's tool always listen on Windows 11) no longer keeps the tree on: 10 s after the last question of a UI Automation client it is off unless a screen reader (SPI_GETSCREENREADER: Narrator, NVDA, JAWS) or Magnifier runs and listens
- plat: The present step copies a large frame's dirty rectangles in row bands on the worker pool (from 1 MB on), from 12 MB on with streaming stores (the same bytes; plat's present_copy.rs, gfx's thresholds): Windows' kept DIB section, X11's MIT-SHM segments and images, Wayland's wl_shm buffers. A 4K frame (3840 x 2160) takes 2.0-2.5 ms in win_present instead of 3.6-4.0 ms (Windows 2.2 / 2.5 ms best / median instead of 3.4 / 4.0, X11 1.9 / 2.0 instead of 3.3 / 4.0, Wayland 2.0 / 2.1 instead of 3.1 / 3.6); copies below 1 MB stay plain row copies on the UI thread
- plat: Wayland: wl_data_offer.set_actions names the effects the drop target under the drag takes (drop_effect_set) instead of every effect the source allows; X11: a drop takes the effect of the last XdndStatus (it picked copy whatever action the source asked for)
- ui: GpuOutput is #[non_exhaustive]: apps read its fields but no longer build it with a struct literal
- build: The template of a new app (cargo jflib new) and the GUIDE name jflib 0.2
- plat:
File::create_newon a mount whose provider has neitherProvider::create_newnoros_pathreturns None (it was exclusive only against othercreate_newcalls of the process;write_fileorFile::openof another writer in between was emptied).log_filereturns false for a file of such a provider (its lines reached the provider only when the log stopped, a crash line never) - plat: X11: the effects another program's drag allows are the source's
XdndActionListwith the action it asks for, inE_DRAGand for theXdndStatusanswer (without a list every effect, as before) - cas:
Repo::save_snapshotandUnsaved::save_snapshotrefuse a key the repository does not trust with the newCasError::UntrustedSigner. They added the key to the trusted signers by themselves, soload_snapshot's signature check never refused a snapshot saved through the API andtrust_signerchanged nothing. Trusted areCreateOptions::signerand the keys given totrust_signer; a program that saves with another key callstrust_signerfirst. The list is protected by the repository key: it keeps out other keys and mistakes, not someone who can open the repository - plat:
net::UnixListener::bindremoves only a socket file nobody listens on any more; a file, a folder or a socket that is listened on stays andbindfails (AddrInUse; a folder on Windows: Other). It removed whatever was at the path first: a file with its bytes, an empty folder, another listener's socket - base:
base::Ini::load_checkedgives None when it cannot tell that the name is free (refused, an I/O error, a folder there) or cannot learn the file's size; only a missing name gives an empty Ini.file_exists_checkedon a folder mount answers for its OS file (it gave the mount's kind: 0 for an error too)
Removed#
- JFNetworker and JFScript moved to their own repositories, JFLibrary/JFNetworker and
JFLibrary/JFScript (docs/CRATES.md, CR7 step 1):
apps/JFNetworker,apps/jfswith the cratescript(nowjfscript), coretest's groups script, scriptvm, scriptlib, scriptls and scriptmod (JFScript'sscripttest),tools/academy_index.py,tools/academy_e2e.pyandtools/script_math_check.py.editortesttakes JFScript from its repository, the workspace takes that repository'sjflib-agent-corefrom itself ([patch.crates-io]);symboltestkeeps a copy of JFNetworker's symbol table. The stylenetlabstays here. - PaintCraft moved to its own repository, JFLibrary/JFPainter, as JFPainter (docs/CRATES.md, CR7 step 1), with its Rust plugins (
plugins/,lib/plugin), its paint.net host (tools/paintcraft-pdn-host) and its check scripts;build_rs.py plugin, the plugin lint and the pdn-host section are gone, and so are the platshared comparisons that imported those scripts (clip_rs_check,lib_check,print_rs_check, the print part ofportal_bus) andpathdata_check's XAML fuzz through PaintCraft.testenvno longer setsPaintCraft_CONFIG_DIR.
Fixed#
- build: The repository's apps build with Cargo in their folder like a project of their own (
cd apps/gallery,cargo run, on Linuxcargo run --target x86_64-unknown-linux-gnu): apps/.cargo/config.toml has the template's Linux flags;cargo jflib testpasses this machine's --target on Linux when none is given (without it the template's flags reached the build scripts, which rust-lld could not link); jflib_build's message for missing flags names --target and apps/.cargo/config.toml - rt: Programs without std link with Rust 1.99 (LLVM 23) again: LLVM turns a loop that counts wide characters up to the NUL into a call to wcslen, which rt now has next to strlen (wchar_t of 16 bits on Windows, 32 bits on Linux and in the browser); with 0.1.0 every program on Windows failed with "unresolved external symbol wcslen" (until then: rustflags
-C llvm-args=-disable-loop-idiom-wcslen) - build: cargo jflib package builds the setup stub and the AppImage runtime of an app in JFLib's workspace from the workspace's crates (it took them from crates.io), and takes only the app's [profile.release] for them (JFLib's [profile.dev.package.X] of crates a stub has not were a Cargo warning each)
- Tests: plattest --test lib matches JFPainter's Rust test plugins (it was written for PaintCraft's assembly plugins and failed 4 checks on x86-64 too): crashq's trap is found by its instruction, crash and crashpf get FXARGS on a test surface, badinfo's list pointer is the one outside the image; a new check: a plugin of the other processor -> LIBE_ARCH
- build: build_rs.py runs with Python 3.11 again, as the README says (tools/gendoc.py needed 3.12)
- update: an update's new file is created with create_new on Apple too (never written through an existing name or link)
- plat: macOS and iOS: the system font folders (/System/Library/Fonts, /Library/Fonts, ~/Library/Fonts) are scanned; the print dialog of macOS opens only when the app has a window (headless runs: ERR_UNSUPPORTED as on Linux)
- ui: Views of GPU content in the browser: a read-back that comes after its Draw now reaches the framebuffer (the cells the output draws are owed again, the next render and the settle at rest take it there); before, the framebuffer kept an older frame or the content's painting
- update: update::target() names macOS and iOS (macos-aarch64, ios-aarch64); a Mac reported linux-aarch64
- update: lib/update on macOS: an exe update kept the old file's permissions only on Linux, so an updated program on a Mac lost its executable bit; cargo jflib keygen and the update channel's signer build for macOS on a Mac
- plat: Android: the status bar and the navigation bar take the colours at the app's edges with matching icons and no system scrim, instead of a fixed light grey around a dark app
- build: The .dmg of tools/package.py held the program without its execute bit (copied without its mode), so the app did not open ("kann nicht geöffnet werden"); NAME.app's program is always 0755 now and tools/apple.py dmg refuses a bundle whose program cannot run (found by the hand check of AP8c)
- render2d: render2d: push constants only where a pass reads them (the browser refused count and write: the demo had never run in a browser); the fragment shader returns after discard (a discard keeps running, WGSL's rules) and takes a fast way near the ends of short thin strokes (segments up to 3 px, half width up to 0.75 px): 1 million segments of the measuring scene at the overview 25.4 -> 11.8 ms (RTX 2070 SUPER), 185 -> 60.7 ms (Iris Xe)
- build: Mac and iOS bundles name the app's languages: tools/apple.py and cargo jflib mac write the columns of the app's catalogue (locales/ui.tsv, else German and English) as CFBundleLocalizations and English as CFBundleDevelopmentRegion; before, macOS took every JFLib app for an English one, VoiceOver read its German texts with an English voice and AppKit's own texts stayed English
- ui: The library's own folder dialog (FD_FOLDER; headless runs, jfgui_FILEDLG=builtin) sets ui.filedlg_paths() to the chosen folder; it still held the files of the dialog before, and the folder was not granted to the app as the user's (fs.user); viewtest tests/folder.uis
- ui: Text and number boxes of the same id in two windows no longer share their edit state: caret, selection and undo of the focused box are keyed by window and id (the inactive window's box dropped them every pass, so typing there reset the caret or replaced a keyboard selection); viewtest tests/twowin.uis
- ui: ui::test_main!, ui::main! and rt's macros expand without #[allow(unsafe_code)]: a crate with #![forbid(unsafe_code)] (a style crate's unit tests, an app) uses them (it was error E0453; the unsafe_code lint does not look into another crate's macros); crates_accept's hallo3 forbids unsafe code and runs a unit test through ui::test_main!
- build: cargo jflib package builds its stubs (the setup's installer, the AppImage runtime, the signer) with panic = "abort" whatever the app's profiles say: the setup of an app with jflib's feature unwind and panic = "unwind" failed ("JFLib needs panic = abort"); crates_accept packages hallo3 with unwind as a setup
- ui: A toast's message has a record of its own (K_TEXT below the card's K_BOX with the title): screen readers read it, scripts find it as text:"…"; datagallery tests/smoke.uis
- ui: A frame is no longer lost when the last command round of run_passes changes something (a command such as UIC_WAKE, a window, a task): run_passes asks for the next frame (need accumulates instead of being overwritten); an app that asks for a frame after every frame by itself gets 8 more, then a UIWARN; a script's wait gives the frame asked for, as the window loop does; viewtest tests/chain.uis
- ui: Docking: a hidden panel comes back between the neighbours it had in its group (DockState::show, toggle, focus; also after save / load): panels hidden one by one and shown again in any order keep their tab order -- they came back at the index each had when it left, so BrowserGUI's developer tools were shuffled after hiding every panel and F12; docktest tests/order.uis
- plat: plat::audio::ring_check (plattest --test audio): when the reader's 20 s ran out the writer thread waited at the full ring and join() never returned; the writer stops now and the check fails (ring_check_within with a limit of its own)
- build: cargo jflib package takes the stubs' crates (jflib-installer, jflib-appimagert, jflib-build, the signer's) from the JFLib checkout when the app's jflib comes from a path, also when the app does not depend on them itself: an app that patches only jflib and jflib-build to a checkout ([patch.crates-io]) got jflib-installer from crates.io, and its setup lacked the checkout's installer; a crate the app has from a path of its own keeps that path
- build: The Windows setup keeps the whole list of its extra files: install.ini's files= was cut at 4096 bytes (and the file at 8192), so uninstall.exe left the rest behind (139 licence files of Narsil in 65 folders); uninstall removes every listed file and then the folders below the program folder that held them, deepest first, when they are empty (it removed only the file's own folder), and skips names outside the folder (absolute, ..); a payload holds up to 65536 entries (256: an app with std and many crates' licences did not fit)
- tools: tools/i18n_check.py takes a relative path of an app from the current folder first ("." inside the app: it took the repository's apps/. before), a bare name stays apps/NAME first
- plat: jflib's feature std builds for macOS and iOS (aarch64-apple-darwin, aarch64-apple-ios, aarch64-apple-ios-sim): plat::std_start was missing there; it does what the start without std does (SIGPIPE ignored, crash handlers, jfgui_CWD and the canvas on iOS, UIKit's run loop for an app that installed its runtime) with rt's panic hook first
- ui: date_picker inside a flyout of the app's own: a picked day (or Heute) closed every popup, the flyout too; it closes only its calendar now (popup_close_id)
- plat: X11: a drawn cursor (grab, grabbing, zoom, cell, vertical text, alias, copy, context menu) is made again at the new size when the desktop's dpi changes (Xft.dpi), not only at the next change of the shape
- rt: SpinLock::try_lock no longer releases a lock another thread holds when it fails (the guard of the failed attempt unlocked it when dropped); the guards of rt::sync::SpinLock and plat::sync::Mutex are Sync only when the value is (a guard of a Cell could be shared between threads)
- plat: Job::start called on two threads at once starts the job once (both could reset and queue the same record)
- plat: thr_shutdown called on several threads at once: one takes the pool down, the others wait for it (they could join the same workers and drop semaphores a worker still waited on)
- plat: Linux: the folder watcher watches the whole tree again after the kernel's event queue overflowed, then reports the overflow (new subfolders stayed unwatched)
- plat: Linux with glibc: a thread that joins itself keeps its stack (Thread::join unmapped it under the running thread)
- plat: RwLock: a reader count that would wrap (2^32 guards passed to mem::forget) panics instead of letting a writer in beside a reader
- plat: In the browser and on Android the PERMISSIONS policy treats
\as a folder separator, as their file stores do (a path with\..\could pass the rule of one file and open another) - plat: Android: host calls on several threads at once no longer share one answer buffer (a call on another thread, the audio thread too, could free it while the bridge copied into it)
- simd: copy_stream ends with the fence its non-temporal stores need (sfence) before anything reads or writes the copy again, as Rust's memory model requires; ui's parallel rendering copies its bands back with copy_stream_rows (one fence per block)
- render2d: render2d: dash patterns on Intel under Linux (Mesa 26.0, HD 610 and Iris Xe): a dash shorter than its gap lost the pixels it covers whole (ink -13 to -16 % at periods of 3 and 6 px, dashed curves, six checks of phase) -- the fragment shader stepped back from the pixel's entry of the pattern and Mesa's Intel compiler read the new entry's length with the step's own test; ivals now starts at the entry that holds the place w px before the pixel and only runs forward, each entry's start carried along (the 166 images of --dump unchanged on NVIDIA)
- installer: A setup that cannot write install.ini fails instead of ending without it (the uninstaller found nothing to remove then); an assoc= entry of install.ini names no key outside the app's own any more (reg_delete_tree refuses them: a list cut by an older setup inside an entry named Software for Software\Classes\App.ext, which went with everything below it)
- cas: A backup's chunks are safe between the end of its writer and its snapshot. A gc of another thread that waited for the writer ran in exactly that gap, removed the new chunks as unreferenced, and the snapshot was stored without its data. Writer::finish_unsaved keeps gc out until the snapshot is saved through the returned Unsaved; Repo::save_snapshot waits for a running gc and refuses (NotFound) a snapshot whose chunks a gc has removed. gc rebuilds lost index files from the packs' trailers first, as repair_index does: a pack whose index file was lost went as one nobody uses, with the chunks of its snapshots; it refuses (Corrupt) while a referenced chunk is missing and a pack without an index and a readable trailer is left
- doc_io: A long formatted document is saved again: encode_docx reads its own output back, and the XML reader stopped at 30000 elements and 4 MiB a part, which some dozen pages of formatted text reach (Error::Xml). The parts of a native document that grow with its content (text, notes, sources, table identities) are written and read up to 250000 elements and 8 MiB, the size a package holds in one part
- plat: X11: a finger that drags a window no longer ends the program with "nested reply wait": the monitor list is not asked for again while a reply is awaited (the move then uses the list as it is)
- ui: Code editor: undo and redo of "replace all" keep the selection inside the text (it came from the text before the step, and the next edit cut a line past its end or inside a character); moving the last lines down leaves the selection on the last line; toggling a comment cuts the shared indentation at blanks and tabs only (a line indented with a no-break or ideographic space was cut inside the character)
- ui: No more panics on these inputs: a finger tap near a hit box that is empty or clipped away (touch aiming), a style sheet whose last rule lacks its closing brace and ends in a non-ASCII character (rich text from HTML), a catalogue text that ends inside a placeholder (i18n messages). A bar chart with an infinite or huge value no longer hangs in the axis scale (the bar fills the plot)
- plat: The UI thread's state of plat (windows, clipboard, file and print dialogs, pen and touch, Linux's X11 connection and portals, AppKit's and UIKit's objects) belongs to the UI thread, the first thread that uses it: a call on another thread panics before it touches anything (it raced on unsynchronized Cells and RefCells before, undefined behaviour from safe code)
- plat: UI Automation: the ExpandCollapse pattern had a wrong interface id, so no client got it (drop-downs and menus too); AT-SPI2: a read-only text box was editable
- render2d: render2d: strokes in a layer with fills on Intel under Linux (Mesa 26.0): single wrong pixels at random, mostly one colour channel, pixels of thin lines missing -- Mesa's Intel register allocation gave a part of the stroke's colour, unpacked at the top of the fragment shader and used at its end, to another value in some pixels (every pixel right with INTEL_DEBUG=spill_fs); the three fragment shaders unpack the colour where they return the pixel (the 166 images of --dump unchanged on NVIDIA; the Iris Xe passes 698 of 700 checks)
- plat: Deadlocks around values dropped under a lock: a sync channel's Receiver drops the queued values after releasing the channel's lock (a queued value holding a Sender of the same channel hung), the cancelled() future of a CancelToken, Sleep, spawned tasks and spawn_blocking drop a replaced or removed waker outside their lock (a waker whose drop cancels the token or ends another timer hung); Executor::ui().block_on takes the wake-ups of other threads itself, so a future woken from a worker thread (a spawn_blocking job) completes instead of waiting forever
- netpkt: The dissector no longer panics on packets from the network: a ClientHello split across segments (the extensions were read up to their declared length, past the segment), an FTP or POP3 reply with a character across byte 4 (the text was cut inside it), field lengths of lines with bytes that are no UTF-8; smtp::parse_path no longer cuts an argument inside a character (JFNetworker's SMTP server)
- ui: markdown_view / html_view read an image's file only when it is a regular file up to 32 MB, and never a network or device path:
made Windows connect to the server when the document was shown,/dev/zerowas read until memory ran out - img_jxl: A JPEG XL container box with a 64-bit size reaching to the end of the number range no longer crashes
probeanddecode(out-of-bounds access, from a 28-byte file); such files are refused withERR_HDR - img_jxl: A frame with its own size (custom size) is held to the decode's pixel budget (
ImgDec::maxpx, default 2^28) like the image itself: larger frames are refused withERR_LIMITinstead of being decoded at up to 2^30 x 2^30 pixels - img_jxl: Modular images: the channels that palette transforms add may together hold at most as many samples as the image plus 2^20; small files with large palettes (each below the old 2^20 threshold) no longer make the decoder allocate and decode hundreds of megabytes to gigabytes, they are refused with
ERR_LIMIT - img_jxl: The spline draw cache no longer allocates one entry per row of the upsampled frame without a check (4 GB for a frame 2^30 rows high, a crash when that failed); it covers only the rows the splines reach, and a failed allocation is
ERR_NOMEM - img_jxl: Patches: the rectangles of all patch positions together may cover at most 4 x the frame's pixels plus 2^20 (only their number was limited); more is refused with
ERR_LIMITinstead of seconds to minutes of blending - img_jxr: Files with an index table get the same plausibility check as those without (at least one bit per macroblock and plane in the data): a file of 86 bytes claiming 16384 x 16384 pixels is refused with
ERR_TRUNCright after the headers instead of after allocating over a gigabyte (up to 8.5 GB) - img_heif: Grid images are no longer decoded without a bound: each tile's picture is checked before decoding (no tile larger than the first, all tiles together within about four times the image), and the data of a tile item referenced many times is not fed to the decoder over and over; such files fail with
ERR_LIMITinstead of decoding up to 65535 large tiles from a small file - img_heif: The pixel limit (
ImgDec::maxpx) also applies to the picture an HEVC or AV1 item holds in its stream (SPS, AV1 frame header), not only to the output size: a small image whose stream declares a huge picture fails withERR_LIMITbefore anything is allocated - img_tiff: Tiles far larger than the image (all tiles together more than 16 times the image's pixels plus 2^20) fail with
ERR_LIMIT; a 1 x 1 image with 65536 x 65520 tiles asked for 4 GB - img_pdn: A pixel block or inline byte array used by more than one layer fails with
ERR_HDR, and the layers' names and metadata together are bounded by the file (ERR_LIMIT); before, every reference expanded the same data again, without a total budget unless maxmem was set - img_svg: A style sheet whose block stands behind many selectors that match every element is no longer copied per selector and per element without bound (a 64 KB block behind 4096 selectors took minutes and gigabytes): the selectors of a list share one copy, each declaration counts toward the cascade's step budget, and a cascade that would copy more than 128 MB of declarations makes
Svg::parsereturnERR_LIMIT - img_svg: Rendering is bounded by its work, not only by element visits: a use DAG of 10^6 visits each covering the surface (fills, opacity layers, clip masks) took over a minute at 256 x 256; pixels painted, layers, masks and images allocated, path points, children and text walked now count against 64 per pixel of the drawn area (at least 2^26), and drawing stops there (that render takes 30 ms)
- gltf:
Limits::buffer_bytescounts the bytes each buffer really holds: buffers naming the same file each held the whole file while only their byteLength was counted (in any number); a file named twice now counts twice - gltf: The zeros of an accessor without a bufferView are charged to
Limits::buffer_bytesbefore they are made (each time a primitive reads it): a JSON of a few hundred bytes could ask for gigabytes of zeros - plat: Ogg Vorbis:
Sound::oggrefuses streams that decode to more samples than 10 minutes of 48 kHz stereo (230 MB), whatever rate and channels the header names (10 minutes at 384 kHz and 8 channels were 7 GB, from 110 KB of one-byte silent packets); the samples are reserved fallibly (AudioError::Formatinstead of an abort) - plat: Ogg Vorbis: silent channels and submaps without a channel to decode skip their residue, and a residue's classification buffer is only as long as its partitions (it added up to 65535 entries per channel and packet): silence with a costly setup decoded 30 times slower than with a cheap one
- ui: A fill child of a box whose fill children the previous pass did not see (a new box) got 0 in its first pass: nested new boxes settled a pass per level and an app deciding from a box's size decided from 0, so a click and a few nested new splits gave "layout did not settle within 4 passes". It gets the room left after the children before it now (avail_width says the same); settled layouts stay as they were; viewtest tests/nested.uis
- build: cargo-jflib: a stub's manifest got the comment lines after the app's [profile.release*] tables (a comment block of the next table, BrowserGUI's note on the engine's crates); only the tables are copied now
- plat: The crash pre-hook (the last log lines, the crash line in the log file) neither allocates nor waits, so the app's crash hook and exit code 3 follow: it no longer rotates a log file that the crash line takes over its size (rotation allocates names and routes them through the mount table, which hung when the crash happened while that table was held; with keep 0 it deleted the crash line), writes the crash line to OS files only (not to a mount's stream), and on Linux a non-blocking stderr that takes nothing for half a second is given up instead of polled without a timeout (rt::os::write_stderr_crash, also for the crash and panic lines)
- style_netlab: The manifest names the licences of the style's own copies of the Inter fonts and of the icon font besides MIT OR Apache-2.0: (MIT OR Apache-2.0) AND OFL-1.1 AND MIT (it said MIT OR Apache-2.0 alone)
- build: build_rs.py release also writes MAJOR.MINOR where an app's dependency names it: the template's Cargo.toml.in (the one cargo jflib new writes, both copies) and the guide's examples; build_rs.py check reports a file that asks for another version (before, a release left the template asking for the old one)
- ui: The effects another program's drag allows are forgotten when it leaves the window, is dropped or the app's own drag ends, and a drop takes those the platform gives with it: a drop without a hover before it had the effects of the drag before it (or copy and move), for its effect and the answer
drop_finishgives - ui: A drop has an effect its source allows: when the platform's effect is not one the target takes (a scripted drop, one that raced the pass), it gets the first of the target's effects that the source allows -- it got the target's first effect, so a copy-only drop onto a move target was delivered as a move (
drop_effect()) and answered as a copy later; with none in common the drop is refused (noDS_DROP, noUIC_DROP, the source is answered "not taken"), as the platform refuses such a drag over the target; outside the targets likewise - ui: State slots are per window (
ui.slot, the boxes' measurements, views' scroll positions, animations): the same explicit id in two windows -- the title bar's box, a dialog's box of a fixed id -- flipped between the windows' sizes in every pass ("layout did not settle within 4 passes"); a window's slots go with its state, a panel floating out into a tool window starts there with fresh ones - ui: Script selectors and
expect S textcompare a record's whole label: a quoted string was cut at 255 bytes, so a wrapped paragraph longer than that never matched (script lines hold up to 16 KiB now);dumpwrites labels up to 64 KiB (it cut them at 172 bytes, also inside a character) - wgsl: A compound assignment of a vector with a scalar (
v += 1.0,v -= s,v /= 2.0,w += 1of an integer vector, also through a swizzle) splats the scalar asv + 1.0does: in SPIR-Vv += 1.0became a multiply by 1.0 (-=and/=alike) and integer vectors gave invalid SPIR-V; a floatv *= sstays a vector times scalar - fx: black_white_plus with its default "Leuchtdichte" divides the weighted sum by 1000 (it divided by 100, so nearly every pixel came out white); efftest's self test checks its answer
- img_jxl: The edge-preserving filter (EPF) of a frame with chroma subsampling reads each colour plane with its own stride: after upsampling, the chroma planes' stride differs from luma's when the width is no multiple of 16, and the filter read their rows from the wrong place (valid files decoded with wrong colours, up to 144 levels off); codectest --jxlref compares such files with libjxl 0.7 (tools/jxl_epf_fixtures.py)
- doc_io: HTML clipboard round trips keep the size of raised and lowered text: the HTML holds the shown script size in font-size and the import took it for the nominal size, so every copy and paste shrank such text by a third; the nominal size travels in data-jf-size
- doc_io: HTML clipboard round trips keep the line spacing: the import cut the decimals of line-height (250/240 lines, written 1.041666, came back as 249) and rounds them now
- gpu: Range checks add without wrapping: push_constants, dispatch_indirect, texture_barrier_range, create_view, the region and data span of texture copies, bind group and bindless buffer ranges (Vulkan and Metal), and the browser's copy, clear, indirect, immediate and view checks: an offset or base near u32::MAX / u64::MAX wrapped the sum small, passed the check and reached the driver; gputest checks push constants and views at u32::MAX
- shader: An instruction longer than SPIR-V's 65535 words is written with the word count 0 (never valid) instead of a count that wrapped into the next instructions; wgsl reports it ("an instruction is longer than SPIR-V's 65535 words": a name of 262,140 characters or more, a constant with that many components)
- plat: Ogg Vorbis floor 1 keeps its values in 15 bits as libvorbis does: a codebook entry up to 2^24 overflowed i32 in the next point's interpolation (a wrong curve, with overflow checks an abort); valid streams decode as before
- spell: COMPOUNDMIN is clamped to 1..=65535: 2^63 wrapped to 0 when doubled and the compound search indexed past the word (an abort when checking a word)
- gfx: ellipse_fx and rrect_fx compute their control offsets in 64 bits: from a radius of about 59,500 px (rounded rectangles: 73,000 px) they wrapped and the shape came out wrong
- ui: The syntax highlighter takes a block whose depth was lost in the 32-bit line state (shifted out below three nested constructs) as one open block, so
*/closes it (the depth went below 0 and the rest of the line stayed a comment); a line state without a rule byte is no construct - img_tga, img_webp, img_bmp, img_jxl, netpkt: Offsets and sizes from a file are checked without wrapping a 32-bit usize (wasm32): TGA's extension offset (a read past the data), WebP chunk sizes near 4 GB (the walk went back into the file), a BMP's ICC profile offset, JXL plane sizes (ERR_NOMEM instead of a plane too small), pcapng block and packet lengths (an endless loop, a bad slice)
- img_jxl: The spline area estimate saturates instead of wrapping: a huge quantizer adjustment or colour factor wrapped it small and let the area limit pass
- Overflows that only builds with overflow checks saw (a debug build of an app without JFLib's profile aborted): img_heif's encoder for one image without metadata, md_doc's update of changed blocks, the terminal's resize anchor after the scrollback dropped lines, X11's work area, a FILETIME from 2^63 on (Windows), the underline position of variable fonts, shaped glyph offsets
- plat:
File::create_newandAtomicFile's sibling on mounts check and create in one step (Provider::create_new:MemFs,Overlay,Sub, content://; folder mounts the OS exclusive create): another writer's file made between the check and the open was emptied bycreate_newand taken over byAtomicFile, which then removed it on drop or renamed it at commit (also onDirFsmounts) - plat: content:// (
ContentFs): a folder move to another folder is refused before the file in its way is deleted (it was deleted, then the move refused); an open for writing or a rename the provider refuses keeps the pending journal copy forrecover(it was dropped before asking); writes of one document with a journal run one after the other (alsorecoverand the removal of a copy), so a write that succeeded no longer removed the copy of a later one that failed - plat: Linux trash on a file system without
RENAME_NOREPLACE: the fallback looked whether the name inTrash/fileswas free and then renamed, replacing an entry another program made in between; now a file goes by a hard link and the removal of its old name, a folder replaces an empty folder made for it (steps that fail on a taken name); a file system without hard links refuses files - plat: Windows secrets: two writes of one large entry at once (or a small and a large one) could leave the credential pointing at a DPAPI file the other write had swept; set, get and delete of an entry hold
data://secrets/<hash>.lock(an exclusive handle, across processes) from the file to the sweep - doc_io: A source list that
encode_sources/save_sourceswrites loads back:decode_sources/load_sourcesread with the same limits, 8 MiB and 250000 elements (they stopped at 4 MiB and 30000, so a long list could be saved but not opened);decode_bibliography/load_bibliographytake Word XML up to 8 MiB too - img_avif: The AVIF writer takes quality 0 as 95, like
io::opt_init(IMGF_AVIF)and the other writers (it was 85) - text: macOS and iOS: the system fallback and
FontConf's built-in tables name Apple's fonts (Helvetica Neue, Hiragino, Heiti, Apple SD Gothic Neo, Thonburi, Kohinoor, Geeza Pro, ...); they named Linux families, so Chinese, Japanese, Korean and other scripts found no font there. Emoji still have none: Apple Color Emoji's glyphs are sbix bitmaps, whichtextdoes not draw - img_webp: No dependency on
platany more (it used nothing of it);IOF_WEBP_1THREADandWEF_1THREADare documented as without effect, the encoder has no worker threads - netio:
Client::new()sends the user agentJFLib-netioandssh::Clientthe versionSSH-2.0-JFLib_netio(both still named CraftLIB); a mail without a HELO name gets its Message-ID atjflibinstead ofbackupcraft - gpu:
GpuError::NoLoadernever comes on macOS and iOS (no Metal device isNoAdapter): the docs say so, and its text there no longer claims a missing Metal device - build: The manifests' docs.rs comments (and
tools/scaffold.py's) no longer call macOS none of JFLib's targets - netio:
smtp::sendwithSecurity::None: the docs (GUIDE section 17, the README) say what the code does, a plain connection to any server (a relay on port 25 inside a network) and no login without TLS; they said "plain on loopback" - plat: Windows logout and shutdown:
WM_QUERYENDSESSIONended the app already (UIC_SESSION_END, thenUIC_EXIT), also when another app cancelled the logout; and the app saved only afterWM_ENDSESSIONhad returned, when Windows may end the process. Now only a confirmedWM_ENDSESSIONsends it, and the UI takes it while the message is handled (when it comes during the wait for events; elsewhere it waits in the queue) - plat: An OS path with a NUL character reached the system cut at the NUL:
delete,File::openfor writing,rename,fs::write_file_privateand the rest changed the file named by the part before it.policy::fs_allowedrefuses such a path, also without a manifest, so every file call fails;fs::symlinkrefuses such a target - plat: Windows:
File::write_atat offset u64::MAX appended to the file (the OVERLAPPED value for "at the end") and reported success; an offset whose end passes i64::MAX is refused before anything is written, forread_attoo - plat: The log file counted a short write as the whole line: the rest was lost, the next line started past the end (a gap of NUL bytes), the rotation came early. Only the bytes written count now, and the rest of the line follows
- plat: content:// (
ContentFs): a new document the provider namedname (1)(the name taken meanwhile) took the bytes ofwrite_fileor a writingFile::open, which reported success; now that document goes again and the one under the name asked for is written (mkdirtakes the folder made meanwhile instead of failing and leavingname (1)). The chosen folder could be deleted by its document form (tree/ID/document/ID) - plat:
vfs::Sub: opening its root for writing emptied or created a file of the folder's name in the inner provider and was refused only then; refused first now (create_newtoo) - plat:
aio::Writer: a write whose future was dropped while its job ran could overwrite a later write at the same offset, and the commit succeeded. Such a writer is spoilt now: later writes giveErr(Write), the commitErr(Commit), nothing is put in place - base:
Ini::load_checkedreturned an empty Ini for a file it could not open when asking whether it exists failed (refused, an I/O error), and for a file whose size was unknown: a later save replaced the settings it never read
[0.1.0] - 2026-11-08#
The first version on crates.io. It takes in the internal 0.1.0 of 2026-10-20, never published:
the Rust rewrite of jfguiLib, published as JFLib on 2026-10-14, and the roadmap work since then
(docs/ROADMAP.md). Its public API is recorded in docs/api/0.1.0.txt.
Added#
- build: tools/publish.py: the crates to crates.io one by one in the order of their dependencies, waiting out crates.io's rate limit (5 new crates, then one per 10 minutes) and going on where it stopped; without --publish only the plan
- ui: One gesture recogniser for a finger (
lib/ui/touch.rs, GUIDE §37): pan 1:1 with its direction locked and handed along the views around the widget, a fling on Android's curve that a touch stops, tap, long press; widgets take the finger by themselves (HB_GRAB_H,HB_GRAB_V, their cursor); no scroll bars with a finger (ui.touch_mode), title bars move windows by finger, not out of reach; the script commandstap,longpress,swipe,flick,finger,expect ... value MIN..MAX,nohover,unpressed - ui: What a widget wants of a finger:
ui.touch_takewithTF_H,TF_V,TF_BOTH,TF_SLOP,TF_HOLD,TF_TWO,TF_DECLINE,ui.touch_fingers,WF_TOUCH_HOLD - plat: One entry for a host's raw fingers with an id and the sample's age:
plat::finger,FingerPhase,plat::finger_event(browser and Android: the exportjfgui_finger),plat::touch_primary,plat::reach_clamp; Android draws on every vsync while a finger is down or a fling runs and logsnativeRenderwith the extrajfgui_PERF; in the browserinputmode="none"underpointer: coarseuntil a text field has the focus - plat: The device's motion sensors and location (
plat::sensors:watch,state,read,attitude,location_watch,location_state,location_fix): Android throughSensorManagerandLocationManager(no Google Play services, the runtime permission from a user action), browsers throughdevicemotion,deviceorientationandgeolocation; Windows and Linux report "not available"; stopped in the background; the rightslocationandsensors(alsoask,PERMDENY);plat::back_trap(Android's back key as Esc) - ui:
UIC_SENSOR,UIC_LOCATION,ui.touch_drag(a part of a widget takes a finger's drags), a long press as the right button with a finger, the script commandssensorandlocation - build:
tools/android.pyrefuses an APK whose PERMISSIONS haslocationwhile its AndroidManifest.xml lists neither location permission; the packages notelocationandsensors - crypto: MD5 (
md5,Md5,md5_parts) and HMAC-MD5 (hmac_md5), for protocols defined with MD5 (RADIUS); documented as broken for collisions, assha1is - netpkt: SSH version 2 without I/O (
ssh: aCorefor both sides of a connection with curve25519-sha256, ssh-ed25519, rsa-sha2-256, chacha20-poly1305@openssh.com, aes128-ctr, aes256-ctr with hmac-sha2-256, logins by none, password and publickey, session channels with windows;KeyPairwith OpenSSH key files; checked against OpenSSH's client bytools/ssh_interop.py --core) and SNMPv3 (snmpv3: messages, the USM with key localisation, HMAC-MD5-96, HMAC-SHA-96 and the SHA-2 tags of RFC 7860, AES-128-CFB of RFC 3826, engine IDs, report PDUs);decodedissects both;netpktnow depends oncrypto - crypto: RSA key generation and PKCS #1 v1.5 signing (
rsa::PrivateKey),aes::AesisClone - netpkt: The Telnet protocol (
telnet: the NVT commands and option negotiation of RFC 854 / 855 / 857 / 858, IAC escaping, aReaderfor bytes in pieces, the loop-freeOptionsof RFC 1143) and RADIUS (radius: authentication and accounting of RFC 2865 / 2866 with every attribute, the User-Password hiding, the Request / Response Authenticators and the Message-Authenticator of RFC 3579);decodedissects both (P_TELNET,P_RADIUS) - ui: Full keyboard operation: focus groups (the arrows inside toolbars, radio sets, swatches and button grids), F6 / Ctrl+F6 through panes, docked panels and tool windows, F8 for splitters, the menu key / Shift+F10 everywhere, Enter, Space and Ctrl+arrows in lists, grids and trees
- ui: A rich-text editor (
ui.richtext, a toolbar, HTML in and out) and a code editor (ui.code_editor) with syntax highlighting for Rust, JSON, INI, TOML and Markdown, find and replace, and files of 100 000 lines - plat: Android: the system's file picker (Storage Access Framework:
content://names for every file function and stream, grants kept across restarts, folders), persistent app storage and the system clipboard - ui: A live inspector (--inspect, Ctrl+Shift+I / F12): an overlay with the widget under the pointer, layout boxes, Tab order and repainted rectangles, and a tool window with the widget tree, properties, a copyable script selector, frame statistics and the theme colours; closed it costs nothing
- ui: SVG images and icons (lib/img_svg: paths, shapes, transforms, gradients, clip paths, group opacity, CSS, use / symbol, text with the UI's fonts; the image format IMGF_SVG for .svg / .svgz), ui.svg for sharp pictures at any size and the image viewer ui.image_view (zoom at the pointer, pan, fit / 100 % / zoom to a rectangle, scroll bars, keyboard, pixel grid)
- text: Subpixel (ClearType-like) text smoothing in the system's subpixel order on the window's framebuffer (Text::set_subpixel; headless only with jfgui_FONT_RGBA), and hyphenation: spell::Hyphenator (Liang's algorithm on TeX patterns and libhyphen's hyph_xx_YY.dic, results as libhyphen's), TX_HYPHENATE / TB_HYPHENATE, soft hyphens in every wrapped text, text::segment::wrap_end_hyph
- tools: The docs of the website as static pages: python build_rs.py site writes build/site/ (a start page, every guide, the app READMEs, changelog and roadmap as pages, the developer guide split per section, the API reference per crate with an anchor per item, search, the website's look in light and dark, phone layout); site --check checks every link, anchor and image, the links to the website, the HTML and that two builds are byte-identical, and runs in every test suite
- plat: plat::secret on Android and in the browser: Android keeps the values encrypted with a non-exportable AES-256-GCM key of the Android Keystore (one per app, no user authentication) in the app's no_backup folder; the web host keeps them encrypted with a non-extractable WebCrypto AES-GCM key per app in IndexedDB (decrypted for the app at start, changes committed asynchronously); secret_available() is true where the store works, the API is unchanged
- ui: A Markdown / HTML viewer (ui.markdown_view, ui.html_view, MdDoc: CommonMark with GFM tables, task lists, strikethrough and bare links, the HTML of the rich-text reader; headings, lists, quotes, highlighted code, tables, images through the VFS and img_svg, right-to-left paragraphs; selection and copy as text and HTML, links through the keyboard, only the visible blocks laid out) and lists whose rows have different heights (ui.vlist_begin / VListState: measured or given heights, anchored scrolling that keeps still when rows above change, 100 000 rows); a new record kind K_HEADING
- plat: plat::ime_commit_text: committed text of any length as input method commits of at most 4 KB (the bytes queued); the test script command commit "text" [N]
- ui: Headings reach screen readers as headings with their level on every platform: K_HEADING records (the Markdown / HTML viewer's headings and the new ui.heading(level, style, text) for section titles) become plat::a11y::Role::Heading with Node::level() instead of labels -- UI Automation Text elements with HeadingLevel1 .. 9 (AriaRole heading, AriaProperties level=N), AT-SPI2 role heading with the object attribute level:N, role=heading with aria-level in the browser's shadow tree, AccessibilityNodeInfo.setHeading on Android (API 26 / 27: the heading flag of a CollectionItemInfo)
- plat: The browser's own files of the user: in Chromium ui.filedlg / plat::file_dialog (FD_OPEN, FD_SAVE) and plat::web::pick_file show the system's pickers (File System Access API); the chosen file is /handles/ID/NAME, written back into the user's file on every change (write_file, AtomicFile, File streams; persist confirms it), its handle kept in IndexedDB across reloads, plat::web::reopen reads it again after asking for the permission from the user's gesture; Firefox and Safari keep the library's own dialog, imports and downloads
- plat: Android: content:// writes go through a journal in the app's data folder (the copy first, then the document written in place, read back and compared; a write a crash interrupted is finished at the next start, the document keeps its URI and grants), and names below a chosen folder are cached (each document checked once before use, forgotten on create / delete / rename, emptied when the provider reports a change through a ContentObserver)
- plat: Flatpak: every document of the documents portal's mount is allowed with fs.user inside the sandbox, so a file chosen in the portal's file dialog (a lasting document) opens again from ui.recent_add's list after a restart without a dialog; plat::persistent_name asks org.freedesktop.portal.Documents (Add, persistent) for the lasting name; the library's D-Bus client sends file descriptors
- text: text::segment::cluster_end: the end of the grapheme cluster that starts at a boundary (walks over a text without looking back)
- ui: Test scripts: bench N key CHORD [MAX_US] and bench N type "s" [MAX_US] time frames of key presses and typing; ui::code_long_check (tests) checks what the code editor keeps of long lines against a fresh look
- plat: plat::UiaTestElem::localized_type (tests): an element's LocalizedControlType
- netpkt: BPDUs of the spanning tree protocols (netpkt::stp): Configuration and TCN BPDUs of IEEE 802.1D-1998 and RST BPDUs of 802.1D-2004 with their flags and port roles, BridgeId and PortId, the path costs of 802.1D-2004 Table 17-3, validation as 9.3.4 says, the 802.3 / LLC frames to 01:80:c2:00:00:00; decode::layers shows every field and flag of a BPDU, decode::info sums it up
- netpkt: RIP messages (netpkt::rip: version 2 after RFC 2453 and version 1 after RFC 1058, requests and responses with their route entries, the authentication entry recognised, simple passwords read and written) and their dissection (decode::layers: a field per entry with its bytes and what a receiver refuses; decode::info: "RIPv2 Response, 3 routes")
- netpkt: Address and port translation of IPv4 packets in place (netpkt::nat: Flow::of / Flow::quoted, rewrite and rewrite_quoted with incremental checksums of the header, TCP, UDP and ICMP, ICMP errors with the packet they quote per RFC 5508) and checksum::update for a changed run of bytes
- base: Tree::find_mode(prompt): a mode by its prompt, so modes that parts of an app add need no fixed number
- plat: plat::audio: sound output on every target -- streams (Stream::open + write / write_i16 into a ring the platform drains, or open_fill with a callback on the audio thread; start / pause / stop / finish, volume, latency, played frames, underruns, the default device followed), short sounds mixed by play / play_file (WAV PCM and float, Ogg Vorbis), the system's sounds by sound(SOUND_*); Windows WASAPI, Linux the PulseAudio protocol (pipewire-pulse, WSLg), the browser an AudioWorklet (web/audio.js), Android AAudio (android/audio.c). ui.beep, ui.dialog_sound and ui.set_sounds play them from the UI; scripts check them with expect sound
- netpkt: ICMPv6 and Neighbor Discovery (netpkt::icmpv6: echo and the errors of RFC 4443 with their quote and the checksum over the pseudo header; router and neighbor solicitations and advertisements and redirects of RFC 4861 with the options source / target link-layer address, prefix information, MTU and redirected header; Nd::parse and check_ip with the receiver's validation as NdErr), IPv6 extension headers, the sender's fragments and reassembly (netpkt::ipv6: ext_headers, upper_layer, fragment, frag, Reassembly6 with RFC 5722's overlap rule), Ipv6::solicited_node, link_local_of / eui64_in (EUI-64 of RFC 4291) and Mac::of_ipv6_multicast; decode::layers shows every field and option, decode::info sums a message up
- base: IPv6 parameters in command trees: an address (X:X:X:X::X, Parsed::ip6) and an address with a prefix length (Parsed::prefix6); cmdtree::parse_ipv6 reads such an address alone
- netpkt: OSPF version 2 packets and LSAs (netpkt::ospf after RFC 2328 appendix A: the header with its checksum and authentication field, Hello, Database Description, Link State Request, Update and Acknowledgement, router-, network-, summary- and AS-external-LSAs with the Fletcher checksum, which of two instances is more recent) and their dissection (decode::layers: every field and every LSA with its bytes and problems; decode::info: "Hello Packet, DR 10.0.0.2, BDR 10.0.0.1, 3 neighbors")
- plat: The permission audio.output: an app with a PERMISSIONS manifest plays sound (plat::audio streams, play / play_file, the system's sounds, ui.beep) only with it, else AudioError::Denied, sound() false and one PERMDENY audio.output; ui.dialog_sound stays silent without a question; ask audio.output asks at the first sound; the Flatpak package gets --socket=pulseaudio only with the right
- tools: python build_rs.py i18n [APP|lib] [--update]: extracts the translatable texts of the apps (t / tc / tr / tf, message templates, tables, command and menu labels) and the library (tr against LIB_TEXTS) and reports missing, untranslated and unused rows and placeholders or plural forms that differ from the source; --update adds the missing texts as untranslated rows; the suite runs it with --check
- plat: OS sandbox from the permission manifest, opt-in per app with a sandbox / sandbox strict line: Linux Landlock (filesystem and TCP) plus seccomp syscall deny-list, Windows process mitigation policies (image load, extension points, dynamic code, child processes)
- ui: App themes without a style crate: ui::Theme (an INI file: colours of light, dark and high contrast, the accent through the style's ramp, corner radii, spacing, control heights, size / line / weight per text style, a font family from a file or the system) applied over any style from the next frame with ui.set_theme / load_theme / clear_theme and --theme-file, errors with the line in the UI language; several styles linked into one app (build_rs.py links every style_NAME the sources name) and switched at run time with ui.styles_add / set_style (Style::name, Text::set_embedded); base::Ini::items; script commands theme file / none, style, expect theme / style / token / pixel / same, rect with *
- plat: plat::screen and plat::hotkey: the monitor list (plat::monitors / ui.monitors: name, rectangle, work area, dpi, refresh rate, primary, a stable id; changes as UIC_SETTINGS with SET_MONITORS), global shortcuts (hotkey_register / ui.hotkey_register -> UIC_HOTKEY; RegisterHotKey, XGrabKey with the lock combinations, the GlobalShortcuts portal; the right input.global), a colour picked anywhere on the screen (pick_start / ui.pick_color -> UIC_PICK, the colour picker's pipette CP_PIPETTE; an overlay with a magnifier on Windows, a pointer grab on X11, Screenshot.PickColor on Wayland and in Flatpak, the EyeDropper in Chromium) and pictures of the screen (capture_start / ui.screenshot -> UIC_SCREENSHOT; BitBlt, GetImage, the Screenshot portal; the right screen.capture); the test scripts' system hotkey ID, system pick RRGGBB|cancel and system settings monitors
- gfx: Dc::begin_rows(sf, row0, h) and Dc::row0: a surface that holds a band of rows of a taller target, drawn with the target's coordinates (fills, blits, the rasterizer, panel_fx and glyph blits honour it); blend::copy_stream / stream_fence (simd): a row copy past the caches; Shapes::panel_fx starts its mask bands at the panel's first row whatever the clip, fill_rrect / stroke_rrect build their path only when a corner band is inside the clip
- text: Glyphs placed now and blended later by any thread: Text::record_n / record_icon fill a GlyphRec (layout, shaping and the masks into the glyph cache), Text::glyphs gives a read-only GlyphView whose draw blends them inside a Dc's clip; GlyphRec::valid tells whether the cache was flushed meanwhile
- netpkt: Destination address selection after RFC 6724 (netpkt::addrsel: scope, precedence and label of the default policy table, Dest and sort with rules 1, 2, 3, 5, 6, 8, 9 and 10, the order getaddrinfo tries the addresses of a name in)
- crypto: SHA-1 (crypto::sha1, Sha1, hmac_sha1; for protocols defined with it, broken for collisions), PBKDF2 over any hash (pbkdf2::<H>, pbkdf2_sha1), the AES key wrap of RFC 3394 (aes_wrap / aes_unwrap with its integrity check) and AES-CMAC of RFC 4493 (cmac_aes): what WPA2 and WPA3 need
- netpkt: EAPOL of IEEE 802.1X-2004 (netpkt::eapol: EapolView, the EAPOL-Key body of the 4-way handshake with its Key Information bits, which of the four messages a frame is, the MIC field and what it covers, RSN elements, GTK and IGTK KDEs, key data padding; eth::ET_EAPOL) and its dissection (decode::layers: every field, the Key Information bits by name, the RSN element and KDEs of plain key data; decode::info: "Key (Message 2 of 4)")
- ui: html_view: forms and images the app supplies -- <form>, <input> (text types, password, checkbox, radio, hidden, submit, image, reset, button), <textarea>, <select>, <button> and <label> become the library's own widgets in the text flow (MdDoc::forms / fields, the values in MdViewState: field_text / field_checked / field_selected and setters, form_data, reset_form; MdEv::field and MdEv::submit with an MdSubmit of action, method and the name / value pairs; Tab through links and fields, Enter sends, password fields never reach screen readers or the clipboard); MdViewState::images = MI_ASK / MI_APP asks the app for http(s) and data: images (image_requests, set_image: a placeholder with the alt text until the bytes come, then the block is laid out again)
- script: script::compile_with(name, src, globals) compiles a script against a host's own names (the built-ins and the standard library are known anyway); an unknown name is an error there instead of a warning. The standalone runner apps/jfs runs .jfs scripts on the command line (jfs FILE / -e CODE / -, --check): print and log on the console, config from the command line and JFS_CONFIG, timers on the real or a virtual clock, disk in memory or a JSON file, limits by flag, errors with line, column, source line and calls
- tools: Hot reload in development builds: python build_rs.py watch NAME [--target win|linux] builds again when a source of the app or of a crate it links is saved and starts the app again in its session; the app replays the recorded input (virtual clock; every event must reach the same widget, else it starts afresh), keeps the window placement, style, text scale and the inspector with its selection, and a failed build keeps the old version running with the error at the top of the inspector (tools/hotreload.py, lib/ui/hotreload.rs; never in --release)
- ui: Editing in the live inspector (development builds only: build_rs.py passes --cfg jfgui_dev, --release keeps it read-only): the tab Farben edits the theme's colour tokens (hex box, colour picker), a new tab Darstellung changes style, light / dark / high contrast, accent, language, the main window's scale, text scale, corner radius, spacing, control height, font family and text sizes through the app theme and the existing calls; changes are marked, reset one by one or all, undone and redone (Ctrl+Z / Ctrl+Y), saved as a theme file or copied as a list; the selected widget is operated through synthetic input (click, drag, a slider's value, typed text, cmd ID); script commands inspect set / reset / undo / redo / save / list / do and inspect expect changes / value / list
- netpkt: BGP-4 messages (netpkt::bgp after RFC 4271: frame for a message out of a TCP stream, OPEN with the capabilities of RFC 5492 -- multiprotocol, route refresh of RFC 2918, 4-octet AS numbers of RFC 6793 --, UPDATE with every path attribute in 2- and 4-octet form, AS_SET, the extended length bit and unknown attributes byte for byte, NOTIFICATION with the codes of RFC 4271 and the Cease subcodes of RFC 4486, KEEPALIVE, ROUTE-REFRESH; the checks of RFC 4271 6.1 to 6.3 as the NOTIFICATION a receiver sends) and their dissection (decode::layers: every message of a TCP segment of port 179 field by field with what a receiver refuses; decode::info: "OPEN Message, AS 65001, hold time 180, ID 1.1.1.1"; decode::P_BGP)
- netpkt: TFTP and FTP (netpkt::tftp: RRQ, WRQ, DATA, ACK, ERROR and OACK of RFC 1350 and 2347 with options, netascii, the shape of a transfer's packets after it left port 69; netpkt::ftp: commands, replies with the multi-line form, a reader for bytes in pieces, PORT, 227, EPRT and 229 of RFC 959 and 2428) and their dissection (decode::layers: every TFTP field and each FTP line, P_FTP, Proto::Ftp and FtpData; decode::info: Data Packet, Block: 3 (last); Request: USER anna)
- ui: ui.window_snap(id, area, dist): a tool window's edges snap to the edges of an area of its owner (corners on both axes) while the user drags it -- live on Windows (plat::win_move_hook, WM_MOVING) and in test scripts (movewin)
- plat: Linux (Wayland): a right press on a library-drawn title bar opens the compositor's window menu (move, resize, always on top, workspaces) as GNOME's and KDE's own windows do; plat::win_show_menu / window_menu (Linux)
- plat: Windows: an explicit AppUserModelID for installed and registered apps -- the app id of PACKAGE, set by ui::main! before the first window when install.ini beside the program names it (the setup) or --register registered it; the setup writes it into its shortcuts (System.AppUserModel.ID), its ProgIDs (AppUserModelID) and the user's taskbar pins of earlier versions, package.py into the setup's manifest; the jump list, plat::recent_* (SetAppID) and SHAddToRecentDocs (SHARD_APPIDINFO) use it; plat::taskbar::app_user_model_id / set_app_user_model_id, plat::inst::shell_link_id, link_read, link_set_app_id, pins_set_app_id, pinned_dir; jfgui_AUMID for tests
- ui: ui.recent_open(path) -> RecentOpen (Ready, Asking, Missing) with UIC_RECENT and ui.recent_reopened(): an entry of the app's recent list opened again -- in Chromium after a reload it asks for the permission of the user's file from the click; the app's list survives reloads in every browser (an emptied one too); on Android the lasting grant of a document is given up when its entry leaves the list (a folder's stays)
- plat: PERMISSIONS: the line recent gives a Flatpak the host's list of recent files (--filesystem=xdg-data/recently-used.xbel from tools/pkg_linux.py); nothing changes at run time
- text: Variable fonts: fvar axes and named instances, avar, gvar deltas on TrueType outlines (IUP, phantom points, composites), advances from HVAR or the phantom points, MVAR metrics and GPOS kerning deltas; Text::vary / vary_named derive an instance with a font id of its own (glyph cache entries, metrics, HarfRust shaping at its normalized coordinates), var_axes, var_instances, var_values, var_coords; FontDb::variations / var_values / load_var for installed variable faces (load and load_resolved map weight and italic onto wght, ital and slnt). Outlines, advances and coordinates match HarfBuzz 14
- ui: Variable fonts in the UI: FontSel.axes (weight -> wght, italic -> ital / slnt, the size -> opsz unless set), the font dialog lists a variable family's named instances as styles and gives every axis a slider with a number box (opsz with Automatisch), theme files take family.axes = TAG=VALUE, ... and a variable font file's wght for its semibold and bold faces
- update: Updates and signatures for the other package formats: lib/update follows the way a program is installed (update::install, plat::pkg::packaged) -- an AppImage replaces its .AppImage file with the channel's new appimage entry (trial, rollback, restart through the file; a read-only folder is Error::ReadOnly), a Flatpak checks, installs and starts the new version through the Flatpak portal's update monitor (Kind::Flatpak), an MSIX package or a Snap answers Check::Managed (App Installer, the Store, snapd); package.py signs AppImages as appimagetool --sign does (.sha256_sig / .sig_key, GPG) and lib/update checks that signature against the running AppImage's key (update::appimage_signature; OpenPGP RSA, ECDSA, Ed25519 with lib/crypto), signs the Flatpak repository and bundle (the bundle carries the key and the remote: flatpak_repo_url=), writes the MSIX .appinstaller (appinstaller_url=, OnLaunch) and an execution alias (msix_alias=); the PERMISSIONS variable $APPIMAGE
- ui: The live inspector shows where the app called the selected widget (development builds): the file and line from #[cfg_attr(jfgui_dev, track_caller)] on the library's widget calls, a composite widget reporting the app's call and not the library's inner one; copied, or opened with 'Im Editor öffnen' (jfgui_EDITOR with {file} / {line} / {col}, VISUAL / EDITOR, else CLion or VS Code as found) through the new plat::process::launch, which the app's permission manifest checks like Command::spawn; nothing is recorded while the inspector is closed, and --release builds carry no #[track_caller]; script commands inspect editor / open / expect source|opened|note
- netpkt: Mail (netpkt::smtp: commands, MAIL FROM / RCPT TO paths with their parameters, replies with the multi-line form and enhanced status codes of RFC 3463, a reader for bytes in pieces, EHLO keywords with SIZE, 8BITMIME, PIPELINING and AUTH, the server's stream of commands and DATA with dot-stuffing both ways, AUTH PLAIN and LOGIN of RFC 4954; netpkt::pop3: commands, +OK / -ERR, multi-line responses with dot-stuffing, which commands have one, a reader with the client's expectations (RFC 1939, 2449); netpkt::imf: messages of RFC 5322 with folded fields, addresses with display names and groups, the Date form both ways, Message-ID, encoded words of RFC 2047, quoted-printable, base64, multipart parts and a plain-text draft in UTF-8 as 7bit, 8bit or quoted-printable) and their dissection (decode::layers: each SMTP line with its command, code and enhanced code, the lines of a message after DATA, each POP3 line; decode::info: C: EHLO pc1, S: +OK 2 messages)
- ui: Frames, collapsible groups and a backdrop in ui.diagram: the node flags DN_FRAME (a labelled frame around other nodes, hit on its title bar of DiagramState::frame_bar and its border only, its inside the background; an outline in the overview, a screen-reader record over its title bar), DN_TOGGLE (a collapse button, dg_toggle_rect, DEv::Toggle), DN_STEP (moves by whole grid steps), DN_RESIZE (a handle at the bottom right of a selected node, DEv::Resize) and DN_OUTLINE (an outline in the overview), and DgPaint::paint_under for what lies under the grid in the backing store; diagramtest --frames (tests/frames.uis)
- netpkt: SNMP (netpkt::ber: the BER of RFC 3417 with the types of SNMPv2-SMI and the three exceptions, OIDs in SNMP's order, a strict reader and a writer of shortest forms; netpkt::snmp: SNMPv1 and SNMPv2c messages -- Get, GetNext, GetBulk, Set, Response, the Trap of version 1, SNMPv2-Trap, Inform and Report -- with error statuses and trap OIDs mapped between the versions after RFC 3584; netpkt::mib: a small built-in MIB of SNMPv2-MIB, IF-MIB, IP-MIB and IP-FORWARD-MIB with names, syntax, access, lookup by name and net-snmp's output form) and its dissection (decode::layers: every field and binding with the objects' names on ports 161 and 162; decode::info: GetRequest 4660: SNMPv2-MIB::sysName.0)
- ui: Windows inside an area of a window (ui.desk_begin / desk_next / desk_end, DeskState, DeskWin, DeskEv): title bar with icon, title and buttons, moving, resizing at every edge and corner down to a minimum size, maximising (also by a double click), minimising, z-order with click-to-front, snapping to the area's edges and halves, Alt+F6 / Alt+F10 / Alt+F9 / Alt+-, screen-reader records per window, the state as text; a taskbar (desk_taskbar_begin / desk_taskbar / desk_taskbar_end) with a button per window, a menu, overflow and room for the app's own items; the painters StyleShell::desk_* and taskbar* (stock and NetLab)
- ui: Full screen for the main window and tool windows (ui.window_fullscreen, UWS_FULLSCREEN, UIC_FULLSCREEN when the platform or the user changes it; plat::win_cmd WCMD_FULLSCREEN / WCMD_WINDOWED): Windows a borderless window over its monitor with the old placement and style restored, X11 _NET_WM_STATE_FULLSCREEN, Wayland xdg_toplevel set_fullscreen / unset_fullscreen, the browser's Fullscreen API (REQUEST_FULLSCREEN, jfgui_fullscreen); headless runs record it (script: expect window ID fullscreen / windowed, system fullscreen on / off)
- script: Language services for jfs (script::ls): an index of a script's declarations and uses by its scope rules, also on code that does not parse; definition (into imported modules through a loader callback), references, rename with refusals, completion (names in scope, the host's globals, the library, methods by a literal's type, keywords), hover with signatures and /// doc comments, signature help, folding ranges and the symbols of an outline; a German description of every library name; script::fmt::format lays scripts out anew, refuses syntax errors and keeps the program the same
- ui: Code editor language services: ui.code_editor_with with a CodeAssist (completion popup, hover texts, signature help), ui.code_events (go to definition, rename, format, breakpoint clicks), CE_BREAKPOINTS and CE_FOLDS; CodeDoc keeps breakpoints, an execution line and folding ranges that follow edits, folds lines out of view, caret moves and find, and applies several edits or a new text as one undo step (apply_edits, replace_text); CodeTheme gets breakpoint, exec_line and exec_mark
- base: base::pattern: shell wildcards (glob, has_glob: fnmatch without flags) and POSIX basic and extended regular expressions without back-references (Regex::new / is_match / find / find_at, leftmost-longest; a Pike VM, so no expression takes exponential time; ReErr::text in GNU grep's words) for the shells of JFNetworker's hosts
- script: Modules for jfs: import(path) gives another file's top-level names as a map (names with _ stay private), runs each normalised path once per VM inside the importing invocation (same fuel, limits, heap; yields and pauses like a call), resolves relative paths from the importing file, refuses a cycle with the chain and reports errors with the module's file, line and column; the host reads the files (Host::load), the runner apps/jfs from the file system (.jfs files only), JFNetworker from the device
- script: A debug interface of the script VM (script::debug): the line table (Program::line_table, break_lines), breakpoints by file and line (also in modules not loaded yet, with a jfs condition), request_pause, step Into / Over / Out, run returning Status::Paused(Pause) also in the middle of its fuel (a paused and resumed run equals an uninterrupted one), the call stack, locals, upvalues and globals with repr / preview / children, and eval of a read-only expression in a frame; without breakpoints the VM runs as fast as before (coretest --bench vm)
- script: Tests in jfs: assert(cond, msg) and assert_eq(a, b, msg) in the standard library (assert_eq compares lists and maps by content and names both values); the runner runs the test_* functions with jfs --test FILE... (each in a fresh VM, a summary, exit code 1 on a failure) and has a console debugger (jfs --debug FILE)
- ui: An HTML document of the viewer keeps its element tree (ui::MdNode handles that stay the same across changes; MdDoc::by_id, select / select_first / select_in / matches with tags, classes, ids, attributes and descendant / child combinators, set_text, set_attr, add_class / remove_class / toggle_class, create_element, insert, remove, free, set_inner_html; MdDoc::update derives the blocks again, in place for a change inside one paragraph); MdViewState::doc_mut / update keep the view's place, selection, focus and the fields' values across changes (page scripts of a browser)
- ui: A subset of CSS in the HTML viewer: <style> sheets and style attributes with selectors by tag, class, id, attributes and descendant / child combinators, the cascade by specificity, source order and !important, the text's properties inherited, display:none; boxes for block elements (ui::MdBox, MdDoc::boxes: margins, padding, borders per side, backgrounds) drawn around their blocks in light, dark and high contrast themes, at any text scale and in mirrored windows
- text: CFF2 fonts (variable CFF outlines such as Noto Sans / Serif CJK VF, which Fedora installs): the CFF2 table (Top DICT, 32-bit INDEXes, FDArray with blend in its Private DICTs, FDSelect formats 0 / 3 / 4, global and local subrs, maxstack, the VariationStore) and charstrings with vsindex and blend at an instance's coordinates (Text::vary, the font dialog, FontDb::load_var); advances from HVAR; .otf files and collections (.ttc / .otc) load, FontDb lists their faces (FDFF_CFF2, cache version 3) and the fallback finds them; limits on the stack, subr depth, blend operands and regions; tested byte for byte against CFF fonts with the same outlines (tools/cff2_fixtures.py) and against HarfBuzz / FreeType (tools/cff2_crosscheck.py)
- ui: The test script command expect same FILE.png X Y W H compares a part of the main window with a shot taken with the same crop
- plat: Browser and Android: system notifications (ui.notify / plat::tray::notify through the Notification API -- the permission asked for from the user's click, a click focuses the tab -- and Android's NotificationManager with a channel and POST_NOTIFICATIONS on API 33+, a tap opens the activity; clicks UIC_NOTE, closed or refused UIC_NOTE_GONE), the system's settings live (prefers-color-scheme, prefers-contrast, forced-colors with its system colours, prefers-reduced-motion, the default font size; Android's night mode, font scale, animator duration scale 0, high-contrast text, the dynamic colours' accent; UIC_SETTINGS, the jfgui_* overrides still win), the screen kept on (plat::inhibit: the Screen Wake Lock, taken again after visibilitychange; FLAG_KEEP_SCREEN_ON and a partial WakeLock) and the lifecycle (a hidden tab / Android's onStop as UIC_SUSPEND 2, back as 0; onPause / onResume as UIC_ACTIVE; the script commands system background / foreground)
- ui: Linux: the library's own title bar follows GNOME's button-layout (buttons left / right, missing ones hidden, mirrored in RTL) and action-double/middle/right-click-titlebar from the settings portal (GTK's settings.ini without it), live through SettingChanged; jfgui_BUTTON_LAYOUT and jfgui_TITLEBAR_*_CLICK override them
- plat: Linux: light / dark and the accent without a settings portal from GTK's gtk-4.0 / gtk-3.0 settings.ini and KDE's kdeglobals, followed live through inotify
- gpu: lib/gpu, a GPU layer with a Vulkan backend on Windows: adapters and feature levels (Basis / Voll), devices, buffers, textures, samplers, bind groups and a bindless table, compute and render pipelines (dynamic rendering, vertex pulling), command lists with indirect draws, timestamps, swapchains with vsync, device-lost handling, pipeline constants (WGSL overrides, SPIR-V SpecId, converted as WebGPU does) checked against the module's entry points and workgroup limits, subgroup features and limits, compute pipelines with a required subgroup size; jfgui_GPU=0 switches it off, jfgui_GPU_VALIDATE=1 enables the Khronos validation layer (docs/GPU.md)
- ui: on Windows, windows show their frames through a Vulkan swapchain by default (jfgui_GPU=0 turns it off): the UI still rasterizes on the CPU and the picture stays pixel-identical, the first frames use the CPU path while a worker builds the device, and any failure, Remote Desktop or a missing Vulkan falls back to the CPU path (docs/GPU.md "Ausgabe der UI"); layers above the base and big images that keep being redrawn get GPU textures of their own, so a closed popup costs no upload (jfgui_GPU_LAYERS=0 turns this off); Ui::fb() can lack such an image's pixels, Ui::gpu_settle() draws them; ui.canvas_gpu (lib/ui/canvas.rs) keeps a canvas in GPU tiles while it pans or zooms, used by image_view, the diagram, Kritzel and PaintCraft, with the CPU's picture back 180 ms after the last move (jfgui_GPU_CANVAS=0 turns it off, docs/GPU.md "Leinwände"); on Linux the same output goes through dmabuf over JFLib's own Wayland and X11 code (zwp_linux_dmabuf_v1, DRI3 and Present), on by default, so programs with a UI now link against glibc;
--staticbuilds them without the GPU for systems without glibc (docs/GPU.md "Ausgabe unter Linux") - gpu: lib/gpu runs on Linux with Vulkan, without windows for now: an app with a file apps/NAME/GLIBC links dynamically against glibc (build_rs.py makes the stubs, every import at GLIBC_2.2.5, pthread threads, libvulkan.so.1 through dlopen), every other program stays static (docs/GPU.md "Linux")
- gpu: lib/gpu runs on Android: libvulkan.so through dlopen (a phone without it gets NoLoader, the program still starts), VK_KHR_android_surface and a real swapchain;
gputestis a plain executable foradb shellthere (apps/gputest/tests/android.py). - ui: on Android, windows show their frames through a Vulkan swapchain by default, on a SurfaceView above the View and its Bitmap, with layers, images and canvases as elsewhere; no Vulkan 1.1 or no usable adapter: the Bitmap path as before, a driver that kills the program gets two tries (
files/gpu-state). Through the GPU the frames have the view's whole resolution, the Bitmap path keeps its limit;GPU_DEFAULTandGPU_FULL_RESOLUTIONinGalleryActivitydecide (docs/GPU.md "Ausgabe unter Android"). An Android manifest may not require Vulkan: the build stops. - tools:
jfgui_TEST_ANDROID=SERIALruns the Android GPU tests inbuild_rs.py test,jfgui_ANDROID_PACKAGE=NAMEbuilds a test APK under another package, beside an installed one. - gpu: lib/gpu runs in the browser through WebGPU:
ShaderModule::from_wgsl,Instance::prepare(true at once on Vulkan), no SPIR-V at run time and no Vulkan in the bundles; what WebGPU lacks saysUnsupported(docs/GPU.md "Ausgabe im Browser"). - ui: in a desktop browser, windows show their frames through WebGPU by default, on a canvas above
#screen, with layers, images and canvases as elsewhere. The program does not wait for WebGPU; none or no usable adapter: the old path. If nothing reaches that canvas, the page notices and the run goes on through the old path.DEFAULT_ON_BROWSERdecides, phones and tablets stay on the old path until one has been tested,?gpu=0|1in the address overrides both, runs with?agent=1stay on the old path. - ui: drawing a canvas back into the framebuffer keeps a scrolling parent's clip (all targets; it stood under a header until the next full frame).
- web: the canvas lies on whole device pixels at any scale: the picture was resampled at 110, 125 and 175 %, text looked soft.
- shader: lib/shader: a SPIR-V module builder (SPIR-V 1.3 to 1.6), a disassembler, a structural validator, std140 / std430 layouts, specialization constants (also for the workgroup size), shader::reflect (entry points, specialization constants and their values), the shaders of the GPU benchmark scene and texture sample shaders with CPU references (docs/SHADER.md)
- plat: plat::win_native: the HWND and HINSTANCE of a plat window, for GPU surfaces
- wgsl: lib/wgsl, JFLib's WGSL compiler: lexer, parser and checker after the W3C WGSL specification (every type, constant evaluation, overrides, the built-in functions, layouts, entry points), German diagnostics with line and column, the uniformity analysis with diagnostic filters, subgroups, the spec's implementation limits, a fully typed IR and a back end to SPIR-V 1.3 and 1.6 (wgsl::compile: one module per entry point, WGSL's runtime rules, bounds-clamped indices and texture coordinates, overrides as specialization constants with their values computed by name or @id, WebGPU's pipeline checks); Diagnostic::render shows the source line, with suggestions for misspelled names; the benchmark shaders in WGSL (docs/WGSL.md)
- netpkt: URI references as RFC 3986 reads them (netpkt::uri: parsing, resolving a relative reference, remove_dot_segments, percent encoding, HTML's form encoding) and the Content-Type of a file by its extension (netpkt::http::mime_of)
- netpkt: netpkt::eap (RFC 3748 packets, EAP-MD5 data, EAP-PWD exchanges), EAPOL Start, Logoff and EAP PDUs, netpkt::radius with EAP-Message pieces, VLAN attributes and MS-MPPE keys, netpkt::imap (IMAP without I/O: lines with literals, commands, responses, sequence sets, FETCH items, SEARCH keys, ENVELOPE)
- crypto: crypto::eappwd (the sums of EAP-PWD, RFC 5931) and the group of crypto::p256 (y_for_x, on_curve, mul_point, add_points, neg_point, scalar_add, scalar_ok)
- eapm: lib/eapm: EAP-MD5 and EAP-PWD as peer and server state machines without I/O
- ui: The document view reports the element a click hit (
MdEv::click,MdDoc::element_at), andMdDoc::dom_sizethe size of its tree - script: Several scripts in one VM with one scope of top-level names (
Vm::add_script), as the <script> elements of a page - netpkt: Cookies as RFC 6265 reads them, without I/O and a clock (
netpkt::cookie:SetCookie::parse,parse_date,Jar, SameSite from RFC 6265bis as far as a small browser needs it) - netpkt: TLS 1.3 without I/O and a clock (
netpkt::tls: aCorefor both sides, TLS_CHACHA20_POLY1305_SHA256, X25519, Ed25519, a seed gives the same bytes) and certificates of a private PKI (netpkt::x509);decodedissects TLS records - ui: Style sheets from outside for the document view:
MdDoc::sheet_links,MdDoc::set_sheet(a text counts where its<link>stands),MdDoc::style_of(what the cascade gives an element) - ui: Fingers on the desktop: the recogniser's two-finger gesture (
ui.touch_two,TwoFingers),TF_REST,TF_HOLD_LONGandui.touch_hold_part(WF_TOUCH_HOLDwaits 600 ms and shows it), touch targets of 44 DIP from the background, a tap stays a click when the finger rolls within the slop, the pen comes first (a palm does nothing), the on-screen keyboard follows a finger's focus, the script commandspinch,pan2,expect keyboard - plat: Fingers on Windows and Linux:
WM_POINTERofPT_TOUCHinstead of the system's mouse emulation (lib/plat/win_touch.rs; a finger over a window frame belongs to the window under it, a window follows a finger throughbegin_move/begin_resize,touch_keyboardthroughInputPane),wl_touchon Wayland (main and child windows, popups), XInput 2.2 touch on X11 - build:
tools/touchcheck.py: real contacts throughInjectTouchInputon a real window, no touch screen needed; skips with a message when the desktop is locked or the window covered - JFNetworker: Hardware of devices, the foundation of the software-architecture lab: CPU cores with a run queue, RAM with swap and an out-of-memory kill (
res.rs), a project setting "Hardware simulieren" and figures per device, a resize with a reboot or live, the faultsSlowCpuandMemHog, the servers Rack-Server S, M, L, XL and a NAS,top,free,lscpu, series_host, scenario stepsresizeandfault cpu|mem; a project without hardware runs byte for byte as before - JFNetworker: The lab in the window: forms for the lab's services and a dialog "Dienst hinzufügen" (a form changes only what it shows, the service's own check and defaults, it says whether a change goes in live or restarts the device), tiles that bring their service when placed, a panel Experimente (parameter sweeps without JSON, runs on worker threads with progress and cancel, runs kept by name in the project, comparisons with saturation, latency and utilisation charts, the CSV of
jfn-sim sweep), the template "Größer oder mehr?", and the Metriken panel shows p99.9, latency bars, the disk and the use of the cables - JFNetworker: Parameter sweeps, the measuring engine of the architecture lab: an experiment (
.jfnex, or a project'sexperiments) names axes of hardware, a service's config and the number of backends, load levels, timing and an SLO;jfn-sim sweepandJFNetworker --sweeprun every configuration from one warm state on clones of the engine on worker threads, at full speed, with the same bytes for any number of threads; results per point: quantiles to p99.9, errors, CPU, run queue, memory, disk, cables and locks, the knee, a cost from a table of assumed prices, as a table and CSV.Service::reconfiguretakes a new config without a restart (http-server,http-load,lb,cache,worker), which the window tries before it restarts a device. New scenario steps for changes under load:load set,lb add|drain|remove|enable|weight|algo,kv set,svc set,cache clear. - JFNetworker: More devices in the catalog, all manufacturer-neutral with fixed ports: JF-S8 (unmanaged, no command line), JF-S8P, JF-S24, JF-S48P, JF-S24M (2.5G, PoE++), the leaf and spine L3 switches JF-S48Y and JF-S32C, the branch router JF-R2, the firewalls JF-FW2 and JF-FW8, the access point JF-AP7 (802.11be), a repeater and a bridge without a command line, symbols for the small boxes
- JFNetworker: Choosing a cable first: a Kabel part in the palette (Automatisch and a tile per kind) sets the Verbinden tool with that kind, the port choice offers only pairs it fits and what cannot fit is refused with its reason at the target. New kinds appended (serial with a chosen DCE or DTE end, telephone, coax, DAC, AOC), Media::Rj11 and Media::Coax with a cable modem and a DSL modem, a category (Cat5e .. Cat8, OM3, OM4, OS2) and a colour on the link, the project setting Auto-MDI-X aus; old files load unchanged, the golden reports stay as they are
- ui: A double click on the background of ui.diagram (DEv::DoubleClick with the world point of the second press), DN_HITMIN for small nodes that stay selectable at low zoom, ui.focus_quiet (the keyboard focus without the ring after a pointer gesture)
- ui: A card or list row that does one thing when it is chosen: ui.action_card with CardDesc (title with icon and badge, a text wrapped or cut, a caption at the far end, a picture area), for start pages and the like
- JFNetworker: Firewall rules in the window: a Firewall tab in the device window of firewalls, routers and L3 switches. Rules shows what protects which interface and each access list as a grid with its hit counters, remarks and the implicit deny; rules are added, edited, duplicated, moved and deleted in a form, a raw line for what the form cannot hold. NAT has forms for sides, pools, PAT, static translations and port forwarding, and the running translations with a clear button. Test says which rule meets a packet without sending one, through
Acls::probe, the function the engine's filter acts on. Every step runs as command lines on the device's console and is one undo step; the lines are shown. The engine behaves as before - JFNetworker: A real firewall on the firewall models: interfaces belong to zones, between two zones traffic is dropped unless a policy of a zone pair lets it through, inside a zone it passes, the device itself is the zone self. Commands in the familiar zone-based form (zone security, zone-pair security, class-map and policy-map type inspect, match protocol, match access-group; inspect, pass, drop, reject, each with log), in the running configuration and through the startup configuration. Connection tracking: inspect starts a session, TCP follows its states with timeouts, UDP and ICMP have timers, half-open sessions are limited, sessions expire lazily on virtual time. Zones decide after routing and before the source is translated, so they see inside addresses in both directions. IPv6 too. Events and simulation mode show the decisions, log goes to the device's log and syslog, debug policy-firewall, show zone security, show zone-pair security, show policy-map type inspect zone-pair [sessions], clear zone-pair, new entries in Probleme. The Firewall tab gets the parts Zonen (a picture of who may talk to whom, forms for zones, classes, policies and pairs) and Sitzungen, and Test also says what zones and sessions say. A device without zones behaves as before. No application inspection, IPS or next-generation features. Linux hosts get a small ufw on the shell with the same sessions.
- JFNetworker: The Akademie's first part: courses as files (
course.json, lessons inde/anden/, labs, pictures;index.jsonand its checksums defined for later), every path checked to stay in the course's folder, a bad course gives its message and hurts nothing else; the list of courses, an outline with states and progress, lessons, a lab step with a bar over the canvas, progress indata://academy/progress.jsonwith a reset;--academy-dir,jfn-sim course, a sample course inapps/JFNetworker/academy - ui:
ui.markdown_fit(how high a document view must be to show a short text without scrolling),ui.radio_wrapandui.checkbox_wrap(a mark beside a text that wraps) - JFNetworker: The Akademie's second part: quizzes and tests as files (
quiz/*.json: single and multiple choice with partial credit, text patterns, numbers with a tolerance, order; both languages together;jfn-sim coursenames every mistake) on a page of native widgets, with a time limit, attempts and a best result; fault hunts: a.jfnetwithstart_faultsapplied at load as actions,lock(Probleme, faults, answer network), the check kinddiagnosis, graded by handing in; a step'srequires; the sample course has one of each - ui: A catalogue can offer the library's languages (
Catalog::with_library_languages): the library's texts and mirroring follow the user there, the app's own texts show their English column;tfalls back to the library, then to that column.AppDesc::translated,i18n::menu,commands,tfandlisttranslate static tables and filled texts - rt: One table of the Linux kernel ABI per architecture (
rt::kernel, also asrt::os::*): system call numbers, open flags,Stat, the order of clone's arguments, x86-64 and ARM64;platandgpudefine none of it themselves,build_rs.py checkrefuses a number as a system call;tools/kernel_table_check.pycompares the table with the kernel's headers - update:
update::fetchis public for an app's other downloads:get(redirects, a limit),download(resume with Range, SHA-256 while writing,Progresswith a cancel flag),join, documented in docs/UPDATES.md;Error::TlsandError::TooLargetell a refused certificate and an answer over the limit from other network failures, with the same text as before. The updater behaves as it did - plat:
renameof amem://folder moves it with everything below it, as on disk - JFNetworker: The Akademie's third part: installing courses, from the web (
index.jsonfromtools/academy_index.py, every file checked for size and SHA-256, no network without a click, the question ofask net.connectwith that click, the address a setting) or from a folder, through the same code (jfn_run::install, alsojfn-sim course-install,course-list,course-remove); an old version stays until the new one is complete and checked; updates, uninstalling with the progress kept, resuming; a list of what can be installed that also works offline; external links open only after a question that shows the address; leaving with a test under way asks first; "Aufgabe erstellen" can add a diagnosis - build:
build_rs.py --arch x86_64|aarch64(default x86_64):lib,app,allandpluginbuild foraarch64-pc-windows-msvcandaarch64-unknown-linux-gnuintowin-arm64andlinux-arm64; the build stops inrtfor now,run,testandwatchrefuse it (docs/ARM64.md) - ui:
ui.window_title_height(flags): a window's title bar, higher with a finger, for what is laid out below it - PaintCraft: The menus Ansicht, Bild, Ebenen and Korrekturen show a colourful icon for every command, Originalgröße a 1:1 (own artwork in tools/gen_pn_icons.py, which now writes generated.rs itself); code points of its own (PN_*) are drawn in greys on disabled rows, the bar of the Ebenen window uses the same icons
- ui:
ui::main!andrt::main!also take the manifest and PACKAGE from a file named by a build script (JFGUI_PERMISSIONS_FILE,JFGUI_PACKAGE_FILE), and a build withoutpanic = "abort"ends with a message that names the missing setting (docs/CRATES.md, CR0) - build: jflib-build, the build script of a Cargo project: PERMISSIONS and PACKAGE checked with the line, assets/ as JFA1 with LZ4, res/app.ico without a resource compiler, the linker arguments for Windows, Linux (static or against glibc) and the browser; the crate jflib carries a template project, docs/GUIDE.md and docs/API.md; tools/crates_accept.py builds that template from the packed crates in the full suite (docs/CRATES.md)
- build: cargo-jflib, the tool for a JFLib app outside this repository: cargo jflib new (the template with the app's name), test (tests/*.uis) and web (scalar, SIMD and threads with its own core library, the host, the licences; --serve); crates_accept.py installs it from the packages
- build: cargo jflib android: an app made with cargo jflib new as an APK (its library through cargo rustc, the C bridge with the NDK, javac, d8, aapt2, zipalign -P 16, apksigner with a debug key or jfgui_ANDROID_KEYSTORE, --install through adb; the manifest from PACKAGE and PERMISSIONS); crates_accept.py builds it from the packages and checks the APK
- build: cargo jflib package: an app outside this repository as a setup for Windows and a .deb for Linux with every style built in (JFLIB_STYLE), previews by --shot, the licences of every crate, PACKAGE's keys of tools/package.py; the .deb written without dpkg-deb; crates_accept.py installs the setup by script and checks the .deb with dpkg-deb
- build: cargo jflib package --formats msix,appimage,rpm,flatpak (or all): an AppImage per style written without Linux tools (SquashFS with LZ4 behind the runtime jflib-appimagert), the rpm's .spec and tarball and the Flatpak manifest (rpmbuild and flatpak-builder on Linux or in WSL), the MSIX by MakeAppx; finish-args and capabilities from PERMISSIONS, AppStream metainfo
- build: cargo jflib package --sign, --repo DIR, --update DIR and cargo jflib keygen FILE: Authenticode for the programs, the setup and the MSIX, GPG for the AppImages, a flat apt repository and the Flatpak repository, a signed update channel per style (Ed25519 by a small program built from jflib-crypto); crates_accept.py checks every signature with signtool's table, gpgv, apt-get and update_manifest.py
- build: cargo jflib watch [-p PKG] [-- ARGS]: hot reload for an app outside this repository (tools/hotreload.py's session, built like cargo run, a failed build kept out with build.txt, Ctrl+C asks the app to end); crates_accept.py runs it headless under a script
- docs: What the crates on crates.io promise (docs/VERSIONING.md): the facade jflib as API.md documents it, jflib-build and cargo jflib; the guide shows the crate way first, a foreign crate's own system calls pass by plat (only the sandbox line confines them)
- crates: apps of your own may use std and any std crate: the feature std of jflib (std's entry, panic handler and allocator; ui::main! and rt::main! stay, plat::std_start, rt::panic_hook, rt::Alloc), cargo jflib new --std; the library stays no_std (docs/GUIDE.md, An app with std)
- build: docs.rs: every published crate names JFLib's four targets in [package.metadata.docs.rs] (jflib, rt, plat, ui and gpu with std, so plat::std_start shows and Linux shows the glibc build), jflib's page is its README, jflib::guide is docs/GUIDE.md with its links into the repository; python tools/crates_accept.py --targets docs documents every package as docs.rs does (offline, nightly, DOCS_RS=1); keywords and categories for jflib, cargo-jflib and jflib-build; every crate's homepage is https://jflib.org (from the root's [workspace.package])
- Foundation:
#![no_std]crates without libc for Windows, Linux (X11 and Wayland), the browser (WebAssembly) and Android: the immediate-mode UI with interchangeable styles, a software renderer, text shaping, image codecs from PNG to JPEG XL, effects, documents and DOCX, networking (HTTP/1.1, TLS 1.3, SSH-2, DNS), cryptography, compression, an embedded database and backup repositories; screenshots, widget dumps and.uisscripts for tests, and opt-in agent control (JSON, MCP). - Permissions and security (roadmap 1): the app manifest
apps/NAME/PERMISSIONS, enforced byplatin every program of an app (files, programs, URL schemes, plugins, printing, secrets, autostart,net.connect/net.listen); questions at run time with remembered answers; rights for plugins and agent actions; passwords and tokens in the system's secret store (plat::secret). - Files and resources (roadmap 2): one file namespace (
app://,config://,data://,cache://,logs://,mem://, the user's folders, mounts, overlays, ZIP archives), app assets built into the program, the user's standard folders, the recycle bin (plat::trash), streamed file I/O with progress and cancellation (plat::aio). - Desktop integration (roadmap 3): one instance per app, file types and URL schemes (also registered without a setup), the system's recent files, a notification-area symbol and notifications, drag and drop between widgets and programs, keeping the system awake, starting at login, taskbar progress, badges and jump lists.
- Text and fonts (roadmap 4): glyph fallback, input methods on X11, font aliases and
languages, the system's font rendering settings, a font picker and font dialog, Unicode text
segmentation in text boxes and wrapped text, spell checking (Hunspell dictionaries, the Windows
spell checker,
TB_SPELL); JFLib Sans (Selawik with the missing code points built in) as the text font of the winui and macos styles. - Internationalisation (roadmap 5): system languages, regional formats, plural rules and message catalogues, mirrored windows for right-to-left languages, sorting by language, Unicode case mapping, the library's own texts in nine languages.
- Widgets and layout (roadmap 6): a grid box, an undo history, easing curves, docking panels in tab groups and floating tool windows, popups that leave the main window, a diagram canvas (nodes, ports, edges, selection, minimap), a terminal widget, multi-colour vector symbols and the netlab style.
- App framework (roadmap 7): a log framework and lifecycle hooks, typed settings, saved window
state, widget ids from names, async tasks in the event loop (
ui.spawn,plat::task). - Delivery and updates (roadmap 10): signed app updates with rollback (
lib/update), code signing (Authenticode, a signed apt repository, the Android release key), packages as AppImage, Flatpak, MSIX and RPM.specnext to the Windows setup and the.deb. - Accessibility (roadmap 11): the UI for screen readers through AT-SPI2, UI Automation, an ARIA shadow tree in the browser and Android's accessibility nodes; the system's contrast, accent, motion and text size settings; the caret for screen magnifiers.
- Network tools: packet codecs from Ethernet to TCP with a dissector and pcapng files
(
netpkt), deterministic random numbers, typed JSON. - Developer experience (roadmap 12):
python build_rs.py new NAME --kind window|console|tool|serviceandnew --lib NAMEcreate apps and library crates that build and pass their test right away;build_rs.py test NAMEtests one app; the library's version (lib/VERSION,ui::VERSION,plat::VERSION) andrt::app_version!()for an app's ownversion=; the SemVer policy (docs/VERSIONING.md), API snapshots andbuild_rs.py api-diff; this changelog withbuild_rs.py changelogandbuild_rs.py release.
Changed#
- build: The facade's
docs/GUIDE.mdanddocs/API.mdlie in git as copies (lib/jflib/docs), socargo publish --workspacetakes them from any checkout;tools/gendoc.pywrites both API.md,python tools/crates_accept.py --templatethe guide,build_rs.py checkcompares them - spell: Spell checking agrees with Hunspell 1.7 on real dictionaries (COMPOUNDRULE, compound flags, forbidden words, CHECKCOMPOUNDPATTERN ...) and checks and suggests faster; suggestions come from a worker, so the menu opens at once
- img_core: img_core::icc_xform: ICC_BI_ADOBE is now ICC_BI_A98 and ICC_BI_PROPHOTO is ICC_BI_ROMM (the same values; names of the standards instead of trademarks)
- ui: ui::KIND_NAMES has 23 entries: the new record kind K_HEADING (level as the value, dump name heading) of the Markdown / HTML viewer; K_KIND_COUNT is 23
- plat: plat::a11y::Role has the new variant Heading (the level in Node::value, Node::level()); a match over every role needs an arm for it
- ui: The fixed limits of a pass grow as needed: keys of one pass (16 before), commands (32), timers (16), pointer positions, hit boxes, widget records, clip levels, tabs of a tab bar, known canvases and wrapped lines; their ceilings (1024 keys, 65536 commands, 4096 timers ...) only stop runaway apps, and whatever a ceiling or a fixed nesting depth (windows, popups, menus, lists) holds back is reported once with a UIWARN. Due timers fire by deadline, equal deadlines in the order set; the script command keys [N] CHORD... queues many keys for one pass
- plat: In Chromium plat::file_dialog answers FD_PENDING for FD_OPEN / FD_SAVE (the system's pickers) instead of -1; code that calls it directly polls plat::file_dialog_poll as on Android (ui.filedlg does)
- plat: Presenting copies the dirty rectangles once, straight from the framebuffer: X11 into the MIT-SHM segment that lacks them (no shadow image), Wayland into a free wl_shm buffer that waits for its commit (no kept copy), the browser and Android keep window pixels as RGBA (one swap, no composition for a single window, one pooled buffer per frame); Windows keeps its WM_PAINT copy in a DIB section (BitBlt). plat::present_time() measures it (linuxtest --test pbench / pcheck, tools/tests/web_present.mjs).
- ui: Scroll copies: when only a scroll view's content moved, the pixels it still shows are moved in the framebuffer and only the band that came into view and what really changed are drawn, byte-identical to a full redraw (lib/ui/scrollcopy.rs); scroll views, lists, data views, the hex view, vlist, the Markdown and code views and multi-line text boxes take part, own widgets through ui.scroll_copy_begin / scroll_copy_end; only cells with text, icons or images are copied and the measured cost per view decides between copying and drawing (code editor at 3840 x 2160: wheel frames 3.3 -> 1.9 ms); the script command expect scrollcopy [N]|none
- ui: Large redraws render on several threads: from about 3 million dirty pixels on (1.5 x 1920 x 1080; 750 000 in a framebuffer of more than 16 MB such as 4K), render_live cuts the dirty rectangles into row bands that the worker pool draws into buffers of their own (ui/render_par.rs), byte for byte what one thread draws; texts and font icons are placed on the UI thread first, custom Draw objects, icons an icon hook or the style paints and glyphs too large for the glyph cache are drawn on the UI thread (their bands up to the first of them on the workers; the API is unchanged); jfgui_RENDER_PAR=0 turns it off, =1 forces it, =2 renders every frame both ways and warns about a differing byte; one thread in the browser without shared memory and on Android. A render leaves the text font the passes set (before, the font of the last text or custom draw it reached stayed set, which depended on the dirty rectangles)
- netpkt: netpkt::decode::Proto has the new variant Bgp (bit P_BGP, TCP port 179); a match over every protocol needs an arm for it
- base: base::metrics::Window makes its slots with the first value (a window that never got one holds no memory, so an engine with a resolver window per device copies fast); Window::bytes() tells the heap memory a window holds
- plat: plat::assoc::reg_entries takes the program's AppUserModelID as a sixth argument ("" = none) and names it in each ProgID
- update: A manifest entry of a kind lib/update does not know is left out instead of refusing the whole update.json, so later kinds do not break older programs
- plat: plat::autostart_set / autostart_get / autostart_entry switch an MSIX package's StartupTask through WinRT (StartupTask.GetAsync, RequestEnableAsync, Disable, State over raw COM on an MTA thread) instead of answering Unavailable
- netpkt: netpkt::decode::Proto has the new variants Smtp (TCP ports 25 and 587) and Pop3 (port 110), both with the bit P_MAIL (1 << 28); a match over every protocol needs arms for them
- ui: ui::DEv has the new variants Toggle (a collapse button of a DN_TOGGLE node) and Resize (the handle of a DN_RESIZE node), ui::DHit Toggle and Resize; a match over every event or hit needs arms for them
- script: script::Diagnostic, Error and TraceLine carry the file of their position (file), Status has the variant Paused, Host has load (with a default); exhaustive matches on Status and struct literals of Error and Diagnostic need the new parts; messages of single files are unchanged
- ui: A dock tab, or the empty part of a dock's tab strip, can drag only after the button was held for 300 ms (
DOCK_HOLD_MS): a click that slips no longer moves or floats a panel. At 300 ms the tab shows it (the move cursor,DOCK_TAB_HOLDin thesp.flagsofStyleShell::dock_tab), movement before that does not count, Esc ends the hold; clicks, double clicks, the menu and the splitters need none. Scripts:drag ... hold MS(orwaitafterdown) - JFNetworker: The title of JF-FW says what a firewall does today, a router with access lists and NAT; zones and stateful filtering come with milestone F2
- build: The demos (gallery, datagallery, editortest, docktest, dndtest, diagramtest, svgtest, spelltest, fontpicktest, template, androidGallery, mdviewtest, audiotest, prefstest) have English catalogues and no old names in their texts; they follow the user's language in a window, headless runs stay German, and tools that drive real windows, browsers or phones pin German
- build: The browser host's own texts (its bar, its status line) follow the browser's language, and it hands the page's language list to the worker, so a test's emulated locale reaches the app; Arabic and Hebrew stay out of
with_library_languagesin the browser, whose bundle has no font for them - plat: Linux: the system calls ARM64 does not have are gone on x86-64 too (open, poll, fork, mkdir, unlink, rename, readlink, access, dup2, chmod):
openat,ppoll,clone,mkdirat,unlinkat,renameat2,readlinkat,faccessat,dup3,fchmodat, helpersrt::os::{poll, fork, clone, dup2, rename} - script: The name
dbamong the predeclared names of the host API (script::GLOBALS), for hosts that offer a database - styles: The fonts and the icon set the styles share moved from
styles/winui/assetsinto the new cratelib/style_assets(style_assets::ICONSandFONT_*); winui, macos, classic and kde use its statics, so every style crate can be packed on its own (docs/CRATES.md, CR0) - build: Every library crate, style and module has a Cargo manifest, the root Cargo.toml is their workspace and the new crate jflib brings all of them; build_rs.py reads its crate table from the manifests and still compiles with rustc itself (docs/CRATES.md)
- rt: The library's version moved from lib/VERSION to the root Cargo.toml; rt::VERSION reads CARGO_PKG_VERSION, build_rs.py sets it for rustc
- build: Every app, its further programs (BINS), its own crates and the styles jfoffice, backupcraft and netlab are Cargo packages of the workspace with a build.rs through jflib-build; build_rs.py new writes them, check compares them with the sources; themedemo starts with style_winui::STYLE
- build: build_rs.py builds the Windows and Linux programs (static and against glibc) through Cargo, one cargo build per target and run; jflib-build writes the linker map; --rustc compiles with rustc as before
- build: build_rs.py builds for the browser, Android and the jxlenc module through Cargo too; for the browser and Android it makes each app a library package of its own in a workspace below build/
- build: build_rs.py builds only through Cargo: style variants and --profile too, PaintCraft's Rust plugins as packages (jflib-plugin, jflib-plugin-NAME); the direct rustc path and
build_rs.py ideare gone, rust-analyzer reads the workspace - build: The setup stub's code is the crate jflib-installer (lib/installer, installer::main!); apps/installer only links it, cargo jflib package builds the same stub
- build: The AppImage runtime's code is the crate jflib-appimagert (lib/appimagert, appimagert::main!()); apps/appimagert only links it
- build: jflib shows simd, text_shape and style_assets no more (#[doc(hidden)]) and of each style only STYLE; build_rs.py check keeps what it shows equal to API.md, api-diff leaves out the repository's plugin ABI
- api: #[non_exhaustive] on the enums that grow (172 of 284: every error enum, gpu, wgsl, shader, the open lists such as widget events, roles, states, formats); a match on one needs a _ arm. The document model, protocol messages and closed alternatives stay exhaustive (docs/VERSIONING.md)
Removed#
- script: The script language left the library:
lib/scriptis nowapps/jfs/crates/script, an app-local crate of thejfsapp that JFNetworker, coretest and editortest still name asscript; it is no longer part of docs/API.md (docs/CRATES.md, CR0)
Fixed#
- build:
build_rs.py releasewrites cargo-jflib's version into Cargo.lock as well (before,cargo --lockedfailed after a release) - JFNetworker: A device with many TCP connections, TIME-WAIT among them, spent its time looking for the next deadline on every segment; a load generator with thousands of requests in flight looked through its connections for each one. Both find them at once now: such runs take a seventieth to a five-hundredth of the time, with the same reports.
- rt: Small blocks of the allocator live in 64 heaps with a lock each, chosen by the stack's address, instead of one lock for all: threads that allocate all the time no longer wait for each other (a simulation's sweep took as long on 4 threads as on 1, and now under half).
- JFNetworker: A closed-loop load generator no longer stops for good when its target goes away and requests fail as they are made (no route, ARP gave up): it tries again every 100 ms
- JFNetworker: A script service with http.serve no longer stops after about 11 000 requests: what the service makes for a callback is collected also when the callback allocates nothing itself, and a request the handler cannot start for (heap full, frame too large) is answered 500 instead of staying open
- JFNetworker: At a full script heap nothing stays behind any more: callbacks of http.request, dns.resolve and disk run with the limit's text as err (they stayed pinned and never ran, a res waiting for them stayed open), a new connection is closed, one whose data does not fit is aborted, and the close callback still comes (with nil for its reason when that does not fit)
- script: The collector also runs for allocations the host makes between runs (Vm::new_str, new_map ..), so a host's arguments no longer fill the heap of a script that allocates nothing itself; what the host made since the last run stays alive until the next run, a value it took out of a pin only while the pin holds it
- tests: The cancellation, wake-up and download checks of plattest and coretest no longer race on a loaded machine
- ui: Text scale 150 to 200 %: bar chart column labels no longer run into each other (every k-th one, the first and the last kept, inside the chart; value steps a line apart), badges, grid headers, navigation items, segmented items, tabs, info bars, legend entries and text box placeholders that do not fit end with an ellipsis instead of a cut through a glyph, badge and navigation pills grow with the text (Ui::dp_text), donut centre texts stay inside the hole
- ui: The weekday toggles (ui.weekday_toggles) wrap their seven buttons (BOX_WRAP) where the row has less room than they need, instead of running past the edge of a narrow card
- ui: Typed text is never dropped: a long insert or input method commit (beyond 64 characters, a burst of WM_CHAR on Windows, an IBus commit over 4 KB) reaches text boxes and editors whole and in order; a pass takes up to 4096 characters, the rest comes in the next passes, also what a widget leaves with a smaller ui.text_take cap
- web: Browser: long text (a 5000-character insert, emoji, combining sequences) reaches the app whole as commits instead of one event per character; in Firefox, typing, inserting and IME compositions in a field of the ARIA shadow tree reach the app (the input event Firefox sends after compositionend no longer undoes the committed text)
- plat: X11 and Wayland no longer lose input when one socket read brings more than about 85 key presses (a burst of synthetic keys, a client flooding input, also while the backend waits for a reply): plat's 256-event ring has an overflow queue that keeps the order (up to 65536 events; plat::evq_dropped counts what is lost beyond)
- ui: The code editor stays fast on very long lines: a line of 100 000 characters or a 1 MB single-line file (minified JSON / JS, long log lines) types, moves the caret, selects, scrolls sideways and finds in about a millisecond per pass instead of up to a second (7000 characters) or minutes (100 000): only the part of a line in view is drawn, the columns and tokens of long lines are kept and worked again near an edit only, bracket matching tokenizes a line once; text::segment's grapheme and word functions look only near the place instead of from the line start (they made every column lookup quadratic)
- plat: UI Automation's LocalizedControlType of dialogs, switches and headings and AT-SPI2's GetLocalizedRoleName follow the UI language (the library's nine languages) instead of German and English strings: plat::a11y::ROLE_TEXTS / role_name / set_translator, ui hands the bridges i18n::tr
- ui: Closing the main window with its title bar button or Alt+F4 while the app keeps it open ("save changes?") shows what the app opened at once; before, it appeared only with the next input or timer
- plat: Wayland: tool windows (WF_TOOL) are child windows -- a subsurface of their owner placed where the app says (GNOME, KDE and WSLg centred every owned toplevel on its owner, so PaintCraft's docked palettes all opened in the middle); kept inside the owner, moved and resized by the library with the mouse or a pen (title bar, edge grips, the UI's window_snap; on mutter, KWin and Weston as on sway / wlroots, whose pointer positions during a grab keep the place of the press -- told apart once with the relative-pointer protocol), the keyboard goes to one after a click on a text box or window_activate as on Windows and back to the owner when it is activated; positions and sizes on whole physical pixels (also at integer scales); child windows of a destroyed owner are never shown again; popups of child windows; plat::WST_CHILD (positions relative to the owner); jfgui_WL_TOOLWIN=toplevel keeps toplevels
- plat: Wayland at a fractional scale (125 %, 150 %): menus, lists and tooltips that leave the window were shown at the next integer scale (too small, over a correct copy); popups get a viewport like the windows
- plat: Wayland at a fractional scale: windows, child windows and popups are shown pixel for pixel (the viewport's source is exactly the logical size, child windows sit on whole physical pixels); before, every size or position whose physical value was not whole was stretched by a fraction of a pixel and blurred
- plat: Linux: the system's light / dark choice -- GNOME's "Default" style (color-scheme 0, no preference) is light, as for GTK, unless the GTK theme is a dark one (Yaru-dark); plat::theme (the UI's 'follow the system', e.g. PaintCraft's colour scheme Standard) uses the settings portal's answer (of the last system settings read; headless runs never ask it, so shots stay the same everywhere) instead of only GTK_THEME, so switching back to Standard in the app follows the system again
- plat: Linux: dead keys are composed (´ e -> é, ^ o -> ô, ` a -> à, ¨ u -> ü ..., Space or the same dead key gives the character, anything else both; a held dead key does not repeat) as on Windows when no input method composes them; X11 hands IBus the dead keysym (all dead keys of the keymap); plat::xkb_key_typed, xkb_dead_reset, xkb_is_dead, xkb_dead_keysym
- plat: Linux: wake-ups from other threads (plat::wake: worker results, the single-instance hand-over, SIGTERM at logout) could stop for the rest of the run -- the eventfd was read after the flag was cleared, so a wake() in between left the flag set and every later one silent
- plat: Linux: programs started with plat::process get SIGPIPE back at its default and no blocked signals (a producer in
a | headended as it should); the PATH lookup takes the first executable file, as execvp; fs::set_mode also changes files the owner may not read (mode 000 / 0200), sockets and devices (O_PATH, no open); every thread has its own alternate signal stack, so a stack overflow on a worker thread is reported like one on the UI thread - plat: Linux: the folder watch (plat::watch) ends the watches of a folder moved away; before, events below it named paths that no longer existed
- plat: Wayland: menus and tooltips at an integer scale without the fractional-scale protocol (GNOME 42/43, sway 1.8, KDE before 5.27, Weston/WSLg at 200 %) ended the connection (wl_surface.invalid_size) when their pixel size was odd: popups get a viewport there too, else a padded buffer; a window shown again after it was hidden acknowledges its first configure before its last frame comes back and reports a size it brings (E_RESIZE); waiting goes on while the main window is hidden (no busy loop, owned windows and the clipboard keep being served); minimize does nothing where the compositor cannot minimize (sway: xdg_toplevel.wm_capabilities) instead of hiding the owned windows; the anchor of every popup stays inside the window geometry; a protocol error is reported with the compositor's message instead of "connection lost"
- plat: Wayland drag and drop and clipboard: a drop whose source stops sending is given up after 10 s instead of blocking every later drop; a drop whose data could not be taken (too large, empty) is not finished as done, so a moving source keeps its data; a paste of large data times out only after 3 s without data, not after 3 s in all; 16 clipboard transfers at once (a clipboard manager takes every format)
- plat: X11: a minimized window comes back with WCMD_RESTORE / window_activate (the tray's bring_to_front showed nothing and un-maximized it instead); a drop of more than about 1 MB between the app's own windows no longer replaces the main window's event mask (no input afterwards); a drop from a source that stopped answering is given up after its first timeout instead of 3 s per type; a drag of the app whose target does not answer ends 2 s after the release, and when another client grabs the pointer; hot keys and the colour pick on the root time-stamp the next clipboard claim; the screen size follows RandR changes (a capture of the whole screen after a monitor change); a late answer to an earlier paste is not taken for the current one; pointer motion of a window that is gone is not reported for the main window; WM_CLASS names the app in both parts (KDE grouped every jfgui app together)
- plat: Linux desktop integration: file dialog filters match the extension in any case (GNOME's file chooser compares globs case-sensitively: IMG_0001.JPG was hidden by "jpg"); the file dialog gives up when the portal goes away instead of waiting forever; tray_supported is whether a StatusNotifierWatcher runs (GNOME without the AppIndicator extension: false, tray_set too) and follows it; the tray symbol is registered by the connection's own name when the pid name is taken (Flatpak); notifications and the tray icon use the .desktop id; a portal that does not answer at session start (screenshot, colour pick, global shortcuts, document portal) is asked again later instead of being taken as missing for the whole run; IBus works again after
ibus restart(a new input context) - tools: Fake-bus checks (tools/platshared): every fake bus listens before the program under test starts, so a loaded machine no longer turns a missed connection into a passed 'no service' check (secret_bus none); ibus_bus's X11 run keeps the lifecycle thread off (its session connection took the one-connection bus); portal_bus expects the case-insensitive file-chooser globs
- tools: build_rs.py finds the crates a source set names in one scan instead of one regex per crate: the crate table (all_libs, asked once per app build) took about half a minute on a 2-core machine, now about a second -- build_rs.py test / all spent most of their first half hour there; the tables are the same for every app
- plat: Linux: the font folders fontconfig's files name (<dir>, <remap-dir> in /etc/fonts, its conf.d and ~/.config/fontconfig) are scanned too -- NixOS / Guix have no /usr/share/fonts, Debian keeps TeX fonts in /usr/share/texmf -- and in Flatpak the host's fonts under /run/host; before, those fonts were missing from the font list and the fallback
- plat: Apps with a PERMISSIONS manifest may read fontconfig's files (/etc/fonts, ~/.config/fontconfig) and the hyphenation patterns (plat::spell::hyphen_dirs, new: hyphen below the XDG data folders); before, the font aliases and per-language choices fell back to the built-in rules and hyphenation found no patterns
- update: An exe or bundle update is no longer offered or put in place while the program runs as an AppImage (it wrote the extracted copy in the cache, the .AppImage stayed old), a Flatpak or a Snap (read-only: the staged update was tried at every start); check() answers Check::NoPackage
- ui: Wayland: menus and lists taller than their window are no taller than the screen (the window's position is unknown there): a long list (the font list of a combo box) scrolls instead of hanging off the bottom of the screen
- ui: A spinner or running progress bar out of view (scrolled away, clipped) no longer keeps the loop at 60 wake-ups a second
- rt: Linux: text written to a non-blocking stdout / stderr that is full waits for the reader (poll) instead of spinning on sched_yield; plat::read_stdin waits on a non-blocking stdin instead of failing (the agent transport ended)
- plat: Linux: plat::recent_add creates the folder of recently-used.xbel before it takes the lock; without $XDG_RUNTIME_DIR (ssh, cron) the lock lies beside the file, and on an account without ~/.local/share nothing was ever recorded
- plat: Linux: plat::secret works with KDE's Secret Service (ksecretd, KWallet 6): about every second call failed, 1 in 256 stored a value under a wrong key -- ksecretd writes its Diffie-Hellman value with a sign byte (129 bytes), refuses shorter ones than 128 bytes and hashes the shared value without leading zeros; the value of the service is read without leading zeros, plat's own never starts with a zero byte and a shared value that does opens a new session
- plat: Wayland: windows come to the front through xdg-activation -- the launcher's $XDG_ACTIVATION_TOKEN (Plasma's menu, KRunner, Dolphin, GNOME's shell; KWin 6 gives a new window the keyboard only with it) is used for the first window and removed from the environment; win_activate / ui.bring_to_front raise and restore a minimized window (before nothing happened: the tray's 'show window' and a click on a notification left it minimized) with the token KDE's tray (ProvideXdgActivationToken) or the notification server (ActivationToken) gave, else one asked for with the last input; a later start of an AF_SINGLE_INSTANCE app hands its token to the running instance
- plat: The library builds with Rust 1.99 too: Atomic*::fetch_update, deprecated there (renamed), is try_update (already in 1.98)
- plat: plat::instance builds for the web and Android again (the stand-in casts of encode / decode)
- ui: Linux: the caption buttons of a frameless window win over the resize band (their top row and the close button's corner started a resize before); no band on the tiled edges of a tiled window; jfgui_CSD=1 also asks for no system frame (X11, Wayland's xdg-decoration)
- netio: DNS servers on IPv6 link-local addresses work: the zone of resolv.conf (fe80::1%eth0, %2) and of the Windows adapters' DNS servers reaches the socket address (SocketAddr::scope, sin6_scope_id); plat::net::ip_scope_parse, if_index, local_addrs, dns_servers
- ui: The document view: the accessible name of a link at the start of a list item no longer holds the list's marker
- tools: A development build no longer leaves a broken incremental cache behind when rustc is killed during ThinLTO: rustc overwrites the last good session's keys through a hard link, its next run then kept stale objects and exited 0, and every app linking that crate failed with undefined symbol anon..llvm.; build_rs.py now detects the killed session and discards the crate's cache before compiling
- text: Generic families (monospace, sans-serif) no longer resolve to a font without Latin letters: Fedora puts Noto Sans Arabic first in them, and hex views, terminals and code then showed proportional text in tall rows. FontDb marks such faces (FDFF_NOLATIN, font cache version 4) and takes them last, except for emoji and math.
- text: FontConf puts the <default> and append_last families of a family further in the list at the end of the whole list, as fontconfig does: on Fedora monospace no longer continued with the sans-serif families before the monospace ones.
- ui: Agent control on real windows: without App::action_revision the revision no longer counts frames, it moves when the controls change or an agent's change ran, so ui.click, ui.type and ui.key work with the revision read last (--agent); uiRevision and sinceUiRevision likewise
- ui: ui.click reports a click only when its press reaches the widget: it asks the hit test the press will meet (clipping, layers, open popups, modal windows, second windows, right to left), a widget out of view is scrolled in first, otherwise unavailable with details.reason, point and what lies there; presses for a second window go to its platform window
- ui: A screen reader's click that no widget takes (a record whose id is not its hit box, a link of a document) is pressed only where the press reaches the record: a scroll view brings it into view first, and nothing is pressed when another widget lies in its middle; scrolling a widget into view (focus, ui.click) takes no further passes when its margin does not fit at the content's end
- JFNetworker: A lab opened from the start page before the dock's first frame now brings its Aufgabe panel forward; in a lab whose network has nothing scheduled the goals are judged when a console shows its prompt again
- ui: PaintCraft reads
--langandjfgui_LANGlike every app and gives the library its language; its catalogue is complete again - styles: Classic: the menu bar on a title bar (PaintCraft) is readable: white on the navy half of the gradient, black on the light half and on an inactive window's greys, in both themes;
ui.titlebar_opentells a style the bar being built - base:
f64_formatandf64_parseare bit-exact again for x64 programs under the emulation of Windows on ARM, whose x87 registers hold only doubles: the portable code then does the same steps - ui: A window that was hidden came back white on the GPU output until its next frame (a swapchain's image does not return with its window): it goes back to the CPU path while nobody sees it, also when the system hides a tool window with its minimised owner (
WST_HIDDEN), and every window appears with its picture - plat: A finger on a tool window's frame stays with the window under the finger: Windows moves such a contact's position onto the frame and keeps it off by that, so its contact rectangle counts, and the frame is never the system's;
jfgui_TOUCH_LOG=1says where a finger went - plat: plat links kernel32 through raw-dylib everywhere: a Windows program needs no import library, so no Visual Studio and no Windows SDK
- build: cargo jflib web and android ship the font and icon licences of the styles (OFL-*.txt, DejaVu-LICENSE.txt, LICENSE-FluentSystemIcons.txt in the style crates' assets/)
- plat: plat::web::RequestStatus is exhaustive again: jflib-ui did not compile for the browser and Android since the enums became #[non_exhaustive]
- ui: An app with std on Linux shows its UI through the GPU as well: ui's build script turns on the glibc build there (jfgui_glibc, as plat's and gpu's do), and ui's gpu and shader dependencies are there on every Linux build, since Cargo's [target] tables cannot see a build script's cfg
- HTTP servers linger after an error answer, so the client can read it.
- App assets stay byte for byte the same in every checkout (no line-end conversion).
Security#
- plat: Wayland: the sizes of the shared-memory buffers of windows and popups are computed without 32-bit wrap-around; a frame whose buffers would pass the protocol's 2 GiB pool limit stays unshown instead of being copied past the mapping
- plat: Windows: the single-instance pipe is used only when the SIDs of both processes were read and are equal (two failed lookups counted as the same user); device names and spell-checker strings are scanned with the length limit checked before each read