Thread 105682565 - /g/ [Archived: 711 hours ago]

Anonymous
6/23/2025, 8:15:45 PM No.105682565
1735777652583573
1735777652583573
md5: ffa28630618eb1ee45f744ed1255a7bf๐Ÿ”
Rust-sisters... our response??
Replies: >>105682690 >>105683830 >>105683861 >>105683906 >>105684105 >>105684566 >>105685415 >>105685533 >>105687185 >>105689029 >>105690531 >>105692095 >>105692136 >>105692174 >>105692376 >>105693869 >>105694813 >>105698824 >>105703056 >>105704985 >>105707590 >>105708101 >>105710363
Anonymous
6/23/2025, 8:20:01 PM No.105682591
1698125955269071
1698125955269071
md5: 8167cfea174e85db6bcc6daccda08b63๐Ÿ”
-ACK
Replies: >>105698650 >>105710222
Anonymous
6/23/2025, 8:21:08 PM No.105682602
This is why I'm waiting for Jai
Replies: >>105682789 >>105685402 >>105687022 >>105696959 >>105698754 >>105701155 >>105703060 >>105703834 >>105706168 >>105710693
Anonymous
6/23/2025, 8:29:33 PM No.105682690
>>105682565 (OP)
A lot of these complaints are stupid and evidently written by a nocoder. For example
>safe by default but you have to use unsafe to do any real work
This is good because it eliminates nearly all sources of memory related bugs to a narrow region of the code.
>90% fighting the compiler, 10% writing code
This is because he's writing bad code. It's better to refuse to compile it than to compile it anyway, and wind up with a memory leak in production.
The other complaints are similar nonsense.
Replies: >>105682714 >>105682831 >>105682860 >>105683769 >>105683938 >>105684660 >>105685239 >>105692111
Anonymous
6/23/2025, 8:33:37 PM No.105682714
>>105682690
AI reply disregarded
Replies: >>105682740
Anonymous
6/23/2025, 8:36:45 PM No.105682740
>>105682714
Based LLM sniffer
Anonymous
6/23/2025, 8:43:12 PM No.105682789
>>105682602
>jai
Vaporware
Anonymous
6/23/2025, 8:47:56 PM No.105682831
>>105682690
>wind up with a memory leak in production.
rust programs have memroy leaks all the time
Anonymous
6/23/2025, 8:50:58 PM No.105682860
>>105682690
>wind up with a memory leak in production.
oh no, how will my 32GB of ram cope.
this is only really relevant for security sensitive software
Replies: >>105682909 >>105685541 >>105686892 >>105692376
Anonymous
6/23/2025, 8:55:24 PM No.105682901
Does the borrow checker prevent Rust from being turning complete? If you can't have multiple owners to a single mutable data source then doesn't this make certain algorithms impossible to express in Rust? Or is there a way to turn off the borrow checker when needed so you can express these problems?
Replies: >>105683156 >>105685539 >>105692061 >>105692434 >>105694029
Anonymous
6/23/2025, 8:56:25 PM No.105682909
>>105682860
Unacceptable in embedded. Which it looks like Rust is doa outside a few niche aerospace and automotive applications.
Anonymous
6/23/2025, 8:56:27 PM No.105682910
Screenshot 2025-06-23 at 21-47-27 core simd - Rust
Screenshot 2025-06-23 at 21-47-27 core simd - Rust
md5: b22a18945a562f59394e567bce25606b๐Ÿ”
2 more weeks
Replies: >>105683305 >>105687028 >>105692716
Anonymous
6/23/2025, 9:23:38 PM No.105683156
>>105682901
Turing completeness has nothing to do with "certain algorithms". And you can have multiple ownership with Cell.
This is a boring bait thread, get something more spicy, OP.
Replies: >>105683796
Anonymous
6/23/2025, 9:43:08 PM No.105683305
>>105682910
the leftist two more weeks meme is so disrespectufl to the antichrist
Anonymous
6/23/2025, 10:29:52 PM No.105683704
file
file
md5: 6329c948d22b90f3f5d0550c3f880ce5๐Ÿ”
>105682602
two more weeks.
Anonymous
6/23/2025, 10:38:25 PM No.105683769
>>105682690
>This is good because it eliminates nearly all sources of memory related bugs to a narrow region of the code.
basic programming knowledge will prevent all of what you described.
>and wind up with a memory leak in production.
rust programs can leak memory. i'm not sure what kind of heroin you're smoking. they haven't made a compiler that's completely foolproof.
Anonymous
6/23/2025, 10:42:04 PM No.105683796
>>105683156
If you can't express all computations possible by a computer using safe Rust then how is it turning complete?
Replies: >>105683824
Anonymous
6/23/2025, 10:45:32 PM No.105683824
>>105683796
Turing completeness isn't what you think it is.
C is not a turing complete language either.
Replies: >>105683908 >>105692081 >>105693648
Anonymous
6/23/2025, 10:46:34 PM No.105683830
>>105682565 (OP)
I mean, dude's not wrong, specially on the last point, extremely specially the fucking last point.
This is the language for the mentally ill by the mentally ill.
Replies: >>105683852
Anonymous
6/23/2025, 10:50:00 PM No.105683852
>>105683830
they have a code of conduct they abide by with their projects, chat rooms etc. but their shills and supporters will go all over the internet to sites like this and just attack people for using <anything> other than rust. it's done them great reputational damage, this compounded by the fact that you have major corporations sitting on the rust board with certain corporate agendas.
Replies: >>105684044 >>105684238
Anonymous
6/23/2025, 10:51:05 PM No.105683861
Screenshot 2025-06-24 065027
Screenshot 2025-06-24 065027
md5: b7fd7e82847bcec0f304f371908a92b7๐Ÿ”
>>105682565 (OP)
VS Code doesn't have this problem.
Stop using meme text editors.
Replies: >>105683875 >>105684729 >>105685575
Anonymous
6/23/2025, 10:52:53 PM No.105683875
>>105683861
based VS Chad casually dabbing on vim trannies
Anonymous
6/23/2025, 10:57:17 PM No.105683906
>>105682565 (OP)
why should i care about a literally who's opinion?
Anonymous
6/23/2025, 10:57:42 PM No.105683908
>>105683824
>A system is considered Turing complete if it can perform any computation that can be described algorithmically, given enough time and memory. This means it can simulate a Turing machine, which is a theoretical model of computation proposed by Alan Turing.
If the borrow checker prevents certain algorithms from being expressed then how is it turning complete?
Replies: >>105683958 >>105685356
Anonymous
6/23/2025, 11:00:38 PM No.105683938
>>105682690
Anon-chan, look up java memory leak and see that even in memory safe languages leaks are still an issue, then and only then use stupid memewords like nocoder, or rather don't because you come off as an insufferable retard
Anonymous
6/23/2025, 11:02:52 PM No.105683958
>>105683908
Rust does not prevent any algorithms from being expressed. Errors are not algorithms.
Replies: >>105684073
Anonymous
6/23/2025, 11:12:41 PM No.105684044
>>105683852
CoCks are always enforced a single way, you only need to see literally any single FOSS project, specially GNOME, if you harass or say anything bad and you're right wing, you're banned within seconds, but then you have all the usual commies who literally harass people, insult, defame and other illegal shit in the forums and forums and no one says anything because they have the right politics.
This is quite literally why CoCks are bad in 200% of the situations because the enforces are always powertripping losers who will do whatever he can to harass and beat certain people while literally doing nothing with real, blatant violations from other people.
Replies: >>105696948
Anonymous
6/23/2025, 11:16:59 PM No.105684073
>>105683958
It certainly does prevent algorithms from being expressed. For example the standard 2 grid implementation of game of life using threads is impossible in Rust due to the borrow checker. You have to use a different algorithm than what's normally used to get around the borrow checker. You are trading freedom and ability to express all possible states for memory safety without a garbage collector, this is Rust's aim. It's astounding you're arguing against this point given it's the front and center claim of Rust.
Replies: >>105684113
Anonymous
6/23/2025, 11:21:43 PM No.105684105
>>105682565 (OP)
Chad and Chad++ can't stop winning
Anonymous
6/23/2025, 11:22:30 PM No.105684113
>>105684073
>You have to use a different algorithm than what's normally used to get around the borrow checker.
NTA, but turing completeness demands a solution, not a specific algorithm.
But in any ways, turing completeness is meaningless. C is also not turing complete.
Replies: >>105684263
Anonymous
6/23/2025, 11:38:45 PM No.105684238
>>105683852
>but their shills and supporters will go all over the internet to sites like this and just attack people for using <anything> other than rust.
Rust programmers only hate C and C++ because they have a lot of years of experience using C and C++ and know how much they suck. The constant lying from C and C++ programmers hasn't helped either. Most Rust programmers like other languages too.

>it's done them great reputational damage, this compounded by the fact that you have major corporations sitting on the rust board with certain corporate agendas.
Look at who is on the Linux Foundation and the C and C++ committees. You C and C++ shills used to say the opposite when Rust had less corporate support and was mostly Mozilla and non-profit free software developers using it. I remember you complaining that Rust has no jobs and no support from real corporations. Now that companies like Microsoft and Google are supporting Rust, suddenly major corporations are bad (but the same exact companies are somehow good when it comes to C, C++, and Linux).
Replies: >>105684305
Anonymous
6/23/2025, 11:42:48 PM No.105684263
>>105684113
That's a different definition from the standard definition of Turing completeness I pulled from wikipedia. Nice to know I guess.
Anonymous
6/23/2025, 11:46:36 PM No.105684305
>>105684238
> "I remember you complaining"
>when your iq is so low that you're using chatgpt. amazing. helps if you edit your posts , you fucking idiot. lmao. this board and rust shills using ai bots are a joke.
Replies: >>105684378
Anonymous
6/23/2025, 11:56:05 PM No.105684378
>>105684305
>>when your iq is so low that you're using chatgpt. amazing. helps if you edit your posts , you fucking idiot. lmao. this board and rust shills using ai bots are a joke.
I don't need an AI to spot your inability to write proper English. I remember you, specifically, complaining about Rust not having jobs and not being supported by major corporations. You were bragging about how C was used by all the companies and Rust is nowhere. Now all of a sudden Rust is bad because companies are using it.
Replies: >>105684393
Anonymous
6/23/2025, 11:59:08 PM No.105684393
>>105684378
Rust is bad because despite best efforts to not fuck up standard library, they still fucked it up and I program in no_std, same as in C.
Anonymous
6/24/2025, 12:21:17 AM No.105684566
1746483824659387
1746483824659387
md5: 21e2d4d8721e795dca2b4cd7dc54b727๐Ÿ”
>>105682565 (OP)
Something isn't right with Rust, not just as a programming language but as a community and concept. No I don't have any proof, but I do have a gut feeling which has been right even when the entire world disagreed many times before (corona/mRNA vaccines for example).

For this reason, I will never use Rust.
Replies: >>105684701 >>105685172 >>105692429 >>105700613 >>105709130
Anฮฟnymฮฟฯ…s
6/24/2025, 12:35:55 AM No.105684660
>>105682690
>memory leak in production
someone tell this faggot that rust considers memory leaks to be safe
Anonymous
6/24/2025, 12:40:30 AM No.105684701
>>105684566
You ever take your children to the park and you see a men with a wig and a trench coat there that you just know isn't right.
You could give him the beneficent of the doubt sure but then your children become flesh lights.

That's Rust.
Anonymous
6/24/2025, 12:44:48 AM No.105684729
>>105683861
thanks for analyzing the four hundred and 10 packages attached to this framework every few minutes rust-analyzer extension for vsc-san...
Anonymous
6/24/2025, 1:49:52 AM No.105685172
>>105684566
This is because of the C/C++ and Unix heritage in Rust. C/C++ and Unix are "just wrong" so anything that follows that philosophy feels wrong. "AT&T" syntax assembly, awk, shell scripts, makefiles, Unix linker scripts, etc. fall into that category too. Rust shouldn't have copied the C/C++ syntax and philosophy. It should have stuck with the ML heritage.
Anonymous
6/24/2025, 1:52:24 AM No.105685191
Skill issues.
Anonymous
6/24/2025, 1:59:23 AM No.105685239
>>105682690
Memory leak is a nonproblem.
It's safer than use-after-free which Rust can prevent.
Replies: >>105685284 >>105693624
Anonymous
6/24/2025, 2:05:20 AM No.105685284
>>105685239
>use-after-free which Rust can prevent.
wrong
Replies: >>105685297
Anonymous
6/24/2025, 2:07:39 AM No.105685297
>>105685284
It's mathematically proven that use-after-free will never occur in a well-formed Rust program without unsafe code.
Replies: >>105685333 >>105688919 >>105688950 >>105692342
Anonymous
6/24/2025, 2:11:23 AM No.105685321
skill issue
Anonymous
6/24/2025, 2:13:33 AM No.105685333
>>105685297
Same holds for C++.
Anonymous
6/24/2025, 2:17:20 AM No.105685356
1734799419282646
1734799419282646
md5: 0bdffa5d310f459338100887b2664615๐Ÿ”
>>105683908
>turning complete
I don't care what side of what argument you're on. You're an idiot.
Replies: >>105685527
Anonymous
6/24/2025, 2:22:44 AM No.105685402
>>105682602
Not real until public release, not even worth looking at until then.
crusty crustylol
6/24/2025, 2:24:06 AM No.105685410
ii
Anonymous
6/24/2025, 2:24:42 AM No.105685415
>>105682565 (OP)
That just reads like sour grapes.
Anonymous
6/24/2025, 2:41:59 AM No.105685505
why should Rust programmers that actually understand what the compiler/tooling does for them even reply to retards? what's the point?
Anonymous
6/24/2025, 2:44:36 AM No.105685527
>>105685356
>Xir picks on a spelling mistake and resorts to ad hominem instead of addressing the point
Rust 101. It's funny that you guys resort to this in every single thread, every single time someone brings up a point you don't like or you cant refute out of hand with hand-waving. Every Rust thread, Rust defenders act so similar almost like you guys are reading from the same playbook. It's so robotic and obvious. Try harder.
Replies: >>105685539
Anonymous
6/24/2025, 2:46:42 AM No.105685533
>>105682565 (OP)
Thatโ€™s why I just use C++20. Too many sweats in rust.
Anonymous
6/24/2025, 2:47:48 AM No.105685539
>>105682901
you use lifetime annotations for compile-time guarantees (hard) or use a runtime mechanism like Arc with a Mutex (easy).
compile time checking is about making guarantees about your code, and some things are not decideable due to the halting problem.
>>105685527
newcoder 101. it's funny that you guys resort to flinging shit rather than consulting literature.
Anonymous
6/24/2025, 2:47:58 AM No.105685541
>>105682860
I thought Rust was suppose to support embedded systems.
Replies: >>105685551
Anonymous
6/24/2025, 2:49:13 AM No.105685551
>>105685541
to consult: https://embassy.dev/
Anonymous
6/24/2025, 2:52:30 AM No.105685575
>>105683861
Holy crap what tf is a Rc<Refcell<mutex. I thought rust was suppose to be a better c++ and yet itโ€™s even more unreadable.
Replies: >>105686587 >>105686945
Anonymous
6/24/2025, 6:05:33 AM No.105686587
>>105685575
What's unreadable about it? It's only a compound type.
Anonymous
6/24/2025, 7:00:10 AM No.105686892
>>105682860
>oh my god a hello world that weighs a whooping 4 megabytes?
>and compilation artifacts take a lot of space too!
>the LSP is freezing my IDE!

>my code is shit? Heh, who cares, my PC is good enough for it anyway
Anonymous
6/24/2025, 7:10:27 AM No.105686945
>>105685575
>my valuables, in a box, on a seat, of a car, on the road, on earth? What the fuck does that mean?
>oh you mean ConstrainedValuableSecureAutomotiveRoadTransportationPlanet? Then why didn't you just say so from the start?
Anonymous
6/24/2025, 7:26:02 AM No.105687022
>>105682602
>Jai
jai sri ram saaaaaaar
Anonymous
6/24/2025, 7:27:03 AM No.105687028
>>105682910
Meanwhile C++ has no std::net or std::process library
Replies: >>105687906 >>105701652
Anonymous
6/24/2025, 7:53:35 AM No.105687185
>>105682565 (OP)
yes, and?
Anonymous
6/24/2025, 9:59:58 AM No.105687906
>>105687028
Which is a good thing.
Replies: >>105691364 >>105692726
Anonymous
6/24/2025, 10:10:23 AM No.105687948
same coin
same coin
md5: efaa22853ee10c5607f9db340e6dc7ed๐Ÿ”
#![no_std]
#![no_main]

use core::panic::PanicInfo;
use core::arch::asm;

#[panic_handler]
fn panic(_info: &PanicInfo) -> ! {
loop {} // >A-AAAAAAAAAAAAAACK!
}


#[unsafe(no_mangle)] // unmangled corpses very unsafe
pub extern "C" fn _start() -> ! {
let msg = "Hello, World!\n";
unsafe {
asm!(
"syscall",
in("rax") 1,
in("rdi") 1,
in("rsi") msg.as_ptr(),
in("rdx") msg.len(),
options(nostack)
);
asm!(
"syscall",
in("rax") 60,
in("rdi") 0,
options(nostack, noreturn, nomem)
);
}
}

I found a way to make troons and chuds seethe. Reminder: resulting binary is smaller than equivalent C.
Replies: >>105688158 >>105688988 >>105691198 >>105694814
Anonymous
6/24/2025, 10:49:45 AM No.105688158
>>105687948
> uses inline assembler
> wow! it's small!
so it fucking should be. faggot.
Replies: >>105688177
Anonymous
6/24/2025, 10:53:41 AM No.105688177
>>105688158
Not an argument. C binary is around 400 bytes bigger.
Replies: >>105688244
Anonymous
6/24/2025, 11:07:14 AM No.105688244
>>105688177
> 400 bytes bigger
how? did you strip the C object of its symbols and other trash?
Replies: >>105688276 >>105692741
Anonymous
6/24/2025, 11:12:52 AM No.105688276
>>105688244
I programmed in C for longer than you will in your fizzbuzzing career, you don't have to question me.
>4416 target/x86_64-unknown-linux-gnu/release/nostd-project
llvm's ld further halved the binary size without using mutilating flags such as --nmagic
Replies: >>105688330 >>105705851
Anonymous
6/24/2025, 11:24:02 AM No.105688330
>>105688276
>I programmed in C for longer than you
you don't know who anyone is. do you have down syndrome?
> you don't have to question me.
i will do whatever i want, especially when you share no c code, or compiler args for c. also, wouldn't it be smaller still without the panic handler? i don't know why the fuck you'd need that if you're just loading up registers and printing text. is that a rust tranny thing?
Replies: >>105688344
Anonymous
6/24/2025, 11:26:07 AM No.105688344
>>105688330
I know that you're a nobody with no useful opinion of any kind just from the way you write your posts.
>I don't know why the fuck you'd need that
try reading the manual
Replies: >>105688365
Anonymous
6/24/2025, 11:29:01 AM No.105688365
>>105688344
> can't explain it
so the faรงade of being this expert programmer sure slipped the fuck off your obese tranny face very quickly. i can't imagine knowing so little about a language you're trying to shill. did you copy paste this code from stackoverflow or was it chatgpt?
Replies: >>105688371
Anonymous
6/24/2025, 11:30:02 AM No.105688371
>>105688365
I don't get paid to educate illiterate special needs.
Anonymous
6/24/2025, 1:12:53 PM No.105688919
>>105685297
>without unsafe code.
Code that does nothing is indeed safe.
Replies: >>105692342
Anonymous
6/24/2025, 1:17:26 PM No.105688950
>>105685297
wrong
pub trait P<T>: Fn() -> T {}
impl<T, F: Fn() -> T> P<T> for F {}

fn a<A: for<'a> P<&'a B>, B>(_: A, a: A::Output) -> &'static B {
a
}

pub fn main() {
println!("{:?}", { let v = vec![vec![1]]; a(|| panic!(), &v) });
}

Exited with signal 11 (SIGSEGV): segmentation violation

https://play.rust-lang.org/?version=stable&mode=release&edition=2024&gist=31dea368e3d7ab63a9ff7830a9126afd
Replies: >>105688978
Anonymous
6/24/2025, 1:21:02 PM No.105688978
>>105688950
Nobody would write this.
Replies: >>105688983 >>105694833
Anonymous
6/24/2025, 1:21:19 PM No.105688983
>>105688978
I did
Replies: >>105688988
Anonymous
6/24/2025, 1:22:03 PM No.105688988
>>105688983
Ok, I'm moving back to C.
t. >>105687948
Anonymous
6/24/2025, 1:28:00 PM No.105689029
>>105682565 (OP)
The first four are especially problematic for Rust. Some of this can be solved by using Crust (tsoding's invention)
Replies: >>105689039
Anonymous
6/24/2025, 1:29:54 PM No.105689039
>>105689029
kill yourself
Anonymous
6/24/2025, 4:33:49 PM No.105690531
>>105682565 (OP)
>target folder is larger than node_modules
This is verifiably false. How can anyone even think this, have you used JavaScript recently?
Anonymous
6/24/2025, 5:54:23 PM No.105691198
>>105687948
>aarch64 compiler
>code goes ACK
Replies: >>105691254
Anonymous
6/24/2025, 5:59:28 PM No.105691254
>>105691198
PR welcome.
Anonymous
6/24/2025, 6:09:44 PM No.105691364
>>105687906
List of people who will never be women:
> (You)
Replies: >>105691376
Anonymous
6/24/2025, 6:10:51 PM No.105691376
>>105691364
Women want things done for them, men do things themselves from scratch.
Replies: >>105691483 >>105691493
Anonymous
6/24/2025, 6:22:54 PM No.105691483
>>105691376
Then go program in assembly, midwit.
Replies: >>105691515
Anonymous
6/24/2025, 6:24:03 PM No.105691493
>>105691376
Or better yet go program using vacuum tubes.
Replies: >>105691515
Anonymous
6/24/2025, 6:27:22 PM No.105691515
>>105691483
>>105691493
I accept your concession, tranny.
Replies: >>105694764
Anonymous
6/24/2025, 6:56:46 PM No.105691780
>ur a troon
>no u
Massive homolust aura on both sides. Rust is tainted and so are C++ and C, you can't escape it. That's why you're all acting like women, why cniles spent decades harassing anyone who didn't bend the knee to their lord of savior.
Let go of these emotions and come back to pascal.
Replies: >>105692030
Anonymous
6/24/2025, 7:28:13 PM No.105692030
>>105691780
>pascal
Which one
Anonymous
6/24/2025, 7:29:24 PM No.105692038
>twitter screen cap thread
Anonymous
6/24/2025, 7:33:32 PM No.105692061
>>105682901
>If you can't have multiple owners to a single mutable data source
Reference counting smart pointer. Same thing you would do in literally any language that supports RAII
Anonymous
6/24/2025, 7:35:24 PM No.105692081
>>105683824
C, Rust, brainfuck, redstone and virtually every programming language is Turing complete.
Anonymous
6/24/2025, 7:37:16 PM No.105692095
>>105682565 (OP)
The only argument i need is:
It isn't fun.

I don't want to hate my own existence.
And as if the language wouldn't be bad enough, most of the Rust projects are rewrites!
There are people sitting on their PC, looking at C code in one window and writing equivalent code in Rust in the other.
WHO THE FUCK WANTS TO LIVE LIKE THIS?

Did anyone ever hear someone saying
>i enjoy rewriting existing code into Rust
i surely didnt
Replies: >>105692173 >>105692194
Anonymous
6/24/2025, 7:38:55 PM No.105692111
>>105682690
look at this troon calling others nocoders, while not even knowing what a memory leak is
Anonymous
6/24/2025, 7:43:15 PM No.105692136
>>105682565 (OP)
Rust is like Ada. It sounds good to managers.
Replies: >>105692219
Anonymous
6/24/2025, 7:47:49 PM No.105692173
>>105692095
>And as if the language wouldn't be bad enough, most of the Rust projects are rewrites!
>you wrote a text editor
>EDLIN is a text editor
>YOU'RE CODE IS HECKIN REWRITERINOS OF EDLIN!

>There are people sitting on their PC, looking at C code in one window and writing equivalent code in Rust in the other.
Two different programs that have the same function are not "rewrites." It's like saying all video games are "rewrites" of Pong.
Replies: >>105692200 >>105708144 >>105708180
Anonymous
6/24/2025, 7:47:50 PM No.105692174
>>105682565 (OP)
my software works
you can't even get a working build system or dependency management.

cope and seethe shitter.

that's my response.
Anonymous
6/24/2025, 7:49:34 PM No.105692194
>>105692095
>It isn't fun.
Debugging and writing cmake files isn't fun.
Debugging runtime crashes isn't fun.
Writing header files isn't fun.
Reimplementing hashmaps for every type isn't fun.
Memorizing every library's API semantics isn't fun.
Writing rudimentary code generation isn't fun.
Rust is fun though.

>And as if the language wouldn't be bad enough, most of the Rust projects are rewrites!
So like literally every programming language?
Do you think that majority of projects written in C++, JS, Java, etc are some sort of totally original ideas? Everyone rewrites stuff.

>There are people sitting on their PC, looking at C code in one window and writing equivalent code in Rust in the other.
>WHO THE FUCK WANTS TO LIVE LIKE THIS?
I never met anyone who does this. Are you talking from experience or what?

>Did anyone ever hear someone saying
>>i enjoy rewriting existing code into Rust
>i surely didnt
Me neither. Maybe because barely anyone actually does this and instead go like "oh I like this C/Python/Java/Bash utility, I'm sure I can write something like that but better in C/Python/Java/Bash that I like more!"
Replies: >>105692209 >>105708175
Anonymous
6/24/2025, 7:50:29 PM No.105692200
>>105692173
People who wrote first pong had much more fun than any of us ever will.
Anonymous
6/24/2025, 7:51:31 PM No.105692209
>>105692194
>Writing rudimentary code generation isn't fun.
Rust requires this for every little thing since I can't just include native OS header into Rust and have it just work.
Replies: >>105692230
Anonymous
6/24/2025, 7:52:56 PM No.105692219
>>105692136
>Rust is like Ada. It sounds good to managers.
Ada is corporate because if its shitty early licensing and DoD roots.
Rust is much more popular in hobby space than it is in corporate.
Neither of these languages "sound good to managers". They both require expensive engineers and are not friendly to agile development. Go is what sounds good to managers. It was designed to appeal to inexperienced developers.
Anonymous
6/24/2025, 7:54:35 PM No.105692230
>>105692209
>Rust requires this for every little thing since I can't just include native OS header into Rust and have it just work.
https://github.com/rust-lang/rust-bindgen
You just need to generate bindings. No need to write your own code generation to include C headers.
Replies: >>105692236
Anonymous
6/24/2025, 7:55:05 PM No.105692236
>>105692230
No thanks, I'll stick to C.
Replies: >>105692241
Anonymous
6/24/2025, 7:55:36 PM No.105692241
>>105692236
Who asked?
Replies: >>105692289
Anonymous
6/24/2025, 8:01:41 PM No.105692289
>>105692241
I did, check your emails.
Anonymous
6/24/2025, 8:09:22 PM No.105692342
>>105685297
It hasn't been formally proven. That's what the whole RustBelt thing was for.
>>105688919
Vast majority of programs don't need to use unsafe directly. It is usually confined to some library, and even then, the library might not need to use it, and if it does, will confine it to a tiny corner of the implementation.
Replies: >>105692355 >>105696252
Anonymous
6/24/2025, 8:11:09 PM No.105692355
>>105692342
>directly
nice backpedal
Replies: >>105692402
Anonymous
6/24/2025, 8:14:14 PM No.105692376
>>105682565 (OP)
i don't like rust but that person is a retard self-reporting that he sucks at writing software.

>>105682860
everything is security sensitive. welcome to the internet age. you don't want your software to be part of somebody's exploit.
Replies: >>105692383
Anonymous
6/24/2025, 8:15:17 PM No.105692383
>>105692376
>everything is security sensitive
not games
Replies: >>105692434
Anonymous
6/24/2025, 8:17:25 PM No.105692402
>>105692355
I'm not who you were replying to. Yeah, every program that uses Vec is indirectly using unsafe indirectly, but I'm pretty sure that's not you guys mean when you say that you can't write useful Rust programs without using unsafe.
Replies: >>105692416 >>105692417
Anonymous
6/24/2025, 8:18:47 PM No.105692416
>>105692402
not him but yes thats what is meant when that statement is said in posts
Replies: >>105692427
Anonymous
6/24/2025, 8:18:51 PM No.105692417
>>105692402
Yes I do.
Replies: >>105692427
Anonymous
6/24/2025, 8:20:20 PM No.105692427
>>105692416
>>105692417
Well that's just silly then.
Anonymous
6/24/2025, 8:21:03 PM No.105692429
>>105684566
rust by itself, is a stepping stone language wrongly championed as the future.
There's much to learn from it, but we definitely shouldn't be rewriting important things with it
Replies: >>105692563
Anonymous
6/24/2025, 8:21:32 PM No.105692434
>>105682901
>Does the borrow checker prevent Rust from being turning complete?
no. stop acting retarded.
>If you can't have multiple owners to a single mutable data source then doesn't this make certain algorithms impossible to express in Rust?
turing completeness is about the possible domains for input-output mappings, but even still this is a "no".
>Or is there a way to turn off the borrow checker when needed so you can express these problems?
yes, but it's completely irrelevant because substructural type systems are irrelevant to turing completeness.

>>105692383
if somebody uses your game to cause damage, you're not going to like what happens to your company. if the damage is severe enough, you might just get assfucked by the government.
Replies: >>105692464
Anonymous
6/24/2025, 8:23:26 PM No.105692456
C_Sharp_Logo_2023.svg
C_Sharp_Logo_2023.svg
md5: a7fe629cbd0c79b0f0cc362c42d420a4๐Ÿ”
why isn't there a native language like C#? they all suck
Replies: >>105692754 >>105692799 >>105693094 >>105694065 >>105694774 >>105694792 >>105694953 >>105696962 >>105696990
Anonymous
6/24/2025, 8:24:02 PM No.105692464
>>105692434
or nboody will care at all not that i work on games i have real shit to do
Replies: >>105692598
Anonymous
6/24/2025, 8:35:13 PM No.105692563
>>105692429
>rust by itself, is a stepping stone language wrongly championed as the future.
>There's much to learn from it, but we definitely shouldn't be rewriting important things with it
It's much better than C and C++. C and C++ were worse than older languages but wrongly championed as the future.
Anonymous
6/24/2025, 8:39:25 PM No.105692598
>>105692464
maybe nobody cares at all that your insecure kernel cost somebody millions of dollars. maybe you'll make it big in the casinos so you should get out there and put your net worth on the tables.

or maybe you could listen to me and realize that this is this is risk management 101, and if you are programming in a professional capacity, yes this is absolutely your fucking problem no matter the industry or how trivial you think your software is.
you have to worry not just about public image, but that being taken to court is a catastrophe and the litigious nature of society makes that a guarantee. jfc.
Replies: >>105693734
Anonymous
6/24/2025, 8:52:19 PM No.105692716
>>105682910
portable simd is a meme. it's basically LLVM hints at this point. doubtful it will ever actually be anything more.
Anonymous
6/24/2025, 8:53:26 PM No.105692726
>>105687906
>w-which is a good thing
not everyone wants to use libc to resolve names and crawl some shitty linked list. there is no excuse why the C++ standard library can't have these basic niceties instead of coping by deferring to libc.
Anonymous
6/24/2025, 8:56:41 PM No.105692741
>>105688244
>how?
rust can actually be freestanding without cope flags that don't work nor work portably across C compilers.
Anonymous
6/24/2025, 8:57:52 PM No.105692754
>>105692456
because the semantics of the language assume a garbage collector. the closestst C# like language you'll find that's competitive is vala, which compiles to C + glib
Replies: >>105692865 >>105696956
Anonymous
6/24/2025, 9:03:09 PM No.105692799
>>105692456
you're just a midwit who's afraid of learning new things
Anonymous
6/24/2025, 9:11:22 PM No.105692865
>>105692754
C# has pointers, ref and unsafe keywords, and most of the semantics that assume a garbage collector would work just as well with RAII.
Replies: >>105692949 >>105696954
Anonymous
6/24/2025, 9:20:36 PM No.105692949
>>105692865
ok and? it doesn't refute what I say. you still need a GC and Vala exists.
Replies: >>105692974
Anonymous
6/24/2025, 9:23:06 PM No.105692974
>>105692949
Yes, it does. RAII is not a GC. There is no reason why a C# like language without a GC can't exist.
Replies: >>105692989
Anonymous
6/24/2025, 9:24:27 PM No.105692989
>>105692974
which is why Vala exists ffs.
Anonymous
6/24/2025, 9:36:27 PM No.105693094
>>105692456
probably because nobody likes c# except for the stockholm syndrome retards who were forced to use it. "retards" because the non-retarded ones eventually learned how to think about problems in ways other than the grain exposed by this one piece of shit microsoft abomination.
Anonymous
6/24/2025, 10:40:19 PM No.105693624
>>105685239
This is why letting web devs into embedded is dangerous, rust advertises itself as safe, but it's just empowering retards like you to write unsafe code, because you niggers don't know what you're doing
Replies: >>105694154
Anonymous
6/24/2025, 10:42:46 PM No.105693648
1721810036442412
1721810036442412
md5: 92b6fe910fa21aac7b5ffec9cf9460ed๐Ÿ”
>>105683824
>C is not a turing complete language either.
Replies: >>105693656
Anonymous
6/24/2025, 10:43:22 PM No.105693656
>>105693648
That's correct.
Replies: >>105693668 >>105693718
Anonymous
6/24/2025, 10:44:54 PM No.105693668
>>105693656
I admire your ability to be confident in things you know nothing about
Replies: >>105693701
Anonymous
6/24/2025, 10:48:33 PM No.105693701
>>105693668
Actually, I know more about it than you. Next time research the topic before you open your mouth.
Anonymous
6/24/2025, 10:50:47 PM No.105693718
rust-rock
rust-rock
md5: 6147041b01d4f206576446b00ed668dc๐Ÿ”
>>105693656
>
Replies: >>105693731
Anonymous
6/24/2025, 10:52:42 PM No.105693731
>>105693718
Can't for a counter argument?
Maybe you should try reading books instead of being a meme warrior.
Replies: >>105693743
Anonymous
6/24/2025, 10:53:04 PM No.105693734
>>105692598
>that being taken to court is a catastrophe and the litigious nature of society makes that a guarantee
And now you understand why every license ever has a line like
>you agree that if shit gets fucked up itโ€™s not our fault, remember you chose to use this software
somewhere in it
Anonymous
6/24/2025, 10:54:00 PM No.105693743
it-kadafi
it-kadafi
md5: 2c5704d8997c901e3f2a71877a4464e6๐Ÿ”
>>105693731
you can simulate a turing machine in C
it is turing complete
its not even an argument, none are needed
youre just plainly wrong
Replies: >>105693778 >>105694999
Anonymous
6/24/2025, 10:58:05 PM No.105693778
>>105693743
Heโ€™s trying a gotcha on the technicality that C does not have access to infinite memory. Because of that nobody has ever built a โ€œrealโ€ Turing complete language but it can be proven that if the memory limitations were removed C could indeed simulate any Turing machine
Replies: >>105693796 >>105694114 >>105694999
Anonymous
6/24/2025, 11:00:08 PM No.105693796
gits-cast-watching-(you)
gits-cast-watching-(you)
md5: 59d09eef9828498303355c8c5c7c905f๐Ÿ”
>>105693778
>jazz music stops
is he fucking retarded?
that technicality is void because the language doesnt define the properties of the hardware
the only thing that matters is whether said language can be used to simulate a turing machine given the appropriate hardware
Replies: >>105693818 >>105694999
Anonymous
6/24/2025, 11:03:14 PM No.105693818
>>105693796
Yeah heโ€™s that stupid. And to actually my actually, the real requirement for true Turing completeness is access to an โ€œarbitrarily largeโ€ amount of storage. Itโ€™s a technically finite number but you can always find a valid program where itโ€™s not enough
Replies: >>105693859
Anonymous
6/24/2025, 11:07:28 PM No.105693859
uni-mc-wagie
uni-mc-wagie
md5: e662b9a8107c6edd6b526159bc28eb85๐Ÿ”
>>105693818
>And to actually my actually, the real requirement for true Turing completeness is access to an โ€œarbitrarily largeโ€ amount of storage.
thanks for the clarification
have a you
im a self taught so i do have holes in my knowledge
Anonymous
6/24/2025, 11:08:52 PM No.105693869
>>105682565 (OP)
>90% fighting the compiler, 10% writing code
dead giveaway of major skill issue
Replies: >>105693907
Anonymous
6/24/2025, 11:12:03 PM No.105693907
doggo-trump
doggo-trump
md5: 5f7868d88ce84dab0d5915691f22b6ee๐Ÿ”
>>105693869
unironically yeah
but this does mean the barrier of entry is high
which makes the language less attractive for corpo given that the mission is to saturate the workforce
Anonymous
6/24/2025, 11:25:10 PM No.105694029
>>105682901
this fucking answers..
rust supports pointers. like real pointers a la c. pointers dont use borrow chcker

seriously this board talks about shit they have no clue
Replies: >>105694105 >>105696280
Anonymous
6/24/2025, 11:30:02 PM No.105694065
>>105692456
Because C# is a managed language.
Anonymous
6/24/2025, 11:34:51 PM No.105694105
rust-vs-c
rust-vs-c
md5: e411db4a7e4a7e1d79c70311a95258eb๐Ÿ”
>>105694029
yeah
we have had an afflux of new C programmers because the poltards who came here *did* learn stuff
and rust is an lgbt cause so plenty of people associated with that group come here to talk out of their ass for virtue points
(poltards shilling c just for the political statement stop rather quick bc they get btfo by both sides. we cultists tend to have a notion of decorum so our community tends to police itself.)
Anonymous
6/24/2025, 11:35:36 PM No.105694114
>>105693778
>Because of that nobody has ever built a โ€œrealโ€ Turing complete language but it can be proven that if the memory limitations were removed C could indeed simulate any Turing machine
The memory limitations are built into C. There are no such limitations in Lisp, Haskell, Python, and many other languages.
Replies: >>105694126 >>105694276
Anonymous
6/24/2025, 11:36:39 PM No.105694126
pippa-eagle
pippa-eagle
md5: 9e7c22be2109c122ceccc363b3361ab5๐Ÿ”
>>105694114
>The memory limitations are built into C
explain in detail or horseshit and lisptrany cope
Replies: >>105694889
Anonymous
6/24/2025, 11:39:22 PM No.105694154
>>105693624
NTA, but due to forced RAII, memory leaks are not really a common problem in Rust. Unless you are a retard who spams counted shared references in cycles without weaks.
Also webdev influence(async) has been a blessing for embedded(embassy)
Anonymous
6/24/2025, 11:51:45 PM No.105694276
why are they like this, bros?
>>105694114
im all for the back and forth of problems vs solutions but they just talk out of their ass
Anonymous
6/25/2025, 12:44:33 AM No.105694764
>>105691515
Post code then wise guy
Anonymous
6/25/2025, 12:45:42 AM No.105694774
>>105692456
C# is a M$jeet goyslop version of Java.
Anonymous
6/25/2025, 12:46:41 AM No.105694783
Rustfmt is so damn good, but I notice tiny inconsistencies:
// There is a trailing comma.
some_func(
some_arg1: i32,
some_arg2: String,
some_arg3: &mut HashMap<i32, String>,
)
// There is **no** trailing comma.
assert_eq!(
some_value,
SomeEnum::SomeMember(SomeOtherEnum::SomeOtherMember)
);
Anonymous
6/25/2025, 12:47:59 AM No.105694792
Beef384
Beef384
md5: 3777501b194ac0698a03d70dfe0d908b๐Ÿ”
>>105692456
https://www.beeflang.org/
Anonymous
6/25/2025, 12:50:00 AM No.105694813
>>105682565 (OP)
All correct excpet the last bit. It was made by trannies, for trannies.
Replies: >>105694870
Anonymous
6/25/2025, 12:50:02 AM No.105694814
>>105687948
How small?
It's trivial to make a Hello World exe that smaller than 1kb in C.
Replies: >>105703008
Anonymous
6/25/2025, 12:52:43 AM No.105694833
>>105688978
I guess math isn't real.
Anonymous
6/25/2025, 12:57:06 AM No.105694870
>>105694813
It was made by chads you wish were trannies, for chads you wish were trannies.
Anonymous
6/25/2025, 12:58:06 AM No.105694878
>slow compiler
This is why I don't get these troons' obsession with trying to use Rust for UI dev. Modern UI frameworks like Flutter and even the new Android stuff support hot reload/hot restart which only works with a fast compiler and a VM in the case of hot reload. Like do they realize that not everything has to be in Rust? I mean if you have a hot path somewhere and want to write it in Rust, sure go for it but in 99% of cases it makes no sense for UI.
Replies: >>105694916 >>105696495
Anonymous
6/25/2025, 12:59:48 AM No.105694889
>>105694126
A pointer in c has a sizeof
A byte in c has a finite number of bits.
Replies: >>105694948 >>105696505
Anonymous
6/25/2025, 1:04:14 AM No.105694916
>>105694878
yes, a static language will not have the introspective/reloading capabilities of a live language unless you write a VM for it.
I do not do my UI dev at the same time as my backend dev, however. I write basic bitch HTML and CSS and just have a bunch of sample documents containing made up data. if you are parsing JSON or whatever, there is nothing stopping you from writing mock server responses in your experiments for seeing what it looks like.
Replies: >>105694940
Anonymous
6/25/2025, 1:08:37 AM No.105694940
>>105694916
> if you are parsing JSON or whatever, there is nothing stopping you from writing mock server responses in your experiments for seeing what it looks like.
Not trying to be rude but is this just a non sequitur? Or what point are you making here.
Anonymous
6/25/2025, 1:09:21 AM No.105694948
brave-chud
brave-chud
md5: 7a5d1bd1bcbfa72d6d2a483aff0f797d๐Ÿ”
>>105694889
yeah
just give it more bits
and nothing says you couldnt have a an architecture which accepts arbitrary length adresses
in the you then keep the number in your code in an extensible object and feed it to the cpu piecemeal, whats the problem with that?
>inb4 but what if its an infinite ram, ahah!
infinte ram has room for an infinitely long number, no?
AND an infinite amount of data, thats kinda the deal with infinity, no?
Replies: >>105694966 >>105695172
Anonymous
6/25/2025, 1:10:33 AM No.105694953
>>105692456
because managed > native
Anonymous
6/25/2025, 1:12:40 AM No.105694966
>>105694948
>and nothing says you couldnt have a an architecture which accepts arbitrary length adresses
No, but the C standard doesn't allow it.

>infinte ram has room for an infinitely long number, no?
>AND an infinite amount of data, thats kinda the deal with infinity, no?
That's great if you're using most languages, but it's not allowed by C.
Replies: >>105694992
Anonymous
6/25/2025, 1:16:14 AM No.105694992
anal-autism
anal-autism
md5: 5986c394b4dbfb0ce2d503b044737a8c๐Ÿ”
>>105694966
>No, but the C standard doesn't allow it.
+
show me where it says that
+
you can make it work with file descriptors, ackshyually
Replies: >>105695483
Anonymous
6/25/2025, 1:17:14 AM No.105694999
>>105693743
You can simulate Turing machine in Rust as well. Learn CS.
>>105693778
How is this a gotcha? I am not the one who thinks C is Turning complete.
>>105693796
???
What argument are you trying to make here? There are turning machines written in Rust as well.
Replies: >>105695015
Anonymous
6/25/2025, 1:19:23 AM No.105695015
crab-roast
crab-roast
md5: a523f7f023515add76c716e17012e09c๐Ÿ”
>>105694999
>strawmen
>reee
>convulsions
why are you like this, anon?
yes, c is turing complete
i didnt say anything about rust yet
but since you insist...
Replies: >>105695113
Anonymous
6/25/2025, 1:32:30 AM No.105695113
>>105695015
You are replying to a conversation that mentioned Rust.
>Strawman
No. C is not Turning complete by the very definition. This is why nocoders get filtered. You never make it because you don't know what you are talking about.
Replies: >>105695286
Anonymous
6/25/2025, 1:40:02 AM No.105695172
>>105694948
You can give it arbitrarily many bits, but you can't give it infinite bits
The fact that c is designed for machines that actually exists is a serious comment, but I don't see it as a critical one.
Replies: >>105695286 >>105695307
Anonymous
6/25/2025, 1:57:22 AM No.105695286
best-i-C-an-do
best-i-C-an-do
md5: 0082c54a52d4dc0615bc27e04a5f8f7b๐Ÿ”
>>105695113
>No. C is not Turning complete by the very definition
>still didnt post where it says so in the standard
>>105695172
>but you can't give it infinite bits
you dont need them with fseek and fread
you use fwrite to write to the "tape"
Replies: >>105695490
Anonymous
6/25/2025, 1:59:36 AM No.105695307
chud-shrug
chud-shrug
md5: 65a903c1080ab6b744934ed55194b808๐Ÿ”
>>105695172
also
>but you can't give it infinite bits
why?
you got an infinite tape
it is gonna take an infinite amount of time to traverse with any turing physical-ish machine
that it takes an infinite amount of time to pass an address is irrelevant because inf + inf = inf
its one of its properties
Replies: >>105695473
Anonymous
6/25/2025, 2:23:49 AM No.105695473
>>105695307
Turing machines can take indefinite amounts of time to halt, but not infinite time. You need indefinite memory to run them, but not infinite memory. It's an important distinction.
Replies: >>105695541
Anonymous
6/25/2025, 2:25:26 AM No.105695483
>>105694992
>you can make it work with file descriptors, ackshyually
File descriptors are not part of C, not memory, and int in C is not allowed to be infinite, so you can't have an infinite number of file descriptors anyway (real Unix systems limited them to about 10).
Replies: >>105695541
Anonymous
6/25/2025, 2:27:07 AM No.105695490
>>105695286
>you dont need them with fseek and fread
>you use fwrite to write to the "tape"
They're still limited because fseek, fread, and fwrite can't be infinite.
Replies: >>105695541
Anonymous
6/25/2025, 2:34:52 AM No.105695541
A1prayer
A1prayer
md5: 75b7f74d03b1c8f2d290ac9c0ae6c0e5๐Ÿ”
>>105695473
you alr told me :)
i was indulging our crustacean friend here in an "but if we made the tape infinite anyways" scenario because i thought that you can still do that with C and i dont mind someone hellbent on failing my theory to run the numbers, to the contrary
>>105695483
>File descriptors are not part of C,
defined in iso
https://www.dii.uchile.cl/~daespino/files/Iso_C_1999_definition.pdf
read and open are defined in ansi i think
fd are system-defined but you need only one

>>105695490
>They're still limited because fseek, fread, and fwrite can't be infinite
heres the trick: fread/read advances an internal, abstract pointer so to speak by how many bytes you have read
you dont need an infinite number, you fread repeatedly an infinite amount of times
and you dont even need a number to rewind back to the beginning
>but what about reading PAST the beginning
then you write your program at the infinite place in your tape.
then when you rewind to the beginning, you still only need to read forward to read all your program, even if written backwards, and of infinite size
because infinities
Anonymous
6/25/2025, 3:32:58 AM No.105695843
1749573561174
1749573561174
md5: e780bb128111e332e4b2089315c84f9b๐Ÿ”
This guy is retarded and should be ignored
Replies: >>105696516 >>105696518
Anonymous
6/25/2025, 4:58:15 AM No.105696252
>>105692342
>Vast majority of programs don't need to use unsafe directly. It is usually confined to some library, and even then, the library might not need to use it, and if it does, will confine it to a tiny corner of the implementation.
Tiny corner, like all over the place in Rust stdlib?
https://materialize.com/blog/rust-concurrency-bug-unbounded-channels/
Oh, and if some safe Rust code has a bug, and unsafe Rust code relies on that safe Rust code being correct, you may end up in UB territory regardless.
Anonymous
6/25/2025, 5:03:22 AM No.105696280
>>105694029
Does Rust require unsafe to dereference a Rust pointer? If yes, then you went into unsafe Rust, which isn't the nicest place to be.
Replies: >>105697988
Anonymous
6/25/2025, 5:42:09 AM No.105696495
>>105694878
>obsession with trying to use Rust for UI dev.
Name some GUI programs written in Rust.
Replies: >>105697982 >>105698404 >>105704146
Anonymous
6/25/2025, 5:43:12 AM No.105696505
>>105694889
What is stopping you from having arbitrarily large pointer size and size_t?
Anonymous
6/25/2025, 5:44:57 AM No.105696516
>>105695843
It's probably some angry cnile who reposts /g/ shitposts to whore for attention lmao
Anonymous
6/25/2025, 5:44:59 AM No.105696518
>>105695843
tests like this are retarded anyway
a compiler could just do the calculation at compile time (like constexpr in c++) and then execution time would be almost 0
doesn't mean the language is fast or slow
Anonymous
6/25/2025, 7:12:46 AM No.105696948
>>105684044
>I was banned from using GNU/MIT software
damn bitch, u THAT ugly?
Anonymous
6/25/2025, 7:13:53 AM No.105696954
>>105692865
yes and it still assumes GC
Anonymous
6/25/2025, 7:14:55 AM No.105696956
>>105692754
shame vala is useless for anything besides writing gnome shitware
Anonymous
6/25/2025, 7:15:08 AM No.105696959
>>105682602
jonathan blow spends all his time losing arguments on twitter now, not coming
Anonymous
6/25/2025, 7:15:15 AM No.105696962
>>105692456
BeefLang is exactly what you're looking for.
Anonymous
6/25/2025, 7:20:48 AM No.105696990
>>105692456
There is and it's called C# with AOT compilation
Replies: >>105697001
Anonymous
6/25/2025, 7:22:19 AM No.105697001
>>105696990
It still has a GC even with AoT, tardo.
Anonymous
6/25/2025, 10:26:09 AM No.105697982
>>105696495
not the OP, and don't know of much about that, but there sure are a lot of prototype Rust UI libraries
https://blog.logrocket.com/state-rust-gui-libraries/
Replies: >>105698542
Anonymous
6/25/2025, 10:27:00 AM No.105697988
>>105696280
yes it does, just like in c you should always check for nullable before dereferencing it. thats why in c and c++ using handles is considered better than raw pointers. rust just forces you to put and unsafe around it as a reminder.
just like swift and kotlin also force you.

rust doesnt even "force" you, it just requires unsafe. this is a good thing, even linus agrees and demands. nobody uses pointers without checking for nullable thats BAD CODE.

and my reply was to a post about using aliasing without turning off borrow checker, not aboud not using unsafe.

>but using unsafe is le bad!
literally ehat you think youre doing BY DEFAULT when using c and c++?
fyck me you guys are retarded. ive written thousands of c and c++ loc in the last 30 years and ypu retards make me feel ashamed of it. youre all so fucking stupid.
Replies: >>105698546 >>105698580
Anonymous
6/25/2025, 11:38:22 AM No.105698404
>>105696495
https://github.com/pop-os/cosmic
Replies: >>105698542
Anonymous
6/25/2025, 12:04:09 PM No.105698542
>>105697982
>>105698404
>few early libraries
>one shell extension
And that's what you call an obsession with UI? What?
Anonymous
6/25/2025, 12:04:51 PM No.105698546
>>105697988
>literally ehat you think youre doing BY DEFAULT when using c and c++?
How often do you use the restrict keyword when developing in C? What are your thoughts about tree borrows and pinning?
Anonymous
6/25/2025, 12:10:02 PM No.105698580
>>105697988
>yes it does, just like in c you should always check for nullable before dereferencing it.
Checking for null is insufficient for Rust pointers.
Replies: >>105698609
Anonymous
6/25/2025, 12:13:40 PM No.105698609
>>105698580
This, so much this, you must also check if the pointer is in range of program segment OR in one range of memory maps AND that it was written to already so it is fully initialized.
Replies: >>105698634 >>105698657 >>105698738
Anonymous
6/25/2025, 12:19:44 PM No.105698634
>>105698609
No, more other things that have to be considered.
Anonymous
6/25/2025, 12:23:10 PM No.105698650
>>105682591
Whoever made this gif HATES trannies with unhealthy passion
Replies: >>105698678
Anonymous
6/25/2025, 12:23:46 PM No.105698657
>>105698609
https://google.github.io/comprehensive-rust/unsafe-rust/dereferencing.html
Replies: >>105698738
Anonymous
6/25/2025, 12:27:22 PM No.105698678
>>105698650
If trannies were an issue with Rust, and the only issue with Rust, Rust could just be forked.
Replies: >>105698741
Anonymous
6/25/2025, 12:38:17 PM No.105698738
>>105698609
>>105698657
Most of these things can be differed from the type system invariants. That's probably what that anon meant.
Anonymous
6/25/2025, 12:38:59 PM No.105698741
>>105698678
You can just fork it. No one does this because it's not an issue.
Replies: >>105698773
Anonymous
6/25/2025, 12:41:01 PM No.105698754
>>105682602
Jon is going to release it in sync with his game, he's hinted at it as a marketing strategy for both things
Replies: >>105702291
Anonymous
6/25/2025, 12:45:31 PM No.105698773
>>105698741
One question is, are there (possibly fundamental) issues with Rust that forking will not fix?
Replies: >>105698799
Anonymous
6/25/2025, 12:49:39 PM No.105698799
>>105698773
What kind of retarded question is that? C and C++ both have unfixable fundamental issues just like everything else.
Replies: >>105702240
Anonymous
6/25/2025, 12:54:42 PM No.105698824
1716728864966284
1716728864966284
md5: 4b8083367772aa622abd0bbfa6b520d7๐Ÿ”
>>105682565 (OP)
just use ChatGPT directly as a llvm frontend. programming is a dated concept
Replies: >>105700446 >>105700534 >>105700545 >>105705898
Anonymous
6/25/2025, 4:36:45 PM No.105700446
>>105698824
>chatgpt as a llvm frontend
The state of /g/
Anonymous
6/25/2025, 4:44:09 PM No.105700534
>>105698824
>ChatGPT directly as a llvm frontend
this is the most hilarious words combo i've ever read in this current year
Anonymous
6/25/2025, 4:44:55 PM No.105700545
>>105698824
>using chatgpt to generate llvm bitcode
not sure if retarded or giga based.
Anonymous
6/25/2025, 4:51:17 PM No.105700613
>>105684566
>corona/mRNA vaccines for example
supercancer in 14 days
Anonymous
6/25/2025, 5:31:35 PM No.105701039
It's insane how we have to move to this slower, less readable language full of vulnerabilities just because zoomers can't into C and their discord has the 2SLGBTMAP+ logo. Embarrassing.
Replies: >>105701676
Anonymous
6/25/2025, 5:42:52 PM No.105701155
file
file
md5: 9b1cb2246224fe0774e0a6c333ea546f๐Ÿ”
>>105682602
Anonymous
6/25/2025, 6:30:59 PM No.105701652
>>105687028
asio exists for sockets
Anonymous
6/25/2025, 6:33:17 PM No.105701676
>>105701039
>slower
[benchmark needed]
Replies: >>105701838
Anonymous
6/25/2025, 6:46:19 PM No.105701806
I don't like that Rust takes away control from me. I don't get why Rust programmers want to give up control over their program to a static analysis tool written by someone else. They have the same mindset as vibe coders where they both think the machine they are using knows better than them.
Anonymous
6/25/2025, 6:49:47 PM No.105701838
>>105701676
As soon as you want to do anything with multiple mutable owners via a Ref<Cell<T>>, which seems to be the recommended way to do said thing, that part of the program is using garbage collection which slows down run time speed. Also Rust default allocator is mid at best.
Replies: >>105702789
Anonymous
6/25/2025, 7:33:34 PM No.105702240
>>105698799
And what if those unfixable fundamental issues include deal breakers for some cases? Or are sufficiently bad that an alternative or successor language could stay or become very popular?

You ought to have been able to infer that from the context. And speak about yourself better.
Replies: >>105703076
Anonymous
6/25/2025, 7:38:07 PM No.105702291
>>105698754
If it takes 10 years to make a shitty puzzle game, isnt that bad publicity for the lang
Replies: >>105702612 >>105702806
Anonymous
6/25/2025, 8:09:28 PM No.105702612
jblow
jblow
md5: 8469220b3abbc6acf2df5e997d02594e๐Ÿ”
>>105702291
wtf I love AI now
Replies: >>105702694 >>105702806
Anonymous
6/25/2025, 8:16:44 PM No.105702694
>>105702612
>Sokoblow
lmao
Replies: >>105702746
Anonymous
6/25/2025, 8:21:21 PM No.105702746
l04he
l04he
md5: 6da057d861fdc74044067d1a2c5afca0๐Ÿ”
>>105702694
I will pay AAA price for an indie game if he actually names it Sokoblow.
Anonymous
6/25/2025, 8:26:05 PM No.105702789
>>105701838
[benchmark needed]

Alternatively, write any reasonably sized program in any language of your choice that you think cannot be expressed in Rust without some significant performance penalty. Also include compiler flags.
I will write my own version in Rust and we will do a benchmark.

This is the only sensible way of arguing over performance difference.
Replies: >>105702882 >>105704142 >>105709908 >>105710166
Anonymous
6/25/2025, 8:27:21 PM No.105702806
>>105702612
>>105702291
That faggot is making a sokoban game?
I was here thinking he was making some Baldur's Gate type shit; what's taking him so long then
Replies: >>105702882
Anonymous
6/25/2025, 8:33:41 PM No.105702882
jonathan-blow-jon-blow
jonathan-blow-jon-blow
md5: e4ff9adb6367b5453c8f8781c673bb4e๐Ÿ”
>>105702789
nta. I rather keep my sanity and be more productive in C++ even if the end result is <3% slower (which I doubt)
>>105702806
arguing on twitter.com, mostly.
plus he still uses that external gui grep program instead of basic emacs features like rgrep or etags. No wonder he gets nothing done.
Replies: >>105702906 >>105704173
Anonymous
6/25/2025, 8:36:53 PM No.105702906
>>105702882
>I rather keep my sanity and be more productive in C++ even if the end result is <3% slower (which I doubt)
C, C++ and Rust all are roughly same speed in practice. You can literally manipulate rustc to generate nearly identical LLVM IR to clang. Matching performance is just matter of putting enough effort into it.
Replies: >>105704173
Anonymous
6/25/2025, 8:50:53 PM No.105703008
>>105694814
Size: 616 Blocks: 8 IO Block: 4096 regular file

rustc --emit=obj -C panic=abort -C opt-level=z main.rs -o main.o
ld -o main_final -e _start --nmagic --strip-all main.o
Anonymous
6/25/2025, 8:57:31 PM No.105703056
>>105682565 (OP)
I tried rust and when it comes to pure Rust then you just have to write their idiomatic way to prevent all those compiler errors but the moment you introduce a C library good luck with that... i don't even want to express the pain i had to endure.
The "rewrite it in rust" meme in reality exists because interfering with libraries not written in rust is not fun nor productive that's why i say that rust in the linux kernel is a dead end, nothing will happen and nothing will be replaced.
Replies: >>105703074
Anonymous
6/25/2025, 8:57:49 PM No.105703060
>>105682602
I am genuinely interested in Jai from what I've seen, but the 2025 release date seems increasingly unlikely.
Anonymous
6/25/2025, 8:59:27 PM No.105703074
>>105703056
>the moment you introduce a C library good luck with that...
Just write a safe abstraction.
Replies: >>105703109
Anonymous
6/25/2025, 8:59:32 PM No.105703076
>>105702240
a lot of things are deal breakers, you just move the fuck on because you can't get everything you want with any language or even computers. you are just low IQ and can't figure out how to mitigate like a real programmer / engineer.
Replies: >>105704174
Anonymous
6/25/2025, 9:03:03 PM No.105703109
>>105703074
this. C ABI isn't that hard. C++ stuff, well... that's a different problem.
Replies: >>105703266
Anonymous
6/25/2025, 9:20:22 PM No.105703266
>>105703109
ABI was never a problem, Rust supports C ABI out of the box, just like C++ does(it literally has same syntax for that too).
API semantics is what might be hard to express in Rust. It's not an issue most of the time, but some large projects with weird patterns might be very hard to do right.
Anonymous
6/25/2025, 9:44:31 PM No.105703541
I'm so glad im a webshitter so i don't have to deal with any tranny drama.
Replies: >>105703599 >>105703792
Anonymous
6/25/2025, 9:48:29 PM No.105703599
R (1)
R (1)
md5: e4b809e995f05769afa1d338195136ef๐Ÿ”
>>105703541
i just write my shit and idc either
these threads exist as a challenge doe
crabs have grievances towards c
and c-ultists respond
its not a matter of war, its a matter of stimulation
its a latter of engineering
its a battle of wits even at a psychological level
it is truly the contest of two communities
the meta-relations of it all

rust vs c is not a statement
its a context
Replies: >>105703792 >>105709013
Anonymous
6/25/2025, 10:03:24 PM No.105703792
shalom-bitch
shalom-bitch
md5: 21f3441d2a78c4b78831ff7b02db35e0๐Ÿ”
>>105703541
>>105703599
(cont)
it drives both communities to higher highs so i dont see why darwinism, which has been proven since, errr idk, life exists?- is a bad thing in ideaspace
Replies: >>105703846
Anonymous
6/25/2025, 10:06:19 PM No.105703834
>>105682602
>This is why I'm waiting for Jai
Meme language ...
Anonymous
6/25/2025, 10:08:00 PM No.105703846
troonime
troonime
md5: 1eeb16d17dd7f6b10621c4461f733b76๐Ÿ”
>>105703792
(cont of cont)
rtust benchmarks are never compared with -march=native doe
but they enable simd every time...
funny and fucking cute innit?
Anonymous
6/25/2025, 10:09:15 PM No.105703854
fukken
>rust benchmarks against C
>but c when it has a hand tied behind its back
lamao
Anonymous
6/25/2025, 10:13:28 PM No.105703892
titan-11
titan-11
md5: 9c8db2dd704a5ce266bf4f133c628321๐Ÿ”
and even then
you can accelerate atoi merely by padding with 8 bytes
i played around with intrinsics and i stopped caring after 200x speedup
but the crabs benchmark against c with -O3
nigger
you dont have all the horsepwers activated
-O3 means "loazy mode"
which is very good
but its the first fucking step among 10 or 20
Anonymous
6/25/2025, 10:20:12 PM No.105703952
wave
wave
md5: 96c421b4aa7d7113778c8a4016136042๐Ÿ”
ask fukken registryfag
hes the one to ask in how to cut down an operation down to 10%
but even a macro approach destroys the fukken libc
libc is supposed toi be universal
so it can only be shit
generalized vs specialized solutions
the exact effing reason C is still held as golden standard everyone tries to improve upon, 60 FUCKING years after its been invented
Anonymous
6/25/2025, 10:25:44 PM No.105704006
gott-hat
gott-hat
md5: f9ef6d86aa21d4775b7ed9a0c5996497๐Ÿ”
(btw i like you registryfag. but i respond in kind.)
(DONT you fukken make smoke with me. esp were on the same side. kindof. bc you implied C is not enough recently and if you troon out i disavow you)
Anonymous
6/25/2025, 10:39:44 PM No.105704142
>>105702789
Not the OP.
Graph algorithms? Unless you maybe do integer indexing instead of trying to implement it with references.
It would probably perform well, just be really annoying to implement unless you do stuff like integer indexing.
Also desired architecture can play into decision making.
https://github.com/microsoft/typescript-go/discussions/411
Replies: >>105704383
Anonymous
6/25/2025, 10:40:06 PM No.105704146
>>105696495
https://gyroflow.xyz/ uses QT
https://zed.dev/ uses a bespoke UI framework
https://graphite.rs/ also uses a bespoke UI framework
https://typst.app/ technically too, on the web
https://en.wikipedia.org/wiki/Tiny_Glade would count too, using the Bevy engine
https://www.kraken.com/de/desktop this doesn't even advertise it

It's getting there
Anonymous
6/25/2025, 10:42:56 PM No.105704173
>>105702882
>>105702906
If anything, I would expect the Rust version of the same program to be 3% slower instead, just because of the array bounds checks that can't always be elided, whereas C++ always elides them, just assuming your code is correct.
Replies: >>105704223 >>105704383
Anonymous
6/25/2025, 10:43:01 PM No.105704174
>>105703076
>you are just low IQ and can't figure out how to mitigate like a real programmer / engineer.
Why not mitigate or deal with it by picking a better option? For instance, a different language if that language is a better option than Rust for a given case?
Also be more kind to yourself, you claiming to have low IQ is not nice.
Anonymous
6/25/2025, 10:48:15 PM No.105704223
>>105704173
NTA but just use an assert. Asserts remove a lot of bounds checking if you are repeatedly accessing random indices.
Replies: >>105704238
Anonymous
6/25/2025, 10:50:21 PM No.105704238
>>105704223
Whoa hold on that sounds unsafe bro
Replies: >>105704247 >>105704383
Anonymous
6/25/2025, 10:51:28 PM No.105704247
>>105704238
asserting is safe.
Replies: >>105704268
Anonymous
6/25/2025, 10:53:33 PM No.105704268
>>105704247
ugh.. thank god
Anonymous
6/25/2025, 11:05:34 PM No.105704383
>>105704142
>Graph algorithms? Unless you maybe do integer indexing instead of trying to implement it with references.
Graphs have myriad different ways to implement depending on what algorithm you want to do. If you want to implement some sort of dynamic graph based on references/pointers, you will mostly likely want some reference counting in every non-GC language.

>Also desired architecture can play into decision making.
True, but that's different topic. Their situation is specific, they are bunch of web developers who are rewriting JS code into another language and do not want to change it too much. Choosing Rust over Go would probably require a unproportionally more effort for not that many gains and with greater risk of regressions. Go being a managed language makes it often trivial to migrate the code.

>>105704173
In practice, you rarely even index arrays in Rust and rather rely on iterators instead.

>>105704238
Only unchecked_asserts are unsafe. C++ equivalent of this is [[assume(...)]] and C doesn't have a standard way of doing this lol.
Replies: >>105706123
Anonymous
6/26/2025, 12:07:35 AM No.105704985
>>105682565 (OP)
literally the only true thing is the last one
not reading any of the replies in the thread by the way, kys
Anonymous
6/26/2025, 2:08:40 AM No.105705851
Boomer
Boomer
md5: 90712fc425aa54133ec7287accb0e12a๐Ÿ”
>>105688276
> Talks trash about fizzbuzz.
> Can't write fizzbuzz as a generator, one character at a time, to land a job.
So many such cases.
Anonymous
6/26/2025, 2:14:29 AM No.105705898
cao cao
cao cao
md5: 1fb2c30bb9f0c6cebac9be97ca2400ad๐Ÿ”
>>105698824
> falls for the vulnerability as a service scam
> gets raped in prison for fraud
Anonymous
6/26/2025, 2:49:42 AM No.105706123
>>105704383
There are a bunch of fun answers to a question about graphs here
https://stackoverflow.com/questions/5493474/graph-implementation-c/5493656
How easy would each of them be to implement in Rust? If some of them would not be easy, could one be certain about performance in Rust, given limited options? I am guessing that one could do it as efficiently as in C++, but it may be way more work and more difficult than in C++.
How much reference counting are there in those answers?

Custom allocators and arenas might be easier in for instance Zig relative to Rust https://old.reddit.com/r/rust/comments/1jlopns/turns_out_using_custom_allocators_makes_using/ https://old.reddit.com/r/rust/comments/1km2vej/bump_allocators_in_rust/

https://old.reddit.com/r/rust/comments/1k83suv/do_people_who_use_rust_as_their_main_language/

Architecture can in practice be in some ways related to performance, though one may also be factoring in for instance how much effort it is to implement and maintain.
Discusses game engines and game development in Rust https://old.reddit.com/r/rust/comments/1k83suv/do_people_who_use_rust_as_their_main_language/
This comment complains about Rust, architecture and performance.
https://old.reddit.com/r/rust/comments/1k83suv/do_people_who_use_rust_as_their_main_language/mp3co6x/
Replies: >>105706772
Anonymous
6/26/2025, 2:55:06 AM No.105706168
1736053916671675
1736053916671675
md5: 794434af888a2ea95f72f32031dbc2f7๐Ÿ”
>>105682602
>This is why I'm waiting for Jai
Anonymous
6/26/2025, 4:35:37 AM No.105706772
>>105706123
>How easy would each of them be to implement in Rust?
Since the first one doesn't even have any deleting, you can just change pointers to references and new to Box::new().leak() and the code will be literally the same.
Next few don't even have any code.
Next one is the same as first except indexes instead of pointers.
etc

>given limited options
What limited options? You can write nearly identical code.

>How much reference counting are there in those answers?
None of these do any cleanup. There is no need to count references.

>Custom allocators and arenas might be easier in for instance Zig relative to Rust https://old.reddit.com/r/rust/comments/1jlopns/turns_out_using_custom_allocators_makes_using/ https://old.reddit.com/r/rust/comments/1km2vej/bump_allocators_in_rust/
How so? You just implement an allocator and pass it to the collection.

>Architecture can in practice be in some ways related to performance, though one may also be factoring in for instance how much effort it is to implement and maintain.
Go is slower than Rust.

>Discusses game engines and game development in Rust https://old.reddit.com/r/rust/comments/1k83suv/do_people_who_use_rust_as_their_main_language/
Rust is unsuitable for gamedev but that has nothing to do with performance. Games do not need top performance either, most of them is written in managed languages. Rust is unsuitable for gamedev because it heavily prefers waterfall approach and doesn't let you rapidly prototype ideas. That's why so many games use scripting languages for game logic, it's just so much faster to write bunch of lua scripts and prototype various ideas than to wrestle with somewhat faster, but much more rigid language.
Replies: >>105707876 >>105709297 >>105710986
Anonymous
6/26/2025, 4:36:38 AM No.105706777
>This comment complains about Rust, architecture and performance.
>https://old.reddit.com/r/rust/comments/1k83suv/do_people_who_use_rust_as_their_main_language/mp3co6x/
>Games are big amorphous blobs of self-referential mutable data, and working that way performantly in Rust requires a paradigm shift relative to other languages like C++
Having a lot of self referencing data is just as much pain in the ass to write safety and without memory leaks in C++ as it is in Rust.
># already offers a good portion of memory safety tools relative to Rust, and a C++ engine like Unreal also provides memory safety tools through its own garbage collector.
Unreal C++ is not real C++. It's a C++-like managed language that is more like C#. Managed languages like these are more suitable for game development because they are easier to use and faster to iterate over ideas. Something that is crucial in gamedev.
This post says nothing about performance.
Replies: >>105707882
Anonymous
6/26/2025, 7:34:25 AM No.105707590
>>105682565 (OP)
>87 dependencies to do trivial tasks
No that would be C. Rust needs 87 C virtual machines running OSes to do trivial tasks.
Anonymous
6/26/2025, 8:23:21 AM No.105707876
>>105706772
>Since the first one doesn't even have any deleting, you can just change pointers to references and new to Box::new().leak() and the code will be literally the same.
I am beginning to be suspicious about you.
Would the first example, directly transferred to Rust by using references instead of pointers, even fly by the borrow checker? Aliasing? I'd love to see the equivalent Rust code as you describe it. Are the cycles in references really that easy in Rust without using unsafe and without using RC or ARC?


>How so? You just implement an allocator and pass it to the collection.
I see, you're just shitposting and not even reading the comments in that thread.

Please stop shitposting and being incompetent.
Replies: >>105709707
Anonymous
6/26/2025, 8:24:58 AM No.105707882
>>105706777
Again, please stop shitposting and being incompetent.
Replies: >>105709707
Anonymous
6/26/2025, 9:08:27 AM No.105708101
>>105682565 (OP)
skill issue.

first time compiles are slow. After that you're alright.

Type aliasing exists. Don't do that.

The borrow checker isn't hard, you're just being retarded. Time to unlearn years of shit programming. Rust has finally got niggerd thinking about how shit Linked Lists are and I'm glad it stops you from making one or any of their variants by default.

The compiler is the dad you never had. It beats your ass so you don't turn into a faggot ass programmer.

Rust community has been the opposite. Very nice, very helpful. Share your code in the c# or go community and they'll tell you to create the simpliest factory abstract proxy hexagon vertical slice before they even give you actual help.
Replies: >>105709244
Anonymous
6/26/2025, 9:13:40 AM No.105708144
>>105692173
Anon, their firstmost priority is to automaticall trsnspile c into rust and DARPA throws in money for an AI to do so.
This IS most of their existence. Looking at C code and rewriting it into Rust is 99% of their business.
Its ridiculous. Who the fuck wants to do that?
Anonymous
6/26/2025, 9:18:47 AM No.105708175
>>105692194
>I never met anyone who does this. Are you talking from experience or what?
well, the only Rust projects that kinda gained traction do that.
In fact, they are even worse.
Coreutils rewrite? Not just years of looking at C and rewriting, but they also have to run and look at the test cases of the original.
That AV1 decoder that ended up slower than the original? It was automatically transpiled and the "Rust developers" look at the auto-generated slop and clean it up and fix it while having the original as reference.

Those are the people who you promote. Nobody wants to do that. Nobody thinks this is fun.
You are a masochist.
Replies: >>105709873
Anonymous
6/26/2025, 9:19:42 AM No.105708180
>>105692173
>Two different programs that have the same function are not "rewrites."
anon, I...
Replies: >>105709881
Anonymous
6/26/2025, 11:31:43 AM No.105709013
>>105703599
llm response
Anonymous
6/26/2025, 11:51:02 AM No.105709130
>>105684566
>Well known utility or program made in C
>Someone is remaking it in Rust
>goes from a free license to a cuck license
Every time. This is my biggest issue with the Rust community.
Replies: >>105709314
Anonymous
6/26/2025, 12:10:07 PM No.105709244
>>105708101
>It beats your ass so you don't turn into a faggot ass programmer.
So the compiler doesn't work considering the community
Anonymous
6/26/2025, 12:18:13 PM No.105709297
>>105706772
> Go is slower than Rust
That holds if you're not using Rc<>/Arc<> anywhere or if Rust global allocator is good for X program you're writing. I've ran into spots where garbage collection is faster than what Rust offers as default. For example evaluating an ast which is describing a recursive function.
Replies: >>105709908
Anonymous
6/26/2025, 12:20:13 PM No.105709314
>>105709130
MIT is truest form of freedom. GPL is communism.
Anonymous
6/26/2025, 1:18:48 PM No.105709707
>>105707876
>Would the first example, directly transferred to Rust by using references instead of pointers, even fly by the borrow checker?
You just need to annotate adj with internal mutability.

>Aliasing?
There is no aliasing here.

>I'd love to see the equivalent Rust code as you describe it.
use std::collections::HashMap;
use std::cell::RefCell;

struct Vertex {
adj: RefCell<Vec<(f32, &'static Vertex)>>,
name: String,
}

impl Vertex {
fn new(name: String) -> Self {
Vertex {
adj: RefCell::new(vec![]),
name,
}
}
}

struct Graph {
work: HashMap<String, &'static Vertex>,
}

impl Graph {
fn add_vertex(&mut self, name: String) {
if self.work.get(&name).is_none() {
let v = Vertex::new(name.clone());
let v = Box::leak(Box::new(v));
self.work.insert(name, v);
}
print!("\nVertex already exists!"); // ???
}

fn add_edge(&mut self, from: &str, to: &str, cost: f32) {
let f = self.work.get(from).unwrap();
let t = self.work.get(to).unwrap();
f.adj.borrow_mut().push((cost, t));
}
}


>Are the cycles in references really that easy in Rust without using unsafe and without using RC or ARC?
Rc and Arc is RAII. This code doesn't free anything so you do not need RAII for anything.

>I see, you're just shitposting and not even reading the comments in that thread.
If I was shitposting I would tell you to fuck off back to pleddit you retard. If you want to make an argument then state it yourself. If you rather spam reddit links hoping something sticks then get the fuck out of there.

>>105707882
Not an argument.
Replies: >>105710115 >>105710986
Anonymous
6/26/2025, 1:40:56 PM No.105709873
>>105708175
>well, the only Rust projects that kinda gained traction do that.
Can you name any popular project that did this other than rav1d?

>Coreutils
>looking at C and rewriting
[citation needed]

>Those are the people who you promote.
Where did I promote these people. I don't even know their names or who they are.

>Nobody wants to do that. Nobody thinks this is fun.
What? Promoting some FOSS developers? I guess?

>You are a masochist.
What?
Anonymous
6/26/2025, 1:42:10 PM No.105709881
>>105708180
Do you consider wayland to be rewrite of x?
Is Linux a rewrite of unix?
Is C# a rewrite of Java?
Anonymous
6/26/2025, 1:45:39 PM No.105709908
>>105709297
>That holds if you're not using Rc<>/Arc<> anywhere
Adding RAII to your program will not make it magically slower than GC.

>or if Rust global allocator is good for X program you're writing
Global allocator is pretty good. You are free to build a bump allocator on top of it or use any other allocator.

>I've ran into spots where garbage collection is faster than what Rust offers as default. For example evaluating an ast which is describing a recursive function.
See >>105702789
Anonymous
6/26/2025, 2:08:51 PM No.105710115
>>105709707
>RefCell
>A mutable memory location with dynamically checked borrow rules
>dynamically checked
How much overhead, Mr. Incompetent Shitposter? More than 0?
Try again.
And please describe yourself in more kind words than "retard" and telling yourself to fuck off.
Replies: >>105710166
Anonymous
6/26/2025, 2:14:30 PM No.105710166
>>105710115
>How much overhead
This requires a benchmark to measure. See >>105702789

>Try again.
I don't see any reason to try anything again. I responded to all your questions already.

>And please describe yourself in more kind words than "retard" and telling yourself to fuck off.
I didn't describe myself as retard. I only called you a retard for accusing me of shitposting whenever you couldn't respond to my points and for reposting reddit comments on 4chan.
Replies: >>105710214
Anonymous
6/26/2025, 2:20:51 PM No.105710214
>>105710166
Thank you for proving and admitting that you are incompetent and a shitposter. Please stay far away from any programming job that requires any kind of responsibility.
And do refer to yourself more kindly than as a "retard".
Replies: >>105710219
Anonymous
6/26/2025, 2:21:11 PM No.105710219
>>105710214
Not an argument.
Replies: >>105710244
Anonymous
6/26/2025, 2:21:43 PM No.105710222
>>105682591
Whoever made this gif HATES trannies with healthy passion
Anonymous
6/26/2025, 2:24:02 PM No.105710244
>>105710219
You already proved it yourself multiple times over, Mr. Dishonest and Incompetent Shitposter.
Replies: >>105710301
Anonymous
6/26/2025, 2:32:05 PM No.105710301
>>105710244
Yes, I have already stated my arguments.
Replies: >>105710439
Anonymous
6/26/2025, 2:40:53 PM No.105710363
>>105682565 (OP)
Considering how much traction such kinf of discourse gets someone should start a /programming languages general/ for discussion on the topic's various facets
Replies: >>105710395
Anonymous
6/26/2025, 2:44:20 PM No.105710395
>>105710363
We had Rust general for a week or two. It was constantly spammed by angry cniles and /pol/ tourists.
You can't have quality discussion on /g/. This board seems to be just for AI slop and twitter screen cap threads(like this one)
Anonymous
6/26/2025, 2:50:38 PM No.105710439
>>105710301
That proved what you are, Mr. Dishonest and Incompetent Shitposter.
Replies: >>105710621
Anonymous
6/26/2025, 3:18:35 PM No.105710621
>>105710439
Who I am is irrelevant to this conversation. Performance is what is relevant. Something that can be measured by a benchmark which you are unwilling to undergo.


This is my last response to you until you write and post some code that can be benchmarked.
Replies: >>105710986
Anonymous
6/26/2025, 3:28:31 PM No.105710693
>>105682602
It staggers me there are a few people who truly believe a guy who cried when soulja boy didn't """understand""" his hipster platform slop and who argues on twitter all day could truly create something of worth.
Replies: >>105710906
Anonymous
6/26/2025, 3:55:33 PM No.105710906
>>105710693
But he's so cool and smart and manly and he made two whole games and he speaks authoratively about everything and belittles and rages at anyone who disagrees and I was raised by a single mother with no father figure
Anonymous
6/26/2025, 4:08:18 PM No.105710986
>>105710621
Lel, Mr. Dishonest and Incompetent Shitposter.

>>105706772
>the code will be literally the same.
>>105709707
>[uses] RefCell [which has runtime overhead]

Try again, and stay away from any programming job that requires responsibility and competence.