Article View: comp.os.linux.advocacy
Article #1195Re: Back To CS Basics. Fuck AI
From: John Ames
Date: Mon, 19 Oct 2026 16:37
Date: Mon, 19 Oct 2026 16:37
26 lines
2865 bytes
2865 bytes
On Sat, 17 Oct 2026 02:28:10 -0000 (UTC) Lawrence D’Oliveiro <ldo@nz.invalid> wrote: > > IMHO one of the biggest programming mistakes is using floating point > > when you can do it faster, more accurately, and more easily with > > integers. > > Some languages offer direct support for “fixed-point” formats, > basically integers with a fixed scale factor, so you can do > calculations that keep a fractional part. > > From what I gather, they tend to be difficult to use properly. The > problem seems to be keeping calculations within the permissible > dynamic range, to avoid overflow and underflow. > > This is why floating-point tends to be far more popular. Yep. You can do fixed-point/scaled-integer math even in languages with- out a dedicated type if you put your mind to it (it's very common with Forth people,) but no matter how you do it one of the challenges is being *actually* sure that your calculations won't exceed the bounds set for range and precision by your choice of word size and scaling factor. Floating-point saves you the trouble of doing that, but as has been discussed it has its own set of quirks to be accounted for.
Technical Details
Message-ID:
<20261019093730.000038f3@gmail.com>Path:
mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!eternal-september.org!feeder.eternal-september.org!nntp.eternal-september.org!.POSTED!not-for-mailReferences:
<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> <18df1430054d96d0$1624$2650862$802601b3@news.usenetexpress.com> <2MtAS.183747$iS_f.119536@fx06.iad> <11au6ap$3m5co$7@dont-email.me> <ZpxAS.37512$1l6.19098@fx42.iad> <11aumfq$3r5cq$2@dont-email.me>Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!eternal-september.org!feeder.eternal-september.org!nntp.eternal-september.org!.POSTED!not-for-mail From: John Ames <commodorejohn@gmail.com> Newsgroups: comp.os.linux.misc,comp.os.linux.advocacy Subject: Re: Back To CS Basics. Fuck AI Date: Mon, 19 Oct 2026 09:37:30 -0700 Organization: A place where nothing fits quite right Lines: 26 Message-ID: <20261019093730.000038f3@gmail.com> 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> <18df1430054d96d0$1624$2650862$802601b3@news.usenetexpress.com> <2MtAS.183747$iS_f.119536@fx06.iad> <11au6ap$3m5co$7@dont-email.me> <ZpxAS.37512$1l6.19098@fx42.iad> <11aumfq$3r5cq$2@dont-email.me> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Injection-Date: Mon, 19 Oct 2026 16:37:35 +0000 (UTC) Injection-Info: dont-email.me; logging-data="2269058"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+l/1pVclJlkfG7MbwOQPVbzWpMjfuP4kQ="; posting-host="4eafebe76e2195c89426c3e04175cf47" Cancel-Lock: sha1:+LzG5X4h+mrSnywOgZPaba6SbVs= sha256:3Mpi30WDwdt7gjqPCx7HOUncMyHbiir7MVj+SXO9O6U= sha1:vrlXFL+X4wkwjTtsDQn+S9PiO30= sha256:ivkCYIO8/WUg/0CB/B6uWf5anNvvQ6UggJeaJGHhoAU= X-Newsreader: Claws Mail 4.3.0 (GTK 3.24.42; x86_64-w64-mingw32)