Jump in the discussion.

No email address required.

Is memory safety a chud/libtard issue now? lol, I guess Rust is traditionally owned by the :!marseytrain:s

Jump in the discussion.

No email address required.

All is Kulturkampf. Kulturkampf is all.

Nanny state liberals want "safety", but real men embrace undefined behavior.

Jump in the discussion.

No email address required.

Broke: Who cares, it's just a programming language

Woke: Memory Safety is for limp wristed kitty's, real men write in C and are close to the compiler and, by extension, God

Bespoke: The heap is a representation of the anima, the untamed wilds of the self, to cut off our access to this we sever a connection with Mother Nature herself, which is part of the left's War on Consciousness

Jump in the discussion.

No email address required.

The fricking real garbage collection is fricking in the fricking comments

Jump in the discussion.

No email address required.

Even though u probably stole it, top programma joke :marseyokaymilk:

Jump in the discussion.

No email address required.

I remember setting up a fricking string and then printing it character by character and then continuing on past the fricking end of the fricking string. Just printing whatever happens to be sitting there in memory.

God those were the fricking days. When men were fricking men and computers obeyed the fricking commands of their rightful masters.

Jump in the discussion.

No email address required.

noooo the representation should have a fixed lengtherino

:#soycrytalking:

NOOOO it should be ended with a null pointer

:#soyjakyelltalking:

g e t r e k t ⊞ ⥏ ▒ ⨗ ⻯ ⌂ ⭦ ␧ ✠

:#marseygigachadtalking: :#gigachad2talking:

Jump in the discussion.

No email address required.

Write your own compilers, use commodore 64.

Jump in the discussion.

No email address required.

Smart pointers are memory safety enough for me.

It's like wearing a condom, whereas rust is like cutting off your- oh lawd

Jump in the discussion.

No email address required.

I haven't used C++ for years but I really did appreciate the simple elegance of pointers, and how you always knew whether you were modifying the object itself or a copy of the object in a method.

Then again that was in college, I imagine it would be a genuine nightmare in enterprise

Jump in the discussion.

No email address required.

https://github.com/Speykious/cve-rs/tree/main

Blazingly 🔥 fast 🚀 memory vulnerabilities, written in 100% safe Rust. 🦀

cve-rs uses #![deny(unsafe_code)] in the entire codebase. There is not a single block of unsafe code (except for some tests) in this project. cve-rs implements the following bugs in safe Rust:

  • Use after free
  • Buffer overflow
  • Segmentation fault

cve-rs also contains safe reimplementations of:

  • std::mem::transmute
  • std::ptr::null()/null_mut() but for references
Jump in the discussion.

No email address required.

calling my code "safe" to fool the nuclear power plant

Jump in the discussion.

No email address required.

LMAO, it's too late in the day for me to read the specifics of how the crate does this but care for a quick TLDR of how it causes a segfault in safe Rust?

Jump in the discussion.

No email address required.

It's a soundness issue. Consider this function:

fn lifetime_translator<'a, 'b, T>(_val_a: &'a &'b (), val_b: &'b T) -> &'a T {
	val_b
}

It is perfectly safe because 'a must be shorter than 'b (otherwise taking &'a of a &'b would be impossible). So this function just decreases the lifetime of val_b - a perfectly safe and valid operation.

pub const STATIC_UNIT: &&() = &&();

pub fn expand<'a, 'b, T>(x: &'a T) -> &'b T {
	let f: fn(_, &'a T) -> &'b T = lifetime_translator;
	f(STATIC_UNIT, x)
}

Now we can abuse it here. Note that f is perfectly find by matching against the type signature of lifetime_translator. It's just in this 'a: 'b isn't implicitly true like above. The rust trannies claim this will be fixed in their trait system rewrite (that's been going for several years now), but the fundamental issue is that the borrow checker has no formal specification and is instead just a grab bag of heuristics. This fact makes rust trannies seethe.

Jump in the discussion.

No email address required.

>the borrow checker has no formal specification and is instead just a grab bag of heuristics.

big if true

Jump in the discussion.

No email address required.

I'm serious the rules are written nowhere but the compiler source code. "either many reference or 1 mut ref" "stacked borrows" "impl lifetime rules"

Jump in the discussion.

No email address required.

Is fricking memory safety a fricking chud/libtard issue now, b-word?

Terry Davis quite literally told us 'yes'.

:taddance:

Jump in the discussion.

No email address required.

Everything is a chud/libtard issue in current year.


:!marseybooba:

Jump in the discussion.

No email address required.

Memory safety is unironically important. C++ belongs in the trash heap of the 20th Century, the modern day world is for Rust.

Jump in the discussion.

No email address required.

:#soyjaktalking:

Jump in the discussion.

No email address required.

Keep yourself safe :marseytrain: :marseysmugfinn:

Jump in the discussion.

No email address required.

>Oh magic 8 ball, will @BC ever be a woman?

The 8-Ball Says: Most likely.

Jump in the discussion.

No email address required.

:chudi#tsover:

Jump in the discussion.

No email address required.

Even the brainless 8 ball is smater than you.

Jump in the discussion.

No email address required.

Factcheck: This claim is currently being debunked.

:marseyhm#mhips:

Jump in the discussion.

No email address required.

You can have my C++ compiler when you pry it from my cold dead hands

Jump in the discussion.

No email address required.

https://i.rdrama.net/images/17089926851445506.webp

(I don't actually know Rust, I just want to hang out with the cool tgirls)

Jump in the discussion.

No email address required.

I unironically recommend learning Rust. It's the language of the future.

Jump in the discussion.

No email address required.

what does tgirls mean

tech girls?

Jump in the discussion.

No email address required.

in a sense...

Jump in the discussion.

No email address required.

The t is for testosterone.

Jump in the discussion.

No email address required.

https://i.rdrama.net/images/17089934991967943.webp

I FRICKING HATE JANNIES AHHHHHHHH

:mar#seyrage::marseyham#mersnoo:

Jump in the discussion.

No email address required.

noooooooooo you can't bring up politics when talking about...the white house! :hysterical:

Jump in the discussion.

No email address required.

we'll be allowed to criticize the white house again in a November when the orange man is president

Jump in the discussion.

No email address required.

:!#marseyjanny2:

Jump in the discussion.

No email address required.

This is CISA, one of the groups calling the shots here.

https://i.rdrama.net/images/1708993238720823.webp

The US is doomed, no way they'll stay competitive with these guys calling the shots

Jump in the discussion.

No email address required.

Uh what's the problem exactly?

Jump in the discussion.

No email address required.

no asians

Jump in the discussion.

No email address required.

3 or 4 of them look like they smell nice

:#marseysniff:

@Maximus

Jump in the discussion.

No email address required.

This is why everyone needs to learn D

!codecels plz learn D, I'm so tired of having to write my own libraries whenever I need to do anything. plz

Jump in the discussion.

No email address required.

>he wants the D

Jump in the discussion.

No email address required.

:#marseyblush:

Give it to me bby!

Jump in the discussion.

No email address required.

No, I won't be using any meme language


:#marseyviewerstaretalking:

Jump in the discussion.

No email address required.

D makes C a meme

Jump in the discussion.

No email address required.

Walter Bright (creator of D) has an hacker news account and always brings it up in unrelated threads. https://news.ycombinator.com/user?id=WalterBright


Follower of Christ :marseyandjesus: Tech lover, IT Admin, heckin pupper lover and occasionally troll. I hold back feelings or opinions, right or wrong because I dislike conflict.

Jump in the discussion.

No email address required.

:#marseykingcrown:

Jump in the discussion.

No email address required.

provide reasons why should I give my computer the D

Jump in the discussion.

No email address required.

Nice syntax, small binaries, interops well with C, dub the package manager works well with the various computers, it would make walter very happy

Jump in the discussion.

No email address required.

How about you learn Deeze nutz?

Jump in the discussion.

No email address required.

I'll write your libraries for you, king. To be more profitable than shitposting here, you'll have to pay me 40 DC per hour

Jump in the discussion.

No email address required.

Jump in the discussion.

No email address required.

The issue isn't with C, its with the morons who don't know how to code.

Also, you don't even need to use malloc to write code in C, its a crutch of bad programmers.

That being said, switch to Lisp or another functional language, because it will limit the pool down to the most neurodivergent.

Jump in the discussion.

No email address required.

>true C has never been tried!

Jump in the discussion.

No email address required.

C without malloc isn't bad. Its just people who abuse setting stuff in memory and don't know how to garbage collect correctly.

Jump in the discussion.

No email address required.

C programmers only use C because they're morons who know how to write ASM.


Follower of Christ :marseyandjesus: Tech lover, IT Admin, heckin pupper lover and occasionally troll. I hold back feelings or opinions, right or wrong because I dislike conflict.

Jump in the discussion.

No email address required.

:#marseyravecope:

Rustchads stay winning.

Soon all code will be memory safe!

Jump in the discussion.

No email address required.

>Rust

Congratulations on your transition bb :marseywholesometrans:

Jump in the discussion.

No email address required.

This just tells me the DoD is r-slurred. You don't need as much memory safety if you just assume everything is compromised and anything not in house is sandboxed like the DoE does.

Jump in the discussion.

No email address required.

>zoomer NASAcels when a crew of astronauts gets vaporized after a race condition overwrites the memory storing navigation coordinates

:#pepezoomerhair:

Jump in the discussion.

No email address required.

with all due respect: skill issue

Jump in the discussion.

No email address required.

why is the white house promoting :marseytrain: language nonsene??

Jump in the discussion.

No email address required.

What language should the Trump administration promote?

Jump in the discussion.

No email address required.

Go back to BASIC

Jump in the discussion.

No email address required.

:#marseyrave:

Jump in the discussion.

No email address required.

You WILL do a bounds check!

You WILL do a null check!

You WILL not leak memory!

:#marseyobeytalking:

Jump in the discussion.

No email address required.

The CIA already announced this and my answer is still the same.

RUN 'EM DOWN!!! :taddance: :!realisticelephant: :!marseyglowgenocide:

Jump in the discussion.

No email address required.

https://media.giphy.com/media/xULW8uYVeNcqgmyxry/giphy.webp


https://i.rdrama.net/images/172187329668082.webp

Jump in the discussion.

No email address required.

Link copied to clipboard
Action successful!
Error, please refresh the page and try again.