Skip to content

Fix 6 clippy warnings in AVX-512 microkernels - #6

Merged
AdaWorldAPI merged 1 commit into
masterfrom
claude/setup-adaworld-ndarray-5IxqY
Mar 16, 2026
Merged

AdaWorldAPI merged 1 commit into
masterfrom
claude/setup-adaworld-ndarray-5IxqY

Conversation

@AdaWorldAPI

Copy link
Copy Markdown
Owner
  • Remove useless .into() on u16/u8 mask args (already correct type)
  • Remove identity + 0 on array index offsets

cargo clippy -- -D warnings now passes clean.

https://claude.ai/code/session_01QnZH2adQ6oXzTYPkLTH6G7

- Remove useless `.into()` on u16/u8 mask args (already correct type)
- Remove identity `+ 0` on array index offsets

cargo clippy -- -D warnings now passes clean.

https://claude.ai/code/session_01QnZH2adQ6oXzTYPkLTH6G7
@chatgpt-codex-connector

Copy link
Copy Markdown

You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard.
To continue using code reviews, you can upgrade your account or add credits to your account and enable them for code reviews in your settings.

@AdaWorldAPI
AdaWorldAPI merged commit 2831a3c into master Mar 16, 2026
AdaWorldAPI pushed a commit that referenced this pull request Mar 23, 2026
#1 VML wiring: Wire F32x16/F64x8 SIMD types into scalar VML loops
  - vsln: 16-wide via simd_ln_f32
  - vdsqrt: 8-wide via F64x8::sqrt()
  - vdabs: 8-wide via F64x8::abs()
  - vssin/vscos: batch load/store via F32x16 (scalar per-lane, SIMD framework)
  - vspow: 16-wide via exp(b*ln(a)) using simd_exp_f32 + simd_ln_f32
  - 7 new tests covering SIMD paths

#5 columnar_view: Zero-copy Arrow interop
  - SoakingBuffer::as_columnar_slice() / as_columnar_slice_mut()
  - PlaneBuffer::as_binary_slice()
  - 3 new tests for zero-copy view correctness

#6 simd_apply: Generic fused SIMD kernel
  - simd_apply(a, b, out, Fn(F32x16, F32x16) -> F32x16)
  - simd_apply_unary(x, out, Fn(F32x16) -> F32x16)
  - simd_apply_inplace(a, b, Fn(F32x16, F32x16) -> F32x16)
  - Proper tail handling via zero-padded SIMD
  - 6 new tests (add, FMA, sqrt, inplace, empty, tail-only)

#10 prefetch: Explicit _mm_prefetch in cascade_query
  - prefetch_t0/t1 wrappers (x86_64 SSE, no-op elsewhere)
  - Stroke 1: prefetch PREFETCH_DISTANCE=4 candidates ahead (L1)
  - Stroke 2: prefetch next survivor's data (L2)
  - Stroke 3: prefetch next survivor's data (L1)

All 51 targeted tests pass. Scorecard: 4/10 → 6/10 done.

https://claude.ai/code/session_01CdqyUTUfjKZuk8YGJzv6LB
AdaWorldAPI added a commit that referenced this pull request Mar 23, 2026
AdaWorldAPI pushed a commit that referenced this pull request Mar 30, 2026
Tactics 1-12 from the 34-tactic integration plan, adapted to ndarray:
  styles::rte  — #1  Recursive Thought Expansion (Hofstadter)
  styles::htd  — #2  Hierarchical Thought Decomposition (CLAM)
  styles::smad — #3  Structured Multi-Agent Debate (NARS revision)
  styles::tcp  — #5  Thought Chain Pruning (Berry-Esseen)
  styles::irs  — #9  Iterative Roleplay Synthesis (XOR binding)
  styles::mcp  — #10 Meta-Cognition (Brier score calibration)
  styles::tca  — #12 Temporal Context (Reichenbach tense)

Plus additions to existing modules:
  causal_diff.rs — #4  reverse_trace() (Pearl Rung 3)
  bgz17_bridge.rs — #6  inject_noise() (simulated annealing)
  nars.rs — #7  adversarial_critique(), #11 detect_contradiction()
  cascade.rs — #8  adaptive_resolution()

Every tactic is fn(Base17, NarsTruth) → result. No LLM prompting.
16 tests passing. API: crate::hpc::styles::rte::expand() etc.

https://claude.ai/code/session_01M3at4EuHVvQ8S95mSnKgtK
AdaWorldAPI pushed a commit that referenced this pull request Sep 4, 2026
… section

Two hygiene gaps, both found while closing out the #293/#294/#295 arc.

1. Board backfill. `.claude/blackboard.md` and `.claude/board/AGENT_LOG.md`
   contained ZERO mentions of the W1.5 signature primitives — all three PRs
   landed with no board entry, in violation of CLAUDE.md's Agent Protocol
   ("write decisions to the blackboard, not just to chat"). A session reading
   the blackboard would not have known signature_pde or randomized_signature
   existed. Entries added for #293, #294 and #295, carrying the decisions,
   the measured numbers, and the loose ends.

2. Contract-section correction. The W1.5 section of
   `.claude/knowledge/vertical-simd-consumer-contract.md` still described all
   three primitives as future work "gated on jc Pillar 11 activation". That
   gate opened 2026-05-07 (lance-graph jc/src/lib.rs:26), and #6 and #7 have
   shipped. The section is regraded in place with the workspace's existing
   ⊘-blockquote convention: original sketches kept verbatim, each followed by
   a correction block, rather than silently rewritten.

The correction worth carrying forward: this doc's API sketches have now been
wrong the same way TWICE. Both #6 and #7 were sketched as f32/F32x16 while
the real consumer (lance-graph crates/sigker) is f64/Vec<f64>, so both
shipped on F64x8. #294 additionally found the sketch wrong about buffer
ownership (projections are materialized once per encoder and reused, not
re-derived per step) and about shape (k is runtime, so the hot path is a
k×k GEMV, not a single-register update). W1.5-#8's `I16x16` sketch is
therefore marked UNVERIFIED — 2-for-2 miss rate — and must be read off
crates/sigker/src/log_signature.rs before any implementation starts.

Also recorded: W1.5-#8 is unblocked, not deferred; and #295 merged ~5s after
leaving draft, so its 100% docstring figure is a manual /// scan rather than
bot-confirmed.

Markdown only — no source, tests, or build files touched.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_016WkNBjHc2e3zuyz9i8qJEv
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants