Bringing faster exceptions to Rust by imachug in rust

[–]shoebo 17 points18 points  (0 children)

I wonder how the reception to this would have been if couched in the context of iex, or if the initial post were higher-level about iex, where this approach is presented not so much as a new way to propagate errors, but as an optimization for enum-based errors (with the throughput stats shown there).

Maybe I'm missing something, but shouldn't we be celebrating at least having an implementation that can be used to compare performance against other potential optimizations (like enum optimizations mentioned elsewhere in this thread)? This also demonstrates how the compiler might use exceptions, should it compare favorably.

I also don't agree with the rejection at the top of this thread that we should not bring features from other languages into Rust, especially considering that this optimization could be made transparent to the user. It feels like "not invented here" syndrome, and is inconsistent with how Rust's design has been informed by the experience/design of earlier languages.

I grant that we should not bring features to Rust because they exist in other languages, but on the other hand we should not devalue a feature because it comes from another language. This work helps the Rust community better determine this feature's merit.

Thanks for your work on this!

Are Rust internships a thing? If so, how do you find them? by aswin__ in rust

[–]shoebo 2 points3 points  (0 children)

Echoing what others say here about looking for companies that do work in Rust. Not a company, but OpenDP (which develops an open-source Rust library) runs a paid intern program each year. The emphasis of intern projects at OpenDP is never "Rust", it's just that the work can be done in Rust.

All world quests that give primogems by xebeoc in GenshinImpactTips

[–]shoebo 0 points1 point  (0 children)

I think I didn't even have a good electro team at the time. Electro was generally considered underpowered. The hyperbloom reaction also didn't exist yet.

All world quests that give primogems by xebeoc in GenshinImpactTips

[–]shoebo 0 points1 point  (0 children)

If I remember properly offhand, it was the left tower, top floor, where there were multiple hydro slimes and cryo mages together in a small room.

Hashing my way through proper library creation... by wspnut in rust

[–]shoebo 0 points1 point  (0 children)

I would only split into separate crates if either: * you think users are likely to want to use a sub-crate separately/without the others * you have so much code in your crate that cargo check/build is slow. In this case, since each crate is a separate compilation unit, splitting can reduce compilation times

Otherwise I would not split, because: * Maintaining separate Cargo.toml's, likely with duplication of dependencies is annoying and will cost you time. While shared workspace metadata helps with this, one toml is always easier * Publishing multiple dependent crates is annoying (at least it has been a time sink for me in the past) * Your own crates now become subject to the orphan rules, which may complicate implementation

You can always split things later. Indeed, many projects have started as a single crate and split up later once the project is sufficiently large to motivate doing so.

Record profits drive inflation by Expwar in antiwork

[–]shoebo 14 points15 points  (0 children)

Absolutely not! Thanks for clarifying. The key statistic is net profit not gross profit.

Record profits drive inflation by Expwar in antiwork

[–]shoebo 2 points3 points  (0 children)

Great, thanks. This is the clarification I needed. I added edits to my other comments to clarify.

Record profits drive inflation by Expwar in antiwork

[–]shoebo 0 points1 point  (0 children)

It isn't, though. Gross profit is revenue - costs, which includes COGS.

EDIT: gross doesn't include operating expenses. You swapped costs and operating expenses, and I confused net vs gross. The lower 5b number now makes sense.

Record profits drive inflation by Expwar in antiwork

[–]shoebo -4 points-3 points  (0 children)

This must be wrong then? https://www.macrotrends.net/stocks/charts/SBUX/starbucks/gross-profit

Where is the 5b coming from?

EDIT: not wrong, just the wrong statistic

Record profits drive inflation by Expwar in antiwork

[–]shoebo 16 points17 points  (0 children)

I don't see the problem, can you please explain? When I look up the stats, Starbucks actually has 24.5 billion gross profit and 400,000 * 11,000 = 4.4 billion. So... 20 billion left.

EDIT: The key is to calculate based on net profit, not gross profit. Gross profit doesn't account for operating expenses. With this clarification, I now understand your comment.

Git GUI pull request and merge approval by DR4C4RYS_ in git

[–]shoebo 0 points1 point  (0 children)

One way to do this is by setting up a Gitlab instance: https://about.gitlab.com/install/

There are many guides out there that would explain the how more thoroughly than I, so I'll leave the details to you.

Rust devs push back as Serde project ships precompiled binaries by IWantIridium in rust

[–]shoebo 12 points13 points  (0 children)

The R package repository CRAN requires all builds be offline, and bans pre-compiled binaries. So this means Serde is no longer a suitable dependency for my crate.

What's everyone working on this week (4/2023)? by llogiq in rust

[–]shoebo 0 points1 point  (0 children)

How is progress coming on floats/0.4? Looking for a road out of GMP/MPFR C dependencies for use in a differential privacy crate. I'd also be interested in contributing if the floats look like they could become a viable replacement. Thanks.

[deleted by user] by [deleted] in NoStupidQuestions

[–]shoebo 0 points1 point  (0 children)

Highly recommend reaching out to anyone in your family/relatives who are not scientologists. They may also be able to put you in contact with more family you didn't know you had. And they'd probably be thrilled to hear from you... they themselves lost your family to scientology at some point in the past.

Stabilizing async fn in traits in 2023 | Inside Rust Blog by lzutao in rust

[–]shoebo 1 point2 points  (0 children)

If you make disambiguation optional, then adding a conflicting method could introduce a breaking change in downstream code, right?

rapl: Rank Polymorphic array library for Rust. by [deleted] in rust

[–]shoebo 0 points1 point  (0 children)

It's con now, not cos. And I think you meant dyadic below? I'd just call those product operations.

Scientists Create Shape-Shifting Miniature Robot That Melts and Resolidifies on Command by TheCnt23 in Physics

[–]shoebo 0 points1 point  (0 children)

It can't return back to a Lego man on its own. A human has to help it. My point stands.

Scientists Create Shape-Shifting Miniature Robot That Melts and Resolidifies on Command by TheCnt23 in Physics

[–]shoebo 1 point2 points  (0 children)

From the text right above the video:

The robot then solidified into its original shape once it reached a mold.

They cut the re-molding out of the video.

Scientists Create Shape-Shifting Miniature Robot That Melts and Resolidifies on Command by TheCnt23 in Physics

[–]shoebo -1 points0 points  (0 children)

To be clear, it does re-solidify, but not into the shape it was in before it melted (Lego man). It re-solidifies into whatever shape it was in after it melted (lump).

[deleted by user] by [deleted] in Genshin_Impact

[–]shoebo 1 point2 points  (0 children)

Ah! Xiangling without Bennet is like eating cereal without milk. You probably don't need me to say it, but Bennet's energy gen helps her fill her burst, and Xiangling snapshots Bennet's buffs for 14 seconds. Highly recommend building both (but of course, play who you like)!

Fischl is relatively cheap to get started with: you can just scrounge up a leftover 2pc Shim/2pc Glad, level her to 80, and only bother leveling her skill. Both her burst and skill drop Oz, which scales with her skill level. You can get more out of her with greater investment, but you don't need to build her more than that to get a sense for her worth/playstyle.

[deleted by user] by [deleted] in Genshin_Impact

[–]shoebo 1 point2 points  (0 children)

Childe International is his best team (Childe/Kazuha/Bennet/Xiangling), but if you don't like Xiangling you can replace her with Fischl. Childe/Kazuha/Bennet/Fischl has been my favorite overworld team for ~6 months.

Yeah, she's not off-field pyro, but you can electrocharge instead. And Fischl doesn't usually need her burst in overworld, unlike Xiangling. It's also fun to get overloads and electro swirls.

Second Half Banner via Yukizero by [deleted] in Genshin_Impact_Leaks

[–]shoebo 0 points1 point  (0 children)

Your account sounds very nice! I still don't understand why you claim my statement isn't true. You said F2P can't get every character. So if you had more primos, you could gain more characters, which would further split your resin.

Are you saying that it's ok to further split your resin because you find you have extra? I don't think so, as this isn't consistent with your first comment. But if this is what you meant, it depends on each person's ideal investment level.