News for hackers. Stuff that matters.
Re:Java 14 Feature Spotlight: Records by abraxas on Tuesday February 04, 2020 @12:24PM (#22238257)
Thanks, you're right on. That's what I'm after and that's exactly what Java needs to be useful for doing high performance computations in a sane fashion.
Re:Java 14 Feature Spotlight: Records by seanmceligot on Tuesday February 04, 2020 @03:44PM (#22240740)
I switched to java from c in the mid 90's. I remember thinking how ridiculously wasteful it was to allocate an array on classes one at at time rather than as a block of memory. I think I was using berkeley DB at the time in c and it let you do that.
Re:Java 14 Feature Spotlight: Records by xxs on Tuesday February 04, 2020 @02:07PM (#22239648)
You have direct buffers but that's that... You can use multiple arrays of primitives, inverting the problem 90%. None of the solutions is optimal, easy to maintain, etc.
Re:Java 14 Feature Spotlight: Records by abraxas on Tuesday February 04, 2020 @07:11PM (#22242621)
Yes there is also the sun.misc.Unsafe class but of course that's skating on thin ice.
Re:Java 14 Feature Spotlight: Records by dman on Tuesday February 04, 2020 @01:35PM (#22239217)
That ship has sailed.
Re:Java 14 Feature Spotlight: Records by abraxas on Tuesday February 04, 2020 @07:12PM (#22242627)
What do you mean?
Re:Java 14 Feature Spotlight: Records by dman on Wednesday February 05, 2020 @02:25PM (#22250162)
I think there was an opening for a fast safe alternative to C++ in HPC, but I think Rust has taken that spot now. Control over allocation, alignment and placement is important in HPC and imo Java took too long to address these issues.