Story Details

  • I learned Snobol and then wrote a toy Forth

    Posted: 2025-05-11 06:38:27

    Fascinated by Snobol's unique string-centric nature and pattern matching capabilities, the author decided to learn the language. They found its table-driven implementation particularly intriguing, inspiring them to explore implementing a similar structure for a different language. This led to the creation of a small, experimental Forth interpreter written in Snobol, showcasing how Snobol's pattern matching could effectively parse and execute Forth code. The project served as a practical exercise to solidify their understanding of Snobol while exploring the underlying mechanics of language implementation.

    Summary of Comments ( 12 )
    https://news.ycombinator.com/item?id=43951885

    Hacker News users discuss the original poster's experience learning SNOBOL and subsequently creating a toy Forth implementation. Several commenters express nostalgia for SNOBOL, praising its unique string manipulation capabilities and lamenting its relative obscurity today. Some discuss its influence on later languages like Icon and Perl. Others debate SNOBOL's performance characteristics and its suitability for various tasks. A few users share personal anecdotes about using SNOBOL in the past, including applications in bioinformatics and text processing. The discussion also touches on the differences between SNOBOL and Forth, with some commenters expressing interest in the poster's Forth implementation.