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.

The theory of concatenative combinators (2007)

104 pointsby rrampageover 1 year ago

4 comments

trompover 1 year ago
The theory of combinatory logic is beautiful. For instance, with basis {S,K}, a term is either S or K or an application of one term to another. S and K satisfy<p><pre><code> S x y z = x z (y z) K x y = x </code></pre> These terms can represent any computable function. This is clean and simple. I don&#x27;t quite see what the theory of concatenative combinators achieves beyond complicating matters with stacks and quotations to obtain some concatenative property of programs.<p>Tha analogues of S and K in concatenative combinators are<p><pre><code> [C] [B] [A] s == [[C] B] [C] A [B] [A] k == A </code></pre> which look a bit more complicated, but as the article says this is not even a basis:<p>&gt; This almost gives us completeness; however, there is no way to form &quot;dip&quot; or &quot;sip&quot; using just &quot;s&quot; and &quot;k&quot; because, roughly speaking, they provide no way to dequote items buried in the stack.<p>What can you express in concatenative combinators that is not as easily expressed in combinatory logic?
评论 #39217305 未加载
评论 #39215663 未加载
lkutyover 1 year ago
&quot;Composition Intuition by Conor Hoekstra | Lambda Days 2023&quot; (<a href="https:&#x2F;&#x2F;www.youtube.com&#x2F;watch?v=Mj8jxYS-hi4" rel="nofollow">https:&#x2F;&#x2F;www.youtube.com&#x2F;watch?v=Mj8jxYS-hi4</a>) is all about combinators.
dangover 1 year ago
Related:<p><i>The Theory of Concatenative Combinators (2007)</i> - <a href="https:&#x2F;&#x2F;news.ycombinator.com&#x2F;item?id=20849180">https:&#x2F;&#x2F;news.ycombinator.com&#x2F;item?id=20849180</a> - Aug 2019 (3 comments)<p><i>The Theory of Concatenative Combinators (2007)</i> - <a href="https:&#x2F;&#x2F;news.ycombinator.com&#x2F;item?id=12328870">https:&#x2F;&#x2F;news.ycombinator.com&#x2F;item?id=12328870</a> - Aug 2016 (2 comments)<p><i>The Theory of Concatenative Combinators</i> - <a href="https:&#x2F;&#x2F;news.ycombinator.com&#x2F;item?id=11490051">https:&#x2F;&#x2F;news.ycombinator.com&#x2F;item?id=11490051</a> - April 2016 (5 comments)
andoandoover 1 year ago
I am very interested in this. Is there any good beginner resources for learning?