16
you are viewing a single comment's thread
view the rest of the comments
[-] piccolo@sh.itjust.works 1 points 1 month ago

Eh. I rarely use unsigned integers, and using 4 extra bytes for large numbers is nothing when the jvm is already chugging RAM... So lacking uint isnt that big deal. Though, why is a byte signed...? That is beyond me.

[-] Valmond@lemmy.dbzer0.com 1 points 1 month ago

So you don't need it means it's okay a major feature is just forgotten for 20 years? I'm not even criticising you, I'm criticising the language lol.

[-] piccolo@sh.itjust.works 3 points 1 month ago

Iirc, the decision was made for performance reasons and reducing programmer confusion. Even in the .net world, unsigned ints are against the CLS spec and using them in c# has compiler warnings. Really the only reason to care about unsigned ints is reducing memory footprint...which case Java shouldnt be your choice lang to begin with.

[-] Valmond@lemmy.dbzer0.com 1 points 1 month ago

I understand that reasoning but the dude literally forgot to add uints. Which is funny I think. Then they never fixed it (this math library stuff is just a weird band aid).

Today it is less important I guess, but back then it sure wasn't. I also don't really care what C# specs say, that has nothing to do with the story IMO.

this post was submitted on 16 Sep 2026
16 points (100.0% liked)

Java

2059 readers
1 users here now

For discussing Java, the JVM, languages that run on the JVM, and other related technologies.

founded 3 years ago
MODERATORS