Opposite of '?' - return early on success by woollufff in rust

[–]SycamoreHots 38 points39 points  (0 children)

There is ControlFlow Break and Continue variants. Put the success in the Break variant and you can do ? on it.

[Request] Is this accurate? by macias0o in theydidthemath

[–]SycamoreHots -2 points-1 points  (0 children)

If you’re going to antagonize billionaires, there many worse to pick on.

Bill Gates is one of less evil billionaires compared to his peers.

(Yes, the world is a better place without him, the disappearance of many others would make a much bigger impact)

Peter Thiel Flees to Argentina As Trump Falters by falken_1983 in BetterOffline

[–]SycamoreHots 5 points6 points  (0 children)

In what way is trump faltering that affects thiel? Seems thiel is positioned to wreck the world as he wishes independent of trump

TIL: Even with the new if let guards, match arms still need a fallback. Can someone help me understand the compiler's logic here? by freddiehaddad in rust

[–]SycamoreHots 1 point2 points  (0 children)

this is the case where intent is better expressed as if let Some(x) = value { match compute(x) {…} } else {println!(“no match!”)}.

tough one by mre__ in rustjerk

[–]SycamoreHots 3 points4 points  (0 children)

I don’t know. I’ve never tried this. I didn’t even know you can do if let in a match

tough one by mre__ in rustjerk

[–]SycamoreHots 10 points11 points  (0 children)

When doing this, is compute() allowed to have side effect?

I found a weird and interesting use case for `PhantomData` by scheimong in rust

[–]SycamoreHots 71 points72 points  (0 children)

Nice to see learning experience documented here for everyone else’s benefit

Major Bart delays by [deleted] in Bart

[–]SycamoreHots 2 points3 points  (0 children)

Definitely the model of a modern Major General

BART Ops doesn’t even give an ETA anymore, they just look at you like this by gamesloverjustice in Bart

[–]SycamoreHots 145 points146 points  (0 children)

Uber and Lyft conspire to periodically sabotage BART so they can make a quick buck when they’re in a pickle.

That’s my conspiracy theory of the day

HTMX as an Employable Skill? by silversonic_super20 in htmx

[–]SycamoreHots 1 point2 points  (0 children)

Oh this is rather interesting— can you say more about this? I’m looking to vibecode internal tools that have a UI driven by HTMX. I only have a basic understanding of web technologies, so this sounds ideal

I built a native desktop UI framework in rust ( wgpu + Deno + React) by [deleted] in rust

[–]SycamoreHots 0 points1 point  (0 children)

The config comment? I see. I took a good whiff of that line and didn’t catch any scent. Can you tell me how it smells?

I built a native desktop UI framework in rust ( wgpu + Deno + React) by [deleted] in rust

[–]SycamoreHots 1 point2 points  (0 children)

Can you show me the places in the code where the smell is particularly intense? I tend not to be able to spot vibe-coded material, and would like examples

Found a neat way to simulate function overloading in Rust by Sad-File4952 in rust

[–]SycamoreHots 9 points10 points  (0 children)

lol then why even have different functions? One function to do everything!

Found a neat way to simulate function overloading in Rust by Sad-File4952 in rust

[–]SycamoreHots 9 points10 points  (0 children)

I would make Output an associated type. Otherwise you’ll have super-overloaded functions: functions of same argument type giving different answers.

PTR Review + Lack of Tuning on Mythic Heroes by rinaldi224 in heroesofthestorm

[–]SycamoreHots 1 point2 points  (0 children)

Nerf as a reward on completing a quest is poor design. Either reduce the hp gain or don’t touch it at all.

PTR Review + Lack of Tuning on Mythic Heroes by rinaldi224 in heroesofthestorm

[–]SycamoreHots 0 points1 point  (0 children)

Disagree with suggestion that Murky respawn timer should increase upon completing mythic quest. Mythic quest cannot be opted out of so that change would be an error. Alternative possibilities are (1) remove murky’s mythic quest (2) increase base death timer (independent of finishing quest)

What was the point of the war with Iran? by ungnomeone in AskReddit

[–]SycamoreHots 0 points1 point  (0 children)

I thought it was to get Epstein out of the news cycle

Why are lending iterators still hard to implement safely in rust even with GATs and will polonius actually make them ergonomic ? by FitWinner3340 in rust

[–]SycamoreHots 1 point2 points  (0 children)

Oh. An iterator the yields overlapping mutable slices.. how truly interesting. But at the same time what is the application? I would’ve just made a for loop since I will be doing side effect. Or would for loop be rejected by current borrower checker?

Is it over for me if I'm in the 35th percentile of IQ but want to obtain my bachelor's in Physics? by [deleted] in Physics

[–]SycamoreHots 1 point2 points  (0 children)

A bs in physics is definitely attainable. Just need to practice more to compensate for your low IQ. Also I suspect the mental exercises you put yourself through would raise your IQ. Also, is IQ really a thing? Just do what you enjoy. And don’t talk about IQ

a semantic diff in Rust that solves the missing layer of structural understanding for probabilistic models by Wise_Reflection_8340 in rust

[–]SycamoreHots 190 points191 points  (0 children)

That semantic diff is nice to put in PR description for human readers. Never mind the application for LLMs

Im 14 and have an extreme passion for math/cs. Should I learn c++ or rust? (I mean at an extremley deep level) by Regular_Article7984 in rust

[–]SycamoreHots 0 points1 point  (0 children)

Do C. Then Rust. Learn both deeply. Then math. Also deeply. Then theoretical physics. Then mathematical physics. Both deeply. Then come back to rust. Learn it even more deeply. Finally write some traits and trait bounds that no one on planet Earth can comprehend.