Live data from Hacker News

SNOBOL (“StriNg Oriented and SymBOlic Language”)

en.wikipedia.org

31–40 of 58 posts

Re: SNOBOL (“StriNg Oriented and SymBOlic Language”)

#31

When I was a sysadmin at the Naval Research Laboratory in the 80s, I was asked to install Icon, Ralph Griswold’s follow-on language to SNOBOL. I had a little trouble installing it on our Gould minicomputer and mailed in a support request. It was answered by Griswold himself! I felt special! (It was just a Makefile issue, as I recall. This was the era of tar source file distribution. No rpms, no snaps, no debs.)

> I had a little trouble installing it on our Gould minicomputer and mailed in a support request

Not sure if this means snail mail, but I don't know why I never considered that before email, people used physical mail for things like tech support, heck, maybe submitting patches

Re: SNOBOL (“StriNg Oriented and SymBOlic Language”)

#32

Of particular interest: A SNOBOL pattern can be very simple or extremely complex. A simple pattern is just a text string (e.g. "ABCD"), but a complex pattern may be a large structure describing, for example, the complete grammar of a computer language. It is possible to implement a language interpreter in SNOBOL almost directly from a Backus–Naur form expression of it, with few changes. Creating a macro assembler and…

Oh wow, that's super impressive. Is there anything that comes to close this functionality today, outside of SNOBOL?

Re: SNOBOL (“StriNg Oriented and SymBOlic Language”)

#33
post #32

Of particular interest: A SNOBOL pattern can be very simple or extremely complex. A simple pattern is just a text string (e.g. "ABCD"), but a complex pattern may be a large structure describing, for example, the complete grammar of a computer language. It is possible to implement a language interpreter in SNOBOL almost directly from a Backus–Naur form expression of it, with few changes. Creating a macro assembler and…

Oh wow, that's super impressive. Is there anything that comes to close this functionality today, outside of SNOBOL?

https://en.wikipedia.org/wiki/Parsing_expression_grammar

Re: SNOBOL (“StriNg Oriented and SymBOlic Language”)

#34

When I was a sysadmin at the Naval Research Laboratory in the 80s, I was asked to install Icon, Ralph Griswold’s follow-on language to SNOBOL. I had a little trouble installing it on our Gould minicomputer and mailed in a support request. It was answered by Griswold himself! I felt special! (It was just a Makefile issue, as I recall. This was the era of tar source file distribution. No rpms, no snaps, no debs.)

> I had a little trouble installing it on our Gould minicomputer and mailed in a support request Not sure if this means snail mail, but I don't know why I never considered that before email, people used physical mail for things like tech support, heck, maybe submitting patches

Sometimes you'd see a program you wanted in the back pages of pcworld or another one of those huge computer-warehouse type magazines, and you'd have to fill out a little card and mail in a check while trusting that in a month or two it'd arrive.. I got wolf3d, jill of the jungle, and commander keen this way.

Re: SNOBOL (“StriNg Oriented and SymBOlic Language”)

#35

When I was a sysadmin at the Naval Research Laboratory in the 80s, I was asked to install Icon, Ralph Griswold’s follow-on language to SNOBOL. I had a little trouble installing it on our Gould minicomputer and mailed in a support request. It was answered by Griswold himself! I felt special! (It was just a Makefile issue, as I recall. This was the era of tar source file distribution. No rpms, no snaps, no debs.)

Oh wow, I learned a little Icon in college as part of a class on different programming paradigms. As soon as I saw the thread title I thought, "That sounds a lot like Icon."

We also covered Scheme, Prolog, and . . . Java. :-) Okay this was the 90s when OO was new, but still maybe they should have gone with something like Smalltalk.

Re: SNOBOL (“StriNg Oriented and SymBOlic Language”)

#36

This brings back memories of the way they used to teach programming. I had to learn some SNOBOL for a class, but to this day I've never written a line of it. We didn't even have access to such machines. Lectures were done on a chalkboard. The few programming assignments (in Pascal?) were done on our own in a lab elsewhere on campus. We'd print out the program and output and it'd be graded by hand.

I learned Fortran this way - learned from the book and just wrote pages of programs by hand, never running them because, no computer. Appeared in exam and did the same thing, got graded and done. Still no computer.

Re: SNOBOL (“StriNg Oriented and SymBOlic Language”)

#37
post #14

Earlier quoted context omitted.

I took a class on programming languages from Douglas Maurer, who had written a book on SNOBOL. It was out of print, which saved a few dollars for the students, since he provided photocopies. SNOBOL did not look especially practical, but the built-in pattern matching made Awk and Perl that much easier to learn. (Maurer also composes or composed music. His madrigal "Forty Bucks" set to music the text of a Montgomery Co…

Thank you! I took a programming languages survey course when getting my Masters at GWU in the early 90s. It was taught by Dr. Maurer. I couldn’t remember his name, but I did remember that he was into SNOBOL. I really need to find his “Forty Bucks” madrigal.

It was performed by an amateur theatre group called "The Hexagon Club", at a show maybe a dozen years ago. I've searched on-line without luck--it probably doesn't help that Tom T. Hall wrote a song called "The Ballad of Forty Dollars". Anyway, good luck.

We quite possibly crossed paths at GWU back then.

Re: SNOBOL (“StriNg Oriented and SymBOlic Language”)

#38

Earlier quoted context omitted.

> I had a little trouble installing it on our Gould minicomputer and mailed in a support request Not sure if this means snail mail, but I don't know why I never considered that before email, people used physical mail for things like tech support, heck, maybe submitting patches

Sometimes you'd see a program you wanted in the back pages of pcworld or another one of those huge computer-warehouse type magazines, and you'd have to fill out a little card and mail in a check while trusting that in a month or two it'd arrive.. I got wolf3d, jill of the jungle, and commander keen this way.

I recently found a package from some PCAnywhere-esque software company that mailed me a copy back in the late 90s.

Re: SNOBOL (“StriNg Oriented and SymBOlic Language”)

#39
The SNOBOL4 language translator was still written in assembly language. However the macro features of the assembler were used to define the virtual machine instructions of the SNOBOL Implementation Language, the SIL

Was SIL the inspiration for ZIL (Zork Implementation Language) which was also a virtual machine and allowed Infocom to release their text adventures on so many home computer platforms at once in the 80s?

Re: SNOBOL (“StriNg Oriented and SymBOlic Language”)

#40
post #20
post #15

Earlier quoted context omitted.

https://raganwald.com/assets/snobol-green-book.pdf "4.6.4 Example - Tower of Hanoi" on pages 109-111 (the scanned page numbers)

Is it even a 1980s programming language without a Hanoi example? Here's the program in its all-caps, weirdly indented beauty: DEFINE('HANOI(N,NS,ND,NI)') :(HANOI.END) HANOI EQ(N,O) :S(RETURN) HANOI(N - 1,NS,NI,ND) OUTPUT 'MOVE DISC ' N ' FROM ' NS ' TO ' ND HANOI(N - 1,NI,ND,NS) :(RETURN) HANOI.END TEST HANOI (5,'A','C','B') END

Actually, SNOBOL is a 1960s programming language[1], so it wouldn't have been a trendy new language in an 80s version of HN.

In the 1960s, most programming was done on punched cards, and keypunch machines (and many computers) didn't have lower case letters on them. Hence, languages from that era, like FORTRAN, COBOL, PL/I, LISP and assembly language, were written in all-caps.

[1] https://en.wikipedia.org/wiki/SNOBOL

Post reply on HN