13 Followers
19 Following
122 Posts

Engineer building things, some of which rapidly disassemble as scheduled.

Formerly 🇩🇪🇬🇧🇳🇱, currently 🇯🇵.

Websitehttps://blog.sulami.xyz
Codeberghttps://codeberg.org/sulami
GitHubhttps://github.com/sulami
日本語でおk
GitHub has stopped showing me line numbers past 60 this week. Take from that what you will about their investment priorities.
@gordon Oh I turned that off right away. Phone now also lives on permanent dark mode to subdue those effects.
I'm not really bothered by the new iOS Liquid Glass gimmick, but what does really bother me is how half the app icons now appear to be blurry because of the shine on top edges.
Maybe it's time for Vin Diesel to go with the times and change his name to Vin Electricity
So in #Rust tracing, the code handling Span::follows_from only has access to the origin Span data if the origin span isn't closed yet. That kind of defeats the point, because you'd use it for a follow-up operation that happens later, so the origin span is almost gone by definition. Or am I missing something?
@technomancy or even worse, "works best in IE6" and modern equivalents. Especially when they have arbitrary gates and it turns out it works just fine if you spoof the user agent.
@gordon very intrigued by the use of "when" 😄
@gordon It's just really fast, that's why I tried it in comparison to the std one. The speedup is roughly in line with what I would expect.

Out of curiosity, I ported https://mrshiny608.github.io/MrShiny608/optimisation/2025/04/22/OhNoYouDidnt.html over to #Rust and ran it through Criterion.

The implementations are the same, naive brute force, std HashMap, pre-allocated HashMap, and as a bonus, pre-allocated AHashMap.

Unsurprisingly, same results.

O(no) You Didn’t 😱

A deep dive into why real-world performance often defies Big-O expectations and why context and profiling matter more than theoretical complexity

MrShiny608

Someone explain to me why there was a five minute period yesterday during which my personal website served 65k requests, 300 per second.

I do have a suspicion what's happening there.