Live data from Hacker News

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

news.ycombinator.com

1–10 of 27 posts

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

#5

Need more data to compute a meaningful answer. What do you want our of your next language?

I'm looking for a well-rounded language, which is versatile in the same direction as, e.g., Python is. Ideally, it would also enable expanding one's own set of programming skills and knowledge/practice of interesting paradigms (i.e., a mind-shift of sorts).

Nice to have's: - a rich library ecosystem (like Python and Go, for instance) - as close to C as possible, in terms of speed

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

#6
post #2

Do you have projects in mind? What languages are you most used to? That might help you decide. Learning a very different language is fun and useful.

> Learning a very different language is fun and useful.

Yes, that's one of my main motivations. I'm comfortable enough with Python, Java (comfortable doesn't mean I enjoy this one) and C.

> Do you have projects in mind?

Yes, both are solely for the purpose of enrichment of my current set of skills and knowledge: - Source control system that is a "lite" version of git. - A bit torrent client.

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

#8
It's hard to pick between those two in particular. Nim is more fluid syntactically; D is more precise. D is also older and I would generally consider it more mature.

(After trying both, I went with D. But in the future I want to use Zig for some of the lowest level code.)

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

#9

Need more data to compute a meaningful answer. What do you want our of your next language?

I'm looking for a well-rounded language, which is versatile in the same direction as, e.g., Python is. Ideally, it would also enable expanding one's own set of programming skills and knowledge/practice of interesting paradigms (i.e., a mind-shift of sorts). Nice to have's: - a rich library ecosystem (like Python and Go, for instance) - as close to C as possible, in terms of speed

You definitely are looking for crystal language https://crystal-lang.org/

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

#10

Need more data to compute a meaningful answer. What do you want our of your next language?

I'm looking for a well-rounded language, which is versatile in the same direction as, e.g., Python is. Ideally, it would also enable expanding one's own set of programming skills and knowledge/practice of interesting paradigms (i.e., a mind-shift of sorts). Nice to have's: - a rich library ecosystem (like Python and Go, for instance) - as close to C as possible, in terms of speed

Nim is like a fast version of Python and Crystal is like a fast version of Ruby. Rust and Go also have some use in the same space, but they all differ in the details as in whether the GC exists and is enabled by default, is optional, or doesn't exist.

Coming from Python, I found Nim to be the best for my mild systems programming needs. I haven't tried Crystal as it doesn't work on Windows (last I checked). Go is too simple/verbose and doesn't have enough language constructs by design. Rust seems like it is changing too much and too low level. I really wanted to like D, but had trouble getting up to speed in it. I bet it's much easier if you come from C++.

Post reply on HN