Better HN
topnewbestaskshowjobs
Log inSign up

grumpyprole

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

Submissions

comment 7y ago · link · parent

A loaned machine would be useless to me if they cannot swap the SSD. I wouldn't even be able to connect it to our company network.

comment 7y ago · link · parent

If you buy a business-class machine like a ThinkPad, you will get a modular and repairable machine with typically 3 years on-site support as standard, in most countries. This is not true with Apple. Apple machines are essentially unrepairable in the field and even with the expensive AppleCare option, you will likely lose possession of your machine for a significant amount of time.

comment 7y ago · link · parent

Well, in my office, we have both OSX and Linux users and it's only the Linux users who can daisy chain our monitors using displayport MST!

comment 7y ago · link · parent

We have the T480 running Ubuntu 18.04 LTS. Perhaps it is an issue related to our configuration. Not impressed though.

comment 7y ago · link · parent

We have Thinkpad Linux laptops running with NVidia at work. The proprietary driver has quality issues, the biggest of which for us is power management and poor battery life. Nouveau performs much better in this regard, even though they had to reverse engineer the hardware (!) I will be advising my IT department not to continue to buy NVidia.

comment 7y ago · link · parent

Does anyone know if the audio samples are still available somewhere?

comment 7y ago · link · parent

The lack of "generics" (parametric polymorphism) in Go has certainly made the incidental complexity in Kubenetes much higher: https://medium.com/@arschles/go-experience-report-generics-i...

Go and Haskell are really at different ends of a spectrum. Haskell is a very high level language, which makes building and reasoning about very complex software much easier (at the expense of a learning curve and fine control of space usage).

Go is a low-level language with no learning curve and a very limited facility to abstract (by design it seems).

Personally I would have written something like Kubenetes in Haskell or OCaml, with perhaps the odd performance critical section in C or Rust.

comment 7y ago · link · parent

Genode also (genode.org), which uses a verified microkernel and sandboxes. The focus in this day and age really needs to be on security.

comment 7y ago · link · parent

My point was that often one has to structure code across classes to get efficient branching. Any details regarding optimisation for virtual dispatch doesn't change this fact.

comment 7y ago · link · parent

Not sure that really makes up for the lack of sum types!

Supporting a switch on static final references would be a good first step.

comment 7y ago · link · parent

I am "getting these things" from over a decade of working with Java. There are many good things about Java, especially when compared to C++. But the bad things will never get fixed if we pretend everything is perfect.

I did say vtable dispatch was efficient, but I might not want to split my logic across classes. A chain of if-else is a linear scan and not efficient. Switch in its current form is too limited.

It is well known that Java has no value types (there is a JSR). Even for a primitive type, the collection libraries need to box all values in order to abstract the element type. Every HFT user on Wall Street has had to write their own collections library using custom code generation to work around this.

comment 7y ago · link · parent

Getting good performance out of Java is not always easy. One often has to structure code imperfectly to get efficient branching (Java offers only vtable dispatch or switch on integers/enums). It also boxes nearly all values leading to cache inefficient pointer chasing. These problems can be avoided, but you'll be working against the language.

comment 7y ago · link · parent

Make sure that Kubuntu is giving you a stable version of KDE. My issue with Ubuntu in the past has been that it too often takes unstable snapshots of upstream software in order to accommodate it's own self-imposed release schedule.

comment 7y ago · link · parent

I use it because my window manager manages windows better than any browser manages tabs.

comment 8y ago · link · parent

Google Chrome is probably talking HTTP3 to its own sites, so not sure that's a fair test.

comment 8y ago · link · parent

I think the parent point was that there is currently insufficient bandwidth to even make 576p look good for many channels. Given even a high bandwidth slot, 4K with low compression might look better than 8K with high compression. Specifying just "8K", is no guarantee of a quality picture.

comment 8y ago · link · parent

To be fair, most software is full of bugs, Mojave especially.

comment 8y ago · link · parent

Yes because duplicate labels are not allowed within the scope of a single record (you can specify which one overrides the other, but perhaps we also need a convenient rename syntax). This point was that different records can happily contain the same field names. The situation is the same as SQL.

comment 8y ago · link · parent

I must say I am tempted by Qubes OS as a way to get this level of isolation between apps. However I'd likely need a new laptop, as RAM requirements are much higher.

comment 8y ago · link · parent

I have considered using pattern bindings to easily create "field pun" bindings.

For example, one can already introduce all the fields of a record as local bindings, e.g.

let {..} = import "List.x"

or just a subset using, e.g.

let {reverse} = import "List.x"

Similarly for function argument bindings, e.g.

f {x, y} = x - y

The above is just syntactic sugar for:

f r = r.x - r.y

Such named arguments of course prevent arguments with the same type being passed in the wrong order, e.g.

f {x=2, y=1}

There is still some minor work to be done to better support inline type annotations on such patterns to make them more usable.

Your idea of unifying bindings with records is interesting and not something I have considered.

comment 8y ago · link · parent

Labels in Expresso are just type-level symbols. Label names can be re-used over and over again in different records and variants. This works fine because a name is not tired to any particular nominal type (like a constructor in Haskell or Java).

comment 8y ago · link · parent

Hi, author here, yes your paper was a huge inspiration and I really should add a references section in the readme. The row types in Expresso use very simple lacks constraints, similar to the old Hugs TREX system, and don't permit duplicate/scoped labels. I felt this was also a pretty good sweet spot.

comment 8y ago · link · parent

Mechanical keyboards should provide much less fatigue if you avoid "bottoming out", which is much easier to do when a key has lots of travel and a dampening force curve. Most people suffer fatigue from these very low travel Apple keyboards as fingers will come to an abrupt hard stop. It's almost like typing on a hard surface.

The Apple keyboards were designed to be thin at the expense of everything else, reliability, maintainence, longevity, and comfort.

comment 8y ago · link · parent

> In terms of programming, a functor is container with an associated function

A functor could also be a computation whose output can be mapped. So although these concepts can be explained by examples from programming, one has to keep in mind that these are examples and not definitions. For definitions, better to use category theory.

comment 8y ago · link · parent

Yes I'm sure it was done on purpose, just like over-saturated colours on TVs and cameras.

comment 8y ago · link · parent

Your generalisation is unfair. Most Audiophiles just want to listen to music the way the artists intended. This is not easy in a industry where colouring the sound is even celebrated, e.g. 'Beats by Dre'.

I recently tried the latest noise cancelling headphones by Sony (1000XM3). The noise cancelling was excellent, but the bass was +5db overblown, boomy and drowned out most of the mids, the treble was dark to hide the NC hiss. It was unlistenable for jazz and classical without EQ. But the mainstream tech press think they are wonderful, even "WhatHifi" gave them 5 stars. An Audiophile is simply someone that cares about sound quality, most people don't.

comment 8y ago · link · parent

Null checks are also opt-in, that's why Tony Hoare calls null his "Billion Dollar Mistake". Explicit runtime checks are in no way "similar" to static typing! Static typing is a machine-checked proof of correctness for a certain class of properties.

comment 8y ago · link · parent

Explicit runtime checks that must be manually added are not a substitute for static typing! You should follow your own advice and try out a statically typed language with good inference!

Every tool has a sweet spot and large code bases and maintenance is well outside the sweet spot of any dynamic language.

comment 8y ago · link · parent

Sum types, not having null in every type, multiple dispatch (useful for numbers) and higher-kinded polymorphism (e.g. X can also be a type parameter in X[T]) are at least four very useful features that Haskell has and Java doesn't. Haskell also has excellent type inference that makes it as succinct as Python despite the static types.

In practice, despite the features Java can support, it's typically too much work to define a new type for safety reasons. Strings are used everywhere, instead of more domain specific types. Even the designers made compareTo return an Int!

1
394041
69