393 points · by hestefisk · 11y ago · 189 comments
edit: cue
Keep up the good work re .NET.
edit: grammar
Even porting from Linux to BSD is some work, and they're quite similar in userland. Porting from Linux to "Windows Services for UNIX" (POSIX layer) seems like it is far more work, and if you're going to go that far why not just produce a native Windows binary without the dependencies?
When working from Windows, however, I've always been very happy with Cygwin and regard it as an essential add-on to any Windows install. I really don't care whether Windows has built-in support for a Unix-like environment, as long as I can compile and run my programs.
How's this PR different with how you did it before ( just wondering - i suppose it's a lot of action - reaction related - direct) ?
Thank you for helping bring CLR to FreeBSD.
https://github.com/dotnet/coreclr/pull/782/files#diff-ebcfa0...
That's clean, documented code man.
Are you actually having significant problems in your day to day use, or was this just trolling?
All of that said, I'm actually very happy to see MS opening up .Net/CLR because there is a lot of code that runs under it, and being able to port and reuse that in a linux environment. Even in my current project creating a replacement for a .Net application in node/iojs, there's a small service I'll be using that will run with mono because re-creating the piece in question would be problematic, though that piece will enable a live data migration (encrypted data) to something that won't need the .Net code in question.
As far as MS opening up, I won't deny that they are moving in the right direction, but as far as I'm concerned there's still a ways to go. Get complete compatibility for Office file formats, and I'll be much more sympathetic.
As a Linux guy (and running a couple FreeBSD servers) in a Windows world and Windows shop, I'm glad to see these ports. I'd love to take our code and port it to different platforms, alas .. 'WinForms', 'WPF', 'WCF'.
Ignoring the UI part - there are no solutions as far as I'm aware (nope, Gtk# isn't one either) - what do people use as a WCF replacement? So you're developing a .Net app and need SOAP for one reason or another: What do you pick?
I haven't used it myself, but I've seen it mentioned several times, so I'll just throw it out there for visibility: https://servicestack.net/
While the setting I'm looking at is commercial as well (a corporate product), the idea is a rogue "let's see if I can port that in my free time, because why not" project. No budget. No corporate interest.
And frankly, porting WCF services to SS would be a tough sell, if the former work fine and are 'free'/included, so I guess there's zero chance to upstream this, unfortunately.
That said, I apologize for the 'no solution' part. It was uncalled for. I personally don't like working with Gtk# (said as someone that still seems to be listed in the Tomboy maintainers file, although I haven't contributed for a long time). It might be a viable solution. I plainly don't like it very much.
Microsoft woke from a coma.
The reason that Windows sucks for most people is that IT departments suck. It's really something that has motivated me to find ways to stop the suck. There are lots of great innovations on the platform since Vista that just aren't used...It's like Windows admins are frozen in time somewhere around 2003.
I use Windows since version 3.0 where I configured my AUTOEXEC.BAT to boot straight into Windows, and after several detours with many UNIX flavours in the last decades, I have settled back in Windows as my main desktop OS.
This work was done (almost) entirely without any MSFT involvement. Contributions were done by a bunch of guys affectionally called "the port team" whom you wouldn't want to meet in a (technical) dark alleyway ;)
@janhenke, @josteink, @ajensenwaud, @xied75, @kangaroo, @ghuntley, @qbit & @richlander (MSFT)
https://github.com/dotnet/coreclr/issues/455
edit: Special shoutout to interoute.com and Paul Kelly whom comped the infrastructure needed for the team to collaborate on/test with FreeBSD, NetBSD and OpenBSD.
edit: Extra special shoutout to @kangaroo who was the first successfully merged pull request after MSFT open-sourced everything. His commits added support for .NET on OSX. He was awarded a custom, personalized/engraved scotch glass at the recent .NETFringe open-source .NET conference in portland a couple weeks ago.
We gave @kangaroo a "port" glass to thank him for his OS X "port" and did it in Portland at the already mentioned .NET Fringe conference. We also gave him two bottles of port, one of which was "Washington Port" from Whidbey island (Whidbey being the codename for .NET 2.0). The engraving was done in the Microsoft "Garage".
We're looking forward to giving out a nice set of engraved FreeBSD port glasses once FreeBSD catches up to the OS X and Linux.
I've been a Java on Ubuntu/Linux for as long as my professional career but would love to see .NET becomes THE first class OSS enterprise stack on FreeBSD.
FreeBSD needs more LOVE from MSFT.
Having said that, I would love to see the .NET team produces something like Gradle/Maven (aside from the hatred toward Maven, NuGET is way behind and MSBuild reminds me of Ant thus NuGET + MSBuild combo is similar to ANT + Ivy instead of Maven/Gradle. And if you guys ever decided to adopt a scripting language for build, please, for the love of technology, do not use F# for the build scripting language like http://fsharp.github.io/FAKE/, just... not readable :)).
I cannot wait for the day when I can write a solid .NET GUI app or tools or Web-App for FreeBSD that looks nice and be productive with the tooling around it (unfortunately IntelliJ/Eclipse, Java, Maven, Tomcat/TomEE, Jetty, PostgreSQL/MySQL stack are still way too far ahead).
.
If BSD on .NET is of interest to you (or anyone else reading) and are willing to help out please introduce yourself in https://gitter.im/dotnet/coreclr . Any help is appreciated on all systems, even if it is infrastructure, documentation or general marketing/pr.
.
Additionally if you want to see .NET on OpenBSD/NetBSD please jump in the channel and let us know how, why and where you will be using it. The team is quite small and wants to make sure efforts are focused correctly.
For more details check out http://owin.org/ which is the main project that has been working to unshackle .NET from IIS by providing a implementation free interface for building http applications.
Other projects of interest are https://github.com/SuaveIO/suave and https://servicestack.net/ , http://nancyfx.org and https://github.com/Topshelf/Topshelf
I'm interested in using it, I love .NET as a platform, I just have this vague sense of worry that I can't quite rationalize. Mostly based on Microsoft's past performance with cross-platform efforts.
Thoughts? Is my gut feeling right or wrong?
- C# is standardized (albeit an older version that the current one) - C#/.NET has more permissive licenses (MIT & Apache vs GPL) - C#/.NET is now developed in public, on GitHub - Microsoft has promised not to sue for patent infringement on .NET
I'm not a lawyer nor do I play one on TV, but it looks like even if Microsoft changes it's mind, it can't take it back. The worst it could do would be abandon support. That would be a huge hit, but something the community could recover from.
Meanwhile, you have Java with Oracle shutting down security fixes for Java 7, unless you get a long-term support contract. Which would you rather deal with?
I had some correspondence with RMS back in November right after CoreCLR was announced, and he doesn't seem to agree. All he said was that MS's non-standard/custom patent grant isn't sufficient and that http://endsoftpatents.org/2014/11/ms-net/ is correct.
While I think http://www.fsf.org/news/dont-depend-on-mono was cogent and made a convincing argument at the time, and there may even be problem with the new patent grant, the endsoftpatents.org analysis just seems like a poor one.
I also pointed out that the .NET Micro Framework wasn't under a custom patent promise, but instead has been available under Apache 2.0 for years. It seems that even if let's say the worse case scenario is true, and there is a loophole in the patent promise, and it was put in to facilitate nefarious plans on MS's behalf, then the free software community could render even such deliberate plans as ineffective. The key move would be to continuously and aggressively hedge on alternatives and to make it well known that's what's going on. The community could aim for aggressive portability to other languages/runtimes with the use of a tool to do mechanical translation. If MS (or one of its affiliates) tries anything shifty, the community flips a switch and for compatibility relies on an NETMF-based runtime (still being available under Apache 2.0 and all) and otherwise begins living entirely in Vala land, with MS having proven they don't want to play ball.
It's like Mutually Assured Destruction, except for one side's wholesale elimination of their risk of being destroyed.
I've recently decided to switch to .NET for everything. Mainly because I really like F#, and I've been using C# for a side project in Unity, but also because an open source CoreCLR makes me worry a lot less about vendor lock in.
I get and appreciate the sentiment on "if Microsoft abandoned it tomorrow". Just clarifying that this risk is _very_ far from reality.
It's also really interesting to look at how Microsoft is approaching C#/Roslyn. One aspect of that is the C# 7 effort, which has an ambitious scope and has a great deal of open/public interaction. Check it out: https://github.com/dotnet/roslyn/issues/2136
For me, the web development was too magic, way more so than RoR. I got an acquaintance that only do .Net. And he harps about how .Net got Razor and data base represented as object unlike open source. When I pointed out that Razor was just a template engine and that database thing is just ORM which many other MVC frameworks have he just didn't get it. He didn't get it's a template engine nor does he understand that it's an ORM. Magic! I also tried some .Net dev, and it's very magic in term of abstraction. The VisualStudio IDE is amazing and C# seems like a much better language than Java. But the ecosystem isn't as rich, Apache such an awesome organization but Oracle is very pushy.
The downsize for me is big, ecosystem. Most of the open source projects play very well together, C# is a newbie, I rather wait for it to mature within the open source space (including books and tutorials).
That's too bad, because there are tons of sharp .NET devs who despise the concept of "magic" (and no, ORMs are not magic, and Entity Framework is fantastic) and who understand the abstractions that .NET offers. I would hesitate to write off all .NET enthusiasts as clueless less-than-hackers.
(disclaimer: Microsoft employee, nothing to do with .NET though)
XNA is the example I always use. You can use XNA and make games without understanding anything about the graphics card but you can also dig in and write your own shaders and basically go however deep you want to/need to.
There are some things in .NET that do seem kinda magic, and razor is one of them. Not because it's a templating engine but just in how lightweight it is and how surprisingly decent intellisense can be with it. Most templating engines feel so verbose and ugly after working with razor.
Entity Framework is also a really nice ORM for most small-mid sized projects... If you're really stuck on using a strongly-typed environment I will say that C# is one of the better ones and would choose it any day over Java (and a lot of others). My issue with many .Net and Java projects is that a lot of "enterprise" design patterns are used when they are more in the way than helpful. Abstractions are used which only improves testing or portability, but neither testing or portability are used. But this is more of a design choice from the developers than the languages/platform used.
I also disagree with your reference to .Net/C# not having a large ecosystem... There are a lot of tools for C# out there, most open-source and easily available via Nuget. Not to mention that Stack Overflow has authoritative answers to almost anything you could need with .Net or C# and has MS employees as regulars to offer support.
This is from someone who doesn't even write much C# any longer (still supporting two legacy apps in C#), and does most of his development being deployed to Linux servers.
A few people have concerns that the patent grant isn't as broad as it should be.
For me it would mostly be an ecosystem thing. I use Typescript because it drops right into the pipeline I was already using, but switching VMs is a big ask. How good is Thrift for .NET?
> just using code that implemented it in the obvious/efficient way could land you in legal hot water
Apache 2.0, GPLv3, and MPL2 are no different; you can't take Covered Code that company X is distributing but that doesn't infringe their patent A, then modify it to make use of methods/techniques that do infringe patent A, and expect to be indemnified from litigation. And each of these other "sufficiently-free" licenses explicitly says so.
Having said all that, I do wish they would have expressly used Apache 2.0 instead, just for good measure and to avoid the casted aspersions.
It's "safe" to use, and will be for the future but is not on par with windows yet.
Like it or not, but there is a definite stigma associated towards working on Windows. Developers on HN are surprisingly open-minded towards developing on Windows, but in the real world you'll find a lot of developers that look down on those that choose Windows as their development platform.
I've met a range of devs, from those working at startups, to people who work at Google, and many of them have been extremely dismissive of not just .NET, but those that work on Windows. I've worked at a startup using ASP.NET, but I reckon many C# devs would probably rate their chances of getting a job at a big tech company to be slim and none because they favour .NET. I spoke to some ex-Googlers a while back at an event, and I asked about the Google interview process. They asked me what language I coded in, and on hearing that my main language was C# they were less than favourable about my chances. It's a shame really, because I'd quite like to work somewhere like Google, but I wouldn't want to have to hide the fact that my strongest language by far is C#.
In my mind, bringing .NET to Mac and Linux will do something that we rarely see in the development world. The Windows world will be bringing something valuable to the Linux world. The best part about this for me isn't being able to use .NET on an OS that I'd love to learn more about, but not having that niggling doubt in my head about my choice of language/framework, and I reckon a lot of .NET developers, especially younger ones will feel exactly the same.
I don't claim that's an accurate perception, but I've heard quite a few comments to that effect from this side of the aisle.
No fork
No ansi in terminal
Seperate Select for files and Sockets on Windows..
Fix those and I bet loads of the open source tools would start working, making Windows much more attractive to X platform devs.
The moves that Microsoft are making will help validate those .NET developers that enjoy working on the framework AND want to feel like a part of the larger developer community. Technically, things will continue to improve under this direction, but what I really hope is that the per-conceived notions about .NET developers are laid to rest.
And linux has the epoll/posix aio split for sockets and files.
OT, but I have not found this to be the case. Most comments on HN that mention developing on Windows are usually followed up with "Windows? Ugh", "OP must not have a choice", and other comments about how rough Windows development is.
Back on topic, as a C#/.NET developer I completely agree with your points.
Microsoft has always been very stop/start about supporting other platforms - projects come and get cancelled and go.
http://blogs.msdn.com/b/dotnet/archive/2014/11/12/net-core-i...
Why are we using .NET? My company's experience is primarily in .NET and we need to carefully manage discovery costs across all the platforms we are going to working on. I am going to blog about the experience when the project is set to get underway later this year, so stay tuned.
That said, as a FreeBSD fan (my own domain runs it, I've been running servers on FreeBSD for 14+ years), I'm a bit embarrassed I didn't know about this project -- work at MSFT in an evangelism role.
Glad I learned something new to explore tonight.
In reddits /r/freebsd, there was a also some slight noise, which predated the HN-post.[2]
Apart from that, I think it's just all been happening on Github. All in all, for the little attention it managed to attract, I think we've made some good progress so far.
[1] https://news.ycombinator.com/item?id=9031570
[2] http://www.reddit.com/r/freebsd/comments/2vikrs/freebsd_buil...
So what they gain from all of this is getting back into the ring. It also polarizes Windows to a desktop OS (where it belongs) vs Server OS.
Mobile and Cloud are where everything is happening. Amazon own(ed?) Cloud, Apple & Google own Mobile. Whole generations are growing up without using Microsoft tech even in developed countries. Which of the major tech companies to arise in the past 10 years use a Microsoft tech stack? (hint: none)
Microsoft tried to take on mobile with Windows Phone 7 and Windows 8 (Surface, Windows ARM, etc). They were all duds more or less and Microsoft was at risk of becoming completely irrelevant.
I think Microsoft's leadership (including Bill & Balmer) took a long, hard look and realized that Mobile has already past the hockey stick growth phase. At that point only the one or two competitors seen as leaders survive; Apple and Google have already won.
They were also at risk of Amazon and other hosting providers eating away at their server business by making it easier to deploy servers at the infrastructure level. Microsoft also critically lost developer mindshare; despite C# being a much better language than Java (and Oracle's mis-steps creating enormous opportunity) no one gave a shit.
There's a thing that happens in large organizations where a leader can become boxed in and unable to change direction. Balmer was clearly in that position and as someone who deeply cared about Microsoft he stepped down and gave Nadela the reigns. You can also bet Bill is backing him or he'd never be able to get away with making such drastic changes.
So what does Microsoft gain? Getting people to use their software. They'll never own the Mobile OS, so may as well accept it and move on.
People don't want to run Windows Servers? fine, run Linux on Azure. They might as well take your money since they sure aren't going to get you to switch. Why did they push Mobile Services so heavily for iOS? Why do they have Android SDKs? Because if they can't own the Mobile OS, they can at least grab a piece by being a really easy to use back-end for the app ecosystems.
And why open-source C# (Roslyn) and the CLR stack? Capitalize on Oracle's lawsuits over Java and Sun/Oracle's mismanagement of Java (and the years of stagnation Java suffered, though that has changed recently). They'd rather sell you developer tools, or make sure that cool new open-source projects start using C# so it makes it more natural to support Windows in addition to *nix/Mac.
Now that it's all MIT licensed and contains full patent promises I consider Mono a completely legit fork. That means even if Microsoft dropped it all tomorrow, Mono could still continue unfazed.
Leads me to think back to when Steve Jobs came back to Apple and one of the first things he did was kill all the Apple-licensed Mac clones.
MS seemingly got blindsided by mobile. When it comes to a consumer who is personally engaging with a computing device nowadays and not just doing it for a job, a huge number of eyes are now glued to a device that doesn't use a Microsoft operating system, apps not written in a Microsoft language, utilizing backend services not running Microsoft servers. They own a good part of the boring corporate world people mostly dislike and a decent share of gaming, but consoles are fairly evenly split and their desktop gaming monopoly is only riding on a continually dwindling amount of momentum (a large chunk of games are multi-platform releases, desktop Windows and the Xbox are popular but not necessary for gaming to continue).
Doubtful SQL Server on the 'nix stack has much demand nor will it gain traction. In all OS' not Windows... Oracle, PostgreSQL and MySQL/MariaDB dominate. Not because SQL Server isn't available, but because they are all very solid very good SQL servers.
RDBMSes that you pay for are still able to out perform free, community-developed systems [2]. I've done work on both the DBA and the developer side on Postgres, MySQL, and SQL Server, and I can tell you that if platform and cost were never an issue, I'd choose the latter every time.
[1] http://www.indeed.com/jobs?q=Java+SQL+Server [2] https://www.periscope.io/blog/count-distinct-in-mysql-postgr...
Are there any announcements to port SQL Server?
IIS is ... meh, a pain compared to nginx, and nginx is gimped on Windows. I'd prefer to have nginx FastCGI to an ASP.NET server than use IIS.
Windows is fantastic if you've only got a handful of machines and buy into their other management systems that tie into AD. I'm guessing for companies running Exchange and so on, it makes a ton of sense.
But deploying custom apps I've written in F# or C#, Windows only gets in the way. If the CLR ran fine on Linux, that'd remove the only real barrier (Mono's great, but it doesn't fully support ASP.NET, and has other weird edges (but I've used it in production at high volume for years.))
No doubt this was Microsoft's concern all along. But now with Azure, they figure they can make money on Linux. And at the prices they charge for VMs, they could resell Google Cloud and make a great profit. Azure's compute prices are double Google's.
It also opens up the playing fields for .NET developers to now target
nix as well (without learning a new language).Mono (aka Xamarin) are getting out of the compiler/language reverse engineering game and focusing 100% on mobile. They no longer need to clean room the MSFT implementation because the MSR license as a purple-pill. Now that Microsoft has relicensed under MIT developers are arriving in droves.
Advantages? .NET everywhere, SINGLE reference implementation/specification means no more bugs.
edit: You can see the transformation of Xamarin -> Mobile and replacing internal components from CoreCLR over at https://trello.com/b/vRPTMfdz/net-framework-integration-into...
What does this mean? Googling it led to interpretations that I doubt apply here... ><
http://www.neowin.net/news/microsofts-net-poison-pill
This news, however, is a very positive step. Can't wait for Build next week...
Instead of taking something like Mono that was pre-built to run on their system, they took the CoreClr source that did not have a working build for FreeBsd, and got it to the point that it did.
Today's announcement is the real thing.
[1] http://en.wikipedia.org/wiki/Shared_Source_Common_Language_I...
I was already using jails on FreeBSD for a while back then. Sometimes it feels like there's no progress in tech, except the widespread acceptance of and interest in technology
Until that milestone is reached and it's hosted on a pretty web site, Microsoft should just focus their efforts on getting there.
What are you referring to?
When Microsoft actually atones, we can reward and encourage. until then, BSD users (and anyone who read a Halloween Document[1]) know Microsoft's gifts have strings.