makepad/platform/script/compute/tests/support
2026-10-24 04:29:42 +02:00
..
ai_corpus.rs script (compute): kernels accept the code an AI naturally writes -- plain objects (let CAM = {fov: 40, pos: vec3(0,1,5), clip: {near: 0.1}}), nested, and arrays of them (fields in any order) are constants: reads by a constant path fold (CAM.pos.y; CFG.steps as a loop bound), a runtime index reads a shared table; local and helper-passed objects work. Local fns and closures (fn ease(t){..}, let f = fn(x){..}) capture params and locals by reference, call each other and may mutate captured vars; a top-level let f = fn(..) is fn f; const inside bodies. A literal written with a decimal point makes its operation float (i / 4.0 was silently integer division). Still errors, each naming the field or function and why: string fields, functions stored in objects, fields computed from params or time, prototype objects (Camera3D{..}), mismatched array-of-object fields, function values passed or returned, closure recursion. Tests: tests/ai_style.rs with a 28-kernel corpus of natural kernels (each with hand-computed values, bit-equal on the interpreter, native scalar, NEON and wasm), the error messages, and a seeded source-level generator (objects, tables of objects, colours, vec lets, helpers with early returns, closures, if-expressions, swizzles) checked against a Rust evaluation; before this 15 of the 28 failed. Checked: cargo test --release -p makepad-script-compute --features vm (all; generator 300 rounds, plus 5,000 rounds once); -p makepad-script-audio-aot. 2026-10-01 12:55:02 +02:00
fractal.rs work: JIT safety (invalidated code traps and parks, fuzzer + fatal checker, W^X), JIT memory round 2 (trim-epoch hand-back, fresh-chunk rebuild, O3 job leaks, domain THP), cost-based decaying tier-up, race speedups, web export shipping profile (static closure + post-opt, env drivers, subpath fix), per-host SIMD width in Splash kernels, AI hub Claude backend, fractal parity, Story menu + theme picker, skin sizes, Sandbox 166 fixes, arm64 SIGBUS fix, webview + window fixes 2026-10-24 04:29:42 +02:00
geometry.rs work: JIT safety (invalidated code traps and parks, fuzzer + fatal checker, W^X), JIT memory round 2 (trim-epoch hand-back, fresh-chunk rebuild, O3 job leaks, domain THP), cost-based decaying tier-up, race speedups, web export shipping profile (static closure + post-opt, env drivers, subpath fix), per-host SIMD width in Splash kernels, AI hub Claude backend, fractal parity, Story menu + theme picker, skin sizes, Sandbox 166 fixes, arm64 SIGBUS fix, webview + window fixes 2026-10-24 04:29:42 +02:00
kernel_gen.rs relax campaign batch (verified tree 1ecaff6094: Mac land set + x64 tests 332/0, diff_fast o1/base/o3, rwbench checksums every tier): PGO piece 1 (counted tier -> layout/RA/inliner), SETTLE (O3 burst, hot fns no longer stuck at O2, optimizing N% title), TAIL-A4, VEC7 shared vector backend (14.4k lines deleted), COLD, PROVLAYOUT (provided handle structs built in JIT code), INSPECT-LOCALS (real local values), Stage deck-present hang fix, FMA NaN-sign fixes, program heap keeps large blocks 2026-10-22 15:59:11 +02:00
wasm_case.rs script: Splash VM heaps, isolates and lazy system modules 2026-10-13 12:26:21 +02:00