Better HN
topnewbestaskshowjobs
Log inSign up

grumpyprole

4,485 karma · joined Jun 30, 2015 (11y ago) · 2,043 submissions

Submissions

comment 4y ago · link · parent

You think Apple's Butterfly keyboard was better than a Lenovo ThinkPad keyboard? That certainly would be a minority opinion. I can't comment on cheaper Dell and Lenovo machines, but that wouldn't really be a fair comparison.

comment 4y ago · link · parent

> Even the 2016-2021 MBPs were at best comparable to models of these other brands, never worse.

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

Linux does not have a stable driver ABI or API.

comment 4y ago · link · parent

> unconvinced about the viability of a microkernel architecture beyond theory

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

It's more complex than simply "soft and effortless". For fast accurate typing, many typists need activation feedback and the absence of a hard stop. Mechanical switches have a range of force curves to choose from. The force curve of this Logitech is unknown (and probably unknown even to Logitech).

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

And this means very expensive prices for having the machine cleaned. I agree with the parent, cleaning should not require an expensive and risky strip and rebuild. This is, at best, a misguided design.

comment 4y ago · link · parent

I tried to play Minecraft with my kids yesterday. It forced us to migrate accounts, but after clicking lots of buttons, the presumably final Microsoft account creation part just hung and wouldn't finish. My kids were like "By why can't we just play? We paid for it!". They couldn't understand why "Microsoft accounts" were even needed for local network play. Neither can I.

comment 4y ago · link · parent

Speak for yourself, but for me art in a physical form is something I need.

comment 4y ago · link · parent

Yes and some would argue that all Haskell functions are pure even those that return computations in the IO monad. One can use referential transparency to reason about the IO monad values also.

comment 4y ago · link · parent

I've done years of Java dev at many large corporates, so there's no uncertainty. Plenty of fear and doubt though. The language is getting much better, let's hope the ecosystem does too.

comment 4y ago · link · parent

One advantage of monads is that they can communicate via the type that a function is not pure. I remember a serious bug in a trading system (distributed over multiple time zones), that was caused by Java's toString reading the system locale from the OS. In Haskell, such a function would have a type that makes it clear the function is not pure, e.g. toString : Date -> IO String.

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

In terms of a culture of over-engineering, yes, it is second to none. In Java land, even a logging library can be a serious security vulnerability. A typical Java project pulls in half the internet for dependencies, including multiple logging libraries.

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

I think the parent was referring to the fact that e.g Java really needs an IDE, so one can generate all the boilerplate. In Haskell, I can e.g create a new type (with equality, hashing etc) in one line. Of course, a capable IDE would be extremely useful for Haskell and there are efforts to build such a thing with refactoring and navigation/search tools, but the language isn't unusable without one.

comment 4y ago · link · parent

Yes when people talk about "languages" they really mean ecosystem.

comment 4y ago · link · parent

And the Advantage 360 is coming soon!

comment 4y ago · link · parent

Windows also has an ecosystem, arguably made even larger with WSL2 and Android apps. This new ARM laptop is offering a fanless design and (they claim) 28 hours of battery. Don't forget that Apple have also sold plenty of "crap" laptops for four figure sums until relatively recently (e.g. customers beta testing new flawed keyboard designs).

comment 4y ago · link · parent

NULLs in SQL are a mess so I don't think one should try to attach any general meaning to them. Nor should SQL's NULL handling be a model for any other language. For example, 1+NULL is NULL, but adding the same two values via SUM(1, NULL), returns 1.

comment 4y ago · link · parent

I would guess these days, many people buy audiophile DACs for the amplifier stage, for use with demanding high impedance headphones. However, there have been some really bad phone DACs in the past, the Qualcomm audio from the Note4 that I used to own sounded significantly worse than the iPhone using IEMs. What are people measuring with regard to the Apple dongle? Is it "objectively superior" with regard to multiple measurements?

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

The FLAC decoder has been almost completely integer for a long time (and may now be completely so). Apple Music and iOS still do not play FLAC, which is one significant reason why I won't buy an iPhone. Transcoding my entire music library certainly isn't "just works".

comment 4y ago · link · parent

What would make life simpler is the industry standardising on at least one format. For example Apple doesn't actually support FLAC, despite it being the most popular lossless format.

comment 4y ago · link · parent

Yes there's nothing wrong with goto if you need it. Of course, if you are just doing a loop, then a loop structure better communicates the intent and is safer. This is just abstraction and its a good thing. An example from functional programming is direct recursion versus maps/folds, again better to use these abstractions when possible, but direct recursion offers the most flexibility.

comment 4y ago · link · parent

Absolutely we do! For example, garbage collectors are complex beasts that are hard to tune and tough to scale. But of course some OOP languages have started using GC anyway, in which case, I honestly believe they might as well be functional programmers :)

comment 4y ago · link · parent

It is much easier to reason about immutable state than mutable state, both for humans and compilers, especially in a distributed setting (any modern piece of hardware).

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

I think you misunderstood my point. Private may protect direct access to mutable state, but the object may still have mutable state that is observable externally and must be reasoned about. In which case, the mutable state is not truly encapsulated.

comment 4y ago · link · parent

I personally think "encapsulation" as us used in OOP, is a misnomer. State is usually not encapsulated, it is just hidden. Proper state encapsulation would be to use mutable state internally for efficiency, but for that state to be unobservable externally.

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

> This is misleading at best. It was designed to show that the distinction between OOP and FP is arbitrary,

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.

comment 4y ago · link · parent

I'd be interested to see Scala 3, my comments/opinions apply to Scala 2 only.
1
192021
69