https://news.ycombinator.com/item?id=31378277
Even if the number reported there is off, it's not far off because ctypes just calls out to libffi which is known to be the slowest way to do ffi.
I'm also curious about how this compares to something like Jax.
Also curious about how this compares to zml.
Would be nice to see how inference speed stacks up against say llama.cpp
No negative or positive comment on its usability though, I'm not an ML/Neural Network simulation person.
Coming from a background of working with OS kernels and systems software, I don't mind the kind of explicit "C++ lite" style used by the OP. Left to my own devices, I usually write things that way. I would think twice if I was trying to design a large framework, but ... I try to avoid those.
https://www.youtube.com/watch?v=zBkNBP00wJE
About writing a Commodore C64 game in modern(ish) C++
maybe it will sway you a bit :-)