Live data from Hacker News

Microsoft donates the Mono Project to the Wine team

mono-project.com

501–509 of 509 posts

Re: Microsoft donates the Mono Project to the Wine team

#501
post #499

Earlier quoted context omitted.

Azure didn't exist. OS X had just come out and almost no one took Macs seriously as a development target yet. Windows was the only user-facing thing anyone developed for aside from little Java games on flip phones. The Web 2.0 takeover was still years off and Internet Explorer ran the show. Is "historical context" not as clear as I thought? You're the second person to challenge this by pointing out the current situat…

The first Macs to use Intel processors were released in January 2006 Microsoft Azure was first released on February 1, 2010 Microsoft released .NET Core 1.0 on June 27, 2016

This was 2001 and earlier. You're talking about stuff that happened 5+ years later.

Re: Microsoft donates the Mono Project to the Wine team

#502
post #501

Earlier quoted context omitted.

The first Macs to use Intel processors were released in January 2006 Microsoft Azure was first released on February 1, 2010 Microsoft released .NET Core 1.0 on June 27, 2016

This was 2001 and earlier. You're talking about stuff that happened 5+ years later.

[deleted]

Re: Microsoft donates the Mono Project to the Wine team

#503

Earlier quoted context omitted.

> There is also an exercise in writing JNI bindings. Or maybe using Java FFM now which still requires you to go through separate tooling, build stage, deal with off-heap memory management API and still does not change the performance profile significantly. There's a reason it is recommended to avoid native dependencies in Java and port them instead (even with performance sacrifices).* Green Threads will only exacerba…

> The primary issue I've got with the .NET ecosystem is actually closely related to that. Because it's so easy to import native libraries, often there's no .NET version of a library and everyone uses the native one instead. But if I actually want to build the native one I've got to work with ancient C++ build systems and all the arcane trouble they bring with them. What is the reason to continue making statements lik…

> Quick search indicates that it comes at an explicit huge performance tradeoff however.

That's definitely true, but it should be possible to reimplement JNA on top of the new FFM APIs for convenient imports and high performance at the same time.

> Of course the numbers can be presented in a much more .NET-favored way by including the allocations that Java has to do in the absence of structs and other C primitives.

Hopefully Project Valhalla will allow fixing that, the current workarounds aren't pretty.

I fully agree though that .NET is far superior in terms of native interop.

> As the previous conversation indicates, you are not familiar with C# and its toolchain,

I've been using .NET for far over a decade now. I even was at one of the hackathons for Windows Phone developers back in the day.

Sure, I haven't kept up with all the changes in the last 2-3 years because I've been so busy with work (which is Kotlin & Typescript).

That said, it doesn't seem like most of these changes have made it that far into real world projects either. Most of the .NET projects I see in the real world are years behind, a handful even still targeting .NET Framework.

> were wrong on previous points as demonstrated.

So far all we've got is a back and forth argument over the same few points, you haven't actually shown any of my points to be "wrong".

Re: Microsoft donates the Mono Project to the Wine team

#504
post #501

Earlier quoted context omitted.

The first Macs to use Intel processors were released in January 2006 Microsoft Azure was first released on February 1, 2010 Microsoft released .NET Core 1.0 on June 27, 2016

This was 2001 and earlier. You're talking about stuff that happened 5+ years later.

Yes, I'm talking about when they added real cross-platform support to .Net, which was with .Net Core.

Re: Microsoft donates the Mono Project to the Wine team

#505
post #501

Earlier quoted context omitted.

This was 2001 and earlier. You're talking about stuff that happened 5+ years later.

Yes, I'm talking about when they added real cross-platform support to .Net, which was with .Net Core.

Then you're not talking about what I was talking about in the post you replied to with a framing that suggested you were disagreeing. Did you click the wrong reply link?

Re: Microsoft donates the Mono Project to the Wine team

#506

Earlier quoted context omitted.

> The primary issue I've got with the .NET ecosystem is actually closely related to that. Because it's so easy to import native libraries, often there's no .NET version of a library and everyone uses the native one instead. But if I actually want to build the native one I've got to work with ancient C++ build systems and all the arcane trouble they bring with them. What is the reason to continue making statements lik…

> Quick search indicates that it comes at an explicit huge performance tradeoff however. That's definitely true, but it should be possible to reimplement JNA on top of the new FFM APIs for convenient imports and high performance at the same time. > Of course the numbers can be presented in a much more .NET-favored way by including the allocations that Java has to do in the absence of structs and other C primitives. H…

> I've been using .NET for far over a decade now. I even was at one of the hackathons for Windows Phone developers back in the day.

This conversation comes up from time to time. It is sometimes difficult to talk to developers who have a perception of .NET that predates .NET Core 3.1 or so and newer. Windows Phone and its tooling is older. I am sad UWP has died, the ecosystem needs something better than what we have today, and the way Apple does portability with MacCatalyst is absolutely pathetic. In a better timeline there exists open and multi-platform UWP-like abstraction adopted by everything. But these were other times and I digress.

The package distribution did not change significantly besides small things like not having to write .nuspec by hand in most situations. Nuget was already good and far ahead of the industry at the time it was introduced.

The main change was the switch to SDK-style projects files. Kind of like Cargo.toml but XML.

Adding a file to a nuget package (or anything else you build) is just adding a item to an .

Adding custom MSBuild stage or behavior is done via .targets file for packaging purposes: https://learn.microsoft.com/en-us/nuget/concepts/msbuild-pro...

Which is why I linked you Whisper.net. It has a .targets file that manages platform-specific dependencies: https://github.com/sandrohanea/whisper.net/blob/main/Whisper....

As you can see, it is possible to make definitions conditional and use arbitrary information provided by the build system. It is very powerful. I don't know what made you think that I assume anything about .jar files.

For another example, look at these lines: https://github.com/U8String/U8String/blob/main/Examples/Inte...

Together with property, invoking 'dotnet publish -o .' calls into cargo to build a static library from Rust, then compiles C# project, then compiles the produced .NET assemblies to native object files with ILC (IL AOT Compiler), and then calls system linker to statically link together .NET object files and a Rust object file into a final native binary. The calls across interop, as annotated, become direct C ABI calls + GC poll (a boolean check, multiple checks may be merged so less than a branch per call).

This produces just a single executable that you can ship to users. If you open it with Ghidra, it will look like weird C++. This is a new feature (.NET 7+) but even without NativeAOT, it was already possible to trim and bundle CIL assemblies into a single executable together with JIT and GC. As far as I'm aware, the closest thing that Java has is Graal Native Image, which is even more limited than NativeAOT at the present moment (IL linker has improved a lot and needs much less annotations, most of which can be added as attributes in code and the analyzer will guide you so you don't need trial and error). And the project that allows to embed bytecode in the .NET trimmed single-file style in Java is still very far from completion (if I understood it right).

I think https://two-wrongs.com/dotnet-on-linux-update is more or less representative of unbiased conclusions one makes when judging .NET by its merits today. You can always say "it used to be bad". Sure. It does not mean it still is, and the argument is irrelevant for greenfield projects, which is what I advocate C# is the better choice for anyway.

> I fully agree though that .NET is far superior in terms of native interop.

This is not limited to native interop. At its design inception, C# was supposed to replace C++ components at MS. Then, in C# 2, a focus group including Don Syme if I'm not mistaken pushed for generics and other features. Someone posted a history bit here on HN.

This and influence from the projects like Midori (spans, struct improvements), and subsequent evolution (including the existence of Mono) and especially after it stopped being .NET Framework and became .NET resulted in a language that has much wider scope of application than most other GC-based languages, including Java, particularly around low-level tasks (which is also why it's popular in the gaming industry).

Unfortunately, the perception of "another Java" hurts the ecosystem and discourse significantly, as the language and the platform are very unlike this claim.

Re: Microsoft donates the Mono Project to the Wine team

#507

Earlier quoted context omitted.

I don't know any .net, and have never heard of this until now. Only stories with comments on HN are from eight years ago. Although I liked the screenshots on the linked site, it doesn't seem to have much buzz around it. And unfortunately, the only stench I can't stand more than Google's is Microsoft's.

I do not follow buzz. I am an engineer by education and attitude and always try to investigate my options based on my needs and requirements. I use buzz only to drive me trough my investigations. In my case I had a desktop application that had to run on Windows and MacOs and needed support for Rich text format and rendering of custom graphs. Following buzz I started to do a prototype with Flutter and stopped after a…

I use buzz merely as a proxy for community size, support, etc. Will have to try them out as you said to really know.

Re: Microsoft donates the Mono Project to the Wine team

#508

Earlier quoted context omitted.

It's the Microsoft way to apply the same name to bunch of unrelated products. everything is .net, azure, 365, now also copilot.

Copilot is just Clippy II+.

More like Clippy-II/ChatGPT.

Re: Microsoft donates the Mono Project to the Wine team

#509

Earlier quoted context omitted.

Why would they want to use Linux though?

Who knows why, but they already are. Apparently hotmail in the early days used Linux for some servers. Linux is pretty common in Azure.

Hotmail was built on top of Unix by someone else, and then Microsoft acquired it.

Yes, Microsoft does do Linux these days, they even have their distro, but this still does not answer the question of why they would replace real Windows with Wine and risk compatibility issues, if they don’t have to pay anything for licenses.

Post reply on HN