Better HN
topnewbestaskshowjobs
Log inSign up

willtim

2,890 karma · joined Jun 30, 2015 (11y ago) · 1,323 submissions

Submissions

comment 5y ago · link · parent

The flipside to this, is that there is perhaps no longer an incentive to sell hardware with a limited lifespan.

comment 5y ago · link · parent

In case you are unaware, tax is needed to pay for schools, universities, research, health care, social care, police, civil infrastructure, environmental agencies, regulators, defence, bank bailouts, pandemic bailouts, etc.

The Big tech firms benefit from all of the above, but are not contributing anything back. The system is broken and needs to be fixed, so let's not pretend there is no problem.

comment 5y ago · link · parent

This excellent Linux distribution has the honour of not needing to recommend a clean install. It deserves to be far more popular. I've run it since 2014 with so few problems, that I can't really claim to "know" Linux anymore.

comment 5y ago · link · parent

Agree with everything you say, but I would also add that the interactions with compression and other lossy signal processing that is frequently performed is not well studied. For example, when using Bluetooth headphones, it is likely that the music will be equalised/normalised, resampled to 48Khz (for mixing) and then re-encoded to a bluetooth codec e.g. LDAC. It is much safer to start with FLAC, if you cannot avoid such a signal chain.

comment 5y ago · link · parent

Yes I still do and I FLAC them. I've been collecting CD's for 35 years, so it's difficult to stop. I am sometimes envious of the high-res downloads, but whenever I hear digital clipping in the 16-bit CD version, the clipping has always been present in the 24-bit version too.

comment 5y ago · link · parent

I would never buy anything expensive from Amazon, the customer service is not adequate when things go wrong. I even stopped buying CD's from them as they would almost always arrived with cracked/broken cases. Specialist sellers, e.g. Prestomusic, actually wrap and pack them properly (and often have much better websites for buying music).

comment 5y ago · link · parent

If it improves the security of the device and means that Google will keep updating it, then that will be good. However, personally I have given up buying Google-branded devices. They only gave me security updates for my Pixel C for three years (2016-2019).

comment 5y ago · link · parent

Magit on windows needs something like libgit2, spawning processes is too slow on windows. Emacs runs fine.

comment 5y ago · link · parent

> "git at the speed of thought" describes magit quite well.

Not under Windows, unfortunately.

comment 5y ago · link · parent

Better than all existing options? I'm skeptical that a kernel written in C++ is likely to be better than e.g. a formally verified microkernel such as seL4. If they ever rewrite it in Rust, then it might be more interesting.

comment 5y ago · link · parent

Yes, they also need to tackle power efficiency, otherwise laptop users will be forced to use either Edge or Safari. At the moment, as I understand it, it pretty much runs all open tabs at full throttle.

comment 5y ago · link · parent

I don't think btrfs is a shining example of Linux stability/reliability. NixOS gives me rollbacks using XFS for root.

comment 5y ago · link · parent

I've used Linux since it was first available in the mid 90s. I use it at work and on machines at home. It is almost certainly more reliable than Windows and MacOS as a server. However, the context here is desktop UI and laptops.

Linux does exceptionally well considering there is almost no money at all going into this use case. But there are many bugs, sometimes due to hardware (e.g ACPI inconsistencies, even Thinkpads have issues) and because of software churn (few fix bugs in their spare time, it's more fun to create something new).

If you wish to pretend that everything is perfect and there are no problems, then you aren't helping Linux either.

comment 5y ago · link · parent

That's really good to hear. Perhaps I need to stop using fringe distros like NixOS.

comment 5y ago · link · parent

Hmmm so much for "just works". Macos is becoming as buggy as the average Linux distro. They need to take a pause with adding features and clean it up.

comment 5y ago · link · parent

I always thought Dart/Flutter was a hedge against Oracle shutting down Java-usage on Android. Now that they have Kotlin (which devs generally much prefer over the Java-facsimile Dart) and Jetpack, I'm not sure either what relevance Dart/Flutter has to Android.

comment 5y ago · link · parent

In my opinion, as a professional haskell developer, it is too hard to reason about the runtime space usage of Haskell programs to ever recommend Haskell as a "systems programming language". Haskell would be great for writing a DSL for generating such code though.

comment 5y ago · link · parent

This is a noble effort and you can certainly take the moral high-ground over companies like Apple. However, often the problem is not only whether parts are replaceable but also availability of spares. For example, my 2016 X1 Carbon needs a new battery and it is easily user-replaceable, yet Lenovo no longer make or sell them. How can you make sure that parts are available, especially if your suppliers stop making them?

comment 5y ago · link · parent

They ditched their own inferior custom core design and now use ARM Cortex X1.

comment 5y ago · link · parent

Side-effects do not mix with lazy on-demand streams! This is unfortunately a problem with bringing functional programming constructs to a language with idiomatic pervasive mutation.

comment 5y ago · link · parent

The "teeing" combinator is giving you separation of concerns. There are two separate calculations, potentially defined in separate functions, that are composed into a single operation that is performed in a single pass of the stream. Sure, you could write a monolithic imperative for-loop that does it all, but such an approach will not scale.

comment 5y ago · link · parent

> then complain about types instead of talking about static analysis

Static types are a form of static analysis. One that is deeply integrated into the language and compiler, which gives obvious advantages such as machine-checked documentation, custom invariants and error messages (expected a Currency but got a Country), better code generation, better tooling (IDE pop-ups, fast incremental checking) etc. Other forms of static analysis are of course useful too.

comment 5y ago · link · parent

I suspect they wrote thousands of lines of code "Agile" style, without nearly enough upfront design. Now there is too much code to rewrite and it's too hard to change. I would be more sympathetic if it just lacked functionality, but instead the marketing claims all these features that are likely to eat your data. IMHO, it's an example of where open-source and the "bizarre model" failed to deliver.

comment 5y ago · link · parent

This is of course why garbage collected languages exist. If you don't need the performance or efficiency gained from having full control of memory, then GC'd languages will offer less cognitive load.

IMHO, programming in Rust is no harder than C++ or C. It just forces one to be explicit about lifetimes and ownership, concepts one should be carefully thinking about in other systems programming languages.

comment 5y ago · link · parent

Unfortunately Rust is currently lacking structural records/structs and enums. I think they removed them early on in the design. So you'd have to name the all the types. I hope they do add them back one day.

comment 5y ago · link · parent

It's better to evaluate at compile time, if possible, rather than runtime. The biggest issue with macros is code bloat, but every serious general purpose language should have them.

comment 5y ago · link · parent

> Imagine the function "fn bar(x: fn(x: int) -> string)", would that be more clear with a colon?

In your example, why bother naming the inner "x" variable for the function param? It cannot be used on the right-hand-side (definition of "bar"). For that reason, the notation is not exactly "clear". In OCaml the annotation would be:

bar( x : int -> string )

comment 5y ago · link · parent

That's a nice explanation of what's going on. My point remains that I found the syntax confusing though.

comment 5y ago · link · parent

You are quoting me out of context. In many languages, the term and/or pattern foo(x : int) is a string, if foo : int -> string.

comment 5y ago · link · parent

Yes and of course Haskell is quite capable of supporting uncurried functions too, e.g.

foo :: (Int, Int) -> Int

foo (x, y) = ...

12345
45