Thread 105713405 - /g/ [Archived: 801 hours ago]

Anonymous
6/26/2025, 8:27:47 PM No.105713405
file
file
md5: 48fa9388fda7c62d45d22edb4591639b๐Ÿ”
.
Replies: >>105713512 >>105713573 >>105719281 >>105719986 >>105721988 >>105725547
Anonymous
6/26/2025, 8:39:34 PM No.105713512
>>105713405 (OP)
The best programming language out there.
Replies: >>105713590 >>105714942 >>105715029
Anonymous
6/26/2025, 8:45:17 PM No.105713573
>>105713405 (OP)
Rust is like a big wall protecting your computer's border, while C and C++ are like open borders for ransomware, cyberattacks, and data breaches. C and C++ are getting deported.
Replies: >>105713608 >>105714639
Anonymous
6/26/2025, 8:47:19 PM No.105713590
>>105713512
fpbp
Anonymous
6/26/2025, 8:49:42 PM No.105713608
>>105713573
rust is actually the best language to write malware because the generated binary is so obscure that reverse engineering tools can't even decipher the binary
Replies: >>105714954
Anonymous
6/26/2025, 10:30:15 PM No.105714639
>>105713573
So Rust is the Trump's wall of programming keeping all the jeets and undesirables out while C/C++ are the ones pushing for open boarders and sanctuary cities?
Replies: >>105714970 >>105715154
Anonymous
6/26/2025, 11:01:15 PM No.105714942
>>105713512
FPBP
Anonymous
6/26/2025, 11:02:04 PM No.105714954
>>105713608
That would be Go, actually.
Replies: >>105715796 >>105719219
Anonymous
6/26/2025, 11:03:16 PM No.105714970
>>105714639
Yes.
Anonymous
6/26/2025, 11:09:26 PM No.105715029
>>105713512
Rust has literally restored my faith of Windows. windows-rs singlehandedly makes writing throwaway code (which you'll need to do a lot of since windows still has dogshit command line tools and shells) painless. I don't even know how normal people can use this and say, ya I'd rather write C++ in Visual AIDS. insane.
Replies: >>105718625 >>105720394
Anonymous
6/26/2025, 11:21:11 PM No.105715154
>>105714639
No, rust is more like the h1b of programming (which trump loves, so the analogy is close). "safety" is code for "letting bad programmers shit out half-working programs more easily". C/C++ are more like the unions of programming, which try to protect the interest of native workers. Hope this explains things a little better.
Replies: >>105715741 >>105715751 >>105715774 >>105716635
Anonymous
6/27/2025, 12:19:46 AM No.105715741
>>105715154
>"safety" is code for "letting bad programmers shit out half-working programs more easily".
Safety is code for "keeping hackers out of your computer by preventing more bugs." "Half-working programs" are what you get from C/C++. With Rust, programs just work.

>C/C++ are more like the unions of programming, which try to protect the interest of native workers.
Maybe like C "unions" that let you "type pun" men and women. C/C++ people replaced all the native workers when they went on their campaign to replace Fortran, Algol, Pascal, BASIC, Lisp, and all the other languages with C/C++.
Anonymous
6/27/2025, 12:20:56 AM No.105715751
>>105715154
C/C++ dresses for the ride. Rust dresses for the slide.
Anonymous
6/27/2025, 12:22:46 AM No.105715774
>>105715154
>"safety" is code for "letting bad programmers shit out half-working programs more easily".
If you're too retarded to manage memory manually you probably won't even get a Rust program to compile at all.
Replies: >>105716643
Anonymous
6/27/2025, 12:25:16 AM No.105715796
>>105714954
The go binaries are fine, if you ignore the runtime.
Itโ€™s about on par with gcc at -O1 or -O2.
Interspersed with some random panic checks.
Anonymous
6/27/2025, 2:12:19 AM No.105716635
>>105715154
>h1b
what hablogroup is that again
Anonymous
6/27/2025, 2:13:11 AM No.105716643
>>105715774
Stick arc around everything, that'll make it compile real good lmao.
Replies: >>105716831
Anonymous
6/27/2025, 2:39:48 AM No.105716831
>>105716643
ok retard
Anonymous
6/27/2025, 7:00:09 AM No.105718625
>>105715029
I cant wait for projects to turn cmd.exe, and find into rust programs.
The project doing gnu coreutils are burning them all through c2rust translator, and the resultant binaries fail their test suite for over 10 years because they literally have no idea how to fix any of the failures since theyโ€™re all non-coders.
Any actual or legitimate programmer would never be in such a stupid project to begin with.
Anonymous
6/27/2025, 7:09:51 AM No.105718687
Rust won, C lost, C++ somehow lost more, free Palestine, Black Lives Matter, trans women are women.
Anonymous
6/27/2025, 7:20:47 AM No.105718756
>Diesel cannot access views without manually editing generated schema file
bros...
I am just going to use tokio_postgres and be done with it. I will never even consider an ORM ever again.
I'll have 95% of my SQL in my migrations and then have extremely basic queries in my Rust.
Replies: >>105718823
Anonymous
6/27/2025, 7:31:43 AM No.105718823
>>105718756
Why are you using Rust for web dev?
Replies: >>105718858
Anonymous
6/27/2025, 7:36:30 AM No.105718858
>>105718823
>why are you using a language with compile-time concurrency guarantees, no GC pauses, and wonderful type system to implement a low-latency server that you want to have maximum uptime?
web = server. server = computation accessible from distance. an Axum server need not supply only web browsers with HTML/JS, it can supply terminal applications with data or any other program that you can send/receive data over a network.
Replies: >>105718895
Anonymous
6/27/2025, 7:41:32 AM No.105718895
>>105718858
Ok. Seems like a bunch of extra work just be limited by i/o. Might as well use garbage collection. Consider Haskell.
Replies: >>105718983
Anonymous
6/27/2025, 7:51:44 AM No.105718983
>>105718895
>might as well use GC
ah, yes, let's add computational complexity to software that does not need it 95% of the time.
you know where GC is most helpful? graphs. do you know where my graphs live? in the database. you know what the database does? handles GC.
>consider Haskell
ok, so I implement a basic VM for customers to write configurations for their instances of my software. this VM is a thin wrapper over the host language (Haskell in this case), and mainly uses the host language's data structures.
anyway, the customer decides to do some weird shit like storing hash maps inside of hash maps as values. some of these internal hash maps are based on one another, with only slight differences. because Haskell uses immutable data structures, and is a smart little bugger that wants to avoid unecessary consumption of memory, only these differences really add to memory consumption.
anyway. I end up saving the outer hash map in a serialized form to the database at some point, and later it gets reloaded. all of a sudden, my memory consumption has gone up by 3,000% because Haskell lost its knowledge of those internal hash maps only having slight differences, and now I have many near duplicates of the same hash map over and over and over again.
now, the machine crashes under the new load, and we have a very significant bug on our hands. now, you are talking to Chat GPT about implementation of a diffing algorithm for hacking together a solution that attempts to recreated the data structures in a manner where Haskell is able to be smart about this shit again. your deserialization process eventually takes 5,000% longer than it previously did, and it took a month of work to get this customer's shit back online.
Replies: >>105719100
Anonymous
6/27/2025, 8:05:22 AM No.105719100
>>105718983
>Lets not add computation complexity.
If you're doing webdev in Rust you're probably using tokio, which is a runtime pretty much as large as Go's and you're probably using stuff like someone else's socket library and web server. You might even be using Rc/Arc, which is garbage collection no matter what cope Rust/C++ people say. I don't get this argument at all because Rust web-dev generally layers on a bunch of complexity in an attempt to add back in what languages like Java and Go provide oob. If computational complexity is a concern and only using exactly what you need to pay for then you shouldn't be using anything beyond asm.
Replies: >>105719188 >>105719378 >>105719390
Anonymous
6/27/2025, 8:15:35 AM No.105719188
>>105719100
no, Rc/Arc are absolutely not GC, they are reference counting. just because there is a little bit of runtime cost (regular/atomic subtraction per drop) does NOT mean GC. GC has exactly 3 characteristics:
- unpredictable (or not trivially predictable) pauses of all processes interacting with a certain domain of memory such that a searching algorithm can locate memory that is no longer used.
- removal of the unused memory and defragmentation of kept memory.
- updating references to kept memory that has been moved after defragmentation.
Erlang's VM provides soft-realtime behavior by disallowing the sharing of memory across processes, hence, there are numerous memory domains so that each process can be separately garbage collected (no pause the world GC).
Azul's C4 GC for the JVM adds a barrier to access operations for references that have been moved during defragmentation such that they are lazily updated, significantly reducing GC pause times.
Anonymous
6/27/2025, 8:21:05 AM No.105719219
>>105714954
>go
Go back to India.
Anonymous
6/27/2025, 8:32:01 AM No.105719281
1_5x92BGYXQ7FasL7qtpbT8Q
1_5x92BGYXQ7FasL7qtpbT8Q
md5: 9e8751a2d62ff40585ec7e5080acd4ea๐Ÿ”
>>105713405 (OP)
You will not keep me, a nazi chud, from using your language. We cannot cede everything to trannies. It's time to take back territory. Fork projects and add the +Nigger license. Make trans genocide real.
Replies: >>105719374
Anonymous
6/27/2025, 8:50:43 AM No.105719374
1750862964467985
1750862964467985
md5: e187298f531aacda00eb476a8b40b334๐Ÿ”
>>105719281
>immediately thinks of trannies
you lost
Anonymous
6/27/2025, 8:51:14 AM No.105719378
>>105719100
Rust literally has some of the fastest web server libraries and just works. Why are you coping so hard someone doesn't want to use a shitty VM language?
>mub refcount types
Never look at any C project because you'll find they just reimplement them every single time, and badly too. Linux is full of them, json-c has them, etc.
>asm
Ya, this post reeks of butthurt nocoder bitch or delusional VM language user who's getting btfo by Rust's supremacy.
Anonymous
6/27/2025, 8:53:26 AM No.105719390
>>105719100
>someone else's socket library and web server
nocoder retard expects people to remake shit from scratch
Anonymous
6/27/2025, 10:24:37 AM No.105719986
>>105713405 (OP)
Rust is a woman
Replies: >>105720052
Anonymous
6/27/2025, 10:34:59 AM No.105720052
>>105719986
and she's my bitch
Anonymous
6/27/2025, 11:31:31 AM No.105720394
>>105715029
>C++ in Visual AIDS
They don't. .NET is the modern windows api. For throwaway code you don't even need C# (it has script mode now tho), you can use it from powershell
Anonymous
6/27/2025, 1:26:40 PM No.105721217
1721934067981414
1721934067981414
md5: 9a410cf885b3864a0ba39a887ffbb278๐Ÿ”
this is the average Rust programmer
Replies: >>105721249
Anonymous
6/27/2025, 1:30:25 PM No.105721249
>>105721217
>jump into a lake with a dirtbike
>with a dog that has negative chances of survival nonetheless
and thats why they need child proofed languages
Anonymous
6/27/2025, 3:13:58 PM No.105721988
>>105713405 (OP)
Ahem.
reeeeeeeeeeeeee
Anonymous
6/27/2025, 5:35:25 PM No.105723292
bump, we need more Rust discussion
anyone here use Petgraph?
Replies: >>105724290
Anonymous
6/27/2025, 7:12:56 PM No.105724290
>>105723292
>Petgraph
I used it for a Advent of Code challenge. lol
Anonymous
6/27/2025, 8:55:50 PM No.105725547
>>105713405 (OP)
It's not even THAT good, but somehow every other language sucks more