🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.os.linux.misc
Article #697

Re: Back To CS Basics. Fuck AI

#697
From: Leroy H
Date: Fri, 16 Oct 2026 17:56
39 lines
2278 bytes
On Fri, 16 Oct 2026 17:10:18 GMT, Jan Panteltje wrote:

> 
> Well C++ is a crime against humanity
> 'operator overloading...' crap bloated crap.
> 

Who would ever disagree?

> 
> You can just do decimal in C
> Use type double if you are worried about microcents.
> 
> I have written financial software in C.
> What is the problem?
>

That depends on the scale.

For most situations, the currency amounts are enough that the
C double type, with 16 decimal digits of precision, can handle
the simple processing without error.

(C also has a 128-bit long double type but ordinary processors
have no hardware for this type.  On GNU/Linux the long double
is usually defined as 80-bits.)

But for large currency amounts and more complex processing,
16 decimal digits may not be enough.  That's why decimal floating
point is recommended or even required by law.

What is needed is HARDWARE decimal FP.  IBM has always had decimal
FP hardware in its mainframes and it also has decimal FP hardware
in its Power PC processors.  (Only large institutions could afford
such hardware.)

Intel/AMD will likely never have DFP hardware.  They will keep on
adding special AI hardware but never DFP hardware.
Technical Details
Message-ID: <18df1430054d96d0$1624$2650862$802601b3@news.usenetexpress.com>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!peer04.iad!feed-me.highwinds-media.com!news.highwinds-media.com!feeder.usenetexpress.com!tr2.iad1.usenetexpress.com!news.usenetexpress.com!not-for-mail
References: <18dee4b6cab427fa$865$2574533$802601b3@news.usenetexpress.com> <11atgth$3e59h$1@dont-email.me> <18df0ea174d534e0$1613$2650862$802601b3@news.usenetexpress.com> <11atlpr$3g55c$1@dont-email.me>

Show Full Headers
Complete Article Headers
From: Leroy H <lh@somewhere.net>
Subject: Re: Back To CS Basics. Fuck AI
Newsgroups: comp.os.linux.misc,comp.os.linux.advocacy
References: <18dee4b6cab427fa$865$2574533$802601b3@news.usenetexpress.com> <11atgth$3e59h$1@dont-email.me> <18df0ea174d534e0$1613$2650862$802601b3@news.usenetexpress.com> <11atlpr$3g55c$1@dont-email.me>
Mime-Version: 1.0
User-Agent: Pan/0.165 (Kostiantynivka)
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
Lines: 39
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!peer04.iad!feed-me.highwinds-media.com!news.highwinds-media.com!feeder.usenetexpress.com!tr2.iad1.usenetexpress.com!news.usenetexpress.com!not-for-mail
Date: Fri, 16 Oct 2026 17:56:13 +0000
Nntp-Posting-Date: Fri, 16 Oct 2026 17:56:13 +0000
X-Complaints-To: abuse@usenetexpress.com
Organization: UsenetExpress - www.usenetexpress.com
Message-Id: <18df1430054d96d0$1624$2650862$802601b3@news.usenetexpress.com>
X-Received-Bytes: 2096