This commit is contained in:
ed committed 2026-08-29 11:29:21 -04:00
1 parent f4e98e8260
commit 8d12a945c9
29 files changed
+1257

No files matched your search

@@ -0,0 +1,59 @@
---
title: "@flowerornament FWIW you’re speed running shader dev in modern AAA, they do a hacky emulation of a rate lattice type idea bc GI and fog etc need to be amortised over several frames."
type: archive
source: twitter
source_url: "https://x.com/hastuc_dibtux/status/2034587177233908079"
author: "Dr. Oskar Sarkon"
handle: hastuc_dibtux
post_id: "2034587177233908079"
date: 2026-03-19
archived: 2026-08-29
draft: false
tags:
- archive
- twitter
- flowerornament
description: "@flowerornament FWIW you’re speed running shader dev in modern AAA, they do a hacky emulation of a rate lattice type idea bc GI and fog etc need to be amortised over several frames."
in_reply_to: ""
parent_post_id: "2034584048606273988"
---
## Source
- URL: https://x.com/hastuc_dibtux/status/2034587177233908079
- Author: Dr. Oskar Sarkon (@hastuc_dibtux)
- Posted: 2026-03-19 11:05:58
## Branch
**1/** **@hastuc_dibtux** ^2034587177233908079
**@flowerornament**
FWIW you’re speed running shader dev in modern AAA, they do a hacky emulation of a rate lattice type idea bc GI and fog etc need to be amortised over several frames. Should definitely look at demo scene stuff also if you haven’t
**2/** **@flowerornament** ^2034591920706781196
That's correct pattern matching, but the innovation here is not that I'm inventing new concepts—the design only aims to *formalize* many known techniques. Moving between audio programming, control, and neural networks is just a parameterization, with computations dispatched to whatever hardware runs them best.
It remains to be seen whether this thing can subsume graphics too (despite all the overlap), but for now it doesn't because scatter has unbounded cost, and that's just a different aesthetic.
**3/** **@hastuc_dibtux** ^2034599017405972632
**@flowerornament**
Can you elaborate on the scatter thing wrt video
**4/** **@flowerornament** ^2034780263855923467
Graphics has a gather / scatter concept. Rasterization (scatter) writes into unknown / unbounded memory space, so you can't guarantee performance characteristics by construction in advance. This is somewhat fine on GPUs, but at the end of the day you need to just build and test to see if it works (that's how the whole industry works today ... why there are C++ gray beards running everything). Murail's whole concept is that downstream performance characteristics are *known* in the type system, so you can guarantee something will run in real-time at compile time. This makes it safe / easy for a novice to write performant code.
There is a middle ground possible, but not a priority for me right now.
**5/** **@flowerornament** ^2034780576029512153
> Graphics has a gather/scatter split. Texture sampling is gather — read from computed addresses — and GPUs do it natively. Rasterization is scatter — one triangle writes to many pixels, fanout is data-dependent and unbounded. That scatter path requires dedicated fixed-function hardware (rasterizers, ROPs) that doesn’t exist in the compute/tensor pipeline (currently).
## Related
- Spine: [[archive/threads/flowerornament/2026-03-19-im-currently-thinking-through-the-murail]]
@@ -0,0 +1,49 @@
---
title: "@flowerornament You may want to reach Pedro Domingos."
type: archive
source: twitter
source_url: "https://x.com/renart973/status/2034637505819967722"
author: "renart"
handle: renart973
post_id: "2034637505819967722"
date: 2026-03-19
archived: 2026-08-29
draft: false
tags:
- archive
- twitter
- flowerornament
description: "@flowerornament You may want to reach Pedro Domingos."
in_reply_to: ""
parent_post_id: "2034584048606273988"
---
## Source
- URL: https://x.com/renart973/status/2034637505819967722
- Author: renart (@renart973)
- Posted: 2026-03-19 14:25:57
## Branch
**1/** **@renart973** ^2034637505819967722
**@flowerornament**
You may want to reach Pedro Domingos. In case you haven't read this one, you'll probably resonate with his current work. https://arxiv.org/html/2510.12269v1
**2/** **@flowerornament** ^2034926001189528023
**@renart973**
Fantastic, thank you! I hadn't come across this somehow. At first glance, it seems like we've had some similar core insights, but otherwise the models are as different as can be. That said, there are some ideas in here I want to borrow. May reach out.
**3/** **@flowerornament** ^2034926562945245364
**@renart973**
One day I too aspire to be a hobo sailor dropping links to obscure PL theory on X—cheers 👌
## Related
- Spine: [[archive/threads/flowerornament/2026-03-19-im-currently-thinking-through-the-murail]]
@@ -0,0 +1,37 @@
---
title: "@flowerornament The more I read about Murail the more I would love to be able to compare notes...I've been working on something based on operad diagrams that seems to be almost exactly dual to your design...ping me!"
type: archive
source: twitter
source_url: "https://x.com/eshear/status/2040626723814089183"
author: "Emmett Shear"
handle: eshear
post_id: "2040626723814089183"
date: 2026-04-05
archived: 2026-08-29
draft: false
tags:
- archive
- twitter
- flowerornament
description: "@flowerornament The more I read about Murail the more I would love to be able to compare notes...I've been working on something based on operad diagrams that seems to be almost exactly dual to your design...ping me!"
in_reply_to: ""
parent_post_id: "2034584048606273988"
---
## Source
- URL: https://x.com/eshear/status/2040626723814089183
- Author: Emmett Shear (@eshear)
- Posted: 2026-04-05 03:04:58
## Branch
**1/** **@eshear** ^2040626723814089183
**@flowerornament**
The more I read about Murail the more I would love to be able to compare notes...I've been working on something based on operad diagrams that seems to be almost exactly dual to your design...ping me!
## Related
- Spine: [[archive/threads/flowerornament/2026-03-19-im-currently-thinking-through-the-murail]]
@@ -0,0 +1,104 @@
---
title: "I'm currently thinking through the Murail \"programming language\"—and it's a weird one."
type: archive
source: twitter
source_url: "https://x.com/flowerornament/status/2034584048606273988"
author: "Flower"
handle: flowerornament
post_id: "2034584048606273988"
date: 2026-03-19
archived: 2026-08-29
draft: false
tags:
- archive
- twitter
- flowerornament
description: "I'm currently thinking through the Murail \"programming language\"—and it's a weird one."
in_reply_to: ""
---
## Source
- URL: https://x.com/flowerornament/status/2034584048606273988
- Author: Flower (@flowerornament)
- Posted: 2026-03-19 10:53:32
## Thread
**1/** **@flowerornament** ^2034584048606273988
I'm currently thinking through the Murail "programming language"—and it's a weird one.
"Named sparse recurrence" is what it calls itself. Let's unpack that:
Named
A Murail program is simply a set of named equations.
Programs are a lot like writing math, which its intended users are familiar with:
osc.phase = self@1 + freq / sr
osc.out = sin(osc.phase * 2 * pi)
This is a program for a sinusoidal oscillator. It defines two nodes in a graph.
Compared to a normal programming language, this is a bit like defining a function, but Murail is neither imperative nor functional, so functions are never explicitly "called."
A named equation is instantly running as soon as it's written. There's no "on" or "off". In this way, it's a bit like a circuit. If you wanted to turn a function off, you'd have to write a switch after it.
This may seem very limited and unfamiliar, but it's a lot like the most popular programming language in the world: spreadsheets.
It's also very much like Max/MSP, and you can think of Murail as something like Max/MSP, but more general. Instead of "signals" and "control," nodes are connected by streams of matrices, which can flow at any rate. If the rate is fast—like, audio rate—they get automatically prioritized and run fast like optimized C code.
On top of this simple scheme, we layer some concepts for abstraction. This is what I'm working on now. There are "templates" you can use to group equations, simple pattern matching, constructions for branching, a "do" keyword for pseudo-imperative stuff, and more.
But this is all syntax sugar over named equations.
Sparse
Murail programs are, basically, graphs. You write equations, but those equations are automatically connected together. The thing that tells the compiler which things to connect to which other things is mediated by the names.
So, the above oscillator example actually turns into something like:
[osc.phase] -> [osc.out]
But the crazy part is that this compiles to a matrix operation. In "BSM" form, something like:
[y] [2π 2π] [ω]
[φ] = [ 1 1 ] [φ] + sin(y)
So, "sparse" refers to the fact that what we're really defining is a huge set of matrices related by a sparse matrix, which defines the connections between them.
Recurrence
This matrix is evaluated "in time." In a normal programming language, you don't think about time specifically—or if you do, it's a choice. Normally, you just want everything to execute as fast as possible.
In Murail, everything is executed together at a specific rate. If you're doing audio, then it's something like 48khz.
But the graph aka matrix is executed over a "rate lattice," which means different parts of the graph are executed at divisions of the fastest rate.
On top of this, "now" is variable. You can alway write `self@1`, which refers to the current value, but one step in the past.
In this sense, Murail is a "strongly timed" language. You cannot do anything without explicitly or implicitly defining how often it happens per second.
Design
The hard part of a language like this is getting it to also do things people are used to doing in a programming language.
I'm not actually sure if Murail is Turing complete—but what's more important is that it's decidedly *not* lambda calculus.
As such, it's been an interesting exercise to find out how exactly to provide the right set of features such that you can fluently write DSP code that looks like math, but also do more "sequential" things like write a sequencer, or an HTTP server, or load a file.
It turns out you can do a lot more of this than I thought at first, and quite elegantly. The primitives are just different.
In fact, they're not *that* weird. They're just more like what you find in a language like APL (or J, or K).
branch, fold, scan, select, match
If you're used to Max/MSP, you'll be familiar with this type of stuff. Strangely named operations that split, combine, interleave, and shape streams of data.
The concept of "externals" from Max/MSP is also essential here for certain things. In Urbit or PLAN, they're called "jets."
Ultimately, you can't get around the fact that the rest of your computer isn't inside the graph itself. As such, the runtime needs to provide certain special functions that do things like read files or take input from the external world and inject them into equations.
We'll have to wait for the PLAN computer for a world where your OS is just one uniform substrate interacting with itself. But, even there, you need some systems code at the edge.
That's probably enough for one post. Perhaps more to come.
Branches: [[archive/threads/flowerornament/2026-03-19-im-currently-thinking-through-the-murail/2026-03-19-hastuc_dibtux-fwiw-youre-speed-running-shader-dev-in-modern-aaa]], [[archive/threads/flowerornament/2026-03-19-im-currently-thinking-through-the-murail/2026-03-19-renart973-you-may-want-to-reach-pedro-domingos-in-case-you]], [[archive/threads/flowerornament/2026-03-19-im-currently-thinking-through-the-murail/2026-04-05-eshear-the-more-i-read-about-murail-the-more-i-would]]
+12
View File
@@ -0,0 +1,12 @@
---
title: flowerornament
type: note
draft: false
description: Archived threads by flowerornament.
tags:
- archive
- twitter
- flowerornament
---
- [[archive/threads/flowerornament/2026-03-19-im-currently-thinking-through-the-murail]]