|
|
|
|
|
by Rohansi
249 days ago
|
|
That's basically what React Native does/did and it's generally good but turns into a nightmare when you need to synchronize interactions between the two threads. 16ms is a long time - if your UI manipulations eat up most of that time then there's something wrong. Entire video games can run basically on one thread within that time and they do way more. |
|
16ms is not a long time, when interpreted languages like Lua are used.
16ms is not a long time, when GC can suddenly kick in and stop the thread for unspecified amount of time.
16ms is not a long time, when JIT can suddenly kick in and stop the thread for unspecified amount of time.
GC and JIT are good techniques for server-style throughput workloads, when infrequent delays are not noticeable. For GUI, infrequent delays lead to skipped frames and stuttering.
I don't think that it's reasonable to ask the world to develop GUI apps in C or Rust. Probably Swift is a good middle point between usability and predictable performance. But most GUI projects use slow languages and/or languages with GC.