Spatial languages: Writing code in 2D
Trending on Hacker News: Spatial languages: Writing code in 2D (91 points / 37 comments, via shukla.io)
In one line
Writing code in 2D: a spatial programming language with vertical operands, quantum uncomputation puzzles, and a 3-bit adder in a single 2D expression.
Opening excerpt
a < b All this time we’ve been writing expressions in 1D space, but what happens when we unlock an extra dimension?
Of course the IDE and parser need to play nicely for all this to work. Even then, what’s the point? Well, let’s take a look at these examples below.
For example, in Python (and most other languages), you can and 3+ things at once:
x and y and z Technically, that’s just composing multiple binary functions together.
(Excerpted from the original; full article via the source link below.)
This story hit the Hacker News front page today (91 points / 37 comments, via shukla.io). Our Tech Radar aggregates daily signals on AI engineering, backend architecture and DevOps — browse the related services and further reading below, or get in touch with our team.
Source: Hacker News