Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
joe_mwangi
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
5 ms
·
31.
▲
by
joe_mwangi
5mo ago
Hope you come back. Would be cool to venture in this new data oriented programming phase java has invested a lot in.
32.
▲
by
joe_mwangi
5mo ago
Hahaha... inspired by it actually.
33.
▲
by
joe_mwangi
5mo ago
Yeaaah. You might be right. Hopefully we have this one day https://openjdk.org/jeps/8261007
34.
▲
by
joe_mwangi
5mo ago
I use c-struct layout. I should be more explicit in the readme. I use classfile api to generate bytecode during initialisation of the Mem<T> and bytecode stored in cache in case if initialised again somewhere based on the same record
35.
▲
by
joe_mwangi
5mo ago
Thanks. Main goal. Unions is where I decided to pause - no simple and ergonomic way to do it at the moment.
36.
▲
by
joe_mwangi
5mo ago
Yup. Totally agree. Java does needs an array of structs. Hopefully value classes will help out through flattened array. But in future, one can use value records with this library with probable zero cost allocation. But the library doesn
37.
▲
Library for fast mapping of Java records to native memory
(github.com)
166 points
by
joe_mwangi
5mo ago
|
37 comments
38.
▲
by
joe_mwangi
7mo ago
Here it is https://youtu.be/Gz7Or9C0TpM?si=Rk5pTeAC6ibqS-M-
39.
▲
by
joe_mwangi
8mo ago
Typeclasses are coming. And they will use them for growing the language such as operator overloading, collection literals, narrowing & widening types, etc.
40.
▲
by
joe_mwangi
8mo ago
This article doesn't talk about Valhalla and doesn't talk about java pattern matching in depth. It should have been titled as Kotlin vs Rust.
41.
▲
by
joe_mwangi
8mo ago
I shifted to java modules. It solved many things especially using jpackage. Latest java version handles import hell reducing import clutter.
42.
▲
Java Data Oriented Programming Concept Proposal, Beyond Records
(mail.openjdk.org)
2 points
by
joe_mwangi
9mo ago
|
0 comments
43.
▲
Typeclasses Prototype Java
(mail.openjdk.org)
2 points
by
joe_mwangi
9mo ago
|
1 comments
44.
▲
Amber Features 2026 for Java
(mail.openjdk.org)
4 points
by
joe_mwangi
9mo ago
|
0 comments
45.
▲
by
joe_mwangi
1y ago
It was submitted recently 2 weeks ago hence we might see something in future releases too.
46.
▲
by
joe_mwangi
1y ago
Type class approach seems quite a novel strategy. Using monoids, groups, rings, etc for algebraic structures in type class (interface), one can model operator overloading, collection literals, type conversions. Seems people in Haskell have