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

科技回声

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

GitHubTwitter

首页

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

资源链接

HackerNews API原版 HackerNewsNext.js

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

Combining Forth and Lisp

4 点作者 daly大约 2 年前
In Jonesforth (https:&#x2F;&#x2F;raw.githubusercontent.com&#x2F;nornagon&#x2F;jonesforth&#x2F;master&#x2F;jonesforth.S) during the discussion of Indirect Threaded Code it is pointed out that words have a &#x27;codeword&#x27; prefix. The codeword prefix is used to define the interpreter for the code, either a list of addresses of words or a direct pointer to assembly code.<p>Expanding on the idea, it is easy to define a third interpreter which interprets the embedded bytes as a lisp s-expression. The original lisp interpreter is about a single page long (see pp 70-71 https:&#x2F;&#x2F;www.softwarepreservation.org&#x2F;projects&#x2F;LISP&#x2F;book&#x2F;LISP%201.5%20Programmers%20Manual.pdf )<p>If you embed your FORTH language in a single LISP array you can use LISP to modify FORTH.<p>Gotta love these amazing languages.

暂无评论

暂无评论