Follow

Been writing a simulation of the ising ferromagnetism model in c++ since I realized its been years since I wrote anything in c++ and that's concerning.
Current mood, thankful for modern language features. Going back to c++ has made me feel far more appreciative of rust and its enforcement of safe memory practices. Also, I forgot how ungainly and c++'s feature set is. Its time to stop.

@mandlebro

Have you ever tried D? And if you have what is your opinion between D and Rust?

@greylaw89 I have not. However, looking at the documentation, it reads like D is a modernized implementation of a c-like systems language. Rust feels more like someone that really likes haskell wanted to make a system language. One of the advantages of it is the use of ad-hoc polymorphism through traits, which I find more natural and expressive, instead of inheritance. Is this a reasonable characterization of D? That its basically less shit c or c++?

@mandlebro

I'm not a C/C++/D programmer but I've been looking to learn. My understanding of D boils down to "C++ with garbage control built in"

@greylaw89 From what I can tell D is probably the easiest to learn and its compatible with C libraries which is a huge plus. In rust you still have to go through a (very light) native interface. But c++ and c are still the most widely used system level languages so I guess which one you sink time into depends on what you want. C is also easy to learn btw since its so feature light. C++ is a monster but its everywhere so still worth knowing.

Sign in to participate in the conversation
Qoto Mastodon

QOTO: Question Others to Teach Ourselves
An inclusive, Academic Freedom, instance
All cultures welcome.
Hate speech and harassment strictly forbidden.