Uiua: A minimal stack-based, array-based language
1–10 of 107 posts
Re: Uiua: A minimal stack-based, array-based language
#2J & APL are elegant but not easy to get started with, and difficult to install. This looks like a newer, nicer, more open version.
Would be great to see some Advent of Code puzzles in Uiua..
Re: Uiua: A minimal stack-based, array-based language
#3This is really cool — great work. J & APL are elegant but not easy to get started with, and difficult to install. This looks like a newer, nicer, more open version. Would be great to see some Advent of Code puzzles in Uiua..
Re: Uiua: A minimal stack-based, array-based language
#4Not affiliated, just recommending. The regular co-hosts appear to each be experienced with various array languages such as J, APL, etc. They don't get deeply technical, but it's a nice introduction, especially on explaining the appeal.
A recent episode had Rob Pike (UTF-8, Go, etc.) on to talk about his array based calculator, Ivy[2]
Re: Uiua: A minimal stack-based, array-based language
#5Edit: I'll be specific. Stranding required a special character in BQN '‿', but appears to be just '_' in Uiua.
Re: Uiua: A minimal stack-based, array-based language
#6My recent exposure to array programming languages came via a podcast called The Array Cast[1] Not affiliated, just recommending. The regular co-hosts appear to each be experienced with various array languages such as J, APL, etc. They don't get deeply technical, but it's a nice introduction, especially on explaining the appeal. A recent episode had Rob Pike (UTF-8, Go, etc.) on to talk about his array based calculato…
Re: Uiua: A minimal stack-based, array-based language
#7Re: Uiua: A minimal stack-based, array-based language
#8Re: Uiua: A minimal stack-based, array-based language
#9I'm a big fan of stack-based languages conceptually, but they always seem to fall flat when it comes to basic reading comprehension. APL has the same issue, as does J. Factor did improve on this a little bit by eschewing the symbol fetish but it was still very difficult to rapidly scan the code for functionality. I'm not convinced the approach shown here is a good pairing with the human brain.
The difference between scanning algol-style and apl-style code is a little like the difference between scanning history books and maths books: on one hand, one must scan the latter much more slowly (symbol by symbol, not phrase by phrase), but on the other hand, there's much less to scan than in the former.
* Edit: as an example, compare the typical sub-10 character expression of Kadane's algorithm in an array language with the sub-10 line expressions one typically finds online.
Re: Uiua: A minimal stack-based, array-based language
#10 ⌊×10[⍥^999]
yields a list of numbers, but ⌊×10[⍥^1000]
yields an audio clip. That's somewhat unexpected.The ^ above stands for the 3-dot cube dice glyph, which gets eaten by the HN backend, so it's ^ instead.