News for hackers. Stuff that matters.
Re:Nim 1.6.2 by nerdponx on Friday December 17, 2021 @08:30AM (#29591811)
I have written toy programs in Nim and Crystal, and the Nim experience is much more polished.

The Nim compiler is as fast as the Crystal compiler is slow!

I think Crystal is more enjoyable to use, personally. I am not a Ruby programmer, but Crystal just somehow feels fun to use. Nim by contrast feels very utilitarian, and frankly more practical.

I found the Nim language documentation better than Crystal, the Crystal standard library docs are just as good as Nim.

Nim overall feels like an "early 1.0-ish" language. Crystal feels like they went to 1.0 m too early. I would probably consider using Nim in a medium-sized application for work, whereas I wouldn't feel comfortable with Crystal for more than a personal hobby project.

They do have some things in common (macros, C interop, static types), but aren't really similar languages. I used to lump them together in my head as "those two new languages", but I don't anymore after trying them both.

If you are checking out new-ish languages, I hear Kotlin has some good design decisions that people appreciate (but that the tooling is pretty bad outside of Jetbrains IDEs).

Re:Nim 1.6.2 by rickstanley on Friday December 17, 2021 @08:58AM (#29592157)
There's Kotlin script if I recall correctly. But not that developed yet nor easy to use outside jetbrains ecosystem (IDEA).