Click here to Skip to main content
15,892,005 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.

 
PraiseRe: I think I've found a SMB1 solution ... Pin
Kornfeld Eliyahu Peter23-Aug-20 0:56
professionalKornfeld Eliyahu Peter23-Aug-20 0:56 
GeneralRe: I think I've found a SMB1 solution ... Pin
OriginalGriff23-Aug-20 1:14
mveOriginalGriff23-Aug-20 1:14 
GeneralRe: I think I've found a SMB1 solution ... Pin
Kornfeld Eliyahu Peter23-Aug-20 1:19
professionalKornfeld Eliyahu Peter23-Aug-20 1:19 
GeneralWhat is the longest programming misconception you've held (that you are aware of)? Pin
David O'Neil22-Aug-20 22:10
professionalDavid O'Neil22-Aug-20 22:10 
GeneralRe: What is the longest programming misconception you've held (that you are aware of)? Pin
OriginalGriff22-Aug-20 22:30
mveOriginalGriff22-Aug-20 22:30 
GeneralRe: What is the longest programming misconception you've held (that you are aware of)? Pin
Daniel Pfeffer22-Aug-20 22:38
professionalDaniel Pfeffer22-Aug-20 22:38 
GeneralRe: What is the longest programming misconception you've held (that you are aware of)? Pin
OriginalGriff22-Aug-20 22:48
mveOriginalGriff22-Aug-20 22:48 
GeneralRe: What is the longest programming misconception you've held (that you are aware of)? Pin
Daniel Pfeffer22-Aug-20 22:59
professionalDaniel Pfeffer22-Aug-20 22:59 
If you have a "negative space" that is one larger than the "positive space", then you must either have the anomaly that I discussed, or raise a flag/generate an exception when calculating -MINVALUE. Both are bad solutions, but the latter is safer, in the sense that you won't get bad results without knowing about them.

We could avoid the anomalies and use any base we wished, if we didn't insist on encoding the sign as part of the number. For example, we could use a trinary value (positive, zero, negative) to represent the sign, and whatever base was convenient to represent the magnitude. If the sign is zero, the magnitude would be ignored. The problem, as you stated in your original answer, is that this is much more difficult to implement in hardware.

EDIT: IIRC, the Zuse Z3 (?) actually had a trinary sign bit.
Freedom is the freedom to say that two plus two make four. If that is granted, all else follows.
-- 6079 Smith W.

GeneralRe: What is the longest programming misconception you've held (that you are aware of)? Pin
OriginalGriff22-Aug-20 23:08
mveOriginalGriff22-Aug-20 23:08 
GeneralRe: What is the longest programming misconception you've held (that you are aware of)? Pin
Daniel Pfeffer22-Aug-20 23:24
professionalDaniel Pfeffer22-Aug-20 23:24 
GeneralRe: What is the longest programming misconception you've held (that you are aware of)? Pin
Ger200124-Aug-20 4:08
Ger200124-Aug-20 4:08 
GeneralRe: What is the longest programming misconception you've held (that you are aware of)? Pin
Daniel Pfeffer24-Aug-20 7:04
professionalDaniel Pfeffer24-Aug-20 7:04 
GeneralRe: What is the longest programming misconception you've held (that you are aware of)? Pin
David O'Neil23-Aug-20 5:43
professionalDavid O'Neil23-Aug-20 5:43 
GeneralRe: What is the longest programming misconception you've held (that you are aware of)? Pin
Jörgen Andersson23-Aug-20 20:47
professionalJörgen Andersson23-Aug-20 20:47 
GeneralRe: What is the longest programming misconception you've held (that you are aware of)? Pin
trønderen23-Aug-20 2:59
trønderen23-Aug-20 2:59 
GeneralRe: What is the longest programming misconception you've held (that you are aware of)? Pin
FreedMalloc24-Aug-20 10:04
FreedMalloc24-Aug-20 10:04 
GeneralRe: What is the longest programming misconception you've held (that you are aware of)? Pin
kiwerry26-Aug-20 22:48
kiwerry26-Aug-20 22:48 
GeneralRe: What is the longest programming misconception you've held (that you are aware of)? Pin
GuyThiebaut23-Aug-20 1:44
professionalGuyThiebaut23-Aug-20 1:44 
GeneralRe: What is the longest programming misconception you've held (that you are aware of)? Pin
harold aptroot23-Aug-20 4:18
harold aptroot23-Aug-20 4:18 
GeneralRe: What is the longest programming misconception you've held (that you are aware of)? Pin
Greg Utas23-Aug-20 4:24
professionalGreg Utas23-Aug-20 4:24 
GeneralRe: What is the longest programming misconception you've held (that you are aware of)? Pin
David O'Neil23-Aug-20 5:47
professionalDavid O'Neil23-Aug-20 5:47 
GeneralRe: What is the longest programming misconception you've held (that you are aware of)? Pin
MarkTJohnson23-Aug-20 9:55
professionalMarkTJohnson23-Aug-20 9:55 
GeneralRe: What is the longest programming misconception you've held (that you are aware of)? PinPopular
Gary R. Wheeler23-Aug-20 4:34
Gary R. Wheeler23-Aug-20 4:34 
GeneralRe: What is the longest programming misconception you've held (that you are aware of)? Pin
Greg Utas23-Aug-20 5:08
professionalGreg Utas23-Aug-20 5:08 
GeneralRe: What is the longest programming misconception you've held (that you are aware of)? Pin
PIEBALDconsult23-Aug-20 5:29
mvePIEBALDconsult23-Aug-20 5:29 

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.