3 ms·
OCaml, with D, are probably the languages that feel the most similar to Nim. Regarding Haskell, you can do category theory[1] if you want or do integer operat
by mratsim 6y ago
OCaml, with D, are probably the languages that feel the most similar to Nim.
Regarding Haskell, you can do category theory[1] if you want
or do integer operations within the type system like dependently typed languages[2], including BigInt computation at compile-time[3].
Regarding speed, Haskell and OCaml are sometimes as fast as C, Nim is always as fast as C.
[1]: https://github.com/unicredit/emmy#algebraic-structures https://github.com/unicredit/emmy#algebraic-structures
[2]: https://github.com/mratsim/constantine/blob/0400187f/constantine/elliptic/ec_endomorphism_params.nim#L24-L61 https://github.com/mratsim/constantine/blob/0400187f/constan...
[3]: https://github.com/mratsim/constantine/blob/0400187f/constantine/config/precompute.nim#L490-L533 https://github.com/mratsim/constantine/blob/0400187f/constan...