TE
科技回声
首页24小时热榜最新最佳问答展示工作
GitHubTwitter
首页

科技回声

基于 Next.js 构建的科技新闻平台,提供全球科技新闻和讨论内容。

GitHubTwitter

首页

首页最新最佳问答展示工作

资源链接

HackerNews API原版 HackerNewsNext.js

© 2025 科技回声. 版权所有。

I learned Snobol and then wrote a toy Forth

144 点作者 ingve4 天前

15 条评论

dang1 天前
SNOBOL-related. Others?<p><i>Eliza in SNOBOL4</i> - <a href="https:&#x2F;&#x2F;news.ycombinator.com&#x2F;item?id=41889284">https:&#x2F;&#x2F;news.ycombinator.com&#x2F;item?id=41889284</a> - Oct 2024 (24 comments)<p><i>Spitbol 360: an implementation of SNOBOL4 for IBM 360 compatible computers</i> - <a href="https:&#x2F;&#x2F;news.ycombinator.com&#x2F;item?id=38234319">https:&#x2F;&#x2F;news.ycombinator.com&#x2F;item?id=38234319</a> - Nov 2023 (6 comments)<p><i>SNOBOL (“StriNg Oriented and SymBOlic Language”)</i> - <a href="https:&#x2F;&#x2F;news.ycombinator.com&#x2F;item?id=35800936">https:&#x2F;&#x2F;news.ycombinator.com&#x2F;item?id=35800936</a> - May 2023 (56 comments)<p><i>The SNOBOL4 Programming Language [pdf]</i> - <a href="https:&#x2F;&#x2F;news.ycombinator.com&#x2F;item?id=23345560">https:&#x2F;&#x2F;news.ycombinator.com&#x2F;item?id=23345560</a> - May 2020 (6 comments)<p><i>SNOBOL4</i> - <a href="https:&#x2F;&#x2F;news.ycombinator.com&#x2F;item?id=22233111">https:&#x2F;&#x2F;news.ycombinator.com&#x2F;item?id=22233111</a> - Feb 2020 (1 comment)<p><i>Parsing with Snobol</i> - <a href="https:&#x2F;&#x2F;news.ycombinator.com&#x2F;item?id=20401576">https:&#x2F;&#x2F;news.ycombinator.com&#x2F;item?id=20401576</a> - July 2019 (1 comment)<p><i>Dave Shields, the programmer maintaining SPITBOL</i> - <a href="https:&#x2F;&#x2F;news.ycombinator.com&#x2F;item?id=10211724">https:&#x2F;&#x2F;news.ycombinator.com&#x2F;item?id=10211724</a> - Sept 2015 (23 comments)<p><i>SnoPy – Snobol Pattern Matching Extension for Python</i> - <a href="https:&#x2F;&#x2F;news.ycombinator.com&#x2F;item?id=10106008">https:&#x2F;&#x2F;news.ycombinator.com&#x2F;item?id=10106008</a> - Aug 2015 (10 comments)<p><i>On being the maintainer and sole developer of SPITBOL (2012)</i> - <a href="https:&#x2F;&#x2F;news.ycombinator.com&#x2F;item?id=10103276">https:&#x2F;&#x2F;news.ycombinator.com&#x2F;item?id=10103276</a> - Aug 2015 (95 comments)
ebiester1 天前
If you like Snobol, I&#x27;d take a look at Icon, Griswold&#x27;s research language after Snobol. It took a lot of the ideas but smoothed it out.<p>I remember writing the Icon string manipulation in java in college, and I&#x27;ve hated regular expressions for a long time because Icon had it right, albeit verbose.
评论 #43981571 未加载
Animats1 天前
SNOBOL is a high level string processing language. Forth is an odd thing to implement in it. Forth is so low level you can implement it in an FPGA.<p>SNOBOL has patterns more powerful than regular expressions. The pattern matching can take exponential time, because it&#x27;s a depth first search in a recursive space. Regular expressions, which have very limited backup, were adopted to put an upper bound on pattern match time.
geophile1 天前
Snobol was a major part of my formative years in computer science. I don’t recall how I came across the language, but it spoke to me in all sorts of ways.<p>- Elegant and weird syntax and structure.<p>- Powerful pattern matching.<p>- It was the first GCed language I used.<p>- The Griswold, Poage and Polonsky book on Snobol4. A classic in the K&amp;R mold, to my mind.<p>- Took 2 compiler courses from RBK Dewar who worked on the Spitbol implementation. Great teacher, fantastic courses, with lots of insight into the Spitbol project and his research on the SETL language.<p>- Wrote software for my MSc thesis in Snobol4. It used so much memory that I had to book the school’s IBM 370 at 4AM to run the software. I think I got something like 1-2 MB of memory.
JSR_FDED1 天前
I love this! SNOBOL is weird but the article does a great job showing the power of a small but very uniform and consistent language.
throwaway712711 天前
R. G. Loeliger Threaded Interpretive Languages Their Design And Implementation[1] is an amazing book, since it was out of print, I printed it on a good 160gsm a4 paper, and I randomly open it every few weeks just to read through it. I strongly recommend it, even if you are not interested in Forth.<p>I have been programming in all kinds of languages, from assembly to clojure, but in 25 years I never programmed stack languages, I was kind of scared of them, it wasn&#x27;t until I read the book and made my own Forth I understood what I was missing. Since then I made few interpreters, with jit, or with types, etc, it was super fun, but most of all it allowed me to see a completely new paradigm of programming, kind of the first time you understand eval&#x2F;apply from 13th page of the LISP 1.5 Programmer&#x27;s Manual. A language that writes itself and it is written in itself.<p>If you are making your own Forth, this Brad Rodriguez&#x27;s article is also really good [2].<p>[1]: <a href="https:&#x2F;&#x2F;archive.org&#x2F;details&#x2F;R.G.LoeligerThreadedInterpretiveLanguagesTheirDesignAndImplementationByteBooks1981" rel="nofollow">https:&#x2F;&#x2F;archive.org&#x2F;details&#x2F;R.G.LoeligerThreadedInterpretive...</a><p>[2]: <a href="https:&#x2F;&#x2F;www.bradrodriguez.com&#x2F;papers&#x2F;moving1.htm" rel="nofollow">https:&#x2F;&#x2F;www.bradrodriguez.com&#x2F;papers&#x2F;moving1.htm</a>
评论 #43976966 未加载
评论 #43973561 未加载
jollyllama1 天前
Upvote for Ratfactor who made the most useful HTMX reference around (even though it wasn&#x27;t completed) <a href="https:&#x2F;&#x2F;ratfactor.com&#x2F;htmx&#x2F;" rel="nofollow">https:&#x2F;&#x2F;ratfactor.com&#x2F;htmx&#x2F;</a>
nlte1 天前
Does anyone know what is that cool little computer on the picture?
评论 #43975389 未加载
cafard7 天前
I learned Snobol in school. It came in handy when I later encountered awk and then Perl.
kaycebasques1 天前
(Tangential) On a recent roadtrip up to Portland from SF I stopped in a small historic mining town near Shasta called Dunsmuir. They had a Little Free Library so of course I had to check out what was in it. I was delighted to find an old book on Forth from the 80s, called Starting Forth. Inside of the book there were some business cards for FIG: Silicon Valley Forth Interest Group.
评论 #43976544 未加载
OhMeadhbh1 天前
snobol and spitbol are awesome. as is forth. +1.
anthk1 天前
Check Starting Forth, Thinking Forth plus Eforth+Subleq.
oytis1 天前
Are there any non-toy implementations of Forth?
评论 #43974586 未加载
评论 #43981049 未加载
评论 #43981947 未加载
评论 #43975385 未加载
评论 #43974297 未加载
评论 #43974238 未加载
评论 #43974258 未加载
评论 #43975129 未加载
sargstuff4 天前
?? 2 or 4 horse open sleigh project ??
gitroom大约 22 小时前
pretty cool seeing someone deep dive into the super niche stuff tbh, got me thinking - you reckon picking up oddball languages like that changes the way you even approach writing code later on?