Top Tweets for #rustywaves
That’s very kind!
The problem was, there were two kinds of signals : control signals, and audio signals
The bug was that sometimes the audio signals were being scheduled before the control signals
With no control signal telling the audio to play, the audio event produced no sound.
So the solution was to have a strict scheduling priority. All control signals from all kernels are processed before any audio signals from any kernels.
Because I had a dozen kernels processing things in different ways, it was a big change to fix them all
And I thought heck why not “just refactor” 😂🤦♂️
Honestly though, I’m very very happy with the journey
I’m very much enjoying starting the new version with this deep insight that I’ve got in my head. The 75 page detailed technical spec is still substantially usable: 95% of it is unchanged.
I also have lots of code I can reuse: filters double buffering ramping, there’s a lot of really good tech that’s been built but I’ll just be putting it back in place with a lot more scrutiny.
And I’m very confident that this next iteration of the build will be vastly better quality AND the enormous side benefit that I actually know how it works as I will have written some of the code myself.
This is the first time I’ve written much code in several years because I was vibe coding smaller projects that had less significance, and had no specific durability require requirement: if the app died tomorrow, it didn’t matter.
But #rustywaves really matters to me, and I want it to be robust and durable, not leave it up to the probabilistic whimsy of some random agent that has no stake in the outcome.
@julianharris We can probably help with the #rustywaves if you share the challenge with us. What was the architectural flaw?
My first approach to building my real time DSP synthesis engine failed #rustywaves. Here's what I'm doing next: you might laugh and dismiss it as old skool. But maybe not.
I hit an architectural flaw that couldn't be fixed, and despite 6+ iterations of refactoring over 2 months 🤯I couldn't fix it.
Without knowing the code base (25k+ LOC) the situation was intractable.
I want to build durable software that last years, and yet I want to use AI.
SolveIt by https://t.co/PoYFXBzf3n has a different approach: "the opposite of vibe coding".
But it's Python only I think. So what do I do for my Rust project?
My experiment: create a series of Claude Skills to approximate the SolveIt methodology.
Pretty interesting! See the attached screen shot. It's working as a coach to help guide me. It's a poor man to the SolveIt tools but pretty rewarding to work with even so.
(Only use it if you are interested in the dark green path in the AI agent abdication model attached. This will NOT give you the breathless adrenaline rush vibe coding does; this will be "slow", methodical, but I will actually know what my software does as I wrote a lot of it, so I'll be able to maintain it, and have also used AI to accerate building. )

As many suggested, addressing an architectural issue with #rustywaves* by refactoring was an exercise in exasperation.
The final straw was at least 6 passes of "really, do the migration". The documentation, the exhaustive detailed tasks, the works, none of it was enough. It kept missing stuff.
The final straw was the agent discovered that while it had proclaimed "V2 migration is COMPLETE! V1 legacy code fully removed!" it was quickly followed up by "oh. Everything is using the old voice management modules and there are 800 zillion dependencies". At face value, how on earth can this happen?
Spectacular disconnect between my trust in what the agent says, what my tests say, and what actually happened.
Today's agents can't deal with the complexity involved in the DSP engine alone. While it was smart to separate it out from the front-end, it wasn't enough.
It can feel like failure to rewrite. And it is. But it's not the end.
Steve McConnell, software legend who wrote one of my favourite books (Code Complete) said recently "Software needs to be rewritten three times".
Why? Because only after a few tries do you really understand what to do.
So on to v3. Which will probably need to be rewritten too. Because I have a pack of lessons learned I'm going to apply.
What else am I taking away?
- a solid architecture. The v2 design is pretty good. Frankensteining it on to v1 was the mistake (mostly because it kept falling the siren song of "implement v2 on top of v1 even though they had incompatible pipelines", so the "cutover", supposedly a compile time flag, completely failed.
- BDD / Cucumber is amazing for UAT. But Rust by default creates crates for each test suite. This is ok initially but once I hit 90 it was taking 45 minutes to do a full test run.
- Rust is amazing for AI. The number of times I've seen the agent say "oh I can't do that because Rust says it violates the borrow semantics" == "agent tried to do something dodgy"
- Some good code, the core of which I can reuse for various components like filters, envelopes, etc
- Knowledge embedding. Much deeper cut of the tech embedded in my own head. This is a deeply underappreciated outcome. Some people pride themselves in saying "I've never looked at the code and don't know how it works". This might work for small apps, generic business object lifecycle management, etc, but for intrinsically complex solutions, the reliability and durability drop rapidly.
* real time web-based audio synthesis engine written in Rust/wasm
https://t.co/Phkdi7I4rp
I have a 2-3 agents building #rustywaves. Even then I'm still 90% idle.
So why not learn the language it was written in?
Enter Gemini Pro's "Guided Learning". It's teaching me Rust using the Rusty Waves code base.
#softwarepilotry #topdowncreativity

How do you reduce errors made by a coding agent?
One way is to use a strict programming language.
I chose Rust in #rustywaves bcoz it’s either that or C++ for high performance real time web audio and Rust is safer.
How?
Rust eliminates “use after free” memory errors… without needing garbage collection.
For ultra high performance and reliability, Rust is the bomb.
This is definitely my experience. AI coding tools work well against good structures if the domain is complex.
The more complex the domain more structure that needs to be put in place
Just doing v2 of my #rustywaves synth maker the design for the refactoring is probably 20 pages long.

#rustywaves is insanely ambitious — a real time web-based modular synthesiser BUILDER. Absolutely hit the limits of Codex 5. If I wasn’t so excited to build this tool I’d just wait 12 months because I’m 100% convinced building it then will be waaay easier.
- it does refactoring better than any other agent I know, but it still only does it partially and takes 3-4 goes. Basically at this point it seems like the way to solve it is a reinforcement learning algorithm where it just keeps iterating until it finally does it.
- the whole running out of context thing gets old really fast. Not Codex specific but 12-18 months from now we’ll all look back and laugh and say oh how quaint
- same for planning / design management. No standards and lots of tokens chewed up on proprietary file formats, content and linkages.
In case peeps think I'm some kind of Codex fanboi, while it's the best out there, it is by no means perfect.
Here it is trying to hide THREE regressions by relaxing tests and disabling functionality. Holy crap this is what #softwarepilotry is all about: lots of automation but you have to watch stuff like a HAWK, and step in at a moment's notice.
"Relaxed CPU idle budget to 115%" LOL WAT
"Adjusted polyBLEP validation to skip the problematic 48 kHz base‑tone path" Yeah I can understand how a base tone could be problematic… NOT 😱
#rustywaves

"Agents create crap code". Not necessarily.
Here's how I get much better quality code with Codex pro:
* Always do a task and design review before implementation. There are always gaps.
* Regularly do a code audit that identifies the topmost important files and then do a detailed review of them one by one. I did the top 100 files.
* Then across that set of 100 reviews, surface the top themes. Sometimes the same issue crops up in multiple files.
* BONUS: ask for a plain English and technical understanding.
* Then make the recommended changes.
You do have performance and functional regression tests right?
#rustywaves

I'm creating a web-based real time modular synthesiser called #rustywaves. It's a big project and I want parallel agents, so I need subagent support in #codex. Which doesn't exist.
… or does it? 😉

#rustywaves is set up so well I really need parallel execution so I’m vibe coding* sub agent integration into @OpenAI Codex (as it’s open source).
New autonomous record before context runs out: 1h15.
* software piloting actually
I’ve used $950 worth of Codex in my spare time over the last 3 weeks with #rustywaves and it’s doing a sterling job.
Sure it gets lazy when context fills up and there’s no sub agent support but it’s chewing through thousands of lines of insanely complex real time audio rust/wasm code.
codex is really accelerating work at OpenAI
TFW you have nearly 100 user stories left with detailed design and detailed tasks laid out and you just want them all implemented NOW!
BDD is such a powerful way to deliver useful groups of user stories.
#rustywaves
I'm creating a high performance, web-based modular synthesiser called #rustywaves. It allows you to build new synths from scratch in a web page.
I'm using GPT-5-codex to write all the code.
Today it can detect MIDI events, and the MIDI component has a debug view with a keyboard that has chord detection.
I'm creating a high performance web-based modular synthesiser called #rustywaves.
I'm vibe coding this as I don't know Rust and honestly I don't write code these days -- although I do a LOT of software engineering
There are 3 main subsystems:
- the DSP engine (written in Rust over wasm)
- the front-end connectors
- midi integration (did you know Chrome can recieve midi events!?)
Here we have the web midi POC with chord detection!
- one shot: the WHOLE web midi integration
- second shot: chord detection.

I'm making a virtual web-based modular synthesiser so you can create your own synths!. One of my bugbears is messy cables. Here's my latest prototype. Minimal overlap!
This was made using OpenAI's gpt5-codex.
#rustywaves
Experimenting in my spare time with Codex on the best way to create the front end for Rusty Waves, my web based musical synth builder. #rustywaves
I’ve created FOUR prototypes so far, each time learning more about this 🧵
Depends. For conventional web apps integration tests as important, with some e2e.
I’m working on a very math-heavy project #rustywaves which benefits from MECE* unit tests.
I’m starting to use behaviour driven tests (BDD) for functional tests. which a great way of doing integration testing in plain English backed by code.
Rusty Waves also has “UAT” level BDD tests too for high level “user journeys”.
Attached is a sample BDD test— I use cucumber features that are run by gherkin. That combo is available in most programming languages.
*mutually exclusive comprehensively exhaustive

Vibe coding is amazing for education. Digital sound is one of my areas of expertise. Here's an early concept, vibed using framer motion and Codex: "How do computers convert sounds into digital files that can be played back later?"
This is part of a project I call #rustysamples a comprehensive education on how digital soundworks.
It's a companion to my #rustywaves project: a web-based analogue synthesier.
Rusty waves: I'm vibe coding a high performance web-based modular synthesiser using Rust/wasm/WebGPU in Codex/GPT-5.
✅v0: single wave
✅v1: stereo panning
✅v2: polyphony
#rustywaves
Ok bit the bullet and rented ChatGPT Pro / Codex for a month. It’s that good.
We’ll see how it fares as my latest site project gets more complex. It doesn’t help but it’s already pretty complex involving Rust/WASM and WebGPU shaders.
#rustywaves
Announcing Rusty Waves.
I have an electronic music background going back 45y. 👨🦳
I’m building a high-performance web based modular synthesiser. My dream.
I’m using Codex, Rust+wasm + WebGPU.
I know almost no Rust, but I’m a good software engineer.
#rustywaves #webaudio
Most Popular Users

Elon Musk 
@elonmusk
240.1M followers

Barack Obama 
@barackobama
118.6M followers

Cristiano Ronaldo 
@cristiano
114.4M followers

Donald J. Trump 
@realdonaldtrump
111.7M followers

Narendra Modi 
@narendramodi
106.9M followers

Rihanna 
@rihanna
98.6M followers

NASA 
@nasa
92.1M followers

Justin Bieber 
@justinbieber
91.7M followers

KATY PERRY 
@katyperry
89.9M followers

Taylor Swift 
@taylorswift13
83.9M followers

Lady Gaga 
@ladygaga
75.4M followers

Virat Kohli 
@imvkohli
73.3M followers

Kim Kardashian 
@kimkardashian
70.8M followers

YouTube 
@youtube
68.6M followers

Neymar Jr 
@neymarjr
66.3M followers

Bill Gates 
@billgates
65.2M followers

Selena Gomez 
@selenagomez
63M followers

The Ellen Show
@theellenshow
62.1M followers

CNN 
@cnn
61.7M followers

X 
@x
60.6M followers




