[a / b / c / d / e / f / g / gif / h / hr / k / m / o / p / r / s / t / u / v / vg / vm / vmg / vr / vrpg / vst / w / wg] [i / ic] [r9k / s4s / vip] [cm / hm / lgbt / y] [3 / aco / adv / an / bant / biz / cgl / ck / co / diy / fa / fit / gd / hc / his / int / jp / lit / mlp / mu / n / news / out / po / pol / pw / qst / sci / soc / sp / tg / toy / trv / tv / vp / vt / wsg / wsr / x / xs] [Settings] [Search] [Mobile] [Home]
Board
Settings Mobile Home
/g/ - Technology


Thread archived.
You cannot reply anymore.


[Advertise on 4chan]


File: rust.png (114 KB, 627x722)
114 KB
114 KB PNG
https://blog.cloudflare.com/18-november-2025-outage/
>unwrap() breaks lots of websites worldwide

https://grep.app/search?f.lang=Rust&q=unwrap%28%29
>500K+ Rust files that contains unwrap()

https://github.com/ruffle-rs/ruffle/blob/master/core/src/avm2/globals/date.rs
>84 occurrences of unwrap() in one file

Why are Rust programmers so bitterly bad at robust software development in practice?
>>
Autism.
>>
>>108457559
>why does the program potentially panic here?
>oh it doesn't, the value is always valid
>then why use a type that can express an invalid state?
>oh it's because this is the most ergonomic way of tricking the borrow checker
Every single time
>>
>>108457559
hahah
>>
File: cve-rs.png (73 KB, 922x762)
73 KB
73 KB PNG
>>108457559
I just use picrel
>>
>>108457559
piddle
>>
>>108457559
>>108450646
>stale addition to the tard circulation by the ever-triggered anti-rust "grep researcher" IzzatBot.
i guess it's hard to come up with better stuff when the (((help))) is busy. llm web search can only go so far
>>
>>108457755
>its not a vulnerability, it is useless bloat
ok?
>>
Reminder that Rust is government promoted trash.
Promoted by the same brainfucked idiots who are losing in Iran currently.
>>
>>108458195
I love how the jews pretend everything they don't like is promoted by them and even sometime do so lmao.
Funnily enough there is no rust hate thread on shabbat or whenever Israel gets bombed.
>>
>>108458195
>there are no persian, chink, and russki rustacians
>>
>108458267
rust was literally dead for years, the fucking creators of rust got booted from Mozilla and their prestige project, Servo, was in a limbo, because nobody developed on it without payment.

Until shekels from corrupt and dumb government child raping pedophiles came in, then suddenly we got this flood of promotions.
None of you people existed before that.
>>
>>108458508
> None of you people existed before that.
Almost everyone who liked Haskell, OCaml, Scala, etc, liked Rust way before it was popular.
Those people like traits, path dependent types, disjoint union types, etc.
Even if they agree borrow checker / ownership can be pain in the ass, there are no languages closer to C++ and at the same time supporting so many advanced FP type system features.
>>
>>108458508
>>108458556
samefag
>>
>>108458713
You good buddy? Anyway, thread bump appreciated.
>>
>>108458905
faggot whore detected, please kys immediately
>>
>>108457755
>Use an unsafe block? Oh my heavens no!
>Writes unsafe safe code
>>
>>108458556
>FP type system features
you're so dumb
>>
>>108457755
it's no different than de-referencing potentially nullable pointers in most other languages. the unwrap is just a form of assert in this case.
>>
File: true.png (133 KB, 2563x1135)
133 KB
133 KB PNG
>>108458508
Yep. Everyone can trivially see that for themselves too (picrel). It basically died in 2020, and only showed signs of life again years later. All thanks to president Trump.
>>
>>108458195
>>108458508
what mental illness is this? this isn't on-topic /g/. this is just schizo bullshit.
>>
>>108459215
it's IzzatBots' "smart" attempt at misdirection and "no u"-ing lol
>>
>>108457559
Because safe rust is nearly impossible. It requires predictability, but useful software tries to model the real world, and that implies unpredictability and imperfection.
>>
>>108459267
Safe Rust is sometimes difficult because modeling complex real world relationships requires patterns (like shared mutable state or cyclic references) that don't map cleanly to Rust's ownership model.
Fixed that for you.
>>
>>108459087
If you had even brushed, however lightly, against the currents of Homotopy discourse, you would feel at once how it resonates with the Curry-Howard correspondence, how it echoes through type families, ML functors, Scala’s path-dependent types, and ultimately gestures toward fully dependently typed languages as a kind of distant, almost inevitable horizon against which all these ideas are measured.
>>
>>108459340
whoa.
>>
>>108459287
can you provide examples where the problem itself (not implementations solving it) requires patterns like shared mutable state or cyclic references
>>
>>108459087
Newfag who didn't even read ATAPL detected. I bet you're one of those who thinks "functional programming is having lambda functions and map/reduce", ignoring the massive context of type systems research going for more than half century in FP sphere.
>>
>>108457559
Forcing you to unwrap is more robust than the alternative
>>
>>108457755
unwrap makes zero difference in terms of borrowing
>>
>>108458556
FP sucks
>>
>>108458556
So why is a bad thing that C++ doesn't support all those mental illnesses you call "features"?
>>108458508
Based AF.
>>
>>108459215
>>108458267
>>108458713
>>108458984

^ glowie zogbots
>>
>>108461851
>>108458984
>>
>>108461838
C++ does support ALL of this and more, and people been using all of this unironically in C++ since early 2000s via boost fuckery first and using more stuff later and nowadays some of it is in C++ standard library, like type traits, etc. It's just less systemic and ergonomic in C++, it's implemented using mechanisms that were not designed for it initially, it can lead to hard complilation errors and long compile times, etc. In Rust all those features are relatively simple, ergonomic, well organized and well specified, and subject to regular improvements and optimizations.
>>
>>108462534
>C++ does support ALL of this and more
>no directory handles for relative lookup though
>despite Windows, Linux, and Mac all supporting them
>meaning it's back to C bindings
>>
>>108462607
What does this comment have to do with type systems?
>>
>>108462745
>type systems
I thought we were talking about features *in general*? >>108458556
>>
>>108457559
Just vibecode bro
>>
File: 1742835921658731.jpg (186 KB, 1023x1025)
186 KB
186 KB JPG
>>108462776
I didn't touch my Rust app since summer, decided to give it a go today without vibecoding as an extra challenge. So I did bump language edition from 2021 to 2024, updated major dependencies and implemented drag-n-drop for reordering tabs. Messed around with ownership/borrowing issues when thing can be borrowed simultaneously immutably for the whole function and mutably in the scope of closure that goes into ui callback. Sorted it out by being slightly inefficient (finding index of element in array of tabs multiple times instead of once, because accessor method is called inplace so no extra binding that causes immutable borrow), but at least no Rc<RefCell<..>> trash. For the future, if the same problem arises in context where this actually matters for performance and arrays are big, I decided I'll try salvia signals+derived!, basically classic reactive programming where dependent cells update/recompute automatically when their dependencies change, and only when it's needed. Overall, a very good experience for not touching Rust for more than half a year, especially considering that I used vibecoding before on this codebase so the code I had to deal with wasn't even fully written myself in the first place.
>>
>>108459287
Are we talking shared mutable state protected by a synchronization primitive, or not? Because the first one is supported OOTB in safe rust
>>
File: 1754950228548952.png (32 KB, 780x783)
32 KB
32 KB PNG
>saar, rust bad because the borrow checker wont let me write garbage code like my shitty cs50 fizz buzz implementation that uses pointers
Just nuke India off the face of the planet already please.
>>
>>108464590
Indians use Rust as well, for instance in Google's Fuchsia.



[Advertise on 4chan]

Delete Post: [File Only] Style:
[Disable Mobile View / Use Desktop Site]

[Enable Mobile View / Use Mobile Site]

All trademarks and copyrights on this page are owned by their respective parties. Images uploaded are the responsibility of the Poster. Comments are owned by the Poster.