[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 / qa] [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: 1702339635900636.jpg (35 KB, 324x576)
35 KB
35 KB JPG
A language for sex havers. It's strick typing system helps bring job security and filters chuds.
>>
>>102449697
>sex havers
If I learn Rust, will a cute trans girl let me suck her dick?
>>
>>102449697
>sex havers
yeah, if you consider having your ass pounded sex
>>
sex is something you do, not something you have
>>
>>102449744
doesn't matter, had sex
>>
>>102449763
sex is not something that you just dump something on. it's not a big truck. it's a series of tubes.
>>
File: Tohru shrug.gif (1.56 MB, 540x460)
1.56 MB
1.56 MB GIF
>>102449697
Types are just training wheels for sucky programmers.
>>
>>102449767
>had
so you no longer have it?
>>
>>102449697
lol AI can shit out rust code just as easily as it can python, what a useless "skill"
>>
>>102449697
Use Kotlin or Java. Java is like Stardew Valley. Comfortable, the code just flows. Getting anything done in Rust is like playing chess and League at the same time. Comparable in terms of mental effort and insufferable people yelling at you on the Internet.
>>
>>102449908
mommy took it and will only give it back if I'm a good boy
>>
#define auto fn
>>
>>102449697
template <typename T>
using Rc = std::shared_ptr<T>;
>>
>>102449697
I don't like hobby languages, hobby is synonymous with "wasting time". Also last night I dreamt of being at a swimming pool where everyone admired their cocks in the reflection of the window, and got it on with some guy's mom in a cave.
>>
>>102449763
Don't be obtuse
Meaning is use
>>
>>102449911
very easy to make shit code with ai, yes
>>
>>102450302
ai will replace u bitch shut the fuck up, lmao you wasted your life on a worthless profession.
>>
>>102450315
kys nocoder
>>
>>102450331
ai made me a god coder and I dont even program bitch you're jealous.
>>
>>102449763
I'm going to do sex with your mom
>>
>>102449763
nobody calls them sex doors
>>
>>102449763
You wouldn't download sex
>>
>>102449697
>A language for sex havers
Isn't Rust shilled by trannies, who by-and-large are bitter incels?
>>
>cut his dick off
>have sex
huh?
>>
what retard came up with idea to put numbers in common type names?
>>
>>102449911
not really. most of it doesn't work
>>
>>102449763
have sex
>>
>>102449697
just use C#
it's almost as fast, has a good type system and actually has jobs
there's no point in using Rust, we already had memory safe languages that are widely used
>>
>>102449763
sex is both, dummy
>>
>>102453571
>C hashtag
kek
>>
>>102452160
Way better for comprehension than having to memorize adjectives (long, short, wide, narrow, straight, gay)
>>
>>102449697
buttsecs is not real sex lmoa
>>
>>102451968
No, the have sex with one another.
Source: PornHub
>>
>>102449697
>sex havers
BUSSY DOES NOT EXIST, THAT'S A MAN'S ASS. And putting your dick in an ass is NOT sex, putting your dick in a man's ass also makes you a sexless faggot.

ALL FIELDS
>>
>>102453571
Go mogs
>>
File: 1723909499510381.jpg (74 KB, 668x798)
74 KB
74 KB JPG
Why would anyone ever use the standard "int", "unsigned int", etc. types in C/C++? I always use explicit types, I think it just makes more sense and I feel like I understand my code better if I see the size of the type right in front of my eyes.
>>
>>102453957
>the size of the type
the entire point of C was to abstract that away
>>
>>102453975
How does that even make sense? C code written for 16-bit architecture that uses "int, unsigned long long, etc." is just asking for trouble if you try to compile it for 32-bit or 64-bit.
>>
>>102453957
it kinda depends on the application
if you're reading/writing a specified binary format then the size types like uint8_t are great
but normal programs don't really need the size, all you need to note is the range, like above 2 billion you can't use it, you gotta use long
>>
>>102454001
What is the correct way to handle endianness in binary formats when reading/writing structs? Is it to just do the reading/writing at byte level?
>>
>>102454022
Short answer yes. You also do need to keep in mind that layout on one machine might be different than on another, not just due to endianness. If you need better performance than byte level serdes then you need to be able to know the endianness of the source and target machines for larger-than-byte mappings. You also need to ensure alignment unless your machine supports unaligned access (which itself is typically more costly.)
>>
>>102454022
it's a bit hard for structs, but you can manually convert ints between endianness using
https://linux.die.net/man/3/htons
or maybe https://linux.die.net/man/3/endian
>>
>>102453995
not really
>>
>>102453975
>the entire point of C was to abstract that away
That was the point of the languages C stole from. In C, int means 16-bit and long means 32-bit.
>>
>>102453695
#define straight restrict
#define gay __attribute((__may_alias__))
>>
>>102453920
sad post
this is what zero bussy does to a mf
>>
File: trans_shark.jpg (238 KB, 1536x2048)
238 KB
238 KB JPG
>>102449736
cute?
>>
>>102453995
Yo let me rev up my 16 bit source code real quick.
>>
File: 1715353028415361.jpg (1.46 MB, 1935x1490)
1.46 MB
1.46 MB JPG
>>102454644
Have you ever heard of porting old software?
>>
>>102453957
You just use size_t most of the time anyway.
>>
>>102454681
I use size_t for array indexing. I don't see how you would use it "most of the time".
>>
>>102454725
Array indices, element counts, etc. I use it way more often than int, int isn't very useful.
>>
>>102454620
I'm looking for people who are a bit younger and more feminine, sorry. But I like the plastic shark you're holding in your selfie!
>>
File: 1701220535027882.png (46 KB, 1600x1200)
46 KB
46 KB PNG
>>102454746
I still don't see how you can say you use it "most of the time". It's for a very specific use case, as we both mentioned. I use all sorts of types all the time. Though I agree that most of the time unsigned integer is better suited than signed.
>>
>>102454771
I mean most of the time I want an integer type. Sometimes I also use ssize_t or uintptr_t.
>>
>>102454824
I use size_t explicitly for sizes and indexes. Not much else, for other unsigned int stuff I choose between uint8_t, uint16_t, uint32_t and uint64_t.
>>
>>102454824
I don't get the point of ssize_t (or Linux syscalls using -4096..-1 for errnos)
You can compare size_t against -1 to check if there was an error
>>
>>102454847
It can be convenient when there are several possible errors and you want to check for them with < 0. But I use it much less often than regular size_t.
>>
>>102454859
the only defined negative value for ssize_t is -1 though
>>
>>102449697
I use rust and I don't have sex.
Crates for this?
:(
>>
>>102455696
Oops...
>>
>>102449697
false.
t. rust-using incel



[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.