Dave Anderson on Nostr: nprofile1q…gx3yv Yeah it's tempting, for sure. On linux at least, I think part of ...
nprofile1qy2hwumn8ghj7un9d3shjtnddaehgu3wwp6kyqpq0smdhqjvt80rt7g3mgqvwhvxs4qh8few5pyfgs6wcxap7w4vrl3sagx3yv (nprofile…x3yv) Yeah it's tempting, for sure. On linux at least, I think part of the problem is that we have nothing like android's connectivity manager API, so if you want to do things right and wait for your specific definition of online, it's currently quite painful: make a netlink socket and monitor undocumented events, listen on dbus for NetworkManager/resolved/networkd/whatever changes, ...
Mobile OSes were forced to figure this out because of wifi/LTE dual uplinks, and metered/unmetered/roaming connectivity, and all the other complicated things. So apps are forced to either reason about this, or to use higher level APIs that express intents like "retrieve this URL and let me know when it's done" instead of "waaaah I can't make sockets yet". Linux's sin is that people still think "oh but desktop networking is much simpler, what's wrong with BSD sockets" and aaaaaaaa
Mobile OSes were forced to figure this out because of wifi/LTE dual uplinks, and metered/unmetered/roaming connectivity, and all the other complicated things. So apps are forced to either reason about this, or to use higher level APIs that express intents like "retrieve this URL and let me know when it's done" instead of "waaaah I can't make sockets yet". Linux's sin is that people still think "oh but desktop networking is much simpler, what's wrong with BSD sockets" and aaaaaaaa