ednl 🇪🇺

@ednl
226 Followers
111 Following
3.1K Posts

He/him hates knees. I like #cycling, #rowing, #walking, #photography, #maps, #programming in C, #electronics tinkering and #FipRadio. I pretend to like Italian #films but in reality they're French.

Indexing: #fedi22 #procycling #velophant #cyclocross #veldrijden #roeien #wandelen

Avatar is an #Ottifant, a cartoon elephant by German comedian Otto Waalkes.

Flickrhttps://flic.kr/dnet
GitHubhttps://github.com/ednl
Blueskyhttps://bsky.app/profile/ee1.nl
Homepagehttps://ee1.nl
@koevoet Het huisje van A. den Doolaard in Hoenderloo toen ik er langsliep in 2023 en 2024:
Wel een tamelijk voorbarige conclusie om het werkzaam te noemen zonder een dubbelblind onderzoek.

"Een behandeling op basis van een bekend verdovingsmiddel, lidocaïne, biedt verlichting bij mensen met langdurige klachten na Covid-19. Dat blijkt uit Nederlands onderzoek onder 103 patiënten die al 2,5 jaar kampten met postcovid."

Cadeaulink 7 dagen geldig: https://www.nrc.nl/nieuws/2025/12/09/verdovingsmiddel-lidocaine-helpt-tegen-postcovid-a4914849?utm_source=clipboard&utm_medium=clipboard&utm_campaign=share&utm_term=share-modal&gift_token=4914849~1765903885~P-Nehp0IEeKfgABQVoV_mg~pQd_UtZdVt8OWuRurOcWximHVoqA0v6LujTAyhNHM4A

#PostCovid #LongCovid

Verdovingsmiddel lidocaïne helpt tegen postcovid

Geneeskunde: Na een coronabesmetting houden sommige mensen langdurig ernstige klachten. Bij toeval ontdekten artsen een medicijn dat helpt. „Het gaat sinds deze zomer stukken beter.”

NRC
Updated with a siginicant simplification, now runs in 5.6 µs.

I wrote an explainer for today's #AdventOfCode puzzle. It's a beam machine (cf. "bean machine") for Plinko!

https://www.reddit.com/r/adventofcode/comments/1pgxv5w/year_2025_day_7_no_memoization_still_runs_in_10_µs/

RE: https://mastodon.social/@ednl/115679497619190696

Plinko! The one leap I needed was to keep track of all intermediate columns, compared to just the nodes on a hex grid of Pascal's Triangle.

Runs in only 10 µs on an Apple M4, or 29 µs on a Raspberry Pi 5 (internal timer, does not include reading from disk).

https://github.com/ednl/adventofcode/blob/main/2025/07.c

#AdventOfCode

Pretty late again but this time because I kept tinkering with reading/parsing/data structures until I had one function for both parts. Looks elegant now, if I do say do myself :)

Consequently, it doesn't squeeze out every last microsecond but it's still plenty fast: 22 µs on an Apple M4, 79 µs on a Raspberry Pi 5.

Picture is my pivot function, full source at https://github.com/ednl/adventofcode/blob/main/2025/06.c

#AdventOfCode

Still pretty chuffed about that function, by the way—I made it myself :)

Edit, crucial bit of info added in the comments: "array [...] must already be sorted in ascending order, first by .a then by .b"

Late today but not because of the puzzle. I knew I had my range-merging algorithm from AoC 2016 day 20 "Firewall Rules" and after sorting both the ranges and the IDs, matching them for part 1 was quick enough. After already having merged the ranges, part 2 was almost immediate!

Total program runs in 40 µs on an Apple M4, 70 µs on an M1, 134 µs on a RasPi 5 (internal timer, not including reading from disk, does include parsing).

In C: https://github.com/ednl/adventofcode/blob/main/2025/05.c

#AdventOfCode