Live data from Hacker News

Announcing .NET Native Preview

blogs.msdn.com

61–70 of 85 posts

Re: Announcing .NET Native Preview

#61
post #55

This is great. I hope they make this available for web apps because we've got 45 second warmup time and CPU spamming due to the massive size of the work the JIT has to do when we deploy. Total pain. I imagine this would help them keep costs down on Azure as well.

It is possible to precompile web apps already today.

Re: Announcing .NET Native Preview

#62
post #55

This is great. I hope they make this available for web apps because we've got 45 second warmup time and CPU spamming due to the massive size of the work the JIT has to do when we deploy. Total pain. I imagine this would help them keep costs down on Azure as well.

It is possible to precompile web apps already today.

I'm talking these two steps, not page precompilation:

1. Proxy generation (castle) -> IL

2. IL -> Native.

Re: Announcing .NET Native Preview

#63
post #55

This is great. I hope they make this available for web apps because we've got 45 second warmup time and CPU spamming due to the massive size of the work the JIT has to do when we deploy. Total pain. I imagine this would help them keep costs down on Azure as well.

From my experience, much of an ASP.NET web app's start time is not so much the JIT-ing but before that, when the ASP.NET runtime compiles pages/views (aspx/cshtml etc) into *.cs then DLLs. Pre-compiling can mitigate this.

Larger EF models can have quite an impact.

Also if you use New Relic, it can seriously affect startup time too.

Re: Announcing .NET Native Preview

#64
post #63
post #55

This is great. I hope they make this available for web apps because we've got 45 second warmup time and CPU spamming due to the massive size of the work the JIT has to do when we deploy. Total pain. I imagine this would help them keep costs down on Azure as well.

From my experience, much of an ASP.NET web app's start time is not so much the JIT-ing but before that, when the ASP.NET runtime compiles pages/views (aspx/cshtml etc) into *.cs then DLLs. Pre-compiling can mitigate this. Larger EF models can have quite an impact. Also if you use New Relic, it can seriously affect startup time too.

Yes and no. We ship our views as content as we have a custom UI front end that isn't razor or asp.net. The startup time for us is compiling NH proxies and the fact that our bin dir is huge:

http://imgur.com/EyjR5WH

It takes forever for the JIT to actually compile all code paths in these assemblies.

There's no PDBs in there either. Our domain and NH maps consume 42Mb of that to give you an idea.

Re: Announcing .NET Native Preview

#65

It seems the comments area here is full of lots of questions and few answers. Let me try to clear some things up. Lets start with how it currently works... When you create an application or website in C#,F#,VB.NET or any other .NET language you are not really 'compiling' it per se to native code, you are compiling it to an intermediate language called IL - very much like Java byte code. When your application or websi…

How good/reliable is Mono on Linux now? If I knew for sure that people are actually using Mono on Linux robustly and with good performance I would ditch the JVM - as a language/runtime .Net is so much better...

Re: Announcing .NET Native Preview

#66
post #56

Microsoft: "We could speed up your server-side code, but instead we did speed up the slow windows mobile apps that nobody cares about."

here, educate yourself http://msdn.microsoft.com/en-us/library/6t9t5wcf(v=vs.110).a...

thanks, but no thanks. I won't go ngen just to speed up my start-up time on my web applications.

http://stackoverflow.com/questions/385841/does-it-help-to-us...

Re: Announcing .NET Native Preview

#67
post #38

Earlier quoted context omitted.

When I read the OP, I was tempted to scream about bad writing due to lack of context, undefined terminology, and general lack of explanation, not nearly the first time I was tempted to scream at Microsoft's technical writing abilities. Your post provided essentially everything that was missing. But, what the heck is a "Windows store app"? What the heck is "jitter"?

Windows Store Apps are what was once called 'Metro' apps and now termed 'Modern' apps. They are essentially Microsoft's version of apps from iOS app store or Google Play store but focused on Windows 8 tablet and desktops (and as of today, the same apps you develop for these environments can also work on Windows Phone and XBOX One) In the past if you were writing a client side or 'desktop' app for Windows you used C++…

Technically JIT may run along with the execution, profile and later replace the code, i.e. start on interpreter, run a bit, compile. JITting is far more complex than "running before the code is needed", technically it can even deoptimize some code and then optimize it better.

Re: Announcing .NET Native Preview

#69

It seems the comments area here is full of lots of questions and few answers. Let me try to clear some things up. Lets start with how it currently works... When you create an application or website in C#,F#,VB.NET or any other .NET language you are not really 'compiling' it per se to native code, you are compiling it to an intermediate language called IL - very much like Java byte code. When your application or websi…

How good/reliable is Mono on Linux now? If I knew for sure that people are actually using Mono on Linux robustly and with good performance I would ditch the JVM - as a language/runtime .Net is so much better...

In the OpenSimulator open-source cross-platform project we've been using C# on Mono for over 6 years for a server-side application with extremely high concurrency. From this perspective, recent releases of Mono have definitely increased in reliability. Mono 3.2 onwards is particularly good and it's very rare now, if it at all, that problems we have on the project can be traced back to issues with the Mono VM or the associated SDK.

We haven't done many systematic performance comparisons. However, it seems to be the case that whilst Mono still performs worse than .NET in a few areas (e.g. loading new AppDomains), in general there isn't a significant performance difference between running OpenSimulator on Mono and on Windows.

Re: Announcing .NET Native Preview

#70
Its truly a great thing. A single file deployment would be a tremendous improvement. Also removing the ease with which distributed applications can be decompiled helps as well.

Hopefully the marketing people let them spread it to all of their application types.

Post reply on HN