Earlier quoted context omitted.
Hope you come back. Would be cool to venture in this new data oriented programming phase java has invested a lot in.
I'm glad they saw the light. Last time I used Java was in high school when it was version 7, when it was pure OOP. Didn't even have lambdas. After I learned other languages, I didn't want to use Java again, seemed like a lot of boilerplate for something that didn't even give good performance.
Library for fast mapping of Java records to native memory
31–40 of 44 posts
Re: Library for fast mapping of Java records to native memory
#32Re: Library for fast mapping of Java records to native memory
#33Re: Library for fast mapping of Java records to native memory
#34This is interesting. Java desperately needs an array of struct for type safe sugar over high performance arenas, but the areas you’d turn to this would be in a zero allocation effort where the cost of the this library’s off-heap and the object allocation in the getters and setters etc largely negate the advantages for a lot of use cases.
I find it weird that the people steering Java have been seemingly willing to sit out the use case high performance computation while it has so dominated the computing landscape. They are just patiently incrementally iterating on all these JEP's that would support dramatically improved capabilities and make Java a very attractive platform for ML - but they keep fretting over minor interface adjustments, cycle after cy…
Re: Library for fast mapping of Java records to native memory
#35 @size(3) int[] z
Are you working on anything in particular that drove you to build this? Looks great!Re: Library for fast mapping of Java records to native memory
#36Earlier quoted context omitted.
I find it weird that the people steering Java have been seemingly willing to sit out the use case high performance computation while it has so dominated the computing landscape. They are just patiently incrementally iterating on all these JEP's that would support dramatically improved capabilities and make Java a very attractive platform for ML - but they keep fretting over minor interface adjustments, cycle after cy…
It's a long roadmap, but this is their ultimate objective. Once java has value classes, future carrier classes and member patterns, that's when we shall see some very huge interest for java in ML. Also, they plan to introduce typeclasses in which it will be convenient to introduce operator overloading, and collection/array literals etc syntax. The idea is to unify the types in java, and then enable much stronger sema…
Even if they started properly on valuetypes today, it's probably still a 10 year slog to get the ecosystem to follow.
Re: Library for fast mapping of Java records to native memory
#37Earlier quoted context omitted.
It's a long roadmap, but this is their ultimate objective. Once java has value classes, future carrier classes and member patterns, that's when we shall see some very huge interest for java in ML. Also, they plan to introduce typeclasses in which it will be convenient to introduce operator overloading, and collection/array literals etc syntax. The idea is to unify the types in java, and then enable much stronger sema…
Valuetypes has been on the roadmap forever, meanwhile they put in the effort and bought out greenthreads out of retirement as virtual threads. Even if they started properly on valuetypes today, it's probably still a 10 year slog to get the ecosystem to follow.
Re: Library for fast mapping of Java records to native memory
#38I don't usually like annotations in Java, but I'm rather liking your use of @size here. @size(3) int[] z Are you working on anything in particular that drove you to build this? Looks great!
Re: Library for fast mapping of Java records to native memory
#39Earlier quoted context omitted.
Valuetypes has been on the roadmap forever, meanwhile they put in the effort and bought out greenthreads out of retirement as virtual threads. Even if they started properly on valuetypes today, it's probably still a 10 year slog to get the ecosystem to follow.
Value types are a work in progress. It won't be (another) 10 years. Give it a few more releases.
Re: Library for fast mapping of Java records to native memory
#40Inspired by this, I wrote a quick prototype using MethodHandle combinators: https://gist.github.com/DasBrain/19804df69c78cee257dd0294b00... It doesn't have all the bells and whistles - so no support for annotations or arrays, but for ~2h of work, it shows what is possible without resorting to bytecode generation.