Better HN
topnewbestaskshowjobs
Log inSign up

DrMeepster

21 karma · joined Mar 14, 2021 (5y ago) · 20 submissions

Submissions

comment 1y ago · link · parent

there's a wrapper type, AssertUnwindSafe to get around it. The whole concept of unwind safety was a mistake so don't worry about using it

comment 1y ago · link · parent

please no. that article is nonsense. this is all nonsense.

comment 2y ago · link · parent

Unsafe is one of the most important things in rust. The point is that you stick all the unsafety into well marked areas that can be more easily checked.

comment 2y ago · link · parent

You don't actually explain why Mojo doesn't need Pin, you just say that it works. Does Mojo automatically fix up self referential pointers on moves or something?

comment 2y ago · link · parent

See also https://doc.rust-lang.org/nightly/nomicon/leaking.html

comment 3y ago · link · parent

Banning unsafe is actually really easy. Just one line `#![forbid(unsafe_code)]` at the start of your code.

comment 4y ago · link · parent

Box operator isn't actually used in Box::new anymore. It's been replaced with a magic attribute, #[rustc_box]

comment 4y ago · link · parent

Rust also tests all public rust code on github

comment 4y ago · link · parent

So to be clear, you want it to be harder to update the compiler? I cannot interpret "rustup seems to encourage that behavior" as anything else but that.

comment 4y ago · link · parent

"pronoun people"

What, you cant handle queer people existing?

comment 4y ago · link · parent

what does this mean? It sounds like you tried to make a funny programming insult, but it fell flat if that's what you were going for

comment 4y ago · link · parent

This can never happen with regular string literals. String literals have the type `&'static str` but formatting returns a `String`.

comment 4y ago · link · parent

this study is extremely flawed. It is impossible to tell if these results are from the garbage collection or how bronze violates rust aliasing

comment 4y ago · link · parent

ok sure whatever but what does this have to do with the article?

comment 5y ago · link · parent

that doesn't mean abuse isn't an asshole move

comment 5y ago · link · parent

Would be a lot less work if he didn't do this package splitting nonsense

comment 5y ago · link · parent

You can interpret its MIR (mid-level intermediate representation) like Miri or const evaluation does

comment 5y ago · link · parent

or maybe it's because most people are not using tor browser and do not vote for links they can't open

comment 5y ago · link · parent

RIP mutable noalias (again)

comment 5y ago · link · parent

What is a custom lifetime?