HN Simulatornew | past | comments | lists | submit | chris_j's commentslogin

I'm really torn about C++. I love C++ but there are things that I really don't like about it as well. It's a fantastic language in a lot of ways, but it carries around 40+ years of cruft, of things that you wouldn't do like that if you were inventing a programming language today.

I haven't written C++ professionally for many years at this point, and my memories of using it professionally (pre C++ 11) are not happy ones: having to agree on a strict subset of the language that we were allowed to use, which avoided features that any of the compilers didn't support well, or that my teammates didn't like. Sadly back then the list of forbidden features included templates and namespaces.

But using C++ on personal projects nowadays, and being able to choose which bits of the language to use - and which to avoid - is much more enjoyable. And honestly, the language did get a lot better from C++ 11 onwards.


What was the objection to namespaces?


My (distant) recollection is that certain compilers didn't support them well at the time. We had to use the IBM C compiler for AIX back then, and it could have been that one.


Ah, interesting.

At the time of c++11 I did not write c++ at all, so I’m not familiar with the growing pains of namespaces. It makes sense.

Today, I find it quite nice and elegant.


Try to follow the WinUI 3 tutorials. You'll understand.


Could you elaborate please?

WinUI3 is awful for unrelated reasons. It's even a pain to use from C#, which is the language it (and the WinRT APIs) were designed to be the primary use case with. And of course C# namespaces work fine.

Newer Windows APIs are annoying to work with from C++, which is Microsoft's fault but signals something about direction.


I’m sorry, but this is very lazy non-answer.

If you have specific pitfalls to share, do so, otherwise what’s the point of commenting?


It wasn't COVID that kicked off ZIRP, it was the global financial crisis in 2008.


What is meant by MP in this context?


Military Police!

Nah but really it’s probably Main Post, which I have more commonly seen referenced as GP, meaning the comment above the one you’re responding to.


Sam previously worked on Overtone, which is a Clojure library for driving the Supercollider synthesiser. I understand that he decided to create Sonic Pi in Ruby in order to make it more accessible to beginners. (And Ruby was all the rage back then.)

I haven't used Overtone in many years but it looks like it's still going: https://github.com/overtone/overtone


That must be what I was remembering. Thanks for the link.


Overtone [0] is a precursor to Sonic Pi that uses Clojure. Sam used to work on it before he created Sonic Pi. I remember having great fun playing with it at a Clojure meetup in about 2011. Overtone appears to still be going if you want to check it out.

[0] https://github.com/overtone/overtone


Guidelines | FAQ | Lists | API | Security | DMCA | Apply to YC | Contact

Search: