▲ | nananana9 a day ago | |||||||
> the int/Integer primitive/object issue and boxing. That's a deal-breaker. If you can't tie together a few values in a record/struct without being forced to box them/heap allocate them, the language will never be used anywhere where you even remotely care about performance. This is not a difficult problem to solve - C# did it in a very elegant way with structs, and as a direct result, probably for half of all videogames written today, the gameplay portion is written in C#. | ||||||||
▲ | adgjlsfhk1 a day ago | parent | next [-] | |||||||
imo it's worse than that. of they'd just hid the boxing in the runtime, Java would be a kind of slow language that didn't feel awful. by exposing the unboxed primitives to the user, they created a horrible duality of incompatible types. | ||||||||
| ||||||||
▲ | brabel a day ago | parent | prev | next [-] | |||||||
What are you criticizing exactly? You can have primitive integers in Java records or classes just fine. If you have many you can use an int[] like in C, no one forces you to use generic containers. | ||||||||
▲ | huhlig a day ago | parent | prev [-] | |||||||
Uhh. Most big data platforms are jdk based. Java handles scalable long running applications incredibly well for a fraction of the cognitive load. |