Click here to Skip to main content
15,885,757 members

Welcome to the Lounge

   

For discussing anything related to a software developer's life but is not for programming questions. Got a programming question?

The Lounge is rated Safe For Work. If you're about to post something inappropriate for a shared office environment, then don't post it. No ads, no abuse, and no programming questions. Trolling, (political, climate, religious or whatever) will result in your account being removed.

 
GeneralRe: What's wrong with Java? Pin
Gerry Schmitz4-Mar-21 8:38
mveGerry Schmitz4-Mar-21 8:38 
GeneralRe: What's wrong with Java? Pin
Rick York4-Mar-21 9:34
mveRick York4-Mar-21 9:34 
GeneralRe: What's wrong with Java? Pin
Cp-Coder4-Mar-21 14:39
Cp-Coder4-Mar-21 14:39 
GeneralRe: What's wrong with Java? Pin
trønderen5-Mar-21 6:33
trønderen5-Mar-21 6:33 
GeneralRe: What's wrong with Java? Pin
Rick York5-Mar-21 6:39
mveRick York5-Mar-21 6:39 
GeneralRe: What's wrong with Java? Pin
NelsonGoncalves4-Mar-21 20:21
NelsonGoncalves4-Mar-21 20:21 
GeneralRe: What's wrong with Java? Pin
Member 133016794-Mar-21 23:03
Member 133016794-Mar-21 23:03 
GeneralRe: What's wrong with Java? Pin
NelsonGoncalves4-Mar-21 23:23
NelsonGoncalves4-Mar-21 23:23 
Thanks for the explanation.

Member 13301679 wrote:
Sure, those are sh*tty reasons to leave out unsigned types, but they're still reasons. The only place you're likely to run into problems is when trying to add two signed 64-bit numbers that overflow the signed 64-bit type.


I am OK with the design decisions made, the issue there was conflicting expectations. The Java language designers choose to treat bytes as signed integers, while in the embedded world a byte is simply a string of 8 bits and endianess.

In my case, the problem wasn't math but reading data from a serial port. I was getting "garbage" until my colleagues told me that in Java bytes are signed.
GeneralRe: What's wrong with Java? Pin
Member 133016795-Mar-21 0:03
Member 133016795-Mar-21 0:03 
GeneralRe: What's wrong with Java? Pin
trønderen5-Mar-21 7:18
trønderen5-Mar-21 7:18 
GeneralRe: What's wrong with Java? Pin
NelsonGoncalves6-Mar-21 3:11
NelsonGoncalves6-Mar-21 3:11 
GeneralRe: What's wrong with Java? Pin
Peter Adam4-Mar-21 21:07
professionalPeter Adam4-Mar-21 21:07 
GeneralRe: What's wrong with Java? Pin
Member 133016794-Mar-21 22:47
Member 133016794-Mar-21 22:47 
GeneralRe: What's wrong with Java? Pin
Martin ISDN4-Mar-21 22:58
Martin ISDN4-Mar-21 22:58 
GeneralRe: What's wrong with Java? Pin
Member 133016794-Mar-21 23:07
Member 133016794-Mar-21 23:07 
GeneralRe: What's wrong with Java? Pin
Martin ISDN5-Mar-21 1:49
Martin ISDN5-Mar-21 1:49 
GeneralRe: What's wrong with Java? Pin
Dan Neely5-Mar-21 2:44
Dan Neely5-Mar-21 2:44 
GeneralRe: What's wrong with Java? Pin
obermd5-Mar-21 3:35
obermd5-Mar-21 3:35 
GeneralRe: What's wrong with Java? Pin
Bruce Patin5-Mar-21 6:02
Bruce Patin5-Mar-21 6:02 
GeneralRe: What's wrong with Java? Pin
Cp-Coder5-Mar-21 6:22
Cp-Coder5-Mar-21 6:22 
GeneralRe: What's wrong with Java? Pin
Bruce Patin5-Mar-21 10:22
Bruce Patin5-Mar-21 10:22 
GeneralRe: What's wrong with Java? Pin
Cp-Coder5-Mar-21 10:28
Cp-Coder5-Mar-21 10:28 
GeneralRe: What's wrong with Java? Pin
Bruce Patin5-Mar-21 10:43
Bruce Patin5-Mar-21 10:43 
GeneralRe: What's wrong with Java? Pin
sasadler5-Mar-21 6:28
sasadler5-Mar-21 6:28 
GeneralRe: What's wrong with Java? Pin
Member 129825585-Mar-21 6:42
Member 129825585-Mar-21 6:42 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.