Re:Thoughts on Clojure UI framework
by mosdl on Thursday September 09, 2021 @02:30PM
(#28472985)
Hates on Electron and bloat, but is fine using vdom which also adds memory bloat? Seems like a wierd combo.
[ Parent
| on HN ]
I wouldn't say the OP hated on Electron, they provided criticism:
- lack of threads
- stuck using JavaScript
- can't do your own layout
- can't render 144Hz animation
- adds 150mb to app bundle
- memory hog
Apart for the last two, I think he's approach would solve those problems.
Re:Thoughts on Clojure UI framework
by speedgoose on Friday September 10, 2021 @12:57AM
(#28477957)
My experience playing the Java Minecraft tells me that it's going to be a challenge to render smooth and consistent animations on top of the JVM. The garbage collector tends to create huge frame drops. And 144Hz and more is definitely possible in Chrome/Edge.
Minecraft is (used to be?) a badly optimized game, you can hardly take away any conclusion from that.
And the JVM has multiple of the best GCs out of any runtime, with a specific low latency one which promises <1 ms stops, at which point the OS’s scheduler will have more latency. Also, it’s not like JS is not a GCd language..
I imagine the bloat from a vdom vs the bloat from chromium is somewhat different.