Thread 105950535 - /g/ [Archived: 284 hours ago]

Anonymous
7/18/2025, 11:05:57 PM No.105950535
GwKROw2WwAAnRpB
GwKROw2WwAAnRpB
md5: 8525b98720a5494b7d1c68988e4c0dde๐Ÿ”
Since I'm not trans (albeit I do get sucky sucky from one every Sunday), is there any reason for me to use Rust?
Replies: >>105950579 >>105950598 >>105950676 >>105950690 >>105950780 >>105950954 >>105951136 >>105951168 >>105951236 >>105951334 >>105951403 >>105951420 >>105951469 >>105951485 >>105951507 >>105951524 >>105951588 >>105951844 >>105952063 >>105952129
Anonymous
7/18/2025, 11:10:43 PM No.105950578
if you plan on being trans or are a masochist
Anonymous
7/18/2025, 11:10:47 PM No.105950579
>>105950535 (OP)
memory safety if you are below 100 iq
Replies: >>105950624 >>105950789
Anonymous
7/18/2025, 11:12:54 PM No.105950598
>>105950535 (OP)
now compare memory leaks
Replies: >>105950935 >>105951594
Anonymous
7/18/2025, 11:15:07 PM No.105950624
>>105950579
the memory safety "crisis" solved:
1. you allocate memory
2. you free it back
Replies: >>105950780
Anonymous
7/18/2025, 11:19:17 PM No.105950676
>>105950535 (OP)
Retard, rust makes a static binary by default, if you really want to you can make a sub kilobytes binary, heck i think you can make it under 300 bytes.
Replies: >>105950943 >>105951888
Anonymous
7/18/2025, 11:20:25 PM No.105950690
>>105950535 (OP)
If you like C just use C. Rust is for young bloods not old farts with brain damage from years of abuse like us.
Anonymous
7/18/2025, 11:24:51 PM No.105950746
1632516026321
1632516026321
md5: 35500d692549b29eaa332ce8f9402b2d๐Ÿ”
print("Hello, World!")

>22 bytes

How can cniles even compete?
Replies: >>105951304 >>105952063 >>105952095
Anonymous
7/18/2025, 11:28:09 PM No.105950780
>>105950535 (OP)
>what is a static binary
dumb bitch
also enjoy your preprocessor mangling all your declarations and relying on #include like a fucking caveman

>>105950624
>nooooooo how dare you use smart pointers or lifetimes to simplify memory management, you MUST manually allocate and deallocate using ::malloc() and ::free()!!!!!!!!!!! how dare you seek convenience or simplicity!!!!!! no you cant have destructors either you have to have detached functions to call free on resources and call those functions instead of just having the destructor run when the object goes off the stack or is deallocated!!!!! reeeeeeee
Replies: >>105951657
Anonymous
7/18/2025, 11:29:10 PM No.105950789
>>105950579
>doing things manually makes me look smart because verbosity and complexity makes me look cryptic and idiots will just think im really smart
kys fag
Replies: >>105951252
Anonymous
7/18/2025, 11:39:58 PM No.105950906
Rust includes a lot of stuff by default, like:
>Panic handling
>Stack unwinding
>Threading support
>Safety/runtime checks
>LLVM-based optimizations
Replies: >>105951944
Anonymous
7/18/2025, 11:43:28 PM No.105950935
>>105950598
What fucking memory leaks are you gonna get from printing "Hello World!"?
Replies: >>105951594
Anonymous
7/18/2025, 11:44:28 PM No.105950943
>>105950676
Do it pussy
Anonymous
7/18/2025, 11:46:01 PM No.105950954
>>105950535 (OP)
rust: total 3652
C : total 60

hrmmm, curious
Anonymous
7/19/2025, 12:08:43 AM No.105951136
1752876482504
1752876482504
md5: ff6569b1b0ffb813b746d90824dd52a8๐Ÿ”
>>105950535 (OP)
meanwhile, indie programming language chads keep winning so hard that we get tired of winning. 253 bytes, niggas.
Anonymous
7/19/2025, 12:11:08 AM No.105951168
>>105950535 (OP)
If you aren't a bigot
Anonymous
7/19/2025, 12:18:45 AM No.105951236
simple
simple
md5: cb837f144cb7520b6683afbd454a24b0๐Ÿ”
>>105950535 (OP)
Is hello world going to pass arguments ?
Replies: >>105951631
Anonymous
7/19/2025, 12:20:38 AM No.105951252
>>105950789
How is rust less verbose when OP's example shows a 230x larger size?
Replies: >>105951469
Anonymous
7/19/2025, 12:26:26 AM No.105951304
>>105950746
bloat, 21 bytes:
perl -E 'say "hello"'
Anonymous
7/19/2025, 12:31:05 AM No.105951334
>>105950535 (OP)
type classes are neat
Anonymous
7/19/2025, 12:40:28 AM No.105951403
>>105950535 (OP)
your system already comes with c libraries, rust's have to be bundled there
Anonymous
7/19/2025, 12:43:14 AM No.105951420
>>105950535 (OP)
Both of those are huge for a hello world, neither of them are optimized (let alone for size), and one of them has a shitload of debug symbols included. Can't you at least flamebait with a real problem?
Anonymous
7/19/2025, 12:48:06 AM No.105951469
>>105950535 (OP)
>>105951252
>weekly I left the debug symbols in thread
all fields
Anonymous
7/19/2025, 12:49:38 AM No.105951485
>>105950535 (OP)
Only 3.5M?
https://github.com/mTvare6/hello-world.rs
Anonymous
7/19/2025, 12:52:15 AM No.105951507
>>105950535 (OP)
You could reduce at C filesize if you didn't include stdio
Anonymous
7/19/2025, 12:53:57 AM No.105951524
>>105950535 (OP)
>this thread again
>hello world tranny bullshit fake problem
kys tranny.
Anonymous
7/19/2025, 1:03:35 AM No.105951588
1722737006788626
1722737006788626
md5: 48b44382bfbea4a45b26719f5e8af818๐Ÿ”
>>105950535 (OP)
>is there any reason for me to use Rust?
a job
https://job-boards.greenhouse.io/xai/jobs/4789505007
Anonymous
7/19/2025, 1:04:34 AM No.105951594
>>105950598
>>105950935
rust doesnt stop leaks
Replies: >>105951602
Anonymous
7/19/2025, 1:05:43 AM No.105951602
>>105951594
I know, it's quite bad at it
Anonymous
7/19/2025, 1:12:06 AM No.105951631
jshit
jshit
md5: 313a04bfc4c66d15a24abbad408f043a๐Ÿ”
>>105951236
OP has java syndrome
Anonymous
7/19/2025, 1:18:17 AM No.105951657
>>105950780
>also enjoy your preprocessor mangling all your declarations and relying on #include like a fucking caveman
Good to know LLMs still can't tell C and C++ apart.
Anonymous
7/19/2025, 1:45:30 AM No.105951844
>>105950535 (OP)
Cargo (the package manager)
Thats literally it, theres no other reason (and its a damn good reason)
If you use the +Nigger license it cancels out how AIDS-ridden the userbase is
Anonymous
7/19/2025, 1:50:41 AM No.105951888
>>105950676
> under 300 bytes
You can actually save space with rust by
apt-get remove --purge rust
Anonymous
7/19/2025, 1:59:53 AM No.105951944
>>105950906
>Panic handling
>Stack unwinding
>Threading support
>Safety/runtime checks
>LLVM-based optimizations
3 MB? Even go with itโ€™s grotesquely fat runtime is only 1MB. And then thereโ€™s tinygo, if you trust yourself to understand memory, pointers and heap.
Anonymous
7/19/2025, 2:20:34 AM No.105952063
>>105950535 (OP)
seems to me like just a compilation settings/flags issue. rust probably statically links lots of shit by default
keep in mind that the '15.57KiB' c executable probably uses the operating system's libc.so file which is ~2.5MB.

>>105950746
just ran this exact thing in python, the interpreter loaded to run it was 9.5MB in ram (python 3.13.5)
Anonymous
7/19/2025, 2:24:44 AM No.105952095
>>105950746
oh? how big is the produced exe file?
Anonymous
7/19/2025, 2:24:58 AM No.105952096
>it's the year 2053, the new programming language "Vanejaramansh" needs 128GB of RAM, 500 dependencies, 32 cores, 10k NPU cores, gigalan internet, 2 cents, to compilate 'Hello World' using the Brahmantic smart compiler into a SecureMaaxโ„ข Binary
Replies: >>105952251
Anonymous
7/19/2025, 2:27:24 AM No.105952115
Small Hello World is easy but can you make a sub 10k FizzBuzz?
Anonymous
7/19/2025, 2:29:53 AM No.105952129
>>105950535 (OP)
Maybe you have a multipersonality disorder and one of your other personalities is an elite hacker good at buffer overflow exploits. How can you safeguard your code from yourself using C in that situation?
Anonymous
7/19/2025, 2:51:43 AM No.105952251
>>105952096
And it has a super bowl ad involving indians on trains and wearing sunglasses