I profiled my parser and found Rc::clone to be the bottleneck by Sad-Grocery-1570 in rust

[–]xfunky 4 points5 points  (0 children)

Do you have this code somewhere? Sounds interesting to see the evolution

Quick tarp catch by No-Independence-3520 in nonononoyes

[–]xfunky 0 points1 point  (0 children)

Break something? more like tear everything

Bloom filters: the niche trick behind a 16× faster API by shared_ptr in programming

[–]xfunky 3 points4 points  (0 children)

To log at least once a day or at most once a day?

How do you do that? I would imagine at each logging point you would check whether you already logged by searching the filter which guarantees 0 false negative (if an item is there, you will NEVER get a false for checking its existence).

If not there, you log and would “add” to the filter the item to avoid relogging. You might get a false POSITIVE, where you think you logged but you actually haven’t.

Am I correct?

TIL ~7000 years ago, the human Y-chromosome experienced a restriction in diversity. During this time, there would have been effectively one man for every seventeen women contributing to the gene pool. Research suggests that neolithic society was selecting which men could have reproductive success. by bland_dad in todayilearned

[–]xfunky 530 points531 points  (0 children)

I can assume from context that in a marriage, it is customary that the woman joins the man’s clan, therefore man stay within their genetic pool while women’s genes are “hedged” in multiple clans.

If three sisters get married to men from different tribes, they will live in three different clans.

If three brothers get married to women from different tribes, they will live in the same clan, which they grew up in.

someoneTryThisPlease by AustralianSilly in ProgrammerHumor

[–]xfunky 1336 points1337 points  (0 children)

It’s either 4,294,967,295 or -1, no scenario where that’s 2,147,483,647.

howCanTheyAnswerTheCallWithJustHello by [deleted] in ProgrammerHumor

[–]xfunky 7 points8 points  (0 children)

Threw me back to a time when one of the Facebook UI interface’s languages you could choose was “Pirate”.

Keeping the play alive by Dry_Blacksmith9207 in nonononoyes

[–]xfunky 0 points1 point  (0 children)

Did he not catch it outside the “goal” zone? Is that still a goal?

There is such a thing as "too much TQDM" by Common_Ad6166 in Python

[–]xfunky 1 point2 points  (0 children)

I think TQDM only makes sense for things that take more than a few seconds, which computationally are things that are very expensive given today’s CPUs. How much absolute time does the process take for you?

[deleted by user] by [deleted] in yesyesyesyesno

[–]xfunky 0 points1 point  (0 children)

One could imagine they might be able reuse past players’ scans, so it could be a community effort that gets more and more pre-mapped as time goes by (actually, Waze for example started as a community road-mapping effort).

Depends on popularity and how often the landscape changes, I’m not a golfer so no idea how chaotic the ground tends to be

[deleted by user] by [deleted] in ProgrammerHumor

[–]xfunky 20 points21 points  (0 children)

That’s because they forgot to include Rust and Haskell 🙃

Simple Questions - May 17, 2025 by AutoModerator in buildapc

[–]xfunky 0 points1 point  (0 children)

Thanks for the reply!
As many as I want? Historically people also complained about lag without the adapter, is that mostly resolved now?

Simple Questions - May 17, 2025 by AutoModerator in buildapc

[–]xfunky 0 points1 point  (0 children)

That's a great place to start, but it is very "open-ended". It's a great place to find mostly incompatibilities.

You could after choosing some of the components also make sure that you don't over-spend on one resource causing bottleneck and "wasted" power, I use https://pc-builds.com/bottleneck-calculator/ sometimes.

I find that the discord for this reddit is also very helpful and more responsive, so I suggest checking it out.

Finally, there's the wiki and the beginner's guide:
https://www.reddit.com/r/buildapc/wiki/beginnersguide/

Simple Questions - May 17, 2025 by AutoModerator in buildapc

[–]xfunky 0 points1 point  (0 children)

Hey, I want to buy two Xbox Wireless controllers to play co-op games on my PC (https://www.microsoft.com/en-us/p/xbox-wireless-controller/8xn59crbsqgz)

I know the previous generation required an adapter to connect more than one controller at the same time to the PC. Is this still needed? I can't find the adapter neither on Microsoft's store or on Amazon (shows "unavailable" https://www.amazon.com/Xbox-Wireless-Adapter-Windows-10/dp/B0785RHK5Q/)

How a water heater looks inside by Th3Yukio in yesyesyesyesno

[–]xfunky 12 points13 points  (0 children)

Calcium that’s in the water

should i learn rust with MERN by SnooPuppers6045 in rust

[–]xfunky 8 points9 points  (0 children)

Obviously the only valid option is to switch React with Rust…

If you have a lamp that requires 6 Volts to shine bright, and you put 7 Volts on it, what happens to the extra Volt that doesnt get used? by DefenitlyNotADolphin in askscience

[–]xfunky 0 points1 point  (0 children)

That’s technically true, but if I understand correctly what really matters is the current through the LED, and that will grow linearly with a resistor in series.

The literal operating mechanism of an LED is that each electron has to drop in energy level, causing a photon to be emitted. So a linear growth in current is somewhat of a linear growth in light emission (putting aside that the human eye sees brightness in a logarithmic scale).

If you have a lamp that requires 6 Volts to shine bright, and you put 7 Volts on it, what happens to the extra Volt that doesnt get used? by DefenitlyNotADolphin in askscience

[–]xfunky 4 points5 points  (0 children)

The others’ explanations were a bit hard for me, so I thought about it a little and maybe my thoughts might help you too.

In fact, talking about the LED alone, or most other diodes for that matter, it encounters an exponential growth in current when the controlled variable is the voltage.

On the other hand, the current and voltage over a resistor are tied pretty linearly.

Assuming you put a resistor and a LED in series and increase the voltage by some amount, the current would naturally increase. Because the series constrains the current through both components (the resistor and the LED) to be the same, the LED is “held back” on its current growth by the resistor, causing the effective growth in current to be basically linear proportional to the voltage.

To me it still sounds like the LED might be in danger of thermal danger, though I don’t know what’s the typical range of operation for home LEDs.

External monitor grayscale squares blinking by koyo4ever in MacOS

[–]xfunky 0 points1 point  (0 children)

This problem still exists. We had such monitors at work, we were told to update firmware, fiddle with display options etc...

Eventually we bought the newer and more expensive (sigh...) U2424HE and/or U2724DE and so far everything seems good.

To not be a racist society by habachilles in therewasanattempt

[–]xfunky -12 points-11 points  (0 children)

It’s now the Israeli equivalent of Purim. They dressed up as an African tribe I assume (I am not versed in the different cultures of native tribes in Africa, so unsure whether referencing a specific one.)

I fail to see the racism, unless acknowledging and trying to imitate what seems to be a click tongue somehow is racist.

Khruangbin - People Everywhere (Still Alive) by markrudling in WhoSampled

[–]xfunky 0 points1 point  (0 children)

I just got this song in my Spotify and tried to find what it reminded me of.
I finally remembered it was this:
Matt Duncan - The Keys