> Sadly, I am not enough of a Nim expert to know the trade-offs between using native code or importing C libraries.
I'm no expert either but (not sure if this is what you're getting at) Nim is "compiled" to C/C++/JS and you have nearly full control over emitted code.
So I don't think it's far-fetched to emit C with hand optimizations if you really need them.
That's the weird thing about Nim. It's not really a new language so much as a syntax and front end to several existing languages.
If you compile in "-d:danger" mode turning off all checks and highest optimizations, the C code it spits out is pretty human readable even.