5 ms·
Microsoft’s Ready to Contribute to OpenJDK
- nereu 7y agocool
- abledon 7y agoHypothetical Question: Is it at all possible to eventually merge Java and C# back into a single language? Say in 2030 ?
- cdbattags 7y agoI'd say not or at least they'd have to abstract for different runtimes .NET/Core and JVM have quite diverged I would think
- ahoka 7y agoNo. Why would anyone do that? Maybe C# could be moved to the JVM, that could make some sense, but unlikely.
- m4r35n357 7y agoWhat would be the point? C# has been well and truly tied to the Visual Studio / MSSQL / Resharper stack.
- efdee 7y agoOf course you can use other IDEs (VS Code, Rider, Monodevelop) and databases (Postgres, Sqlite, Mysql, Oracle). And plenty of people don't use R# either, but I prefer to do so.
- UglyToad 7y agoFunnily enough I was thinking an almost identical thing this morning. We had IKVM [0] for.NET, which if I understood it correctly allowed Java to run on the CLR (I probably misunderstood this). I'm not entirely sure why Microsoft don't build something official to run Java code on the CLR/.NET, is it a technical or legal limitation, or simply that there's no business need? [0]: https://www.ikvm.net/ https://www.ikvm.net/
- Ididntdothis 7y agoIt would be huge if they implemented a way to run java libraries from .NET. Be it ikvm or something else. This would immediately open up huge amounts of very interesting libraries to .NET. For example Bouncy Castle or Lucene. Years ago I worked on a document search app. Wrote it in .NET but then almost all interesting libraries were in Java exclusively or with an outdated .NET port. Being able to use the up to date java libraries would have been huge. This experience alone makes me reluctant to use .NET. The Java ecosystem is just much broader.
- Nelkins 7y agoAn active fork of IKVM can be found here: https://github.com/jessielesbian/ikvm https://github.com/jessielesbian/ikvm Also re: using Java with .NET, there's also their Java Interop project which is used with Xamarin: https://github.com/xamarin/java.interop https://github.com/xamarin/java.interop
- lazeebee 7y agoIt seems Microsoft is doing .net Java introp: https://github.com/dotnet/csharplang/issues/2517 https://github.com/dotnet/csharplang/issues/2517
- phillipcarter 7y agoNot without an enormous amount of breaking changes. The severity of them would be so high that no C# or Java programmer could ever convert their existing code.
- DannyB2 7y agoNot likely. Something more likely. Two things. Make dot NET a truly first class citizen on other platforms. Including the ecosystem of C# and dot NET libraries. Some of this may be difficult due to the long time that dot NET has been Windows only. There would have to be a clear boundary between APIs and features of the runtime and libraries that are only available on Windows. I think Microsoft is already making moves in this direction. But I don't keep up with it. Make Java a truly first class citizen on Windows.
- kerng 7y agoCool, looks according to post submission this actually happened end of October. How did it go so far? Anyone know more?
- brunoborges 7y agoSo far we have submitted couple patches [1][2] that we felt were good opportunities to learn how contributions flow into OpenJDK, and we are now starting to experiment with JFR and other GCs like Shenandoah. As we progress, we may find other fixes and enhancements that we aim at upstreaming as well. If you have further questions, I'd be happy to take them. Best, Bruno Borges, PM for Java at Microsoft [1] https://hg.openjdk.java.net/jdk/jdk/rev/aebd72de84b0 https://hg.openjdk.java.net/jdk/jdk/rev/aebd72de84b0 [2] https://hg.openjdk.java.net/jdk/jdk/rev/c6e474ae266b https://hg.openjdk.java.net/jdk/jdk/rev/c6e474ae266b [3] https://mail.openjdk.java.net/pipermail/shenandoah-dev/2019-December/011230.html https://mail.openjdk.java.net/pipermail/shenandoah-dev/2019-... (still under review) [4] https://mail.openjdk.java.net/pipermail/hotspot-compiler-dev/2019-November/036171.html https://mail.openjdk.java.net/pipermail/hotspot-compiler-dev... (ongoing discussion)
- stuff4ben 7y agoI like the direction the "new" Microsoft is going! Hopefully they'll behave themselves this time (re: Visual J++, etc)
- bhauer 7y agoJ++ might get a bad rap in hindsight, but back in the day, it was amazing. The editor was liquid smooth, performance wise, and the compiler was at least a dozen times faster than the JDK Java compiler. It was like the Jikes compiler before Jikes. I recall using Visual J++ and its compiler to do "pure Java" development back then and it was a delight. I only moved to Eclipse later because Eclipse had a deeper understanding of the Java language and was able to do fancy things like traverse a call stack from static code analysis. Eclipse was considerably slower in UI and responsiveness, especially on hardware of the time, but that utility made up for it.
- ben7799 7y agoI think Eclipse is probably still slower on modern hardware than Visual J++ was in 1999-2000, which was the last time I used it. The first commercial Java project I worked on we used Visual J++. It was a great environment at the time, there was very little else available if I remember correctly. Sun had something which was horrible. Eclipse is so bad I think those of us who have been in the Java camp for years/decades/whole career have lost sight of just how much better the MS tools were/are. I don't even remember feeling as much frustration towards VC++ in the 1990s as I do with Eclipse today. It's too easy to forget Mac wasn't even an option back then. OSX didn't start to become viable till 2003-2004. I've officially been doing Java 20 years now... part of me really wants to jump the fence and go work on Windows stuff. I jumped the fence to work on Python 6 years ago. But it was "Python being used for stuff Java is 10x better for" and got tired of it after a year. Python is 10x better than Java for lots of things.. but not for giant enterprise systems IMO.
- bhauer 7y agoAgreed. It may be true that Eclipse on a Ryzen 9 doesn't feel as responsive as Visual J++ on a Pentium III. J++ was just that much faster than Eclipse. Then again, for my usage, the J++ environment was not much more than a syntax-colored text editor with project files and a method and field browser. Like I said, when Eclipse arrived a few years later, it provided a lot of utility that J++ did not, and obviously that utility has value. But I think both of us look back fondly on J++ because we know that had it not been cut short, it could have evolved into something different and possibly even better than what we know as Java today. It seems plausible that in an alternate history where J++ kept evolving, I'd be more satisfied with the state of the art.
- m0zg 7y agoIf Anders Hejlsberg is not a part of this effort, then meh. If he is, then wow.
- fs111 7y agowhy would he part of it?
- m0zg 7y agoHe's basically the living legend of programming language design, having designed _three_ successful programming languages (TurboPascal, C# and TypeScript). If he's allowed to tweak Java to his liking, it might actually at some point catch up to what C# was 15 years ago, and maybe even get proper generics.
- ksec 7y agoWhat is he working on now? Wiki still list him working on C#.
- m0zg 7y agoTypeScript and C#. Both are grade AAA language efforts IMO.
- layoutIfNeeded 7y agoSic transit gloria mundi :^) https://en.m.wikipedia.org/wiki/Microsoft_Java_Virtual_Machine https://en.m.wikipedia.org/wiki/Microsoft_Java_Virtual_Machi...
- polskibus 7y agoPlease MS, increase development resources behind net and c# instead. It will benefit Java more than direct Java development - competition will give Java more motivation to grow.
- paggle 7y agoMicrosoft doesn’t have to pull resources from anything to put them on Java. It’s like if Jeff Bezos is buying a car and you say “please spend the money on a boat instead”
- bhauer 7y agoYou say that as if they are somehow being sparing in their support of C# and .NET, which is clearly not true. What specifically do you see as lacking on that front?
- cm2187 7y agoI can't remember the last time they contributed anything significant to the .net standard library. Yes, they added a json serializer. In 2019, was about time. They ported some of those library to .net standard (but only some, even with .net standard 3 there are lots of small refactorings that are required to make my libraries run). They are adding to the language, which is a mixed blessing, it is helping in some aspects, but also making the syntax even more complicated to a beginer. But the standard libraries are rather stale and would deserve a lot more love.
- resoluteteeth 7y agoIt's possible there will be more after .net 5 is released, but I think the current trend is to keep languages' standard libraries small, anyway, though. If you look at languages like python, the standard library is incredibly crufty, so it might be better if .net just deprecates stuff and people use other packages.
- polskibus 7y agoThe speed of development, the scope and quality of new language features has dropped significantly ever since Hejlsberg left C#. C# with .Net should compete with Go and rust these days, fight for the mindshare of developers.
- shortlived 7y ago>> As many of you may know, Microsoft and its subsidiaries are heavily dependent on Java in many aspects, and also offers Java runtimes in its Microsoft Azure cloud to its customers. Anyone know details on how MS uses Java outside of hosted runtimes?
- Analemma_ 7y agoI'm mystified as well. I worked at Microsoft for seven years and never once heard any mention of Java. Maybe it's in the acquisitions? (GitHub, LinkedIn, etc.)
- alt_f4 7y agoGithub is Ruby LinkedIn is Java
- ToFab123 7y agoIt is for azure to ensure java runs smoothly there. Similar to how they pushed code to the linux kernel years ago so linux and hyper-v would play nice together.
- waffletower 7y agoBeing mystified about the value of Java to Microsoft suggests that you lead a somewhat insulated life in software development.
- waffletower 7y agoI imagine that C# is used less and less within Azure's infrastructure and embracing other languages such as Java where appropriate. This would go well beyond direct Java runtime support. C# cannot compete with the Java ecosystem for open source cloud management software. Just take a glance at Apache projects and see how strongly Java is represented there. I imagine that Microsoft is investing heavily in Python as well.
- brunoborges 7y agoHi, I'm the PM for Java at Microsoft. You can see this slide I presented at MS Ignite couple months ago: https://twitter.com/chanezon/status/1192140812718657536 https://twitter.com/chanezon/status/1192140812718657536 Happy to point you to the presentation if you are interested. But in short, we use Java at some places like (there's probably more): - Azure runtimes for end-users (App Service, Functions) - Azure runtimes for other services (Azure HDInsight aka Big Data) - LinkedIn backend - Yammer backend - Mojang Minecraft - SQL Server Big Data Connectors (JVM is embedded in the DB) - Internal Android and Xamarin development Best, Bruno
- chungy 7y agoMicrosoft's apparently not ready to use line breaks. Seriously, people that write lines like that... just... why. What email client is even allowing it?
- kortilla 7y agoEmail clients that autowrap text.
- BonesJustice 7y agoWhy put in hard breaks when pretty much any email client should support soft/flexible line wrapping? Seems more like an issue with the linked site to me.
- Leace 7y agoformat=flowed is a reasonable middle-ground: https://joeclark.org/ffaq.html https://joeclark.org/ffaq.html
- jcranmer 7y agoActually, it's probably text/plain; format=flowed, which any sane email client would display as appropriately wrapped for the viewport size. It's generally the best way to send plain text emails. The problem here is the mailing list archive viewer, which is displaying it in a non-wrapping context, instead of letting the text wrap appropriate. It's using a <pre> instead of a <pre style="white-space: pre-wrap">, in other words.
- DanBC 7y agoLine breaks are hard. But <format=flowed> has been causing problems for years. https://joeclark.org/ffaq.html https://joeclark.org/ffaq.html
- deleted 7y ago[deleted]
- kodablah 7y agoIs it safe to assume this doesn't include Graal because while it is shipped with OpenJDK, AFAIK it's not a part of the project?
- Eduard 7y agoWhat would they contribute?