3 ms·
Would be cool if there were an easy way to add primitives to Java. I would like a 128-bit integer that the JVM could handle with `add` + `adc` and friends. If I
by renewiltord 3y ago
Would be cool if there were an easy way to add primitives to Java. I would like a 128-bit integer that the JVM could handle with `add` + `adc` and friends. If I could extend my JVM trivially by linking in a `.so` that enabled it to handle the primitive it would be pretty sick. I imagine that's not really that easy to do, but a nice wide primitive that could be used for fixed point arithmetic would be nice to have.
- kasperni 3y agoThere is an ongoing project [1] to support use cases such as this. [1] https://openjdk.org/projects/valhalla/ https://openjdk.org/projects/valhalla/