drkrab

Joined 17 years ago

Karma
165
Submissions
42
Member since
Jan 6
[ my public key: https://keybase.io/drkrab; my proof: https://keybase.io/drkrab/sigs/A9-PvxNJpGgZbGq0KiIrOQZHDzudMEWn3mhZ8q9UUVw ]
View on Hacker News

Recent submissions

Comment · 6 months ago
Since the cpu always accesses a full cache line (64 bytes) at a time, you might as well search the entire cache line (it’s practically free once the data is on-cpu). So I’d like to try a ‘binary’ search that tests all the values in the ‘middle cache line’ and then chooses to go left or right if none match. You can do the cache line search as a single 512bit simd instruction. A cache line is 64 bytes (or 32 16-bit integers); such a search might well be almost 32 times faster than simple binary search; at least it’ll do 32x less memory accesses, which will dominate in most realistic programs.
Comment · 8 months ago
In Denmark there are no payphones. Like none. The copper network is being decommissioned.
Comment · 8 months ago
Way cool! When can I buy one?
Comment · 9 months ago
I’m surprised how many places in the world measure rain in percentage chance. Must be a metropolitan concept. Here in Denmark, weather reports estimate mm/hr - the amount of rain. Maybe it’s our agricultural inheritance?
Comment · 1 year ago
“Any sufficiently complicated concurrent program in another language contains an ad hoc informally-specified bug-ridden slow implementation of half of Erlang.” – Virding’s first rule of programming
Comment · 1 year ago
Interesting. When you give a third-party access to your GitHub repositories, you also have to trust that the third-party implements all of GitHub’s security policies. This must be very hard to actually assume.
Comment · 1 year ago
Unfortunately that’s the case because large US-based companies can leverage their existing global sales / marketing / governance setup to rationalize very high exit valuations. In the EU we don’t have the large software shops that can do that. So for an EU based startup - it’s exit to a US-based company or go all the way to an IPO / profitability.
Comment · 2 years ago
Comment · 3 years ago
Coroutines are great in a single threaded environment. But if you mix them with threads - even behind the scenes - there will be dragons. Erlang solves that problem with proper light weight isolated processes.
Comment · 3 years ago
Yep
Comment · 5 years ago
Comment · 5 years ago
Comment · 5 years ago
In a modern JIT with dynamic decompilation you can do these things in place, because the compiler essentially has global knowledge. The only real issue is to define the semantics (and then implement it of course). Objective-C is AOT compiled so the runtime checks are needed all the time.
Comment · 5 years ago
It’s easier when you write your application in Elixir or Erlang. Those are practically DSLs for state machines that also double as general purpose programming languages.

Live from the official Hacker News API

A modern reader for Hacker News · SvelteKit + Skeleton