react

"mulling over state management stuff"
lilactown 2020-06-28T15:58:04.406300Z

this is pretty great: https://github.com/dai-shi/will-this-react-global-state-work-in-concurrent-mode#results

👍 2
Aron 2020-06-28T22:25:16.407300Z

What are my best options if I want performance with low power consumption? : )

lilactown 2020-06-28T22:26:02.408300Z

probably not react or cljs tbh

Aron 2020-06-28T22:26:27.408500Z

I am starting to have the feeling that react is not quite there atm, but I wish someone would prove me otherwise (or resuming rendering would be finished soon by react team https://github.com/facebook/react/issues/13306 first unchecked)

Aron 2020-06-28T22:27:28.409800Z

Actually, the overhead added by cljs is acceptable I believe, I don't really want 3d fps, just a turn based game with nice graphics

Aron 2020-06-28T22:31:54.413800Z

But long renders should not block the ui, nor should lots of slow rendering components introduce artifacts and rendering incongruities. This is my problem with disabling resuming, it means that the UI gets updated way later than it should be if something happened before it. I did a lot of javascript (basically full time since 2013), and I can write very fast js, but it's not worth the effort imho. Better datastructures and abstractions are rarely too much slower than ad-hoc optimized, "performant" code that no one can read.

Aron 2020-06-28T22:32:08.414Z

I think I will try webgl