8 ms·
As a human, I would like to be able to treat user interfaces as predictable, physical objects. Unfortunately programs are built out of math and so I can’t usua
by senkora 3y ago
As a human, I would like to be able to treat user interfaces as predictable, physical objects.
Unfortunately programs are built out of math and so I can’t usually do this.
Apple iOS actually does do a pretty good job of it, and that is a huge differentiator that I think is a large part of why iPhones feel great to use.
- valbaca 3y agoThank the dispatch queue and Xcode will yell at you if you do anything other than UI and very trivial computes on the main UI thread
- favorited 3y agoSome of Apple's biggest perf wins in the last several years involved removing dispatch asynchrony from code paths that really don't need to be asynchronous. Obviously if you're writing an event-loop web server, then your file IO needs to be non-blocking or you're hosed. On the other hand, if you're reading a small configuration file from disk after your app launches, the most responsive option may well be to just read the bytes on the current thread and continue. https://web.archive.org/web/20190606075031/https://twitter.com/Catfish_Man/status/1081673457182490624 https://web.archive.org/web/20190606075031/https://twitter.c... https://web.archive.org/web/20211005132519/https://twitter.com/Catfish_Man/status/1081581652147490817 https://web.archive.org/web/20211005132519/https://twitter.c...