r/Clojure • • 25d ago

Two apps one process

https://andersmurphy.com/2026/11/09/two-apps-one-process.html
29 Upvotes

30 comments sorted by

View all comments

Show parent comment

7

u/bananasdoom 25d ago

> Disclaimer: all my writing and code is handcrafted by me. By the end of this you may wish it wasn't.

Your writing is charming.

Technically; On a principled level I think I agree this is a good approach, but as the other commenter pointed out, too much has been built on the assumption of machine level “dumb” isolation. Feels like one of those endeavours where for the want of shared process you’ll end up rebuilding the world.

3

u/andersmurphy 24d ago

Thank you! Yes there's definitely always a risk of rebuilding the world. But, simple isolation is easy enough, i.e apps can't crash other apps, apps can't accidentally access another apps database (unless you load your own sqlite driver and search the filesystem). So it's good enough for deploying apps you own/trust.

I didn't really go into it in the post as I was saving it for a more in depth write but the game loop based render/write batching gives you a lot of headroom and also makes detecting if the system is at capacity (tick overrun). I cover it a little in this post:

Discrete time based systems are simple to benchmark

I do need to add sampling for more fine grained profiling, but again the game loop model makes that relatively trivial.

3

u/yatadger 24d ago

>> Disclaimer: all my writing and code is handcrafted by me. By the end of this you may wish it wasn't.

> Your writing is charming.

Appreciate the ones who handcraft their craft