HNHacker News
TopNewBestAskShowJobs

drkrab

165 karma · joined January 6, 2010

[ my public key: https://keybase.io/drkrab; my proof: https://keybase.io/drkrab/sigs/A9-PvxNJpGgZbGq0KiIrOQZHDzudMEWn3mhZ8q9UUVw ]
submissionscomments
drkrab··on You can beat the binary search
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.
drkrab··on Payphone Go
In Denmark there are no payphones. Like none. The copper network is being decommissioned.
drkrab··on LT6502: A 6502-based homebrew laptop
Way cool! When can I buy one?
drkrab··on Eulogy for Dark Sky, a data visualization masterpiece (2023)
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?
drkrab··on Asyncio: A library with too many sharp corners
“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
drkrab··on GitHub MCP exploited: Accessing private repositories via MCP
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.
drkrab··on Go European: Discover European products and services
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.
drkrab··on Swimmable Cities
Copenhagen’s sewage system was built in the 1850s and it was indeed considered to build a two-pronged solution. There was much resistance against this because it would eliminate a whole industry of “night men” (poop collectors), as well as people drying and trading it as fertilizer. So they build a single-pronged solution that was initially only allowed to be used for rain water.

https://ing.dk/artikel/ingenioerer-maatte-kaempe-haardt-faa-...

drkrab··on Philosophy of Coroutines
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.
drkrab··on Async message-oriented systems vs. REST for inter-microservice communications
Yep
drkrab··on Stepping Back from Speaking
Thanks for all the talks Martin

https://youtu.be/qI_g07C_Q5I

drkrab··on Joe Is Wrong (2009)
Further context: Joe Armstrong and Alan Kay interview. https://youtu.be/fhOHn9TClXY
drkrab··on Java on Truffle – Going Fully Metacircular
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.
drkrab··on Statecharts: A Visual Formalism for Complex Systems (1987) [pdf]
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.
drkrab··on NSA Spied on Denmark as It Chose Its Future Fighter Aircraft: Report
Even in Denmark where the political system is much more cooperative than in the US, politics is still a “dirty job” full of spin and personal sacrifice, exposure etc. As a result many good people would never put it on themselves to enter politics.
drkrab··on US travel firm $4.5M ransom negotiation open chat
Looks like Garmin also payed https://www.bleepingcomputer.com/news/security/confirmed-gar...
drkrab··on The Amazon Premium
Netflix only uses amazon for the “control plane” - ie the “web app” you’re navigating when using the Netflix app. The actual delivery of media happens via their own CDN (of bare-metal servers.)
drkrab··on Open Distro for Elasticsearch
How is elastic (the company) going to make a business going forward? I would expect that selling these enterprise add-ons (or similar ones) is a significant part of their revenue.
drkrab··on Sweden's cashless society is no longer a utopia
Reminds me of this classic

https://youtu.be/pQHX-SjgQvQ

drkrab··on DevTube: Searchable index of developer videos
There is also a lot of good stuff here: https://www.youtube.com/user/GotoConferences
drkrab··on FTC Probing Facebook for Use of Personal Data, Source Says
GDPR applies to anyone processing personal data about a subject who is in the EU. His or her citizenship does not matter. So you can just go to Europe and make your claim from there. https://gdpr-info.eu/art-3-gdpr/
drkrab··on LLVM 4.0.0
LLVM IR is a generalized assembly language whereas JVM byte code is quite specific to the Java language, i.e., it deals with objects and classes. This causes all kinds of troubles for someone wanting to translate other languages to the JVM.
drkrab··on Automatic Image Colorization with Simultaneous Classification
Can someone please put the file colornet.t7 on the torrent network or a high-volume service somewhere? I'm probably not the only having a hard time downloading that file.
drkrab··on Texas sets single-day wind power record
In Denmark, it was 42% for all of 2015; https://en.m.wikipedia.org/wiki/Wind_power_in_Denmark
drkrab··on “Swift will be open source later this year”
It seems to me that Dart would be a more obvious choice should Google choose to push a new application development language for the Android platform. It's closer to JavaScript and has more GUI/visually-oriented libraries. Plus, it's a no-brainer to box such apps in a HTML5 container for iOS/Windows.
drkrab··on Joxa – A Modern Lisp for the Erlang VM
Indeed, it would be nice to have an EFL: Elixir Flavoured Lisp. (Lazy) Streams and clojure'ish protocols (lispy virtual methods) makes a big difference in abstraction. Erlang as it is, supports ADTs but not object abstraction (i.e. different kinds of set implementations with different implementation/representation) See http://www.cs.utexas.edu/~wcook/Drafts/2009/essay.pdf for discussion.
drkrab··on White House Sides with Oracle, Tells Supreme Court APIs Are Copyrightable
If APIs are copyrightable, then so are protocols. Hmm.
drkrab··on ErLLVM: LLVM backend for high performance Erlang
As it turns out, Erlang is already providing much better memory locality than your average language. Each process runs in a contiguous memory area (heap+stack) which fits perfectly with a many-core world.
drkrab··on Docker 0.3 released: public index, data volumes and open-source registry
What's the catch? Where can I read something about the limitations of Docker? Where will it leaking through that you're running in a shared container?

I can see some things; the containers will be sharing kernel resources (FS/IO buffers, kernel config etc) but is that all?

drkrab··on Riak To Support Secondary Indices
The link seems to have dissolved; now redirecting to the front page of oscon.
Page 1 of 2Next →