RFR: 8338529: Initial iteration of numerics modeling interfaces [v3]

Jean-Noël Rouvignac duke at openjdk.org
Mon Jan 19 11:43:22 UTC 2026


On Fri, 16 Jan 2026 20:50:42 GMT, Joe Darcy <darcy at openjdk.org> wrote:

>> A refinement of some earlier ideas on the numerics modeling interfaces to inform further discussions.
>> 
>> This is a "lumpy" rather than "splitty" design in terms of favoring a smaller number of interfaces with more functionality rather than a larger number of interfaces making smaller distinctions.
>> 
>> Various design comments and to-do's noted in the code.
>
> Joe Darcy has updated the pull request incrementally with two additional commits since the last revision:
> 
>  - Add default methods.
>  - Respond to review feedback; add default methods.

src/java.base/share/classes/java/lang/Numerical.java line 29:

> 27: 
> 28: /**
> 29:  * Indicates a type supports the basic binary arithmetic operations of

Suggestion:

 * Indicates a type that supports the basic binary arithmetic operations of

-------------

PR Review Comment: https://git.openjdk.org/valhalla/pull/1917#discussion_r2704407202


More information about the valhalla-dev mailing list