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.

Uiua – A stack-based array programming language

74 pointsby ksp-atlas5 months ago

5 comments

ErikSchierboom5 months ago
I love Uiua mostly because it&#x27;s a very different, but incredibly programming model (if you don&#x27;t know APL&#x2F;J&#x2F;BQN or another array language). It&#x27;s also quite a polished language IMHO, with clear design choices, great docs and a lovely online editor at <a href="https:&#x2F;&#x2F;www.uiua.org&#x2F;pad" rel="nofollow">https:&#x2F;&#x2F;www.uiua.org&#x2F;pad</a><p>Together with some other people, I&#x27;ve built a Uiua track on Exercism: <a href="https:&#x2F;&#x2F;exercism.org&#x2F;tracks&#x2F;uiua&#x2F;" rel="nofollow">https:&#x2F;&#x2F;exercism.org&#x2F;tracks&#x2F;uiua&#x2F;</a> It has 90+ exercises which makes for a lot of fun content.
Joaozin0034 months ago
I&#x27;ve fallen in love with the language since around last year, and I&#x27;m very active on the Discord server (the language is still in development so you can go there and give ideas, suggestions or just hang out!).<p>The stack makes it feel completely different from the other array languages. Instead of using infix functions with reusable variables, code runs RTL (for various reasons <a href="https:&#x2F;&#x2F;www.uiua.org&#x2F;docs&#x2F;rtl" rel="nofollow">https:&#x2F;&#x2F;www.uiua.org&#x2F;docs&#x2F;rtl</a>) and you can manipulate the stack with the various primitives, which I find nicer than the other array languages (APL, J, BQN, etc...).<p>Once you get a hang of the glyphs and their meanings you can really start writing code, which turns out to be very readable due to the colors the language gives to glyphs and user-defined functions, as well as the simplicity of how the stack works and how the language is designed overall.
snthpy5 months ago
This looks really nice! I&#x27;ve taken a few runs at APL, J, K, BQN, ... and this looks the nicest so far.<p>I love the unicode glyphs and the color coding which makes it much more readable. I might take a look at the Exercism track.<p>I wonder if this might make for a nice embedded array DSL in order languages? In particular could this compile into numpy or Jax expressions?
junon5 months ago
Love the design. Though it begs the question, is this a toy (which is totally valid and okay) or is there something practically useful about this over more &quot;conventional&quot; code? What are the use cases, other than code golf situations?
评论 #42594848 未加载
Archit3ch5 months ago
&gt; stack-based array language<p>OpenGL did it first. :)