3 ms·
> Today every UI toolkit that is not running in a browser needs a UI Thread This highlights why the idea of running a UI in the browser is actually seriously b
by amelius 12y ago
> Today every UI toolkit that is not running in a browser needs a UI Thread
This highlights why the idea of running a UI in the browser is actually seriously broken.
- statictype 12y agoCode running in the browser also has a UI thread that it needs to run on. Just that until recently the UI thread was the only thread you had access to.
- kaoD 12y agoActually, it's the other way around: the single thread in a browser is an UI thread, and what's seriously broken is using it for anything else! If you ever want to do non-UI work, you should use Web Workers, which were invented specifically because doing non-UI complex tasks in the UI thread got really common when HTML unexpectedly became an application platform.
- seanmcdirmid 12y agoWPF has not only a UI thread, but a closed-off rendering thread responsible for translating scene graph modifications into screen pixels. It was never clear to me if browsers did the same thing (dom being changed in the single UI thread, dom changes being processed in an off limits rendering thread).