Recent submissions

Comment · 12 years ago
Comment · 12 years ago
Hoare writes in his (famous) paper on quicksort (in 1962): "We'd implement our own recursion schema for perf reasons"

Recursion is just a tree.

Calling a function/procedure is expensive (in memory and run-time).

Create a tree (e.g. linked list), base your recursion on that!

You are not at university anymore, where you look at naive implementations for the sake of learning.

Spoiler: I (actually do) resolve (function-call) recursion to (tree-based) recursion when I feel like I want to.

Downvoters pls explain.

Comment · 12 years ago
Comment · 12 years ago
I liked his comment (don't shoot me for that), made me smile.

4000 isn't that much either & whats memchached? A hashmap?

He maybe means 300 lines of relevant code (+ ~3700 sugar)

Comment · 12 years ago
Comment · 12 years ago
A German here, I probably read Spiegel for >10 years (from ~2000 to beginning of 2014):

They are kind of "left" which reflects in their articles "raises a second narrative about inequality". They'd support basic income any time.

The Spiegel has turned into yellow press lately, I am surprised to see a (english) article on HN.

Thank you HN for unveiling that there are some spots in Europe that are doing fine and that there are structural problems (I can see them, the borders are open and ppl come to Germany from other European countries).

Comment · 12 years ago
I am from Germany. Today I am perfectly fluent in english including idioms, puns (somewhat) and understanding american/english culture. To me Twitter feels like making sense to (native) english speakers (only). 140 characters and the english language go very well together, especially for expressing sth in an interesting way without putting yourself into too much responsibility (in case of doubt/trouble, you just say: "I mean 140 chars are just too short for being acurate"). I can clearly see there are (still) a lot of ppl from the UK (e.g. jumping into, when it comes to topics like "in Europe"), but imho Twitter has a language problem:

Twitter is a native / highly fluent english speaker.

Comment · 12 years ago
You are underpinning my statement:

It's that experience (a lot of exposure in the area) is very important.

It doesn't invalidate that when you are young you are mentally fitter.

Live from the official Hacker News API

A modern reader for Hacker News · SvelteKit + Skeleton