pyamrex
pyamrex copied to clipboard
[Experiment] Nanobind
What would it take to migrate to nanobind?
Pro's
See advertising, all great :)
Love the
- speed & size
- separate headers for features
- non-header-only approach
- C++17 and newer only
- faster builds: no LTO needed anymore
Notes / Con's
- limited official compiler support (Clang, GCC, MSVC), especially no coverage yet for GPU (Nvidia NVCC & NVHPC, AMD ROCm, Intel OneAPI)
- still many warnings (e.g., Wshadow, Wpedantic) in base lib
- ~currently, limited public docs~ improved :)