having the IDE (or compiler, not real clear which) analyze thread-safety is novel, but it's not the only language to do so. And it's not even impossible to write a C# analyzer to check that (excepting reflection, which probably breaks kotlin's guarantees, anyhow)
I think my point it, the reason I'm content on the .net framework is that it took a lot of the lessons learned from java having JITted runtime, and fixed a lot of those errors. Because it came later, it doesn't have to live with the baggage that Java has. And languages that target that surely get to target everywhere the JVM runs, but they pay a cost in performance and security as a result.
The benchmarks game is a twofold game. 1) How can you tease your compiler into emitting the most time- and memory-efficient code to execute the algorithm as stated 2) Which language's compiler is best at optimizing for time- and memory-efficiency
Bottom of the page
(click on the language name under an algorithm heading to view the code)
Java
java 10 2018-03-20 Java(TM) SE Runtime Environment 18.3 (build 10+46) Java HotSpot(TM) 64-Bit Server VM 18.3 (build 10+46, mixed mode) C# .NET Core
I said the JVM has weaknesses that can cause performance issues, and they are inherited by other languages targeting the same runtime. That's a very different statement. You brought up Java, the language.
Unfortunately, the benchmarks game hasn't ccepted Kotlin or Scala as languages to be benchmarked
I'd be interested in the performance of them. But that wasn't my primary point. My point was there are a lot of things in the JVM that are stuck because of compatibility with Java 1. the .Net runtime has had several breaking-change versions to fix some of our issues that were similar
And anything that targets the JVM is stuck with that baggage. I also have other issues with the JVM outside of performance. But I'm not interested in dissecting them here. For the majority of what I do, at work and for fun, the .net runtime makes the right compromises between ease-of-use, cross-platform availability, and performance. When it doesn't, I write Rust.
That's probably the logic of the benchmarks game, but if you can write similar algorithms and get identical bytecode, then Scala and Kotlin are really just syntax reprocessors and extra class libraries for Java, anyway
Interop is great. Which is why I like C# and Rust. C# was always intended to be cross-platform, and Microsoft has made some huge strides lately in catching up to Java (who is still ahead). Rust targets to LLVM (6, currently), and is pretty focused on write-once-run-anywhere (with the necessary recompilation).
I also think that really, libraries are all that need to be interop. The UI has to be rewritten anyhow, nearly every time. Different interaction methods and display conventions make UIs hard to translate
Microsoft initially targeted releasing .Net for Linux and Mac, and was turned down by the linux community (because they wanted open-source, reasonably), and Apple, because they wanted people writing Objective-C
Let's not pretend C# was not tightly coupled to Windows OS. It was, and has been for a long time. There was no way to run on Linux, nor Mac, nor anywhere else. That's all much more recent. Microsoft became less-evil over time and now we have .NET Core.
Easy there. I said exactly what I meant. Microsoft didn't intend that to be. You can go read up on the history, or not. They intended to release .Net runtimes for other platforms, and there wasn't interest. As Microsoft became less evil and more willing to open-source, they've become more accepted. That doesn't change what they intended two decades ago, or that they didn't execute on it
I'm not saying it was cross-platfrom. it wasn't. I wrote code on .Net 1, I know it wasn't usable anywhere but Windows.
Regardless. Not the point. We're multiple versions into .Net Core, which is cross-platform. We had Mono and Xamarin before that.
And I really was only talking about intent. Ballmer thought he was a maverick and would 'just win' with .net on just windows, when the other communities turned M$ down... He was pretty wrong.
I'm not disagreeing with you. The BCL had a lot of trimming worth doing, so seeing it work out and also seeing them revisit long-standing objects and make them perform better, is great
I think they wanted to reduce the reliance on old win32 assemblies, which happened to enable them to go xplat. when they decided to actually try going xplat
@SebastianL not yet you'll be able to in 2019 https://www.theregister.co.uk/2018/05/07/microsoft_announces_net_core_30_including_windows_desktop_applications/
But when people decide "Electron!" for a chat basic chat app, suddenly you've got huge amounts of (mainly just) memory wasted running a chrome instance to show some chat bubbles and a text box#
that pentium is advertised at 1.1GHz, because that's what it's TDP'd for. But it bursts up to 2.5GHz, which it will probably do anytime the CPU is taxed