I decided to learn Rust because it has modern dependency management - /g/ (#105783385) [Archived: 538 hours ago]

Anonymous
7/3/2025, 3:03:14 AM No.105783385
rustchud
rustchud
md5: 42bc114d5851adc0bd12ab4952e8a52b๐Ÿ”
Literally the only reason why I decided to learn it over C/C++
If there was an exact copy of C or C++ that had the equivalent of cargo/pip/npm/go mod I would use it in a heartbeat

And believe me, I tried giving C++ a shot, but vcpkg doesnt work with like half of libraries, I get linking errors, undefined functions even after I've properly included everything without error, manually getting the correct version of dependencies for the libraries you want to use is a pain in the ass
Its fucking horrendous, there is no excuse for this shit in 2025

Meanwhile with, say, python you just pip install and use the import keyword and It. Just. Werks. Same goes for cargo, npm, go, etc.
Replies: >>105783617 >>105783819 >>105783822 >>105785313 >>105786074 >>105786198 >>105786624 >>105789245 >>105789441 >>105790045 >>105790117 >>105790721 >>105793164 >>105793229 >>105793451 >>105793943 >>105794793 >>105795830 >>105795917
Anonymous
7/3/2025, 3:34:11 AM No.105783617
>>105783385 (OP)
The bad thing about modern-day dependency management is that it encourages you to just install modules everytime you have a minor problem.
Take the is-number js library for example.
Replies: >>105783626 >>105787059
Anonymous
7/3/2025, 3:35:58 AM No.105783626
>>105783617
>encourages you
maybe if youre a literal retard or third worlder
maybe try not being retarded?
Replies: >>105783701
Anonymous
7/3/2025, 3:44:19 AM No.105783675
1734359041109583
1734359041109583
md5: 19f560cc94ce0176a0b71df5c1faf13b๐Ÿ”
I just spent half a day trying to get LLVM working with cmake and failed.
I tried C#'s LLVMSharp and it just worked.
Replies: >>105789887
Anonymous
7/3/2025, 3:47:37 AM No.105783699
Learn Go instead
Replies: >>105783797
Anonymous
7/3/2025, 3:47:51 AM No.105783701
>>105783626
Sounds like you passed reading comprehension by giving your English teacher blowjobs instead of studying.
Replies: >>105783836
Anonymous
7/3/2025, 3:53:33 AM No.105783734
the bad trhing about modern dependency manahbement is it lets you manage dependencies
Replies: >>105783820
Anonymous
7/3/2025, 4:01:23 AM No.105783797
>>105783699
I already know go and rust/c/c++ (one of them) is something I want to add to my resume/project portfolio
Anonymous
7/3/2025, 4:04:52 AM No.105783819
>>105783385 (OP)
Rust trannies hate GPL. This makes it a non-starter.
Anonymous
7/3/2025, 4:04:52 AM No.105783820
>>105783734
underrated post
Anonymous
7/3/2025, 4:04:55 AM No.105783822
>>105783385 (OP)
I just switched to Linux and then use cmake and everything just works. The only time I have crazy build problems with stuff is windows. But most of peopleโ€™s complaints about C++ not having a package manager is a skill issue and people who canโ€™t deal with a low level language maybe they should stick with JavaScript or something.
Replies: >>105783889 >>105784876 >>105784904 >>105784915
Anonymous
7/3/2025, 4:06:03 AM No.105783836
>>105783701
There is nothing wrong with the post youre replying to and youre clearly just seething that it says "third worlder"
Tryharding on capitalization and punctuation is a nice touch, way to out yourself Ranjesh
Anonymous
7/3/2025, 4:11:19 AM No.105783889
>>105783822
yeah I'm on windows
I can figure it out but I just know theres a lot of friction I'll run into eventually and I just don't want to deal with it
I've been meaning to install linux on a spare machine I have to turn it into a "work computer" for personal projects, so maybe then I'll get around to learning cpp

> But most of peopleโ€™s complaints about C++ not having a package manager is a skill issue and people who canโ€™t deal with a low level language
fuck you
everybody knows its shit and rust is also a "low level language" (meme term)
basically what youre saying is
>what, you don't like the taste of shit? cant handle the creamy texture? sounds like a skill issue
Replies: >>105783928
Anonymous
7/3/2025, 4:15:59 AM No.105783928
>>105783889
Unless youโ€™re building something esoteric with not a lot of documentation itโ€™s really not hard to build anything and link it with a cmake or make file on Linux. On windows itโ€™s a little bit harder but you can still build it on something like visual studios and link the dlls and libs explicitly in cmake or your .prj and .sln files or whatever build system. Not that bad thereโ€™s other stuff like meson to check out as well. A lot of cross platforms solutions for building c/c++ projects.
Anonymous
7/3/2025, 6:33:15 AM No.105784876
>>105783822
>C++ works but you have to be on linux
and then they dare call C# "locked down"
Replies: >>105795560
Anonymous
7/3/2025, 6:38:03 AM No.105784904
>>105783822
>low level languages need to have chaotic retard mess build systems
that's now it works midwit-kun
Anonymous
7/3/2025, 6:40:53 AM No.105784915
>>105783822
>skill issue
yeah you dont have a job and will never have one
Anonymous
7/3/2025, 7:49:00 AM No.105785313
>>105783385 (OP)
>If there was an exact copy of C or C++ that had the equivalent of cargo/pip/npm/go mod I would use it in a heartbeat
Conan exists you retard.
Replies: >>105785576 >>105788444
Anonymous
7/3/2025, 7:51:00 AM No.105785328
I'm not dependent on most mentally ill men on this planet for basic code I can write myself.
Replies: >>105785556
Anonymous
7/3/2025, 8:31:50 AM No.105785556
>>105785328
>t. ESL
Capitalizing and punctuating your sentences isnt helping you here
That aside, try writing opengl, glfw, sdl, imgui, qt, or boost from scratch, fucking retard
Replies: >>105785661
Anonymous
7/3/2025, 8:35:33 AM No.105785576
>>105785313
How is this shit any different from vcpkg
Anonymous
7/3/2025, 8:49:20 AM No.105785661
>>105785556
Try writing code that does more than create buttons for retards to click on.
Anonymous
7/3/2025, 9:59:55 AM No.105786074
>>105783385 (OP)
>the equivalent of cargo/pip/npm/go
That could be the package manager of your distro if you weren't a faggot.
Anonymous
7/3/2025, 10:21:25 AM No.105786188
A lot of people mention package management as one reason they really like Rust and other, newer languages over C and C++. There is vcpkg and Conan for C and C++, but while ecosystem support for those are improving over time, it is still a lot more work than Rust. It is difficult for C and C++ to do well here due to backwards compatibility concerns and existing ecosystem. But, is improving slowly.
Rust is not perfect in regards to package managememt and dependencies, the orphan rule comes to mind, but it is acknowledged widely that it does way better than C and C++ currently.
Replies: >>105793364
Anonymous
7/3/2025, 10:24:00 AM No.105786198
>>105783385 (OP)
cargo is one of the most, if not THE most vulnerable part of rust
also wtf are you even working on that deps become a problem?
Replies: >>105786242 >>105786294 >>105790023
Anonymous
7/3/2025, 10:29:06 AM No.105786229
Give me the inside scoop on C++ modules:

1: Are C++ modules trash, and why/why not?

2: Is the specification and design of C++ modules the issue, or is it just the ecosystem and tooling that have to catch up, and all we have to do is just Be Patientโ„ข and help out?

3: Was the specification of C++ modules changed officially/unofficially to fix it, like mandating that there may be no "import" declarations in any text included through the preprocessor? What's the story of C++ modules after it got accepted into C++20?

4: Why is there so much disagreement on the status of C++ modules, and what is right or wrong with them?
Replies: >>105793973
Anonymous
7/3/2025, 10:31:04 AM No.105786242
>>105786198
something that requires a GUI library (immediate mode is fine), plotting (somewhat optional, using rust I'll prob have to roll something myself), async, http, json unmarshaling, and websockets
>THE most vulnerable
dont care
this is a tool for personal use
also how is it more vulnerable than literally any other dependency management system (including c/c++)? using external libraries always carries risks, just dont be a retard/pussy
Replies: >>105786305 >>105795932
Anonymous
7/3/2025, 10:37:35 AM No.105786294
>>105786198
True, there have been complaints that projects in the Rust ecosystem have a tendency to pull in way too many (transitive) dependencies, making vetting of dependencies way more difficult, and there have also been cases of malicious packages that tried to mimic names of popular packages or expected package names.
>This week, GitHub user Askar Safin identified a malicious Rust crate 'rustdecimal' found on the crates.io registry. This package is a typosquat of the real 'rust_decimal' package and contains a rather elusive kind of obfuscation to download malware, as confirmed by the Sonatype security research team. The malware targets both Linux and macOS users.
It can be difficult to encourage more modest usage of powerful features in an ecosystem, and that can end up having practical consequences. One can of course avoid depending on a lot of projects, but that may limit what options a project has for its dependencies, including depending on popular projects that may themselves have a lot of transitive dependencies.
Replies: >>105786317
Anonymous
7/3/2025, 10:40:29 AM No.105786305
>>105786242
>a whole lot of webshit
yeah, thats definitely not the usecase for C
id expect more of sepples, doe. theyre the ones who want to be a jack of all trades master of none
>also how is it more vulnerable than literally any other dependency management system
recursive deps
younger ecosystem
worthless community workethics

so not only theres more to audit
not only theres less tools to do that
but also the community doesnt give a fuck bc youre a chud if you want to do your job right
amazon for instance doesnt use cargo. they have their own solutions. and this is the proper way of using rust
---
otherwise why dont you just go with python or something of that tier instead of learning a new language, and a turbo-bloated on at that?
Replies: >>105786367
Anonymous
7/3/2025, 10:42:55 AM No.105786317
>>105786294
theres a dead simple fix:
since youre dling the source instead of a binary, just recursively extract the live code form the deps- start at the top, and follow function calls
im beyond surprised and a little bit annoyed that this isnt a feature yet
annoyed because of the shilling, when it turns out the whole of rust community cant come up with such a basic idea
Replies: >>105786346
Anonymous
7/3/2025, 10:44:34 AM No.105786327
Real devs just use plain JS for everything.
Replies: >>105786333
Anonymous
7/3/2025, 10:45:37 AM No.105786333
>>105786327
if i used plain js in my project id be waiting one year for my computations to finish instead of several hours
you webshitters are completely devoid of imagination
Replies: >>105786341
Anonymous
7/3/2025, 10:46:52 AM No.105786341
>>105786333
Works on my machine.
Replies: >>105786345
Anonymous
7/3/2025, 10:47:25 AM No.105786345
>>105786341
would work on mine too
only too slowly...
Replies: >>105786354
Anonymous
7/3/2025, 10:47:27 AM No.105786346
>>105786317
How would that approach handle versioning? And updates? Would the downloaded code be vendored? What if dependency A depends on dependency C 2.0, but dependency B depends on dependency C 3.0?
Not that I know much about this topic, nor have I given it much thought, to be honest.
Replies: >>105786373
Anonymous
7/3/2025, 10:48:48 AM No.105786354
>>105786345
V8 is a speedy boy. Stop being poor and buy more ram if you're having problems.
Anonymous
7/3/2025, 10:51:07 AM No.105786367
>>105786305
because my app needs to be very fast and reliable
python doesnt suit my usecase at all
Im also pretty familiar with go and it would actually be better for this but I want to add rust to my toolbelt (its actually relevant to some jobs I want to apply to)
Replies: >>105786389 >>105786525
Anonymous
7/3/2025, 10:52:23 AM No.105786373
>>105786346
>What if dependency A depends on dependency C 2.0, but dependency B depends on dependency C 3.0?
how would that be a problem?
you would have one
somefunction_C_2_0(...)

and a
somefunction_C_3_0(...)


the code could then be re-packaged, but youre killing versioning then...
oooor
you save your "extracted code", and whenever a new version happens, you rerun the process
diff the two versions
and now you have the changes "marked in red" so to speak
making auditing subsequent versions much easier. for the maintainer, but also for the rest of the community
and you can then repackage again

makes the wort of auditors quite easier
and cuts down on bandwidth, and even compile times, for the end user i suspect
Anonymous
7/3/2025, 10:55:30 AM No.105786389
cve-rs
cve-rs
md5: 7be2a9492f43fccbe050b58ea3675208๐Ÿ”
>>105786367
>reliable
rust doesnt guarantee code correctness
it only enforces memory security
and its guarantees are quite iffy to be honest
but you do you
esp since you seem to care abt employement, so you will talk with hr roastis so you need to fill that resume up
Replies: >>105786483
Anonymous
7/3/2025, 11:13:01 AM No.105786483
>>105786389
>rust doesnt guarantee code correctness
No shit
Im not one of these rusttroons who thinks itll magically make me write good code
But increased memory safety does increase reliability
and the fact that your edge case to produce a seg fault is exactly that, an edge case, kind of reinforces that point
Replies: >>105786490 >>105786516 >>105786531
Anonymous
7/3/2025, 11:14:22 AM No.105786490
>>105786483
Garbage collection increases reliability. Use that.
Replies: >>105786525
Anonymous
7/3/2025, 11:18:51 AM No.105786516
>>105786483
>But increased memory safety does increase reliability
yeah but it comes at the cost of increased complexity
if you dont have problems with mem safety, rust becomes counterproductive
yes, it took me something like 200klocs in C before i stopped making mem mistakes
but people like me, and ones that are even more experienced do exist
and in our case rust would be a downgrade

you cant talk in absolutes because usecases vary and so the metrics of the problem of correctness
Replies: >>105786580
Anonymous
7/3/2025, 11:20:08 AM No.105786525
>>105786490
See >>105786367
Kill yourself, nigger.
Replies: >>105786541
Anonymous
7/3/2025, 11:21:10 AM No.105786531
>>105786483
The less 'unsafe' your code and your transitive dependencies in Rust uses, the better. Unfortunately, the Rust standard library uses quite a lot of unsafe, and has also had UB a fair number of times.
https://materialize.com/blog/rust-concurrency-bug-unbounded-channels/
>This experience reaffirms that even in a language like Rust, where memory safety is a cornerstone, the presence of unsafe code and relaxed atomics introduces the potential for subtle and severe errors. Our findings underscore the critical importance of exhaustive CI, robust diagnostic tooling (e.g., ASAN, Valgrind, Miri), and adversarial stress testing.
Pattern matching is neat in Rust overall, despite some relatively minor quirks and issues. Funnily enough, pattern matching in itself might be doing more for code correctness than the borrow checker in Rust.
Replies: >>105786901
Anonymous
7/3/2025, 11:23:20 AM No.105786541
>>105786525
Stop coping and start rewriting your project in C#.
Anonymous
7/3/2025, 11:29:36 AM No.105786580
>>105786516
^this is the namefag without a name field who spams all Rust threads with his C edits all day and derails them with inane comments. After writing 200klocs of C he claims that:
- malloc is a syscall
- templates incur a runtime cost
- borrow checking incurs a runtime cost
- you should just use half of your ram upfront for an arena memory pool instead
- he knows how to always write memory correct code (after a debugging session)
Replies: >>105786603 >>105786617 >>105786789
Anonymous
7/3/2025, 11:32:52 AM No.105786603
pepe-tearjerker
pepe-tearjerker
md5: f7e7e4e78530aa32ec0f703e7c6b0d02๐Ÿ”
>>105786580
>a character assasination psyops just for me
you made me laugh to tears anon
also youre signaling that my posts REALLY fuck your shit up
how is that supposed to make me stop???

youre such a bunch of fuckups lamao
Replies: >>105786617 >>105786676
Anonymous
7/3/2025, 11:34:47 AM No.105786617
Screenshot from 2025-07-03 11-33-36
Screenshot from 2025-07-03 11-33-36
md5: 0de01a0437a120a7007b915e7b4e79f8๐Ÿ”
>>105786580
>>105786603
yeah
self btfo again
such is the curse of the crab

this screenshot is gonna resurface at the most inopportune moment, i can assure you
Replies: >>105786636 >>105786676
Anonymous
7/3/2025, 11:35:35 AM No.105786624
>>105783385 (OP)
>the equivalent of cargo/pip/npm/go mod I would use it in a heartbeat
People like you and the people who invented that cancerous shit need to be flogged and executed.
Anonymous
7/3/2025, 11:38:19 AM No.105786636
>>105786617
(You)

Flamebaiting samefag. I guess that image really will be posted.
Replies: >>105786658
Anonymous
7/3/2025, 11:40:54 AM No.105786658
>>105786636
>damage control
why do you engage then, retards?
as far as youre concerned, getting btfod by the
"no-name namefag" is a constant in the universe

youre actually self btfoing, and im only helping you in that
Replies: >>105786718
Anonymous
7/3/2025, 11:43:25 AM No.105786676
>>105786603
>>105786617
Buckbroken. The best part is that these bare metal performance conscious cniles most often don't even know assembly. They're literally btfo by the Asahi rust troons.
Replies: >>105786709
Anonymous
7/3/2025, 11:47:43 AM No.105786709
nocodeshitters
nocodeshitters
md5: c8bc6503eb8e790ea343316fcc077708๐Ÿ”
>>105786676
>
Replies: >>105786772
Anonymous
7/3/2025, 11:48:45 AM No.105786718
>>105786658
You're confusing me with someone else. Unless you're just the flamebaiter.
Also be more kind to yourself.
Replies: >>105786727
Anonymous
7/3/2025, 11:50:20 AM No.105786727
crab-knife
crab-knife
md5: 7115dea866a92b764810166c53c3d4dd๐Ÿ”
>>105786718
>cant even follow a discussion
and so you need rust
Replies: >>105786772
Anonymous
7/3/2025, 11:55:29 AM No.105786772
>>105786709
Show me your apple silicon Vulkan driver written in C in about a month. By the time those rust troons finished you'd still be debugging triangle drawing in GDB and Valgrind.
>>105786727
If you spent all that time you put in flamebaiting, larping and making retarded rust edits in learning the language instead you'd be a pretty t-girl by now, programming socks and all
Replies: >>105786789
Anonymous
7/3/2025, 11:57:53 AM No.105786789
crab-roast
crab-roast
md5: 029649846466b4e92b9c8eb39e0966f9๐Ÿ”
>>105786772
>flamebaiting
>>105786580
everything you say is projection
rust is a lang for the developmentally retarded ep 123456789
Replies: >>105786794
Anonymous
7/3/2025, 11:59:13 AM No.105786794
>>105786789
Those Asahi troons achieved more in life than you ever will. Go paint some walls
Replies: >>105786802
Anonymous
7/3/2025, 12:00:20 PM No.105786802
rust-threads
rust-threads
md5: ee450f1ef806472a073b5bf0c3ed4584๐Ÿ”
>>105786794
but by painting walls i already achieved more than them
->i got paid for that
L
Anonymous
7/3/2025, 12:02:16 PM No.105786816
IMG_3458
IMG_3458
md5: 7bda75fb3b7268e7591dd3871dd0bba9๐Ÿ”
>ITT
Replies: >>105786835
Anonymous
7/3/2025, 12:04:21 PM No.105786835
soulless-pepe-round
soulless-pepe-round
md5: 2eae4f2817399d48a0ae9413b3220105๐Ÿ”
>>105786816
>tactical retreat
no
you started
got btfod like the retard you are
and you are now seething, trying to save face

you wont
the board, and even normies know you by now
theres nothing to save
Anonymous
7/3/2025, 12:14:19 PM No.105786901
>>105786531
>The less 'unsafe' your code and your transitive dependencies in Rust uses, the better
Wrong
Replies: >>105786905 >>105788691
Anonymous
7/3/2025, 12:15:28 PM No.105786905
int-the-trash
int-the-trash
md5: bdbcfba67cc2bd8111fa25aa52530879๐Ÿ”
>>105786901
>shartypedo = opinion automatically retarded
Anonymous
7/3/2025, 12:28:41 PM No.105786984
Rust is not a perfect language, but damn, it is better than all of the rest.
crates I use often:
- thiserror
- slab
- tokio_postgres
- axum
- petgraph
- itertools
- chrono
Replies: >>105787005 >>105789132
Anonymous
7/3/2025, 12:32:33 PM No.105787005
>>105786984
>filtered by threads
>doesnt understand the concept of usecase
this is your brain on rust
just say no!
Replies: >>105787034
Anonymous
7/3/2025, 12:35:22 PM No.105787034
>>105787005
I've built my own language with green threads
you are the one that is filtered
Replies: >>105787047
Anonymous
7/3/2025, 12:37:12 PM No.105787047
kys
kys
md5: 23535a20d6a102e44a5780a15251993e๐Ÿ”
>>105787034
>green threads
>emulation
so you made pretend threads in your pretend lang, right?
Replies: >>105787066
Anonymous
7/3/2025, 12:38:26 PM No.105787059
>>105783617
Why is it a problem?
Replies: >>105787088
Anonymous
7/3/2025, 12:39:04 PM No.105787066
>>105787047
I'm done talking with you
there is zero point to engaging with someone that thinks they know everything
Replies: >>105787073
Anonymous
7/3/2025, 12:39:47 PM No.105787073
loonix
loonix
md5: 48200eea677c6b2392587307c83e67e0๐Ÿ”
>>105787066
i dont know everything but yeah, fuck off, illiterate d&k
Anonymous
7/3/2025, 12:41:20 PM No.105787088
Screenshot from 2025-07-03 12-40-57
Screenshot from 2025-07-03 12-40-57
md5: 286c1ba5cb789f166b3d4be331b143b1๐Ÿ”
>>105787059
yeah, i wonder why
Replies: >>105787104
Anonymous
7/3/2025, 12:43:08 PM No.105787104
>>105787088
?
Replies: >>105787126
Anonymous
7/3/2025, 12:46:21 PM No.105787126
Screenshot from 2025-07-03 12-46-10
Screenshot from 2025-07-03 12-46-10
md5: 090980e7de704d520eb9dc6b0e6d60be๐Ÿ”
>>105787104
>1.1 gig mem usage for a fukken webpage
its not really a problem in itself
bc browsing the web is a frivolous activity
but its symptomatic of a larger ailment in the industry
fukken windows menu written using react is another one
Replies: >>105787158 >>105787175
Anonymous
7/3/2025, 12:50:52 PM No.105787158
>>105787126
you think the problem is dependencies. you are wrong.
Replies: >>105787169
Anonymous
7/3/2025, 12:52:39 PM No.105787169
>>105787158
no
dont try to devine what im thinking. its a midwits move
ask it instead-

and what i think is not that deps are the problem
OVERRELIANCE on them, is
Replies: >>105787183 >>105787186 >>105787191
Anonymous
7/3/2025, 12:53:52 PM No.105787175
>>105787126
And what has it to do with programming language dependencies?
Replies: >>105787191
Anonymous
7/3/2025, 12:54:52 PM No.105787183
>>105787169
that, again, is not the problem.
I suggest you look at the DOM of Youtube and attempt to surmise the problem.
Replies: >>105787212 >>105787272
Anonymous
7/3/2025, 12:55:05 PM No.105787186
>>105787169
You're a no coder and have no idea how dependencies work.
Replies: >>105787195 >>105787212
Anonymous
7/3/2025, 12:55:31 PM No.105787191
>>105787175
>>105787169
Replies: >>105787195 >>105787272
Anonymous
7/3/2025, 12:56:07 PM No.105787195
>>105787191
>>105787186
Replies: >>105787272
Anonymous
7/3/2025, 12:58:47 PM No.105787212
>>105787186
fine argument but you still drink cum
and that it comes from a plastic jug doesnt make it any less gay.
>>105787183
im not a webshitter
tell me whats the problem then
how possibly can you go from a state where 1.1gigs used to be enough for the whole system- to be merely sufficient for one sole webpage?
Replies: >>105787274
Anonymous
7/3/2025, 1:07:14 PM No.105787272
>>105787195
>>105787191
>>105787183
>3 webshitters
>all amgery
>all btfod by simply asking them whats their opinion
this is bad, lads
sad, even
get laid or something
Anonymous
7/3/2025, 1:07:18 PM No.105787274
>>105787212
It's a perfectly appropriate argument for someone who accuses a feature that has nothing to do with the problem he points to.
Replies: >>105787294
Anonymous
7/3/2025, 1:09:32 PM No.105787294
>>105787274
it a non argument retard
also that i dont do webdiarhea doesnt mean i cant understand how a computer works
in fact
i start to believe webshitteryt is a mental illness which prevents you from achieving that understanding

so now,
if it isnt dependencygasm
why did youtube mem footprint multiply like salmonella?
Anonymous
7/3/2025, 1:15:34 PM No.105787342
>more silence
ok
so i guess i know more about webshittery than you, despite avoiding the subject like an electric fire
Anonymous
7/3/2025, 1:16:46 PM No.105787354
ODIN fixes this
Replies: >>105794027
Anonymous
7/3/2025, 3:23:43 PM No.105788444
>>105785313
With rust, you can git clone anything, run the same cargo command, and it just werks. Can't do that with Conan because most C++ projects don't use conan.
Replies: >>105794037
Anonymous
7/3/2025, 3:50:29 PM No.105788691
>>105786901
Why?
Replies: >>105788833
Anonymous
7/3/2025, 4:04:34 PM No.105788833
>>105788691
its a rustnigger
trying to reason with him is a waste of time
you'd get better luck trying to reason with a rock
at least it wont try to gaslight you
Anonymous
7/3/2025, 4:36:09 PM No.105789132
>>105786984
>thiserror
I heard complaints about boilerplate code when doing error handling in Rust, and that a common alternative, 'anyhow', had drawbacks like losing out on more narrow types.
What are your experiences with error handling in Rust?

One alternative that has been proposed was https://github.com/rust-lang/rfcs/issues/294 , which is reminiscent of C++'s std::variant but with pattern matching and some extra functionality for merging different tagged unions (also something about untagged unions). Another alternative might have been https://github.com/rust-lang/rfcs/issues/2414 .
Replies: >>105789162 >>105789184 >>105789355 >>105790084
Anonymous
7/3/2025, 4:38:41 PM No.105789162
>>105789132
going back to a more serious tone:
what are the rust devs thinking?
people are creating fucking libs to be able to cope with the language?
what more do they need to understand the lang is in dire need of streamlining?
Replies: >>105789184 >>105789264
Anonymous
7/3/2025, 4:41:00 PM No.105789184
>>105789132
>>105789162
(cont)
theres an easy fix
and a lazy one-
just say certain select libs are part of the standard now
everyone will focus on them so the issues will be ironed out pretty quick

theres a deficiency in leadership in the rust team id say
this is not the first idea i share about how to improve on the language
and it is a minimum-effort one, like the rest ( of ideas i share)
Replies: >>105789264
Anonymous
7/3/2025, 4:46:58 PM No.105789245
>>105783385 (OP)
>cargo/pip/npm/go
Please stop it. Compiler devs don't have to make a package manager and every time they do it, it's shit. Package manager is absolutely not related to programming language, they shouldn't be doing it just like they shouldn't make their own IDE or their own console or browser, despite that you need to use those for programming with their language. If you don't like your package manager just use a better one. Microsoft doesn't provide you with a good one and you don't want to use linux? Great, write a feature request on their forums or whatever. Please stop, you are making things worse.
Anonymous
7/3/2025, 4:48:46 PM No.105789264
>>105789162
>>105789184
flamebaiting
Replies: >>105789455
Anonymous
7/3/2025, 4:59:22 PM No.105789355
Screenshot from 2025-07-03 09-54-26
Screenshot from 2025-07-03 09-54-26
md5: 7bfb7e73fc9e2ae459257ca799f2e3e0๐Ÿ”
>>105789132
yes, error boilerplate can be annoying. I have heard of anyhow, but have not tried it, nor do I have an interest in trying it.
the crux of the issue with error management is assigning identifiers to each failable code path within your codebase.
I give each function that can return an error its own error enum (identifies the function that failed). I give each failed code path its own member in the enum (identifies the path that failed). `#[from]` is used liberally to link to downstream errors.
tl;dr: error handling in general is a bitch (if you care about being able to determine what exactly went wrong). I think spending the time writing the boilerplate initially is worth it, because it prevents me from needing to go back to old code and update its error handling shenanigans when I find that I actually am interested in figuring out what exactly went wrong.
Replies: >>105789853 >>105790565
Anonymous
7/3/2025, 5:08:10 PM No.105789441
>>105783385 (OP)
i learned bazel for the same reason
its sad that the only sane build system for c++ is a java tool made from whatever internal code scraps google bothered to publicly release
Anonymous
7/3/2025, 5:09:47 PM No.105789455
ukaki0l
ukaki0l
md5: 6de3432da7b23031bd0f55a1721b12a7๐Ÿ”
>>105789264
that was ironical.
Anonymous
7/3/2025, 5:13:58 PM No.105789494
(btw since i dont get hate, i will post my o-ekakis more often? feel free to borrow the style, the idea is to express as much as you can, with as little lines as feasible. also use a mouse, if you use a pen thats too easy)
Replies: >>105789570
Anonymous
7/3/2025, 5:21:56 PM No.105789570
ukaki2
ukaki2
md5: 24d424b48cdff58243d30d70dc8bc37a๐Ÿ”
>>105789494
(but the square eyes are mine)
(thats my signature, find yours)
Replies: >>105789698
Anonymous
7/3/2025, 5:34:17 PM No.105789698
copycat
copycat
md5: 5ad5699a94d18ccd149150cf7082a6c7๐Ÿ”
>>105789570
Replies: >>105790209 >>105790276 >>105790300
Anonymous
7/3/2025, 5:48:55 PM No.105789853
>>105789355
Imagine if the first result instead looked something like:

#[derive(Debug, Error)]
#[error("password too small")]
pub struct PasswordTooSmall {...}

#[derive(Debug, Error)]
#[error("password too big")]
pub struct PasswordTooBig {...}

#[derive(Debug, Error)]
#[error("password has invalid character")]
pub struct PasswordHasInvalidCharacter {...}

#[derive(Debug, Error)]
#[error("password not equal")]
pub struct PasswordsNotEqual {...}

fn check_passwords() -> rust_variant[
PasswordTooSmall,
PasswordTooBig,
PasswordHasInvalidCharacter,
PasswordsNotEqual
] {...}


More verbose for a single function, though the more each error struct is used across more functions, the better this approach would probably be relative to the current state in Rust. In the example you give, some of the error options appear in multiple enums.
But, as the Github issues show, something like rust_variant may not be that easy to figure out well.
Replies: >>105789956 >>105790565
Anonymous
7/3/2025, 5:53:56 PM No.105789887
>>105783675
pacman -S llvm
Anonymous
7/3/2025, 6:03:51 PM No.105789956
>>105789853
>passwords not equal
Anonymous
7/3/2025, 6:12:07 PM No.105790023
>>105786198
It's more secure than relying on random packages provided by myriad of random package managers in random distros.
Replies: >>105790136
Anonymous
7/3/2025, 6:13:54 PM No.105790045
>>105783385 (OP)
Everything you said is retarded and I hope you fucking die
Anonymous
7/3/2025, 6:18:14 PM No.105790084
>>105789132
>What are your experiences with error handling in Rust?
Use thiserror for libraries and anyhow for programs.
I don't find this bothersome, it just werks. Pattern matching thiserror is easy and anyhow makes mixing error types trivial.
Replies: >>105790292
Anonymous
7/3/2025, 6:21:30 PM No.105790117
>>105783385 (OP)
>vcpkg
Conan and meson my guy. turns out hijacking pip for c++ is great
Anonymous
7/3/2025, 6:23:33 PM No.105790136
juw-iq
juw-iq
md5: 8203cc3f46f2d4d11481ac09512d99b2๐Ÿ”
>>105790023
thats wbshit considerations
and you can do better, just earmark a couple libs as standad and then everyone concentrates on them to make em bulletproof

BUT NO
JUST FUCKING TRUST THE TOOLCHAIN? YOU FUCKING GOY
except
im smarter tthan you
and thats why your women outbreed so much because jewish blood is poison
it kills your children's future.
Replies: >>105790158 >>105790513
Anonymous
7/3/2025, 6:26:08 PM No.105790158
>>105790136
Learn English
Replies: >>105790168 >>105790513
Anonymous
7/3/2025, 6:26:43 PM No.105790168
>>105790158
no, you will learn my creole instead, half human
Anonymous
7/3/2025, 6:30:37 PM No.105790209
ukaki
ukaki
md5: 12bb1486c33c58347cafe54b46a05a07๐Ÿ”
>>105789698
its obvious that aint the original
but im willing to admit that squares SEPARATE from brows is another signature
but you have to make that style distinctive then, no?
Anonymous
7/3/2025, 6:37:07 PM No.105790276
smug
smug
md5: 9ac3c59d09fdc7159976ef1c776a7154๐Ÿ”
>>105789698
the idea of expressing an emotion is also important
Anonymous
7/3/2025, 6:39:36 PM No.105790292
>>105790084
Not everyone likes anyhow, even for programs.
https://felix-knorr.net/posts/2025-06-29-rust-error-handling.html
https://reddit.com/r/rust/comments/1lnbr0g/on_error_handling_in_rust/
Replies: >>105790486
Anonymous
7/3/2025, 6:40:38 PM No.105790300
smug-but-no
smug-but-no
md5: cfa4eca81cc6c32575c60ddba66fd2b2๐Ÿ”
>>105789698
its part of the whole idea
emulate anime art
caricaturize emotions with the least strokes possible
bc you have a studio of 20 fukken people and have to animate 10k hours of anime
in a way its a hommage, too
Anonymous
7/3/2025, 6:58:52 PM No.105790486
>>105790292
>Not everyone likes
There are only two kinds of languages: the ones people complain about and the ones nobody uses.
It works for me.
Replies: >>105790672
Anonymous
7/3/2025, 7:00:47 PM No.105790513
>>105790136
>>105790158
samefag
Anonymous
7/3/2025, 7:01:56 PM No.105790529
Screenshot from 2025-07-03 19-01-09
Screenshot from 2025-07-03 19-01-09
md5: 5424d7a123fbd85231ad932c49ec8a6b๐Ÿ”
105790513
Anonymous
7/3/2025, 7:05:04 PM No.105790565
>>105789355
>>105789853
https://gist.github.com/osa1/38fd51abe5247462eddb7d014f320cd2
Anonymous
7/3/2025, 7:05:48 PM No.105790577
negrocat
negrocat
md5: 1e9860ae79de87a6e0f38107c771b3f2๐Ÿ”
no (you) btw
in case you missed it btw
Replies: >>105790615
Anonymous
7/3/2025, 7:09:10 PM No.105790615
>>105790577
devilish
Anonymous
7/3/2025, 7:09:33 PM No.105790625
105790158
105790136
105790529
105790577
vpn
Anonymous
7/3/2025, 7:13:28 PM No.105790672
>>105790486
Zig. I've never met a person that uses Zig complain about Zig.
Replies: >>105790702 >>105791297
Anonymous
7/3/2025, 7:16:52 PM No.105790702
>>105790672
I have seen quite a lot of complains about zig in their issue tracker. It seems that all this criticism is quickly silenced too.
Replies: >>105790960
Anonymous
7/3/2025, 7:19:35 PM No.105790721
>>105783385 (OP)
The dependency management is literally one of the worst parts of these languages.

You got filtered by .mk, truly not my problem.
Anonymous
7/3/2025, 7:40:27 PM No.105790960
>>105790702
Only thing I can think of off the top of my head was when people were complaining that they wanted their own compiler instead of LLVM, how many packages it would break. I've heard people say the package manager is a bit rough to use too, but it's still in production.
Replies: >>105791270
Anonymous
7/3/2025, 8:06:14 PM No.105791270
>>105790960
RAII, better closures, no tabs support, etc
Anonymous
7/3/2025, 8:08:33 PM No.105791297
>>105790672
No one uses zig

Have you ever seen any zig thread? They are 100% artificial shilling like hare threads. Literally no one ever posts any personal projects. They just circlejerk around shitting on C++ and Rust.
Replies: >>105791343 >>105793250
Anonymous
7/3/2025, 8:12:54 PM No.105791343
>>105791297
Bun is written in Zig. Though Bun is a scam kind of since they shilled themselves on having faster than rust HTTP and websockets, and it turned out that's just because they were using uws.js which is just using a C++ library lmao. Then the uws.js creators themselves called out Bun on their own Github package saying it works 80% faster on Node.js and the bun creator started posting crying emojis on twitter lmao
Anonymous
7/3/2025, 11:32:51 PM No.105793164
are you fucking stupid
are you fucking stupid
md5: b7040b87ce040383a08947b665e091e4๐Ÿ”
>>105783385 (OP)
"Modern" dependency management is just Wintoddlers discovering package managers, refusing to install Gentoo, and then bolting a new package manager to every language they want to use. Every other system has this figured out, even Macs have brew and it just works, but for some reason cargo is this magical revelation to Windows users because they refuse to use winget or chocolatey.
Replies: >>105793177 >>105794018
Anonymous
7/3/2025, 11:34:45 PM No.105793177
>>105793164
>brew
>just works

I'm pretty sure it's the most complained about package manager I've ever heard of.
Replies: >>105793224
Anonymous
7/3/2025, 11:41:21 PM No.105793224
soy.dmg
soy.dmg
md5: fe3597c2bbd4ba648c35bcd6d62fadfc๐Ÿ”
>>105793177
Works on my computer. It's retarded that it's written in Ruby, but it's certainly not the worst I've ever used. apt is universal shit, pacman has a bunch of retarded corner cases and Arch jannies are fools that package some of the worst vomit I've ever seen in a package manager, and portage shits the bed whenever python updates in its vicinity. Brew's pretty smooth sailing by comparison, but maybe I should chalk that up to only controlling a handful of packages that mostly live on the command line.
Replies: >>105793341 >>105793465
Anonymous
7/3/2025, 11:41:57 PM No.105793229
>>105783385 (OP)
Since when was rust a chud lang?
Anonymous
7/3/2025, 11:44:19 PM No.105793250
>>105791297
If they can untangle their shit from llvm, Zig is the only nulang that has any potential. If I was going to use llvmslop I'd probably use C3 instead. Hare's only a non-starter because nobody trusts Drew not to be a malevolent dictator for life.
Replies: >>105793263 >>105793302
Anonymous
7/3/2025, 11:46:06 PM No.105793263
>>105793250
The ziggers were all upset and whining that untangling from llvm would break all their shit. Particularly the tranny writing Mach game engine, which is way behind schedule and seems like a hopeless project.
Anonymous
7/3/2025, 11:51:54 PM No.105793302
>>105793250
They have made the first steps towards that. x86 debug mode is self hosted.
Anonymous
7/3/2025, 11:56:41 PM No.105793341
>>105793224
>Works on my computer
Well try to install package for other user

>portage shits the bed whenever python updates in its vicinity
Literally never happens
Anonymous
7/4/2025, 12:00:17 AM No.105793364
>>105786188
>it is still a lot more work than Rust
work harder or you cant be successful
Anonymous
7/4/2025, 12:13:14 AM No.105793451
>>105783385 (OP)
Bruh u just download random zip files into your directory and extract them in esoteric and complicated directory hierarchies and then do some cmake magic like it's not hard.
Anonymous
7/4/2025, 12:15:20 AM No.105793465
>>105793224
brew is unwashed ass and anyone who says otherwise has either barely used it or just assumes the most macos-adjacent option must be the best because apple
Anonymous
7/4/2025, 1:13:07 AM No.105793943
>>105783385 (OP)
>vcpkg
use CPM.cmake
https://github.com/cpm-cmake/CPM.cmake
Anonymous
7/4/2025, 1:18:28 AM No.105793973
>>105786229
>or is it just the ecosystem and tooling that have to catch up, and all we have to do is just Be Patientโ„ข and help out?
think this the issue.

I'm just waiting to see if it's even worth it. a lot of shit is not on paper and not in the compilers or this case the libraries/modules
Anonymous
7/4/2025, 1:25:52 AM No.105794018
>>105793164
install packages, use fucking pkg-config
Anonymous
7/4/2025, 1:27:18 AM No.105794027
>>105787354
is that rust derivate thing that has automatic c/c++ binding? no.. that's carbo-something+
Anonymous
7/4/2025, 1:28:20 AM No.105794037
>>105788444
can't you do that with meson, ninja and htose guys?
Replies: >>105795550
Anonymous
7/4/2025, 3:10:18 AM No.105794706
shit like cargo and maven are cringe

just script the dependency paths string concatenation and feed it into a one liner compiler

if you need makefiles and yaml and xml and shit to compile what the fukc is the point

literal make work horseshit. MUH WORKFLOOOOOW

IM GONNA FLOOOOW

fuck off baseddevfaggotniggers
Replies: >>105794734
Anonymous
7/4/2025, 3:13:29 AM No.105794734
>>105794706
>if you need makefiles and yaml and xml and shit to compile what the fukc is the point
You don't. Cargo does most of the work for you.
The actual issue is cultural because webshits are obsessed with putting everything into a tiny micro-package and never collaborate. Plus they make literally everything async.
Replies: >>105794749
Anonymous
7/4/2025, 3:15:37 AM No.105794749
>>105794734
>Cargo
still needs a toml file full of makework semantics retardation
Replies: >>105794762
Anonymous
7/4/2025, 3:17:31 AM No.105794762
>>105794749
Yeah, no. A few lines of text in a glorified ini file is almost no effort at all compared to make. If you're too buckbroken by 70s software design to see that, that's your problem.
Replies: >>105794771 >>105794796
Anonymous
7/4/2025, 3:18:46 AM No.105794771
>>105794762
compared to dependencies += path it is absolutely makework bloated horseshit semantics id rather not deal with
Anonymous
7/4/2025, 3:20:52 AM No.105794793
>>105783385 (OP)
Just use header only libraries with thick non-leaky wrappers, fuck dependency management.
Anonymous
7/4/2025, 3:21:00 AM No.105794796
Screenshot from 2025-07-04 03-19-20
Screenshot from 2025-07-04 03-19-20
md5: f00ff7c7dc5a8f50b5bdff64691a3e2c๐Ÿ”
>>105794762
>at all compared to make.
<make
imagine getting filtered by this
and then the fucking crabs larp as le elite brogrammers

i highlighted actual code btw, the printout clause (its actually called a recipe) is a printout of some stats about the project
Replies: >>105794817
Anonymous
7/4/2025, 3:23:12 AM No.105794817
>>105794796
also cringe and gay
Replies: >>105794831
Anonymous
7/4/2025, 3:25:21 AM No.105794831
clownstrike-10
clownstrike-10
md5: 4c7f71aa45f7ef72194d826f5de1026b๐Ÿ”
>>105794817
i use em just bcoz youre supposed to
i dont even have object files in how i compile so i might as well do that in a shell
but point still stands
make is easy
even if it was written by an autist
Replies: >>105795218
Anonymous
7/4/2025, 4:25:54 AM No.105795218
>>105794831
reminder this was wwirtron inr ust
Anonymous
7/4/2025, 5:31:08 AM No.105795550
>>105794037
Nope, those don't take care of dependency management which is the most painful part.
Anonymous
7/4/2025, 5:33:02 AM No.105795560
>>105784876
if something is exclusive to linux, that means it's open.
if something is exclusive to mac or windows, that means it's locked down.
happy to have educated you today
Anonymous
7/4/2025, 6:30:58 AM No.105795830
>>105783385 (OP)
If I were to redesign C++ from scratch, it would look more like Rust than C++23.
Anonymous
7/4/2025, 6:31:06 AM No.105795834
>the eunuchs are fighting
>AGAIN
Pascal never had that problem.
Anonymous
7/4/2025, 6:47:58 AM No.105795917
>>105783385 (OP)
Rust's abysmally slow build times eat into productivity more than managing a handful of dependencies.
Anonymous
7/4/2025, 6:49:52 AM No.105795932
file
file
md5: a99ceb3c5a0bf77e546990aaa0da204a๐Ÿ”
>>105786242
Just use https://www.ultimatepp.org/

It has GUI, plotting, async, http, json and websocket support.