News for hackers. Stuff that matters.
Re:Git's list of banned C functions by mjcohen on Thursday March 04, 2021 @11:07PM (#26352554)
IIRC, in the early days of the Commodore PET, it used a method of keeping track of strings that was fine in an 8k machine but was too slow in a 32k machine. They had to make a change that avoided quadratic time on the larger machine. So string handling in BASIC wasn't always that simple.
Re:Git's list of banned C functions by ajuc on Friday March 05, 2021 @03:26AM (#26354323)
It always blows my mind when I remember 8-bit computers had garbage-collected strings.
Re:Git's list of banned C functions by 867-5309 on Friday March 05, 2021 @12:22AM (#26353064)
+1 for the PET mention since it was my first "computer". much overlooked in favour of the 64
Re:Git's list of banned C functions by tlavoie on Friday March 05, 2021 @02:46AM (#26354005)
Ah, yes. I recall the luxury of a Commodore of my very own (a C128), after using PETs in school. We had a whole three of them at the time, with a shared, dual-floppy drive for the set.

Naturally, our teacher wisely pushed hard on figuring what you could out on paper first.

Re:Git's list of banned C functions by dotancohen on Friday March 05, 2021 @04:52AM (#26354971)

  > Naturally, our teacher wisely pushed hard on figuring what
  > you could out on paper first.
Specifically in the case of the Commodores (I grew up on a C128) I find this observation backwards. Sure, if you only had three machines for twenty students then time on the machine was valuable. But on those machines there was so much to explore with poke (and peek to know what to put back). From changing the colours of the display to changing the behaviour of the interpreter.

I think that I discovered the for loop at eight years old just to poke faster!