10 ms·
Check out Nim, it's got python style syntax, but it's statically typed and compiles down into performant C and then into a binary. I've been converting a lambd
by FridgeSeal 9y ago
Check out Nim, it's got python style syntax, but it's statically typed and compiles down into performant C and then into a binary.
I've been converting a lambda function used at work from Python into Nim[0]: I've had very few issues so far and the performance gains are fantastic (Admittedly my lambda function is pretty straightforward, but still).
It's also got support for functional programming styles, with a function composition operator/first class functions etc[1] and a pragma to tell the compiler that a function has no side effects[2].
[0] https://nim-lang.org/ https://nim-lang.org/
[1] https://nim-by-example.github.io/procvars/ https://nim-by-example.github.io/procvars/
[2] https://nim-by-example.github.io/procs/ https://nim-by-example.github.io/procs/