But in defense of Java, modern Java is actually pretty pleasant.
Virtual threads, records and sealed classes, pattern matching, state-of-the-art garbage collectors, a great standard library etc. (and obviously well-behaved enums).
Not to mention the other languages you get for free with the JVM ecosystem.
It might not be as expressive as Rust, but certainly Java/JVM > Go.
Ah perhaps the app is using bedtime mode for its functionality? Didn't get a chance to try it myself yet, but great that pausing is already implemented.
I use Android's Bedtime mode a lot, and it has a helpful feature that let's you quickly "Pause for 30 minutes" or "Turn off for now" from a notification [1].
I don't think the app needs notifications as such, but it could have quick access to a pause button.
> pharmaceutical and biotechnology sales revenue increased from $534 billion to $775 billion between 2006 and 2015
> worldwide company-reported R&D spending, most of which went to drug development (rather than research) ... $89 billion in 2015 dollars
> During the same period, federal spending, which funded a greater amount of basic research relative to industry, remained stable at around $28 billion
So only ~11% of total revenue was being reinvested, mostly into drug development.
And basic research was funded largely by federal spending.
> this is not a hard problem to solve in idiomatic Go.
Genuinely asking, what would the solution look like in idiomatic Go?
Let's assume for a second that the premise of the article is valid and exactly the behavior we want - "asynchronous execution but to report the results in order, as each becomes available".
I agree. Though to be fair Nintendo's NES is a gaming console (not that they are right, just contrasting the use-cases).
Consider Apple's very own Mac - another general-purpose computing device like the iPhone, only in a different form-factor.
Surely Mac developers must be tripping over themselves to throw 30% of their total revenue at Apple, as reward for their laser focus on privacy and security and for developing a nanny-platform that makes their users feel warm and fuzzy inside?
Surely Mac users must not be allowed to do business with literally any entity in the world without involving Apple as the gatekeeper?
I agree with your point about Go enums.
But in defense of Java, modern Java is actually pretty pleasant.
Virtual threads, records and sealed classes, pattern matching, state-of-the-art garbage collectors, a great standard library etc. (and obviously well-behaved enums).
Not to mention the other languages you get for free with the JVM ecosystem.
It might not be as expressive as Rust, but certainly Java/JVM > Go.