4,485 karma · joined Jun 30, 2015 (11y ago) · 2,043 submissions
comment 4y ago · link · parent
This is patently false. The butterfly keyboards were a disaster for Apple. Financial reports suggest it may have cost Apple an additional billion dollars per-year in warranty repairs. The M1 machines are nice and Apple seemed to have fixed their reliability issues; but your post is essentially, at best, a cover up.
comment 4y ago · link · parent
QNX is an example of a real-world microkernel OS that Blackberry purchased for use in mobile phones. One could argue it had superior peformance to Linux, not because of throughput, but due to its real-time guarantees.
comment 4y ago · link · parent
If I had to use this device, I probably couldn't type all day. For me personally, an ergonomic mechanical keyboard is pretty essential.
comment 4y ago · link · parent
comment 4y ago · link · parent
Monads are not the only way of tracking effects in the type, but they are one way. For example, Java has "checked exceptions", which also represent an effect in the type system.
Monads also allow one to assemble a computational ready for execution later. One can therefore write an Async library, without needing baked-in language support.
comment 4y ago · link · parent
Java is therefore somewhat a victim of its own success. There is no absolute "best" as you seem to suggest. Every ecosystem has pros and cons.
comment 4y ago · link · parent
comment 4y ago · link · parent
comment 4y ago · link · parent
It shouldn't be too hard to build a decent DAC and amp stage, at least for ear buds and IEMs, it's just that many manufacturers (e.g. Samsung / Qualcomm) don't care. Apple sell music and so probably should care more.
comment 4y ago · link · parent
comment 4y ago · link · parent
The problem with "leaky" encapsulation as you put it, is the combinational explosion of the state space as many stateful objects are composed.
Most mainatream programming languages are still unfortunately not well geared up for working with immutable data, they lack even persistent collections. Functional languages are of course ideal for this.
comment 4y ago · link · parent
OOP does unfortunately encourage introducing mutable state into the domain model. The canonical example being the back account, with a mutable back balance!
The good parts of OOP are interfaces and first-class modules. Obviously we should try and keep those.
comment 4y ago · link · parent
Possibly misleading yes, it is certainly a subjective point. I guess it reflects the struggle I had doing FP in Scala versus alternatives. I don't think I'm alone either, the Haskell community contains a lot of Scala refugees. Note that I have not looked at Scala 3.