TE
科技回声
首页24小时热榜最新最佳问答展示工作
GitHubTwitter
首页

科技回声

基于 Next.js 构建的科技新闻平台,提供全球科技新闻和讨论内容。

GitHubTwitter

首页

首页最新最佳问答展示工作

资源链接

HackerNews API原版 HackerNewsNext.js

© 2025 科技回声. 版权所有。

Generating audio with literate futhark

64 点作者 Munksgaard超过 2 年前

4 条评论

juliangoldsmith超过 2 年前
I&#x27;m glad to finally see a non-Iversonian array language. I&#x27;ve dabbled in J a bit, and it is pretty nice.<p>For those who haven&#x27;t used array languages, the easiest comparison would be NumPy. NumPy is like a small array DSL on top of Python. Instead of having to manually iterate over arrays, you can (kinda) treat them like a single item; NumPy handles the details of iterating.<p>I could deal with how terse J (plus APL and BQN) can be, except for the sheer number of operators. I&#x27;ve heard that you can figure out what they do by their shape, but that doesn&#x27;t help sort through 200+ operators (aka primitives) on NuVoc.<p>There are definitely some interesting thing in the Iversonian languages that aren&#x27;t really found anywhere else. For instance, you can use a modifier (aka adverb) to swap the order of parameters to an expression. You can also convert an expression to a scan (aka reduce, IIRC) by adding a modifier on the end.<p>Apart from the syntax, GPU acceleration for an array language is an absolute slam dunk. Given how much people pay for K&#x2F;Q licenses to use for low-latency HFT, I&#x27;m baffled GPU acceleration wasn&#x27;t ubiquitous the second GPGPUs came out.
评论 #34096048 未加载
评论 #34095938 未加载
scaredginger超过 2 年前
Futhark looks very cool. I generally don&#x27;t buy into programming dogma, but I&#x27;m a big fan of data-oriented design these days; on top of efficiency gains, I find thinking in terms of data transforms and flows very intuitive. Plus, it&#x27;s always great to have another tool to use&#x2F;toy to play with
rowanG077超过 2 年前
The quality of life features in Futhark are really great. It&#x27;s better then a lot of &quot;non-research&quot; languages.
chaosprint超过 2 年前
Interesting language!<p>perhaps you can add some envelop to get rid of the clicks.<p>btw I am also developing a music DSL that can be used in browsers: <a href="https:&#x2F;&#x2F;glicol.org&#x2F;" rel="nofollow">https:&#x2F;&#x2F;glicol.org&#x2F;</a><p>This example here is quite relevant: <a href="https:&#x2F;&#x2F;glicol.org&#x2F;tour#meta1" rel="nofollow">https:&#x2F;&#x2F;glicol.org&#x2F;tour#meta1</a>
评论 #34093533 未加载