Program it again, SAM
Thursday, September 15th, 2022 Alive 18,769 days
SAM76 was one of many computer languages that came out in the 1970ʼs that promised to be the “next big thing,” but failed to gain traction.
It looks a bit like AP/L, with its tight syntax, but was meant for text manipulation like Lisp.
I haven't found a SAM76 interpreter to play with in 2022, so here's an example of what a SAM76 program would look like, from the May-June, 1978 issue of Creative Computing that would take a number from the terminal input, and uses recursion to print out the factorial of that number.
I'm no SAM76 expert, but I think there's a typo in this listing. I think the !%ii… is actually supposed to be !%is… to retrieve an “input string” from the terminal. But I'm happy to be proven wrong.
As you may have guessed from the ten slashes, this language is all about nesting commands. Amusingly, it doesn't matter how many slashes you close your expressions with, as long as it's enough. So just keep banging that slash key!
SAM76 is a great example of smart people dealing with the scarcity of their time. This is a language that has been optimized for teletypes, punch cards, and paper tape. The % isn't a command prompt, it's a command. (More specifically, a “warning character.”) The “mu” and “pt” and such are shortened, almost tokenized, keywords.
Sadly, there is no SAM76 entry on Wikipedia, and almost no information on the internet about it, so it will soon be erased from the public memory by search engines (*cough*Google*cough*) that choose to only show things currently trending in popular culture. Shakespeare, youʼre next.