3 ms·
Java is moving to complicated generics though, see project Valhalla, although not like C++ templates, but more about specialization for primitive types, which c
by enitihas 7y ago
Java is moving to complicated generics though, see project Valhalla, although not like C++ templates, but more about specialization for primitive types, which can be a huge performance win.
- swagonomixxx 7y agoInteresting, I haven't heard of Valhalla (I haven't really used Java since around 2014). From their landing page it seems like their priorities are value types (which Go already has - you need to specify pointer types explicitly) and support value types as generic type parameters, which Go has to do, because it has value types. I guess it will complicate things a bit, you're right. I'm pretty happy I don't have to use Java anymore though :)
- uluyol 7y agoMore complicated for the JVM to implement, sure, but if anything, won't this simplify the semantics? Users don't need to worry about boxing/unboxing values.
- enitihas 7y agoI am eagerly waiting for this to land, but it will complicate both JVM implementation and user programms, since now List<int> might be a separate class,