3 ms·
This isn't something that unsual though, from some oldies to newer ones, Delphi, Oberon variants, Modula-3, Common Lisp, Eiffel, D, Swift, and eventually Java (
by pjmlp 2y ago
This isn't something that unsual though, from some oldies to newer ones, Delphi, Oberon variants, Modula-3, Common Lisp, Eiffel, D, Swift, and eventually Java (when value class and value record finally lands, EA available)
It is the focus on managed scripting languages, that trips people up, when they finally change to one of those compiled ones.
- CharlieDigital 2y ago> and eventually Java Wait, it's been a looong time since I did Java. What am I missing here; what does Java do differently from C#? (C# is my daily driver so I'm quite familiar with its handling of value and reference types)
- pjmlp 2y agoCurrently it does better escape analysis than the CLR is capable of, specially if using specific JVMs like GraalVM, Azul, as Java enjoys choice in JVM implementations. Apparently .NET 9 will have better escape analysis. Additionally, there is the Project Valhala, whose goal is to add value types to Java, and there are now the first set of early access releases, https://jdk.java.net/valhalla/ https://jdk.java.net/valhalla/ It has taken a while (about 10 years now) to get right, because they want to keep all existing ecosystem running on top of a Valhala improved JVM in a transparent way, and adding value types without changing the Java ABI from all stuff on Maven Central and private repos, is an herculean task. Ideally Java's should have taken into account systems languages with GC that predated it, given the quoted influences on its design, better latter than never I guess.