Live data from Hacker News

Ask HN: Next programming language to learn: Nim vs. D?

news.ycombinator.com

21–27 of 27 posts

Re: Ask HN: Next programming language to learn: Nim vs. D?

#22
post #13

Earlier quoted context omitted.

Other than maturity, what are the reasons you've chosen to go with D (and are now choosing to pursue Zig)?

What I want in a language of this class is some ability to transition code from a slow/dynamic/generalized/exploratory phase to fast/static/specialized/checked. Both D and Nim offer features of that nature. (Something like Rust omits itself by forcing memory into a central role, leading to a lot of annotation boilerplate - it's correct for writing Servo or similarly complex parallelized systems, but I am not writing…

That's fair. Can you name features in Nim that you feel are unnecessary? I have seen a similar sentiment in the past but rarely do people actually give examples of what they think could be removed (the biggest challenge for us right now is the removal of features in preparation for 1.0).

Re: Ask HN: Next programming language to learn: Nim vs. D?

#23
post #20

Earlier quoted context omitted.

Care to expand on Chapel? Is it used somewhere in prod?

Probably yeah as it's done by Cray. The main feature of Chapel is to handle well the many levels of parallelism.

But then I would recommend Pony which is even better on parallelism.

Re: Ask HN: Next programming language to learn: Nim vs. D?

#24
post #23

Earlier quoted context omitted.

Probably yeah as it's done by Cray. The main feature of Chapel is to handle well the many levels of parallelism.

But then I would recommend Pony which is even better on parallelism.

I don't think so (for example Chapel does SIMD).

Re: Ask HN: Next programming language to learn: Nim vs. D?

#26
post #19

Earlier quoted context omitted.

Apart from some syntactic commonalities and expressiveness, Nim doesn't have a lot in common with Python. The idiomatic approach to solving problems in Python and Nim are different. I came from a strong Python background and now I prefer Nim to Python as a general purpose language and especially for writing scripts. Nim is highly productive and with excellent type safety. The compiler is relatively fast though maybe…

> Apart from some syntactic commonalities and expressiveness, Nim doesn't have a lot in common with Python. > The idiomatic approach to solving problems in Python and Nim are different On a practical level, they are close enough to let you convert Python code to Nim with reformatting and replacing instead of doing a complete rewrite.

Thank you, this is what I meant when I said similar to Python. Someone with Python familiarity should have zero issues with writing a Nim program and will mostly feel comfortable with the syntax.

Re: Ask HN: Next programming language to learn: Nim vs. D?

#27
post #25

Earlier quoted context omitted.

I don't think so (for example Chapel does SIMD).

Pony does SIMD also, is much faster and safer.

Do you have any performance data that supports these claims? Does Pony support distributed memory parallelism?

Here are some recent Chapel performance results:

shared memory: https://twitter.com/ChapelLanguage/status/100266735892881408...

distributed memory: https://twitter.com/ChapelLanguage/status/100258998583959552...

Post reply on HN