Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Not only spurious updates, this kind of architecture generates tons of garbage every couple of seconds, which at least Swift can improve thanks to its support for value types.

React and Jetpack Compose aren't so lucky, having to rely on the underlying optimizations of JS engines and ART, on escape analyis and GC algorithms.

I never understood the love for reactive for interactive GUIs, when they are so bad in memory management and its effects to jank.



Is it really that bad (the garbage generation)? Modern GCs are insanely good, short-lived objects can be quite cheap.

Also, aren’t they basically push-based reactive frameworks? I would assume they just call a bunch of registered functions and that’s it. The graph itself shouldn’t change too often (and may be static as well, eg. React vs SolidJS) — but I am way out of my depth here.


They are extremely good, however they are even better if we don't throw waste at them.

The most performance code is the one you don't have to execute.




Consider applying for YC's Fall 2026 batch! Applications are open till July 27.

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: