Space/Time tradeoff (was: Re: Video games are a waste of life)

Liste des GroupesRevenir à t bizarre 
Sujet : Space/Time tradeoff (was: Re: Video games are a waste of life)
De : vallor (at) *nospam* cultnix.org (vallor)
Groupes : talk.bizarre soc.penpals
Date : 21. Jul 2025, 07:54:39
Autres entêtes
Message-ID : <me66hfFih2jU5@mid.individual.net>
References : 1 2 3 4 5 6
User-Agent : Pan/0.163 (Hmm5; d2f7fd9a; Linux-6.15.7)
On Sun, 20 Jul 2025 20:21:17 -0500, "Lane \"Stonehowler\" Waldby"
<wichitajayhawks@msn.com> wrote in <me5j0dFmse5U2@mid.individual.net>:

vallor wrote:
On Tue, 20 Jun 2023 18:35:04 -0700 (PDT), entwickeln14 wrote:
 
On Saturday, June 17, 2023 at 8:07:31 PM UTC-4, nikolai kingsley
wrote:
"a while ago" being around 1988.
>
Hello.
What's new?
>
e
 
hi
 
In 8th grade, I wrote a game on the Commodore PET.  You would maneuver
your avatar (an asterisk) through a landscape of constantly-changing
random blocks appearing and disappearing.
 
Kind of a funky maze game.  Would have been around 1981.
 
Lies.  You never did that. You can't even count to 1981.

Not only did I write it, I optimized the movement keys by using the
numeric keypad numbers as indices for two arrays that held +/-1 values
for x and y.

Was a lot faster than the "if then" chain I was using previously.

(This was in PET BASIC, of course.)

Recently I asked ChatGPT about the principle I'd used, and it
called it "time for space trade off".  Posted about it in
comp.theory in passing.

Message-ID: <101bvbm$58on$2@dont-email.me>

It's pretty obvious that pre-computing values can speed
things up.  Orthogonally-related, I once made a lookup
table for IPv4 unicast addresses whose decimal representation
was an md5 hash.

-rw-rw-r-- 1 xxx xxx  75161927360 May  6  2016 md5_ipv4_rainbow.b

(Turns out, back in the days of Usenet yore, certain NSP's didn't
salt their posting-host hashes.  Used it to figure out who was
posting as certain socks in a.u.k.)

--
-v System76 Thelio Mega v1.1 x86_64 NVIDIA RTX 3090Ti 24G
   OS: Linux 6.15.7 D: Mint 22.1 DE: Xfce 4.18
   NVIDIA: 575.64.03 Mem: 258G
   "Peace through superior firepower."

Date Sujet#  Auteur
21 Jul02:21 * Re: Video games are a waste of life2Lane \"Stonehowler\" Waldby
21 Jul07:54 `- Space/Time tradeoff (was: Re: Video games are a waste of life)1vallor

Haut de la page

Les messages affichés proviennent d'usenet.

NewsPortal