this post was submitted on 29 Mar 2024
595 points (95.4% liked)

Technology

59148 readers
2261 users here now

This is a most excellent place for technology news and articles.


Our Rules


  1. Follow the lemmy.world rules.
  2. Only tech related content.
  3. Be excellent to each another!
  4. Mod approved content bots can post up to 10 articles per day.
  5. Threads asking for personal tech support may be deleted.
  6. Politics threads may be removed.
  7. No memes allowed as posts, OK to post as comments.
  8. Only approved bots from the list below, to ask if your bot can be added please contact us.
  9. Check for duplicates before posting, duplicates may be removed

Approved Bots


founded 1 year ago
MODERATORS
you are viewing a single comment's thread
view the rest of the comments
[–] [email protected] 22 points 7 months ago (1 children)

OG Doom engine uses pre-built lookup tables for fixed point trigonometry. (table captures the full 360 degrees for sine and cosine with 10240 elements)

[–] [email protected] 12 points 7 months ago (2 children)

Tons of software did this for the longest time. Lookup tables have been a staple of home computing for as long as home computers have existed.

[–] [email protected] 4 points 7 months ago

And CPUs still do it to this day. Nasty, nasty maths involved in figuring out an optimal combination between lookup table size and refinement calculations because that output can't be approximate, it has to work how IEEE floats are supposed to work. Pure numerology.

[–] [email protected] 2 points 7 months ago (1 children)

I really like reading people talk about how better programmers in a more civilized age could do things.

[–] [email protected] 5 points 7 months ago (1 children)

Anyone who has ever had to maintain old code will tell you that this more civilized age is right now and that the past was a dark and terrible time.

Seriously, there were no standards, there was barely any documentation even in large organizations and people did things all the time that would get you fired on the spot today. Sure, you had the occasional wunderkind performing amazing feats on hardware that had no business of running these things, but this was not the norm.

[–] [email protected] 5 points 7 months ago

I didn't have to maintain it, actually I haven't ever worked as a programmer. But I've patched a few FOSS things abandoned around 15-25 years before that to work as a hobby activity, some kind of digital archeology.

I think people also do things now for which they'd be fired on the spot 20 years ago. Everything changes.

I suspect what you call "no standards" means in fact "different standards", but that's just a cultural difference. Some project from 1995 may use "Hungarian notation" in variable names, well, that was normal then.

That adequate version control and documentation are, eh, a bit more of a norm now, - yes.