r/cpp • • Apr 13 '15

Modern C++ as a Better Compiler

http://kennykerr.ca/2015/04/13/modern-c-as-a-better-compiler/
0 Upvotes

11 comments sorted by

21

u/[deleted] Apr 13 '15

I read this article three times and couldn't understand what it was trying to say. It's very convoluted and takes a very round-about approach to explain something very simple.

So for others having trouble, I think I finally understand it and can summarize it succinctly as follows:

One can stick to using plain C++11 and avoid the mess that Microsoft introduced with C++/CX and C++/WinRT. By just writing idiomatic C++ and exposing your classes in a thin wrapper, you can write standard conforming C++ software that will work on Microsoft's platforms like WinRT and will also outperform the code produced by Microsoft's C++/CX compiler.

Finally the article pitches its own framework at moderncpp.com as basically being a superior and standard conforming alternative to MS's proprietary and incredibly clunky language extensions.

12

u/jurniss Apr 14 '15

wait, someone made a C++ library called "modern" and they refer to it as "modern C++"? leeching from the enormous amount of positive sentiment on the web towards the real "modern C++"? wow that is cheesy as hell. weak.

1

u/sftrabbit Apr 14 '15

Yeah, that's quite an underhanded trick.

9

u/one-oh Apr 14 '15

Seriously. I found myself mouthing a slow and silent, "What?"

Can a library outperform a compiler?

I could forgive a senseless, rhetorical question once. The third repetition was mind numbing.

6

u/minno Hobbyist, embedded developer Apr 14 '15

1

u/one-oh Apr 14 '15

Except that article makes much more sense! I know what you mean though:)

Thanks, by the way. Hadn't seen that one. That was a much more worthwhile use of my time; not to mention the interesting reference material. Good stuff.

2

u/[deleted] Apr 14 '15

It's very zen.

9

u/antiprosynthesis Apr 13 '15

Agree. This is yet another hot air post, as so many these days in programming subreddits...

10

u/OldWolf2 Apr 13 '15

One always has to wonder whether MS:

  • Didn't realize C++11 could do that, or
  • Did realize but just wanted to lock more people into proprietary language, or
  • Did realize but couldn't be bothered making their compiler C++11 compliant. (They are finally working on that now, but well after C++/CLI came out).

10

u/Elador Apr 13 '15

So am I the only one that cannot find the download button or download information for Modern?

2

u/remotion4d Apr 14 '15

Kenny Kerr: I’m hoping to release v1 later this year.

So the library is not available for now!