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

科技回声

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

GitHubTwitter

首页

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

资源链接

HackerNews API原版 HackerNewsNext.js

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

Code Conversion Language (2019)

108 点作者 gudzpoz6 个月前

5 条评论

lmz6 个月前
Judging by the name and by these opcodes<p><a href="https:&#x2F;&#x2F;github.com&#x2F;emacs-mirror&#x2F;emacs&#x2F;blob&#x2F;7cb77385d38b96377d404a2ab0e778b2dfce5c77&#x2F;src&#x2F;ccl.c#L690-L692">https:&#x2F;&#x2F;github.com&#x2F;emacs-mirror&#x2F;emacs&#x2F;blob&#x2F;7cb77385d38b96377...</a><p>it seems to be intended for character set conversion especially JIS.
评论 #42209720 未加载
thih96 个月前
The source code mentioned in the article is well documented and an interesting read too; e.g.:<p><a href="https:&#x2F;&#x2F;github.com&#x2F;emacs-mirror&#x2F;emacs&#x2F;blob&#x2F;master&#x2F;src&#x2F;ccl.c">https:&#x2F;&#x2F;github.com&#x2F;emacs-mirror&#x2F;emacs&#x2F;blob&#x2F;master&#x2F;src&#x2F;ccl.c</a>
usr11066 个月前
I have used Emacs since 1986 or so, daily since 1989 (with smaller breaks while working at companies where it was not available). I had no idea this exists.<p>Here is my first CCL program.<p><pre><code> (define-ccl-program hw &#x27;(1 (loop (write r0 [72 101 108 111]) (r1 += 1) (if (r1 == 3) (repeat) ()) (r0 += 1) (if (r0 &lt; 4) (repeat) (break)) ) ) ) (ccl-execute-on-string &#x27;hw [0 0 0 0 0 0 0 0 1] &quot;&quot;) </code></pre> Tested in *scratch* buffer, worked. Probably not very idiomatic...
uludag6 个月前
Interesting. I&#x27;ve been using Emacs for 6 years and have never heard of CCL. I would love to read a book on all the strange and fascinating code that Emacs has accumulated over the years.
评论 #42208132 未加载
usr11066 个月前
Title should say (2019)
评论 #42212242 未加载