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.

K: We need to talk about group

112 pointsby chrispsnabout 2 years ago

11 comments

pavlovabout 2 years ago
It’s awe-inspiring to see a K program where the comments are in another APL variant (I can’t pretend to know which):<p><pre><code> {d:~1=&#x27;:s:^x &#x2F; s‿e←1⊸»⊸(&gt;⋈&lt;)&#x27; &#x27;=𝕩 c:^&quot;aeiou&quot;?_x@&amp;d&amp;~s &#x2F; c←¬(s&#x2F;𝕩)∊&quot;aeiou&quot; x,:,&#x2F;$`pig`dog c &#x2F; ins←⥊c⊏[&quot;pig&quot;,&quot;dog&quot;] x@&lt;(+\d),{3}#c+2*!#c} &#x2F; ((+`s+e)∾3&#x2F;c+2×↕≠c) ⍋⊸⊏ 𝕩∾ins </code></pre> This program implements a Pigdog Latin translator, <i>bien sûr</i>.
评论 #35393966 未加载
评论 #35395287 未加载
评论 #35393094 未加载
评论 #35392171 未加载
评论 #35392909 未加载
评论 #35392700 未加载
Gysabout 2 years ago
<a href="https:&#x2F;&#x2F;en.wikipedia.org&#x2F;wiki&#x2F;K_(programming_language)" rel="nofollow">https:&#x2F;&#x2F;en.wikipedia.org&#x2F;wiki&#x2F;K_(programming_language)</a>
评论 #35396964 未加载
评论 #35391461 未加载
ldayleyabout 2 years ago
For context: This is regarding the function of &quot;group&quot; as it is implemented in the K array-oriented programming language (dialect of APL).
anonuabout 2 years ago
So the summary of that long post: we still need group but Shakti&#x2F;k9 gets rid of it because it&#x27;s too slow forcing the user to diy it with other primitives as needed?<p>I love it... It&#x27;s the exact opposite of every other language design. Others: lets ship it with every tool a developer might ask for. K9: Occam&#x27;s razor to everything. Nothing is safe.
评论 #35400913 未加载
评论 #35397191 未加载
idle_zealotabout 2 years ago
These line-noise programming languages read like a cruel joke on engineers in the finance world.
评论 #35400314 未加载
评论 #35393679 未加载
anigbrowlabout 2 years ago
I like how clever the language is, but it seems only slightly less hostile than Brainfuck. Guess I&#x27;ll stick with being slow but comprehensible.
nextaccounticabout 2 years ago
What is group?
评论 #35394282 未加载
评论 #35390999 未加载
评论 #35394101 未加载
评论 #35391737 未加载
评论 #35402784 未加载
评论 #35391687 未加载
评论 #35391079 未加载
anyfooabout 2 years ago
From the way I often use Haskell, Matlab, and even crazy shell one-lines with lots of pipes, awk, sort, and other stuff, I often have the impression that array languages are exactly what I&#x27;m looking for for certain problems.<p>The question is... which array language should I pick? What are the reasons to pick one over the other?
评论 #35395586 未加载
评论 #35396056 未加载
评论 #35396054 未加载
评论 #35402819 未加载
mslaabout 2 years ago
Imagine what APL could do with a Haskell-style type system and enforced referential transparency.<p>APL programmers want to say their language is mathematical notation, well, <i>make it</i> mathematical notation.
评论 #35395952 未加载
natasabout 2 years ago
Arthur will address this in k10 :)
KrugerDunningsabout 2 years ago
is there any way i can try this out?
评论 #35394112 未加载
评论 #35392977 未加载
评论 #35392207 未加载