Unable to load image

Rust doesn't belong in the Linux kernel; : rust :marsey41: :soysnooseethe:

https://old.reddit.com/r/rust/comments/1ioip9j/rust_doesnt_belong_in_the_linux_kernel/

								

								

https://felipec.wordpress.com/2025/02/13/rust-not-for-linux/

TL;DR: Rust trannies are gay

Look at this retarded syntax, yet MORE weird shit to add onto your required research project to understand basic Rust:

https://i.rdrama.net/images/1739528987N-nBT0qnTg9dqQ.webp

What in the hell is an 'a :marseylaugh:

Spoiler: the author gives off heckin incel energy:

https://i.rdrama.net/images/1739528986cGXLMLfPXvrb-g.webp

https://i.rdrama.net/images/17395289861s10hQJH-fOCNA.webp

https://i.rdrama.net/images/1739528987q9JO2MLLH0H5gA.webp

https://i.rdrama.net/images/1739529098QQahsXoTlWetfQ.webp

57
Jump in the discussion.

No email address required.

I hate rust, but this guy looks like the same sort of :marseylongpost: midwit as most rustaceans :marseytransflag2:

>to show how C experts write C code: struct person {char name[50]; ...

:brainletpit:

Jump in the discussion.

No email address required.

Aside from just being a short example avoiding complexity from a variable length name array, maybe in hypothetical situation he knows all input names are guaranteed to be <= 50 chars. :marseyshrug: (assuming that's what you mean)

Jump in the discussion.

No email address required.

Just use a char * and be done with it. The string is done when you hit a null value, no input constraints required.

Jump in the discussion.

No email address required.

He could have used a char array in Rust as well to make them actually the same, but chose not to so he could show off the fancy lifetime syntax in Rust and make it look more complicated than it is. Same reason he didn't use "uint32_t age" in the C version even though that's the equivalent to "u32" - Rust doesn't have an equivalent to "int" in C because the standard C integer types are all really, really r-slurred and don't have fixed sizes.

Jump in the discussion.

No email address required.

If ur name is any longer ur probably from a backwards culture


https://i.rdrama.net/images/1735397835BTbCkGwWb5B-VQ.webp

Jump in the discussion.

No email address required.

Well yeah, I just found it funny that he talks about "C experts" and then gives a hello-world example. Like yeah maybe you don't want to get into the details, but rust's obtuse syntax does come with some benefits such as not having to mess with null-terminated strings and shit like that (I guess, never bothered to learn rust). It's C praise from somebody who's really not written that much C.

And don't use fricking flexible array members. I hate the fricking flexible array members man. Just use a normal pointer or a fixed PERSON_NAME_MAXLEN constant.

Jump in the discussion.

No email address required.

guaranteed to be <= 50 chars

They better be < 50 chars otherwise you'll have big problems, stuff like

strncpy(person.name, name_src, 50);

will fuck your shit up (yes, using 49 above will work but you'll lose the last char of the name).

Jump in the discussion.

No email address required.

>strncpy

>not strlcpy

its like you like rces

Jump in the discussion.

No email address required.

Also missing 5 levels of #defines, and all the variable names should be a single character to make sure we can fit all of our bullshit into 72 characters (with 8 space tabs)

Jump in the discussion.

No email address required.

struct sexualharassmentrecords

{char victims[5000];

unsigned long infractions;

}

Jump in the discussion.

No email address required.



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