Dario Hamidi (@_dhamidi) profile picture

Member of Technical Staff at Amp / @AmpCode / 🇪🇪 – I lived in tmux

Tallinn, Estonia
Joined October 2013
New level of observability unlocked! What if you could snapshot your entire system's RAM, and inspect it visually? Statecharts (eternal gratitude to @DavidKPiano for the introduction) make the state space of your system tractable. So you don't need to snapshot RAM (big!), just all statecharts (small!) My actor runtime forces every actor to be a statechart, so all actors become inspectable, and runs them inside one big byte buffer provided by the platform. Well...bytes can be copied! With a self-describing memory image you can build a browser for that image. Check out this demo issue tracker system, where each issue is a statecharts based actor. After running it for a while, we dump the entire system state and explore it.
3
33
1,260
talking to ChatGPT and having it just sketch our everything as statecharts in XML, including all message schemas etc Modern XML with XQuery 4 is basically an adhoc compiler generation toolkit. After iterating on the prototype
1
1
156
Finally converging on a copywriting tool that helps me be better. Opus literally made no mistakes building this, include dictation, network errors etc. I built it using
3
7
656
Unlike other formalisms where the model and the thing you are modelling are separate, statecharts allow you to have the model drive your application so it's one and the same. In the tinyactors.dev demo you can now tap individual ants to follow them and see their internal statemachines update live. This was a simple change because the statechart already moved the ants around, it only needed to be visualized. You can do the same in your production systems when using statecharts!
16
770
After thinking about this for a year and having experienced the power of statecharts (thank you @DavidKPiano for xstate!), I finally got my actor runtime into usable enough shape to share. Demo in the video: 1 million foraging and fighting ants, each an actor backed by a statechart. Everybody has one nowadays, so what makes this one special? It's in-process, resource efficient, and exclusively based on statecharts. That means you can model fine-grained entities like individual websocket connections with an actor each, and simulate to your heart's (and agent's) content. It's built so that you can do that every: on the server (today), in the browser (today), in mobile and native apps (soon without spending your own tokens). XML might look icky, but it's actually an okay data format for this use case (think about it: you can mix HTML inline for self-documenting charts!) and you don't have to write it anymore.
14
3
45
1,700
Ants live in my side project now One for every live visitor. Very surprised by how different the website feels when it has a sense of place and life like this. (I know the copy isn't great, working on it!)
3
10
586
Opus read papers about ant movement and lo and behold the animation quality improved massively
4
1
11
728
First time asking Opus to animate a well structured SVG file and while the walking motion needs improvement, it's pretty crazy that this works
2
5
781
Can't wait to go back to Nyland Still looking for remote Swedish house neighbors! Just look at the prices (yes, I know upkeep is real etc but value for money is great). booli.se/sok/till-salu?areaI…
2
23
4,520
You can now embed a feedback widget on your website to send work to Amp directly from there! ampcode.com/news/close-the-l…
12
3
10
72
13,037