News for hackers. Stuff that matters.

drkrab

Re:You can beat the binary search on Thursday April 30, 2026 @03:48PM (#47967360)
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.
Re:Payphone Go on Friday March 06, 2026 @02:03PM (#47279541)
In Denmark there are no payphones. Like none. The copper network is being decommissioned.
Re:LT6502: A 6502-based homebrew laptop on Sunday February 15, 2026 @12:46PM (#47025712)
Way cool! When can I buy one?
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?
Re:Asyncio: A library with too many sharp corners on Sunday July 27, 2025 @12:41AM (#44698945)
“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
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.
Re:Go European: Discover European products and services on Monday March 10, 2025 @08:23AM (#43319822)
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.
Re:Swimmable Cities on Friday September 13, 2024 @07:51AM (#41530306)
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-...

Re:Philosophy of Coroutines on Saturday September 02, 2023 @06:44AM (#37360270)
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.
Re:Stepping Back from Speaking on Tuesday June 29, 2021 @05:59PM (#27682303)
Thanks for all the talks Martin

https://youtu.be/qI_g07C_Q5I

Re:Joe Is Wrong (2009) on Friday March 26, 2021 @08:27AM (#26591246)
Further context: Joe Armstrong and Alan Kay interview. https://youtu.be/fhOHn9TClXY
Re:Java on Truffle – Going Fully Metacircular on Wednesday January 20, 2021 @04:14AM (#25844264)
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.
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.
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.
Re:The Amazon Premium on Thursday December 19, 2019 @05:18PM (#21839876)
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.)
Re:Open Distro for Elasticsearch on Monday March 11, 2019 @11:55AM (#19359889)
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.
Re:Sweden's cashless society is no longer a utopia on Sunday November 11, 2018 @04:55AM (#18425658)
Reminds me of this classic

https://youtu.be/pQHX-SjgQvQ

Re:DevTube: Searchable index of developer videos on Monday June 25, 2018 @06:12AM (#17391178)
There is also a lot of good stuff here: https://www.youtube.com/user/GotoConferences
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/
Re:LLVM 4.0.0 on Monday March 13, 2017 @02:41PM (#13860947)
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.
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.
Re:Texas sets single-day wind power record on Saturday January 23, 2016 @04:43PM (#10960246)
In Denmark, it was 42% for all of 2015; https://en.m.wikipedia.org/wiki/Wind_power_in_Denmark
Re:“Swift will be open source later this year” on Monday June 08, 2015 @06:15PM (#9682839)
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.
Re:Joxa – A Modern Lisp for the Erlang VM on Monday June 08, 2015 @05:55PM (#9682728)
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.

Older »