3 ms·
That's why I mainly use Nim for creating games. It's a *fun* language, out of your way for rapid prototyping, *safe*, it has all sorts of safety checks (nil, ov
by planetis 5y ago
That's why I mainly use Nim for creating games. It's a *fun* language, out of your way for rapid prototyping, *safe*, it has all sorts of safety checks (nil, overflows, ranges, variant object transitions) that you can disable for performance critical code and RAII style destructors, where copying is allowed by default but you can optimize when you need to by inspecting the IR (easy as it's Nim syntax, you just watch out for inserted copy calls) and *extensible* there are all sorts of DSL in the packages from HTML gen to ECS libraries and finite state machines. Macros allow you to easily create performant code that otherwise no one would bother write by hand.