News for hackers. Stuff that matters.
Re:Ask HN: Has anyone fully embraced an event-driven archite... by malandrew on Tuesday August 03, 2021 @06:17PM (#28054900)
Not sure why my sincere question about the state of browser execution environment got downvoted, but the general concerns I raised in my first comment weren't about incidental complexity or hassle. They matter and it's great that clojurescript helps with those two. The concern I voiced was about maintaining realtime performance of a responsive user interface. The key issue is that you have a single event loop that all visual and human interactions need to be handled by because that's the only thread that can interact with the DOM. It's just way too easy to block that thread and cause the app to become unresponsive.
Re:Ask HN: Has anyone fully embraced an event-driven archite... by dmos62 on Wednesday August 04, 2021 @06:15AM (#28059281)
> The key issue is that you have a single event loop that all visual and human interactions need to be handled by because that's the only thread that can interact with the DOM.

Isn't that normal? A single event/drawing loop. Would there be an advantage to two threads drawing? Sounds pretty novel.