Since I'm not trans (albeit I do get sucky sucky from one every Sunday), is there any reason for me to use Rust?
if you plan on being trans or are a masochist
>>105950535 (OP)memory safety if you are below 100 iq
>>105950579the memory safety "crisis" solved:
1. you allocate memory
2. you free it back
>>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.
>>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.
print("Hello, World!")
>22 bytes
How can cniles even compete?
>>105950535 (OP)>what is a static binarydumb 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
Rust includes a lot of stuff by default, like:
>Panic handling
>Stack unwinding
>Threading support
>Safety/runtime checks
>LLVM-based optimizations
>>105950598What fucking memory leaks are you gonna get from printing "Hello World!"?
>>105950535 (OP)meanwhile, indie programming language chads keep winning so hard that we get tired of winning. 253 bytes, niggas.
>>105950535 (OP)Is hello world going to pass arguments ?
>>105950789How is rust less verbose when OP's example shows a 230x larger size?
>>105950535 (OP)your system already comes with c libraries, rust's have to be bundled there
>>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?
>>105950535 (OP)Only 3.5M?
https://github.com/mTvare6/hello-world.rs
>>105950535 (OP)You could reduce at C filesize if you didn't include stdio
>>105950535 (OP)>is there any reason for me to use Rust?a job
https://job-boards.greenhouse.io/xai/jobs/4789505007
>>105951594I know, it's quite bad at it
>>105950780>also enjoy your preprocessor mangling all your declarations and relying on #include like a fucking cavemanGood to know LLMs still can't tell C and C++ apart.
>>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
>>105950676> under 300 bytesYou can actually save space with rust by
apt-get remove --purge rust
>>105950906>Panic handling>Stack unwinding>Threading support>Safety/runtime checks>LLVM-based optimizations3 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.
>>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.
>>105950746just ran this exact thing in python, the interpreter loaded to run it was 9.5MB in ram (python 3.13.5)
>>105950746oh? how big is the produced exe file?
>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
Small Hello World is easy but can you make a sub 10k FizzBuzz?
>>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?
>>105952096And it has a super bowl ad involving indians on trains and wearing sunglasses