Hacker News new | past | comments | ask | show | jobs | submit login

> But if you punched a sequence number in these columns, a dropped deck could be easily sorted by a high-speed card sorter.

I suppose heaven help you if you wanted to insert a statement between cards 37 and 38 :-)




That's why you numbered your cards with 2, 4 or even 8 spaces between each subsequent card number.

That sort of forethought came from hard won experience ;)


Similar to how BASIC line numbers are multiples of ten - allows for insertion.


If you're going to dig around in the source code for a 1970's BASIC interpreter one of the more interesting commands to disassemble is 'RENUM'. It tells a lot about how the language stores its intermediate structure (not quite a bytecode, but it is highly tokenized).

RENUM takes a program that has had insertions done to it and renumbers the lines so they are multiples of 10 again. For added complexity and to avoid overwriting your carefully laid out library calls with high line number subroutines for easy memorization you could limit the range within which the RENUM would operate.

Typical use: RENUM 0,1000,10 -> renumber all the lines from 0 to 1000 with a step of 10.


Unfortunately, RENUM doesn't work for card decks.


Well, with enough tape and patience :)




Consider applying for YC's W25 batch! Applications are open till Nov 12.

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: