Live data from Hacker News

Announcing .NET Native Preview

blogs.msdn.com

11–20 of 85 posts

Re: Announcing .NET Native Preview

#11
post #4
post #3

Earlier quoted context omitted.

CLR apps require just in time compiling which can take a little time to first run. So this should speed up opening the apps.

Sure, but ngen solved that problem years ago: http://msdn.microsoft.com/en-us/library/6t9t5wcf(v=vs.110).a...

So I guess this is ngen in the cloud to skip doing it on the PC.

Re: Announcing .NET Native Preview

#12
post #8

Do native apps still require a preinstalled CLR?

No. Second entry in the FAQ ( http://msdn.microsoft.com/en-US/vstudio/dn642499.aspx ).

Damn, that's awesome! For the longest time that was the only thing that really bothered me about writing .NET code.

Re: Announcing .NET Native Preview

#13
post #2

I'm kind of scratching my head here, can someone explain what problem this solves? There's already a CLR and already a way to build native apps for Win 8, etc. This is a new CLR that can run new 'native' apps?

It gives faster startup time (due to AOT compilation rather than JIT), and doesn't require that the .NET framework be installed. Possibly better runtime performance, but I wouldn't expect huge gains there. P/Invoke should have lower overhead, which may be highly relevant for some things. I suspect that there's things that require this which they haven't announced yet, since on its own it seems like something kinda ni…

Yeah I don't understand the need to get rid of a .NET framework dependency though. This only supports building Windows store apps, which only run on devices that have the .NET framework right now...

Re: Announcing .NET Native Preview

#14
post #6

What is the difference between this and NGEN? Anybody?

NGEN caches native code on the machine. You're still running from the CIL executable and you still need to have the framework installed, it just loads the machine code from the cache instead of JITing it. This appears to generate a native executable.

Re: Announcing .NET Native Preview

#15
post #6

What is the difference between this and NGEN? Anybody?

No MDIL. NGEN can still JIT for things like cross domain generics and because it loads non-native code, still needs to optimize at run time.

Project N compiles to fully native code, so there can be no JIT, and significantly smarter optimizations can happen since they don't impact performance at runtime.

Re: Announcing .NET Native Preview

#16
So, uh, can I compile my C# app to an bare x64 .exe file, statically linked with no runtime dependency on the .NET Framework, that will run on Windows 7 and 8? Or not?

Edit: This is a much better link: http://msdn.microsoft.com/en-US/vstudio/dn642499.aspx Still not sure though, as they say "only Windows Store apps can be created" which sounds suspiciously like "no".

Re: Announcing .NET Native Preview

#17
Only for Windows store? So who thinks walled gardens and feudalization are coming to all desktop OSes in the next 5 years?

In the future, a store / certificate authority will be able to arbitrarily revoke your right to run anything on your computer that isn't approved.

Re: Announcing .NET Native Preview

#18
post #13

Earlier quoted context omitted.

It gives faster startup time (due to AOT compilation rather than JIT), and doesn't require that the .NET framework be installed. Possibly better runtime performance, but I wouldn't expect huge gains there. P/Invoke should have lower overhead, which may be highly relevant for some things. I suspect that there's things that require this which they haven't announced yet, since on its own it seems like something kinda ni…

Yeah I don't understand the need to get rid of a .NET framework dependency though. This only supports building Windows store apps, which only run on devices that have the .NET framework right now...

One admittedly crazy theory is that this is laying the groundwork for building iOS apps and therefore would compete with Xamarin. Any kind of JIT would not be allowed on the iOS app store.

Re: Announcing .NET Native Preview

#19

Earlier quoted context omitted.

No. Second entry in the FAQ ( http://msdn.microsoft.com/en-US/vstudio/dn642499.aspx ).

Damn, that's awesome! For the longest time that was the only thing that really bothered me about writing .NET code.

But doesn't anyone with the Windows Store already have the CLR?

Re: Announcing .NET Native Preview

#20
post #14
post #6

What is the difference between this and NGEN? Anybody?

NGEN caches native code on the machine. You're still running from the CIL executable and you still need to have the framework installed, it just loads the machine code from the cache instead of JITing it. This appears to generate a native executable.

Thank you.
Post reply on HN