TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

Code Conversion Language (2019)

108 pointsby gudzpoz6 months ago

5 comments

lmz6 months ago
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 months ago
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 months ago
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 months ago
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 months ago
Title should say (2019)
评论 #42212242 未加载