Readit News logoReadit News
bajsejohannes commented on Slack's 57MB 404 page   a.slack.com/archives/b/c... · Posted by u/lecarore
chris_wot · 2 months ago
Out of interest, is slack still being used as extensively as it was 4-5 years ago?
bajsejohannes · 2 months ago
I don't know, but anecdotally, I still use it for work, but no longer for personal chats.

It also seems like someone at Slack is tasked with driving up engagement, because I get these "Your team is missing you" messages from Slack (only to be find a dead slack community). That might be a sign that they're losing traction?

bajsejohannes commented on Show HN: Interactive pinout for the Raspberry Pi Pico 2   pico2.pinout.xyz... · Posted by u/gadgetoid
bajsejohannes · 2 months ago
Another version that's useful is this ASCII version: https://gabmus.org/posts/raspberry_pi_pico_pinout_in_your_te...

I keep a slightly modified version of it as a top comment in my main C file in every pico project. Super handy for quick reference and you can annotate it with the actual uses in your project.

bajsejohannes commented on Show HN: Interactive pinout for the Raspberry Pi Pico 2   pico2.pinout.xyz... · Posted by u/gadgetoid
bajsejohannes · 2 months ago
Thanks! I've been using pinout.xyz quite a few times; maybe you should link from there to the pico versions so it's easier to discover?
bajsejohannes commented on Undergraduate shows that searches within hash tables can be much faster   quantamagazine.org/underg... · Posted by u/Jhsto
kaathewise · 7 months ago
The dereference table allows allocations to fail:

https://arxiv.org/pdf/2501.02305#:~:text=If%20both%20buckets...

(the text fragment doesn't seem to work in a PDF, it's the 12th page, first paragraph)

bajsejohannes · 7 months ago
Thanks! So I guess the best recourse then is to resize the table? Seems like it should be part of the analysis, even if it's low probability of it happening. I haven't read the paper, though, so no strong opinion here...

(By the way, the text fragment does works somewhat in Firefox. Not on the first load, but if load it, then focus the URL field and press enter)

bajsejohannes commented on Undergraduate shows that searches within hash tables can be much faster   quantamagazine.org/underg... · Posted by u/Jhsto
abetusk · 7 months ago
Ok, big shout out to monort [0] for the link to the video [1].

This is just a quick overview from a single viewing of the video, but it's called "funnel hashing". The idea is to split into exponentially smaller sub arrays, so the first chunk is n/m, the second is n/(m^2), etc. until you get down to a single element. Call them A0, A1, etc., so |A0| = n/m, |A1| = n/(m^2) etc., k levels in total.

Try inserting into A0 c times. If it fails, try inserting into A1 c times. If it fails, go down the "funnel" until you find a free slot.

Call \delta the fraction of slots that are empty (I'm unclear if this is a parameter that gets set at hash table creation or one that's dynamically updated). Setting c = log(1/d) and k = log(1/d) to get worst case complexity O(log^2(1/d)).

This circumvents Yao's result by not being greedy. Yao's result holds true for greedy insertion and search policies and the above is non-greedy, as it's cascading down the funnels.

There are probably many little hairy details to work out but that's the idea, as far as I've been able to understand it. People should let me know if I'm way off base.

This very much reminds me of the "Distinct Elements in Streams" idea by Chakraborty, Vinodchandran and Meel[2].

[0] https://news.ycombinator.com/item?id=43007860

[1] https://www.youtube.com/watch?v=ArQNyOU1hyE

[2] https://arxiv.org/pdf/2301.10191

bajsejohannes · 7 months ago
One thing I don't understand from watching the video, is what happens in the (very rare) case that you get collisions all the way down the funnel. I assume this is related to the "One special final level to catch a few keys" (around 14:41 in the video), but given that it has to be fixed size, this can also get full. What do you do in that case?
bajsejohannes commented on How to turn off Apple Intelligence   asurion.com/connect/tech-... · Posted by u/walterbell
bajsejohannes · 7 months ago
The UX on MacOS is so bad here. First, a notification prompts you to enable Apple Intelligence. When you dismiss the notification by clicking the "x" in the corner, it instead opens the system settings and proceeds to download something (?) before showing you a checkbox where you can enable/disable it. It feels quite forced.
bajsejohannes commented on Understanding the Odin Programming Language   odinbook.com/... · Posted by u/dsego
ComSubVie · 9 months ago
What do you mean? It's exactly that in almost any programming language.

What is it you don't understand: "method" (a representation) or "decimal" (a number that consists of a whole and a fractional part)?

bajsejohannes · 9 months ago
I agree with OP that it's unnecessarily confusing. A "method" is a procedure. The floating point number is the result of that procedure, not the procedure itself.

"Decimal" implies a ten based system, even though it's perfectly fine to say "binary decimal".

Using your own replacement words, it would be clearer to write "A floating point number is a representation of a number with a fractional part".

u/bajsejohannes

KarmaCake day2547August 20, 2008View Original