Spatial languages: Writing code in 2D
Hacker News 热议:Spatial languages: Writing code in 2D(91 赞 / 37 评论,来源 shukla.io)
一句话概要
Writing code in 2D: a spatial programming language with vertical operands, quantum uncomputation puzzles, and a 3-bit adder in a single 2D expression.
原文开头节选
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.
(以上为原文节选,完整内容见下方”原文来源”)
这条动态今日登上 Hacker News 首页(91 赞 / 37 评论,来源 shukla.io)。技术雷达每日自动聚合 AI 工程、后端架构、DevOps 方向的前沿动态;相关工程落地可浏览下方的相关服务与延伸阅读,或直接与我们团队交流。
原文来源: Hacker News