Commit e4c5f01
committed
feat(hpc): implement jitson shopping list — SIMD upgrades + terrain templates
Phase 1: AVX-512 upgrades to byte_scan (64 bytes/cycle), property_mask
(VPTERNLOGD + VPOPCNTDQ), and palette_codec (generic unpack/pack all
bit widths 1-8).
Phase 2: nibble.rs gets AVX2 batch unpack (32 nibbles/cycle), AVX2
threshold scan, AVX-512 sub_clamp (128 nibbles/cycle), and new
nibble_propagate_bfs composing existing SIMD kernels for light BFS decay.
Phase 3: aabb.rs gets AVX-512 batch intersect (16 candidates/iter) and
new Ray struct + ray_aabb_slab_test_batch for projectile collision.
Phase 4: spatial_hash.rs gets query_radius_simd with AVX2 batch squared
distance filtering.
Phase 5: jitson/noise.rs gets TerrainFillParams (baked biome params for
JIT terrain fill) and CompiledNoiseConfig (flattened octave params for
JIT compilation).
All SIMD paths dispatch at runtime (AVX-512 > AVX2 > scalar), include
SAFETY comments, and have parity tests. 1219 lib tests pass, clippy clean.
https://claude.ai/code/session_01CdqyUTUfjKZuk8YGJzv6LB1 parent 99de5f3 commit e4c5f01
9 files changed
Lines changed: 1534 additions & 6 deletions
File tree
- .claude/prompts
- src/hpc
- jitson
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
| 101 | + | |
| 102 | + | |
| 103 | + | |
| 104 | + | |
| 105 | + | |
| 106 | + | |
0 commit comments