"I have started using it myself and am really enjoying the experience but it has a few rough edges that I need to work on before I can make it more widely available"
So he has the site about it, writes the articles about it... and it works only for him.
Re:Modern C++ as a Better Compiler
by nadams on Sunday May 17, 2015 @09:41AM
(#9559982)
> The C++/CX compiler....use a weird little hat
> What does the hat do? Well nothing.
Actually the hat is drastically different than a normal pointer. It's managed/garbage collected pointer[1]. Which is actually pretty smart to introduce garbage collection functionality without breaking legacy code.
I watched the first code and he doesn't show him actually compiling the sample he typed up. Instead it kind of cuts to a fullscreen version of some app. My vote is that this library doesn't actually exist.
Re:Modern C++ as a Better Compiler
by watmough on Saturday May 16, 2015 @02:51PM
(#9557179)
What do you mean by .NET Native?
He does compare .NET C# with the managed C++ extensions (terminology?) and managed C++ does pretty well, just a whisker away from full on low-level C++. And several times faster than C#.
Re:Modern C++ as a Better Compiler
by Eyas on Saturday May 16, 2015 @03:38PM
(#9557337)
.NET Native is compiled C#. You can think of it as pre-JITted platform -dependent C#. It is still managed, imposing memory safety through runtime bound checks (unless optimized out) and garbage collection. The project is preparing to be open sourced, it seems. For now you can read about it on MSDN.
The CoreFX project on github is part of the Common .NET implementation which includes Native, the new ASP.NET, etc.
Re:Modern C++ as a Better Compiler
by oscargrouch on Saturday May 16, 2015 @04:49PM
(#9557562)
Well they are experimenting with LLVM, as a backend for CIL.. So maybe this is a sign that they will not open source their VC++ backend and instead go with this LLILC [1] project for the AOT compilation target?
Re:Modern C++ as a Better Compiler
by masihyeganeh on Saturday May 16, 2015 @05:56PM
(#9557773)
This comparison is unfair.
In C# code it's using foreach loop over generic list which is ~4 time slower than for loop over array, but in C++ code it's using pointers (correct me if I'm wrong. I'm not a C++ ninja) which is fastest loop
http://moderncpp.com/about/
The author writes:
http://kennykerr.ca/2014/08/29/a-modern-update/
"I have started using it myself and am really enjoying the experience but it has a few rough edges that I need to work on before I can make it more widely available"
So he has the site about it, writes the articles about it... and it works only for him.
> What does the hat do? Well nothing.
Actually the hat is drastically different than a normal pointer. It's managed/garbage collected pointer[1]. Which is actually pretty smart to introduce garbage collection functionality without breaking legacy code.
I watched the first code and he doesn't show him actually compiling the sample he typed up. Instead it kind of cuts to a fullscreen version of some app. My vote is that this library doesn't actually exist.
[1] - https://msdn.microsoft.com/en-us/library/yk97tc08.aspx
He does compare .NET C# with the managed C++ extensions (terminology?) and managed C++ does pretty well, just a whisker away from full on low-level C++. And several times faster than C#.
The CoreFX project on github is part of the Common .NET implementation which includes Native, the new ASP.NET, etc.
1 - https://github.com/dotnet/llilc
It uses the same backed as Visual C++, known as C2, generates static binaries and also makes use of SIMD and auto-vectorization.
C++/CX is not managed. Developers outside Windows keep mixing it up with C++/CLI just because they share the same extensions.
It is just syntax sugar for COM.
Ouch.