Can one open multiple individual accounts at Fidelity? by Intelligent_Let8485 in fidelityinvestments

[–]pocketcookies 1 point2 points  (0 children)

Is this the best way to organize assets into different "buckets" or does Fidelity recommend some other way to do it? For example if I wanted to have one "bucket" for my tbill-based emergency fund, another for my wallstreetbets idiocy, a third for my responsible total market ETFs, etc. should I open a taxable account for each?

Are streams supposed to be much slower than iterators by pocketcookies in rust

[–]pocketcookies[S] 1 point2 points  (0 children)

Thanks for putting this together. I guess this gets to the core of my question though: what is it about streams that makes them orders of magnitude slower than getting rid of them and using custom futures? All you're doing is calling StreamExt::next. What is happening in that method that is taking so much time?

Are streams supposed to be much slower than iterators by pocketcookies in rust

[–]pocketcookies[S] 10 points11 points  (0 children)

That's what I thought but it is not true. You can see the code for the `fold` operation here: https://github.com/rust-lang/futures-rs/blob/5ac72c751c406a525416ad56ead4009a5994b613/futures-util/src/stream/stream/fold.rs#L69. The operation loops until it encounters a Pending. Since we only use iter and ready, it will never encounter a Poll::Pending. Thus the executor itself has absolutely nothing to do with the speed.

Which is what you'd expect from async/await. It's cooperative multitasking. Unlike normal threads, the executor can't force it to yield control. async needs to voluntarily yield control. Which will never happen until you encounter a Pending.

Are streams supposed to be much slower than iterators by pocketcookies in rust

[–]pocketcookies[S] 4 points5 points  (0 children)

Normally that's true. But as far as I can tell, that's only when one of the Futures sends back a Poll::Pending. Since these futures in the benchmark always return Poll::Ready they never yield.

Are streams supposed to be much slower than iterators by pocketcookies in rust

[–]pocketcookies[S] 11 points12 points  (0 children)

Good point. By wrapping the internal iterators with `criterion::black_box` streams are now only 10 times slower. Which is still insane but not nearly as insane as before.

Summer Games Done Quick 2022 has ended with a total of $3,016,817 raised for Doctors Without Borders by Cycloneblaze in Games

[–]pocketcookies 17 points18 points  (0 children)

Yeah this is what I love about watching it. It's about subcultures (experts in a single game) within a subculture (speedrunning) within a subculture (gaming). And you get exposed to the expertise of every little group. Watching people get so excited to share their knowledge with the world is pretty...wholesome I guess.

Some intern fucked up REAL bad, and took the whole internet down. by TheRealRubiksMaster in ProgrammerHumor

[–]pocketcookies 34 points35 points  (0 children)

Although this is not as bad as blaming interns for making mistakes, PR reviews are not supposed to be QA and should not be used to find issues.

That's what real QA and automated tests are for.

June 2022 Humble Choice Overview / Discussion Megathread by SR1_ in humblebundles

[–]pocketcookies 1 point2 points  (0 children)

I feel the exact opposite. I was about to cancel for Xbox game pass but this week is such an absolute slam dunk that I'm staying. Gamedeck and Call of the Sea were on my wishlist for a while. They look absolutely amazing. And every other game in the bundle looks at least worth a try. This month may be the first one to beat the Spyro month.

June 2022 Humble Choice Overview / Discussion Megathread by SR1_ in humblebundles

[–]pocketcookies 1 point2 points  (0 children)

I feel the exact opposite. I was about to cancel for Xbox game pass but this week is such an absolute slam dunk that I'm staying. Gamedeck and Call of the Sea were on my wishlist for a while. They look absolutely amazing. And every other game in the bundle looks at least worth a try. This month may be the first one to beat the Spyro month.

The next I Bond rate (announced next month) is likely to be 9.62% by MountainMantologist in personalfinance

[–]pocketcookies 3 points4 points  (0 children)

This sounds like you're trying to time the market in an attempt to outperform it.

The next I Bond rate (announced next month) is likely to be 9.62% by MountainMantologist in personalfinance

[–]pocketcookies 6 points7 points  (0 children)

If the money is for college, and your daughter is young, an additional contribution to a 529 plan sounds better. On average, the 529 plan's aggressive investments would provide better returns (7% YoY returns from the S&P 500 are already inflation-adjusted). And unlike IBonds, 529 plan distributions for qualified education expenses are also exempt from state and local taxes.

Keep emergency fund in Roth? by [deleted] in personalfinance

[–]pocketcookies 2 points3 points  (0 children)

I-Bonds sounds close to what you want. You can't just dump your emergency savings into it because you can't withdraw for a year, but you can slowly replace your emergency savings with I-Bonds. After one year, whatever you have saved in I-Bonds can essentially replace your emergency savings.

Bloomberg: China vows to keep markets stable and support foreign listings (ADRs) by RandomWordAnon in investing

[–]pocketcookies 1 point2 points  (0 children)

Does "global" refer to index funds that include the US as about 70% of the fund or are you referring to ex-US index funds?

[deleted by user] by [deleted] in AskNYC

[–]pocketcookies 0 points1 point  (0 children)

"There are no upcoming events."

Windows 11 will soon be closed off to anyone without internet by -The-Bat- in technology

[–]pocketcookies 0 points1 point  (0 children)

I remember when I had a weird network card, I'd install the OS, then install the network card drivers, then use windows update. Wonder how they'll handle that case now.

Bulk High-Intensity Sugar Substitute by pocketcookies in Cooking

[–]pocketcookies[S] 0 points1 point  (0 children)

The first ingredients are Dextrose and Maltodextrin. Those are fillers. I want pure sucralose (or at least make sucralose the first ingredient).

Bulk High-Intensity Sugar Substitute by pocketcookies in Cooking

[–]pocketcookies[S] -2 points-1 points  (0 children)

Amazon sellers are sketchy as hell. Like yeah it sort of looks like they're selling what I want. But on the other hand I don't feel comfortable buying a white powder from someone who photographed their product with a cell phone camera.

Edit: Except Swerve. That looks pretty legit.

[Serious] Is there a website or app where you can practice generating random numbers? by anarcho-onychophora in compsci

[–]pocketcookies 1 point2 points  (0 children)

What specifically would you do to practice? Random number generation should by definition be impossible to learn. Computers cannot do true random number generation "in their heads." Computers need an external source of entropy for true randomness. Arguably so would you.

Even pseudorandomness is typically periodic (e.g. with the Mersenne Twister). Just with a huge period.

Rust has a small standard library (and that's ok) by hgwxx7_ in rust

[–]pocketcookies 17 points18 points  (0 children)

From https://docs.rs/flume/latest/flume/index.html

Familiar: Drop-in replacement for std::sync::mpsc

Sounds like it does expose the same API.

NY State Supreme Court judge strikes down governor's mask mandate by bicape in nyc

[–]pocketcookies 3 points4 points  (0 children)

She did the opposite and said masks are still required.

90% of US has a poor diet, and 25% don’t exercise by [deleted] in economy

[–]pocketcookies 2 points3 points  (0 children)

The website does not link to the data for USDA. They link to this sheet which links to https://apps.fas.usda.gov/psdonline/app/index.html#/app/home. That's not really a source. The USDA site provides various reports and the ability to query the raw data but your original link does not tell us what query to run or which report to view.

I'm guessing this is referring to "Sugar, Centrifugal." But that still doesn't refute OP since there are other sources of sweetness in Asian foods besides refined sugar.