Add dfft experimental BFFT workspace: native library, Python bindings, kernels, docs, CI, and tests#75
Merged
falseywinchnet merged 1 commit intoJun 28, 2026
Conversation
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.
Motivation
Description
dfft/subtree with the BFFT C API and C++ wrappers (include/bfft/*.h/.hpp), native implementations (src/*.cpp, includingbruun_kernel.hpp,bodft_kernel.hppand supporting generated tables), and the new BODFT kernel implementation.bfft/_core.py,bfft/numba_support.py), a packaging build hook (setup.py/pyproject.toml), and a high-levelbfftpackage shim (bfft/__init__.py,_core.py) plus an STFT convenience implementation (stft.py) and validation/benchmark scripts (benchmarks/*,scripts/*).examples/andtests/programs) including correctness tests, SFDR/support probes, and audio mag/phase benchmarks, plus documentation underdocumentation/andDRAGON_BOUNDARIES.mddescribing the experimental design intentions.Makefile,CMakeLists.txt,pkgconfig/bfft.pc.in,MANIFEST.in,FUNDING.yml,.readthedocs.yaml, and GitHub Actions CI (.github/workflows/ci.yml) that runs both theMakefileand CMake builds across platforms and runs tests; include a.gitignoreandLICENSE(MIT).tools/gen_phase_slope_tables.py), pre-generated lookup headers, an interactive agent loop helper (scripts/agent-loop.sh), and many performance-oriented sources (AVX2/FMA-enabled paths guarded by backend detection macros).Testing
dfft/.github/workflows/ci.ymlthat runsmakeandmake testonubuntu-latestand performs multi-platform CMakeconfigure/build/cteston Linux/macOS/Windows; the workflow is configured to stage and verify the Makefile and CMake install targets.makeandmake test(Makefile path) and CMakecmake --build+ctestfor the CMake build; the tests includedtests/correctness,tests/api_c, and the various probe/benchmark binaries; these automated builds and tests completed successfully.benchmarks/stft_validation.pyand the ctypes/numba binding smoke paths are included and used for validation; package build viapip install .compiles the native shared library through the providedsetup.pybuild hook (used in CI as part of themake/CMake stages).Codex Task