News for hackers. Stuff that matters.
Re:Announcing .NET Native Preview by spo81rty on Wednesday April 02, 2014 @08:35PM (#7520055)
CLR apps require just in time compiling which can take a little time to first run. So this should speed up opening the apps.
Re:Announcing .NET Native Preview by tdicola on Wednesday April 02, 2014 @08:37PM (#7520062)
Sure, but ngen solved that problem years ago: http://msdn.microsoft.com/en-us/library/6t9t5wcf(v=vs.110).a...
Re:Announcing .NET Native Preview by itsboring on Wednesday April 02, 2014 @08:39PM (#7520069)
Yeah, and mono's AOT too. I wonder if this is really just ngen integration into VS and thus not really a big deal.
Re:Announcing .NET Native Preview by andyjohnson0 on Thursday April 03, 2014 @04:24AM (#7521561)
Re:Announcing .NET Native Preview by spo81rty on Wednesday April 02, 2014 @08:43PM (#7520090)
So I guess this is ngen in the cloud to skip doing it on the PC.
Re:Announcing .NET Native Preview by sriramk on Wednesday April 02, 2014 @09:13PM (#7520241)
If I remember ngen is very architecture/platform specific - that is why it has to be done on the target machine. This sounds like it is done ahead of time with support for a variety of architectures.
Re:Announcing .NET Native Preview by itsboring on Wednesday April 02, 2014 @08:38PM (#7520067)
It seems like this is basically just the same thing that Mono has done for a long time with AOT. I'm not really sure how it differs from the Ngen tool, though.
Re:Announcing .NET Native Preview by apardoe-MSFT on Wednesday April 02, 2014 @11:05PM (#7520687)
.NET Native addresses many of the same issues as Mono AOT but it has a radically different basis. We had the advantage of hindsight :)

The biggest difference with NGen is the fact that .NET Native doesn't ever "fall back" to JIT compiled code. There are other differences--refactored runtime, static-optimized libraries, static marshalling, etc.--which can be seen by the perf wins over NGen. We're seeing 40% startup performance gain over NGen apps for top Windows Store apps.

Re:Announcing .NET Native Preview by rajeevk on Thursday April 03, 2014 @01:36AM (#7521142)
@apardoe, one question: where will the compilation to machine instruction happen? From some comments in this thread, it seems that it will happen at app store server and not at developer's box. If that is the case then why will I need anything to do any settings in VS for building projects?
Re:Announcing .NET Native Preview by apardoe-MSFT on Thursday April 03, 2014 @01:44AM (#7521165)
@rajeevk, we could compile from MSIL and not tell the developer. But you probably appreciate the chance to test out the app on your own the way your user will run it. After all, you'll want to profile it or maybe find that last on-device, optimized-only bug...
Re:Announcing .NET Native Preview by thomasz on Thursday April 03, 2014 @04:39AM (#7521621)
What about stuff like Il.Emit and Expression<T>.Compile
Re:Announcing .NET Native Preview by apardoe-MSFT on Thursday April 03, 2014 @10:03AM (#7522831)
Reflection.Emit isn't allowed in the Windows Store profile so we haven't handled it in this go-around. Expression compile is supported and handled properly.