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.

Turnstyle – An esoteric, graphical functional language

141 pointsby JNRowe9 months ago

4 comments

lifthrasiir9 months ago
I&#x27;m a bit confused about what really is being interpreted here, because my reading of the specification indicates that the entire image is read as a single expression in the lambda calculus but the graphic interpreter <i>looks</i> like a procedural execution at the first glance. Is it just a visualization of beta-reduction in progress?<p>EDIT: I think I got it and I think calling this as an &quot;encoding&quot; is a misnomer. The program starts with a single term `turnstyle(x, y, dir)` which gets lazily evaluated to the actual term. So not only the evaluation might be lazy, but the parsing is also lazy and this is a key point of this esolang which should be highlighted more in my opinion.
drdeca9 months ago
This seems cool, but I’m having difficulty understanding the specification. It would be nice if there were some examples of e.g. 2+3 , (lambda f. lambda x. (f (f x)))(lambda y. (y+2)) 3 ?
评论 #41316728 未加载
dacapoday9 months ago
Is it similar to <a href="https:&#x2F;&#x2F;github.com&#x2F;mxgmn&#x2F;MarkovJunior">https:&#x2F;&#x2F;github.com&#x2F;mxgmn&#x2F;MarkovJunior</a>
评论 #41322125 未加载
评论 #41320723 未加载
rosshays9 months ago
Worth maybe calling out that there is a few academic language implementations using this name (turnstile, turnstile+) <a href="https:&#x2F;&#x2F;docs.racket-lang.org&#x2F;turnstile" rel="nofollow">https:&#x2F;&#x2F;docs.racket-lang.org&#x2F;turnstile</a>. It&#x27;s not a standalone language but worth pointing out
评论 #41316000 未加载