News for hackers. Stuff that matters.
Re:NIR: Nim Intermediate Representation by ternaryoperator on Saturday September 30, 2023 @08:52PM (#37721465)
I've never heard of Nim being a sister to D. Maybe to Python, but not D.

Nim's home page acknowledges borrowing from Python, Ada, and Modula, as well as C/C++. I don't think D is part of the mix.

Re:NIR: Nim Intermediate Representation by winrid on Saturday September 30, 2023 @11:58PM (#37722390)
Nim is closer to D than Python IMO. The syntax is like Python, sure, but in terms of features it's very similar to D (statically typed, supports multiple GCs, fast compiler).
Re:NIR: Nim Intermediate Representation by klibertp on Sunday October 01, 2023 @04:41AM (#37723995)
As I understand, D is a pragmatic vision of how C++ could look like if it was not C++ (that is, not designed by committee, without decades of backward compat needed, without the need to support some exotic hardware, etc.) It aims to completely drop the "C with classes" heritage, bring OOP and FP together while integrating important concepts into the language (delegates instead of function pointers, strings instead of char arrays, slices instead of T[], etc.)

While Nim indeed comes from Wirthian heritage instead of K&R heritage, its goals are pretty similar to D. You could say that Nim is for (Object)Pascal what D is for C(++). I think that's what the GP alluded to - not that Nim borrows directly from D or the other way around.

Re:NIR: Nim Intermediate Representation by jadbox on Monday October 02, 2023 @02:28PM (#37742398)
For the internet archives, this was the correct interpretation. Apologies for the original ambiguity. Also, I believe the creators of Nim where active in D language forum conversations, and I had the impression the Nim authors where very well inspired from D's design.