Recent submissions

Comment · 3 years ago
Yeah auto format solves a lot of the syntax problems. Dangling else for instance is not at all ambiguous when you have automatic indentation.
Comment · 4 years ago
Don't they? Isn't that axis just "how much they like the candidate"?
Comment · 4 years ago
"How Ranked-Choice Voting elects extremists"

https://psephomancy.medium.com/how-ranked-choice-voting-elec...

This article recommends instead a STAR voting system which is still simple to implement and understand while not electing extremists in some cases. I would be sad to see NYC and others turn to ranked choice without considering all the alternatives.

Comment · 7 years ago
Comment · 7 years ago
Comment · 7 years ago
Thinking about this decision just as a performance one disregards the fact that the code is substantially different. It does seems likely that one way is more intuitive / easier to work with than the other, I wouldn't know which though.
Comment · 7 years ago
It seems a bit premature to claim high performance without having a story for memory. I'm sure ocaml, swift, and basically all languages that do any type of runtime garbage collection would be significantly faster without it.
Comment · 9 years ago
Does npm even allow you to use projects that don't allow you to make changes to their code?
Comment · 9 years ago
I used Pony and bindings to opengl to write the (very) start of a graphics engine. http://www.charlesetc.com/stars-game-7.html

It was surprisingly easy to learn - I found the capabilities system rather intuitive compared to other methods for safely managing data races. Also the syntax is really simple and easy to read!

Comment · 9 years ago
Code generation is one way to get around generics. Go also stores all the type data at runtime so you can inspect the arguments passed to any function, which gives the same kind of generic behavior in any dynamically typed language.

So you definitely could implement an ORM in go without code generation - it's almost certainly been done.

Comment · 9 years ago
There's replication, but I mean that all the data is in one pg instance, whereas there isn't a single mysql instance with all the data.
Comment · 9 years ago
This is missing one huge point of the [uber engineer post](https://eng.uber.com/mysql-migration/).

They did not switch from a postgres instance to put all their data in a mysql instance. They switched from a single postgres instance to shard their data across many mysql instances. This an entire reworking of the architecture that is completely ignored in this powerpoint.

Comment · 9 years ago
I use konsole which is better than I found gnome-terminal to be and less klunky than I was expecting
Comment · 9 years ago
There have been many times when vim starts glitching out or something because of the terminal emulator I'm using. Even well tested ones like X-term and gnome-terminal. I never had that problem using st.

We hack so much into a text interface it's really easy to accumulate bugs.

Live from the official Hacker News API

A modern reader for Hacker News · SvelteKit + Skeleton