Merged
Conversation
Add a new example demonstrating the full herkos pipeline with a numerically substantive algorithm: - fft.c: radix-2 Cooley-Tukey DIT FFT (no libc/libm) - Twiddle factors via Taylor series + recurrence - Bit-reversal permutation - In-place butterfly passes (12 stages) - Magnitude via __builtin_sqrtf (→ Wasm f32.sqrt) - Compilation: clang to wasm32-unknown-unknown (1.1 KB binary) - Transpilation: herkos generates memory-safe Rust (no unsafe) - Integration: Rust host writes signals, reads spectrum Key features: - Zero unsafe code in transpiled output - Memory isolation enforced by type system - Three test signals: 1000 Hz, 440+2000 Hz, 3520+880 Hz - Performance: ~420µs per FFT on modern CPU - Accuracy: peak frequencies correct to ~1 Hz (bin resolution) Suitable for release as a showcase example. Co-Authored-By: Claude Haiku 4.5 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
No description provided.