News for hackers. Stuff that matters.
Re:Scheduling in React by sktrdie on Thursday March 07, 2019 @02:38PM (#19331416)
I feel that this low-level performance stuff should exist in browser-land and not in framework-land. Kudos to React for finding a good implementation though
Re:Scheduling in React by pmdarrow on Thursday March 07, 2019 @02:58PM (#19331647)
The Chrome dev team is working to create a scheduling API in the browser: https://github.com/spanicker/main-thread-scheduling
Re:Scheduling in React by danabramov on Thursday March 07, 2019 @05:40PM (#19333340)
Yep, and React is actively collaborating with them.
Re:Scheduling in React by mpweiher on Thursday March 07, 2019 @02:54PM (#19331602)
Or maybe not even in the browser but in the OS?

It is interesting how we build a new layer on top, and then notice that we need to reproduce all the functionality of the lower levels.

Maybe Open Implementation wasn't such a bad idea?

Re:Scheduling in React by amelius on Thursday March 07, 2019 @06:12PM (#19333601)
Yes it's highly unsatisfactory that frameworks are implementing "threads" (i.e., fibers) now, while the OS already provides native threads.

Perhaps it would not have been so bad if they just kept the interface the same ...

Re:Scheduling in React by quickthrower2 on Thursday March 07, 2019 @03:47PM (#19332195)
We’ll end up with threads in JS one day.
Re:Scheduling in React by danabramov on Thursday March 07, 2019 @05:41PM (#19333349)
Re:Scheduling in React by kalmi10 on Friday March 08, 2019 @03:12AM (#19335958)
Re:Scheduling in React by amelius on Thursday March 07, 2019 @06:13PM (#19333608)
Hopefully without a "Global Interpreter Lock".
Re:Scheduling in React by dana321 on Thursday March 07, 2019 @06:47PM (#19333825)
I would prefer that they implement it in the same way go has with channels.