Recent submissions

Comment · 4 years ago
Because it rhymes :)
Comment · 5 years ago
I have a XPS 13 as well, and it does ship with Ubuntu.
Comment · 5 years ago
Exactly, meant to say that :)
Comment · 5 years ago
A partial function is a function where all inputs have an output. For example, calling head on an empty list will throw an exception. To make this a total function you’d need to return a Maybe instead.
Comment · 6 years ago
Greenwald’s story did damage Bolsonaro’s reputation, but I don’t think it had much to do with Lula’s release.
Comment · 6 years ago
Comment · 6 years ago
Hey! I'm starting my master's in the field of compilers.

Could maybe could you share your setup/workflow? For example do you use any IDEs? I'm trying to use Clion but it seems 16GB of RAM is not enough.

Any tips would be appreciated :)

Comment · 6 years ago
Sometimes you don't want to allow a value to be null at all, but with null references you can't represent that at the language level.
Comment · 6 years ago
Functional programming languages have been doing it for ages. Most "newer" statically typed languages also have it (Swift, Kotlin, Rust) by default. And old languages had it bolted on (C# 8, Java 8, C++ 17).

I think at this point basically everyone has realized null by default is a terrible idea.

Comment · 7 years ago
> Objects from DataProviders are returned as immutable models. On iOS, where the app uses a CoreData cache, this means the rest of the app no longer needs to access mutable CoreData objects directly, which reduces the need to worry about concurrency issues and avoids the crashes due to accessing data on the wrong thread that are common with CoreData.

Is this the common way of dealing with core data? I am actually doing exactly that at work right now, and was wondering if it was the right decision.

Comment · 7 years ago
Probably lack of generics?
Comment · 7 years ago
Your second link is an article from 2012 that says Apple stopped saying Macs can’t get viruses...
Comment · 8 years ago
How is the math? I've heard it's not exactly easy.
Comment · 8 years ago

Live from the official Hacker News API

A modern reader for Hacker News · SvelteKit + Skeleton