by kyleperik · 7y ago · 0 comments
Not to be rude, I just honestly want to know. There is quite a bit of hype around C#, F#. But every time there is a comparison to other languages it seems to skip over the fact that you much have a windows computer running Visual Studio which is a big disadvantage to some people. Quite honestly, they are great languages. I just don't want to buy in completely to Microsoft
I've been using TypeScript as my main language for the last couple of years since leaving Microsoft. However, I often find myself really missing how well organized C# was. The reason I don't switch back is the ability to deploy code in a web browser.
.net core, which is intended to be fully cross-platform is the future of .net.
To me .net core seems more like just a buzz word to prove that they like open source and anyone can use their software. But there isn't any way to monitize it so there isn't any reason for them to focus on it.
It's definitely not just buzz, it just takes time for a company to begin adopting a radically new platform with so many differences to it.
I also have many friends in other .net based orgs and they've each got similar things happening in their companies.
Release of core happen on a pretty regular basis and we've not seen any issues with Microsoft not putting time and effort into it.
We[1] have multiple teams working with it right now (we're strangling our netfx 4.6 monolith), and some of those teams have already pushed their work to production.
The big advantage that I've seen is that it puts teams in charge of their own destiny. I remember the upgrade from netfx 2.0 to netfx 3.0: it was awful. The entire codebase had to be upgraded. Customers had to be upgraded to netfx 3.0. If another vendor futzed with and broke the machine.config, we'd break. With netfx you are perpetually behind the curve and at the mercy of the admin, especially if on-prem is a concern. netcore is xcopy deployment, runtime and all. You can use netcore on alpine[2] (netfx only works with Windows containers).
> there isn't any reason for them to focus on it.
1. Even if nobody was using it, I bet Microsoft would use it themselves. It is so much better than netfx.
2. Azure. It does run outside of Azure, obviously, but the Azure integration in VS is a powerful bait and hook.
Plus, for something that there's no reason to focus on, they are certainly putting a lot of focus into it. Even if I haven't figured out the true reason to focus on it, there clearly has to be one.
> There just aren't many available alternatives to the frameworks and packages
That was an issue up until, maybe, a year ago. Most packages have netstandard (a build target that works with netfx and netcore) support nowadays. If they don't, they are probably unmaintained.
[1]: https://www.k2.com/ [2]: https://hub.docker.com/r/microsoft/dotnet/
We are a tiny bit miffed at some missing features, though (especially in System.Reflection.Emit).
F# is fundamentally a .NET language ... It's impossible to divorce
the two, even if the target runtime environment is not necessary a
.NET runtime. Those other environments inherent language design
decisions made with .NET as a target runtime. The .NET runtime
with .NET Core is indeed minimal, is natively supported just about
everywhere, and was built with cross-platform in mind. F# is a
part of this, for better or worse.
I like F# a lot, and to me it comes across as something of a cleaner, more modern OCaml. I have zero interest in .NET and its toolchain, and I don't want the baggage of its runtime or VM.To everyone else - maybe I should have asked a better question, but it's quite clear to me now that people are in fact using this in production. That's great. My only question now is, what is Microsoft's strategy here? There's no money flow with .net core as far as I know, so why put in the effort?
Come on, surely you can make a non-.NET dialect of F#. Sure, not every .NET F# program will be portable to it. There must be some considerable abstraction in F# that isn't tied to .NET.
also, on a technical point, .net core is fast, faster than .net framework and mono.
What more do you need? :)
Today, the old "run visual studio on Windows" constraint is more of a "you probably want to code in something that understands the language well, so Visual Studio, VS Code or Rider – but you really don't have to".