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.

Generating audio with literate futhark

64 pointsby Munksgaardover 2 years ago

4 comments

juliangoldsmithover 2 years ago
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 未加载
scaredgingerover 2 years ago
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
rowanG077over 2 years ago
The quality of life features in Futhark are really great. It&#x27;s better then a lot of &quot;non-research&quot; languages.
chaosprintover 2 years ago
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 未加载