Announcing .NET Core 1.1
blogs.msdn.microsoft.com
blogs.msdn.microsoft.com
> Thanks to Microsoft’s herculean performance tuning effort, ASP.NET—in the new cross-platform friendly form of ASP.NET Core—is now a top performer in our Plaintext test, making it among the fastest platforms at the fundamentals of web request routing. The degree of improvement is absolutely astonishing, going from 2,120 requests per second on Mono in Round 11 to 1,822,366 requests per second on ASP.NET Core in Round 13. That’s an approximately 85,900% improvement, and that doesn’t even account for Round 11’s hardware being faster than our new hardware.
Here are the benchmarks in question [2].
There are a few caveats attached, like that it's still not quite at the top and the best improvement is under the plaintext benchmark in particular, but nonetheless a very impressive effort on the part of the .NET team.
[1] https://www.techempower.com/blog/2016/11/16/framework-benchm...
[2] https://www.techempower.com/benchmarks/#section=data-r13&hw=...
TechEmpower also reports that the performance of ASP.NET Core
running on Linux is approximately 760 times faster than it was
one year ago. Since TechEmpower started measuring benchmarks
in March 2013, they have never seen such a performance
improvement as they have observed in ASP.NET Core over the last
year.My exposure to C# and .NET is small enough that I'm not sure what this means in terms of PHP. Is this like a PHP4 to PHP5.3 or more like PHP5 to PHP7 change?
They changed the test rig from an i7-2600K to a Dual Xeon ES-2660v2. Those 4 cores at 3.4ghz destroy the 20 cores at 2.2ghz.
Cloud performance in comparison is terrible. That i7 hits 290k fortunes compared to the cloud VM hitting 30k. You need ~$1500 of VM a month ($0.23 / hour / 30 days / 9) to match a desktop computer from 2011.
The physical hardware for each round has been [2]:
* Rounds 1 through 8: i7-2600K workstations
* Round 9 through 12: 2x Xeon E5-2660v2
* Round 13: 4x Xeon E7-4850
[1] https://www.servercentral.com/
[2] https://www.techempower.com/benchmarks/#section=environment
.NET Core's just a better engineered and optimized runtime for running Server Apps on Windows, Linux and OSX.
Basically .NET Core is now the future for running .NET Server Apps on Linux.
Some recent basic testing show .NET Sockets perform at least as well as libuv. We are strongly considering transitioning Kestrel to Sockets at the same time we migrate from Streams to Pipelines. [1] Pipelines are basically push based Streams that require less total allocations to use. This is because Pipelines allow better memory sharing between producers and consumers.
[1] https://github.com/dotnet/corefxlab/tree/master/src/System.I...
Disclosure: In case it wasn't already obvious, I work for Microsoft on Kestrel.
ATM, it looks like Sockets will be the priority since it's a cross platform API more similar to what libuv currently provides.
At home I use macOS primarily and I'm trying to ramp up on .NET Core for a few personal projects and I'm having a tough time trying to find a suitable dev environment that provides me with the same speed/comfort that I get on a Windows machine and so far it's tough. Project Rider on macOS is coming along nicely but that still leaves no LINQPad which is super handy for working on small bits of code with near instant results. The feedback loop is so short when using Linqpad it's insane.
I also don't get the point of resharper. Apart from being slow as molasses, it's ridiculously over opinionated to the point where is makes existing code a mess of squiggles. And it's intellisense is super dumb as it redlines while you're still typing, which is very distracting.
The only great part of it, the quick find, is now in vs 2015. Ctrl-,. I think it literally just came in with the last patch.
VS2015 has made up a lot of ground for what R# lacked but the static analysis still isn't there. You have to learn what errors/notes mean and how to interpret the results because they are very meaningful. Point blank - writing code with Resharper will lead to higher quality code.
And yeah, some part of my Resharper love is just an old habit. I've been using R# since VS2005 when the IDE lacked a lot of critical features that R# plugged. Now a lot of it is just habits and keyboard shortcuts and it's only a few hundred dollars for a license which still pays for itself throughout the course of the year.
It's nice when it picks up some stupidity like an always false condition, but the out-of-the-box instance has so many stupid rules that after turning more and more off it off, I gave up on it.
And this isn't the first time I've given it a go.
However after reading the top comment on this post, about how ASP.net core is one of the fastest performers, that may have all changed. I might actually look at .net core now.
[1]: http://ironruby.net/
https://en.wikipedia.org/wiki/.NET_Framework
It's a (in theory) OS-neutral platform. It's a huge software stack with many different languages on top of it, all of which target a VM (in the Java sense, not the VMWare sense) that makes it theoretically platform-independent. It allows the different languages to share a common standard library, and that standard library is vast.
That being said, my impression is that most people who write code for the .NET platform use C# to do so.
It's been around for almost 15 years now [!]. I can't believe it's been that long.
I'm really looking for something like `cargo build` or `go build`, but it looks like .NET just loves their IDEs and XML based configuration files.
There were .csproj files and other XML files to deal with, but you can edit those by hand if you feel the need to.
I wouldn't want to have to do things that way though.
dotnet build
dotnet run
dotnet test
updated: formattingOr maybe they deprecated this deprecation later? It's all very confusing.
dotnet build
dotnet run $ dotnet build
Couldn't find 'project.json' in current directory
$ xbuild
XBuild Engine Version 14.0
Mono, Version 4.6.1.0
Copyright (C) 2005-2013 Various Mono authors
Build started 17.11.2016 18:08:11.
...
Build succeeded.
Also it creates project.json when creating new project.the .net core sdk (tooling, the cli command line) is 1.0.0-preview2 and use `project.json`
your xbuild is from mono installed on your system, not .net core
if you download and use the .net core sdk `1.0.0-preview3` you will see the msbuild based csproj in preview3 (run `dotnet new`). msbuild based mean `dotnet build` is calling the msbuild library with `/t:Build` argument.
To explicity run msbuild, you can do `dotnet msbuild`
So, yeah, you can create .NET applications without an IDE, and you've been able to for a long time. Was there something specific you wanted to know?
EDIT: in giving the benefit of the doubt, I considered that maybe things had changed since I last written anything for .NET. Maybe the obvious search doesn't return anything. So I tried .NET command line build. I got a full page of what looked to be useful results, including the top result: https://msdn.microsoft.com/en-us/library/78f4aasd.aspx. Now I wish I hadn't wasted the keystrokes on a rhetorical question that I surmise was asked just to be snarky.
Your link is a great example of what I don't want, though, and this is what I was afraid of. Compare the experience of using `csc.exe` with `cargo`, for example.
I mean, obviously there is some executable that does the work of building your programs, but you wouldn't suggest someone use `gcc` to manage C projects, would you?
Okay, well, glad I didn't down vote the comment, then.
Compare the experience of using `csc.exe` with `cargo`, for example.
But, to my knowledge, Rust doesn't have an IDE (forgive me if my ignorance of Rust is showing), so if Cargo did not exist it would be necessary to invent it. C# has an IDE, it could be argued that something like Cargo is not required. I posit that your problem is solved, just not in the manner you would like.
but you wouldn't suggest someone use `gcc` to manage C projects, would you?
No, I'd suggest that they use the IDE. But I've done it, because I'm not shipping bits to customers that were built by a developer hitting the F5 key and pulling the output from their local drive.
Really few people just call the compiler directly.
before there was the msbuild but was ugly from command line:
- msbuild /t:Build /p:Configuration=Release
That's why the created the .net core sdk (http://github.com/dotnet/cli).
it's always the compiler all the way down.
but you can do
- `dotnet new -t console` for template
- `dotnet build -c Release` to compile
- `dotnet run` to build+run
- `dotnet pack` to build+ create a package
- `dotnet publish -r osx` to build+create standalone version
- `dotnet test` to build+run tests
There's also tools called Paket and Fake which look like .NET counterparts of Ruby's Bundler and Rake, created by F# community. Paket patches .fsproj/.csproj files and it looks like hack but still better than putting absolute paths to preinstalled dependencies.
For creating new projects from template, Yeoman (installable from npm) is quite popular.
Build process in .NET looks like is in transitional state from Visual Studio-first to build tools-first and is still painful and confusing. I didn't try project.json / dotnet tooling yet, because F# website doesn't mention it. I tried only F# and Monogame.
you'll see the experience about cli and sdk. All docs about .net core sdk works.
- `dotnet new -l fsharp`
- `dotnet run`
or
- `dotnet new -l fsharp -t lib`
- `dotnet build`
- `dotnet pack` for nuget packages
Ide works in vs code works with Ionide plugin, if you open it after first `dotnet build`
That's f# and .NET Core console app (who host suave web), published in a docker container and run on k8 on google cloud
http://blog.2mas.xyz/fsharp-suave-app-on-dotnet-core-on-kube...