News for hackers. Stuff that matters.
Re:Less is exponentially more (2012) by Pxtl on Friday September 20, 2013 @09:48AM (#6417657)
I always say, all of these "replacements for C++" don't feel like C++, they feel like statically-typed Python. Which is great, if you want statically-typed Python. There's a lot of fantastic uses for statically-typed Python.

But they're not C++. As soon as you tie the whole language to a garbage-collector and leave out any real mechanism for metaprogramming or even simple generics, you've lost me.

Pure text-based lexical macros like templates are a weapon of last-resort for language design... but it's not an optional one. Dynamic-typed languages cheat by offering a simple "exec" statement/function. Static languages have a religious objection to offering a first-party preprocessor, because they have the hubris to believe they can solve every possible problem ever within their language.

Nobody is that good at programming language design. Not Pike, not Gosling, not Ritchie, not anybody. The difference is that Ritchie's team knew that, and didn't try and pretend that every single thing could be easily and performantly expressed in their language, and made the hackish ugly macro system to solve the edge cases... and it worked.

Re:Less is exponentially more (2012) by stelonix on Friday September 20, 2013 @10:25AM (#6417867)
I think Rust stands a chance as a C/C++ replacement: manual low-level memory management, templates, a powerful macro system and type-safeness.
Re:Less is exponentially more (2012) by mcguire on Friday September 20, 2013 @12:10PM (#6418604)
Rust is specifically aimed at "frustrated C++ developers": http://www.infoq.com/news/2012/08/Interview-Rust.

"templates, a powerful macro system"

I really like Rust, but I haven't been paying attention for a month or so; did something change? Templates? And the macro system was...oddly limited when I tried fooling with it.

Re:Less is exponentially more (2012) by kibwen on Friday September 20, 2013 @12:42PM (#6418838)
Rust consciously avoids having C++-style templates, so I think stelonix is referring to plain old generics.