[a / b / c / d / e / f / g / gif / h / hr / k / m / o / p / r / s / t / u / v / vg / vm / vmg / vr / vrpg / vst / w / wg] [i / ic] [r9k / s4s / vip] [cm / hm / lgbt / y] [3 / aco / adv / an / bant / biz / cgl / ck / co / diy / fa / fit / gd / hc / his / int / jp / lit / mlp / mu / n / news / out / po / pol / pw / qst / sci / soc / sp / tg / toy / trv / tv / vp / vt / wsg / wsr / x / xs] [Settings] [Search] [Mobile] [Home]
Board
Settings Mobile Home
/g/ - Technology


Thread archived.
You cannot reply anymore.


[Advertise on 4chan]


File: uh.png (73 KB, 1004x562)
73 KB
73 KB PNG
>let's turn c++ into rust but worse
why are C++ fags like this?
https://www.open-std.org/jtc1/sc22/wg21/docs/papers/2022/p2561r0.html
>>
>>106431864
>no borrow checker
>no cargo 44GB target/ folder slop
So it is Rust but better by definition lmao. Shame it will take another decade for compilers to support this (gcc STILL doesn't support C++20 modules)
>>
>>106431878
Storage size only filters the third worlders. A literal nothingburger
>>
>>106431878
Redpill me on the borrow checker. It seems to me that if it stops compilation, doing something similar in C++ would be undefined behavior or just plain wrong.
>>
>>106431989
It's a branlet filter
>>
>>106431905
t. electron vibe coder
>>
>>106431905
it's a made up issue like all /g/eet talking points.
no one is actually filtered, because not only those /g/eets don't code, they don't even build/compile stuff.
if people were really that bothered (relevant people, not /g/eets), sharing via sccache would have gotten more popular. hell, we might even have seen someone wrap a binary package tool around it by now so you wouldn't have to build dependencies from scratch if you didn't want to. but the reality is, while one can always do better, neither /target size, nor compilation time, are hindering issues for rust. compilation time is impressively fast if anything.
>>
>>106432043
okay, fizzbuzz artistisan
>>
File: 1756559682562.png (59 KB, 826x450)
59 KB
59 KB PNG
>>106431905
Your country is probably a shithole compared to mine
>>
>>106431905
>just bloatmaxx bro why even bother about quality-of-life things when you can just act like a filthy pajeet and spread your cancer everywhere
your negroid-level mindset is the reason even the most basic applications are massive and run like shit
>>
>>106431864
Template metaprogramming was a mistake.
>>
This will revolutionize C++
https://safecpp.org/draft.html#borrow-checking
>>
>>106431864
jews are literally trying to destroy C++. There can be absolutely zero doubt now.
>>
>>106432133
let me guess, you're culturally rich ranjeet?
>>
>>106431864
>literally in an isolated scope
>STILL prefix everything with random ass underscores
>still snake_case bs
why?
>>
>>106432748
No, I am a Slovenian. Pajeets use MacOS
>>
>>106433443
Naprej zastava slave,
na boj junaška kri
za blagor očetnjave
naj puška govori!

Z orožjem in desnico,
nesimo vragu grom,
zapisat v kri pravico,
ki terja jo naš dom.

Your language is just Serbo-Croatian but more retarded
>>
>>106433470
My language is just Serbo-Croatian but without the Pajeet-Turkish accent for example we have no letter Ł which makes any language Turkish-tier immediately
>>
>>106431864
This is retarded. Just use exceptions.
>>
>>106431864
>>106432330
I haven't looked at the proposal, and I am a bit concerned about corner cases and other aspects, but what would be bad about it otherwise?

>>106433437
I think the right code snippet is meant to show what it evaluates to, as in, one possible example of what the language could generate of code from the left code snippet.
>>
>>106431864
rust is literally c++ but worse
>>
>>106433517
Serbo-Croatian does not have Ł
They have Љ
>>
>>106433584
They don't write it, but they speak it
>>
>>106433582
Rust has some good things compared to C++, but despite it being much newer and not having backwards compatibility constraints when it was first designed, Rust has significant issues (inb4 any triggered Rust evangelists butt in and pretend they don't already know the issues). This is a lost opportunity, in my opinion. Rust is in some ways a clear and large upgrade over C++, in other ways more of a sidegrade, and in yet other ways a downgrade.

Programming language development is difficult.

What makes matters much worse is the lack of honesty (ignoring other issues with the Rust community) in the Rust community about some of the issues of the programming language Rust. That makes it more difficult for the designers of future programming languages to learn from the good and bad aspects of Rust, and makes it harder for the Rust community to improve and handle Rust's issues.
>>
>>106433711
Rust is just better, designed sanely and not just random slop piled on top of old C
>>
>>106433723
>not just random slop piled on top of old C
But Rust is very heavily inspired by C++. Even has RAII. In some places in the reference of Rust, it is even defined based on C++.
>>
>>106433723
>Rust is just better, designed sanely
The Rust borrow checker could be a whole thread of discussion.
Orphan types.
Pinning.
Rust is not yet fully specified, it is an active area of research.
Type system holes.
Solver woes (like, what even are these issues https://github.com/lcnr/solver-woes/issues ).
Unsafe being significantly more difficult than C++.
Panics not being exceptions, except sort of when a crate/project setting is used to not abort upon panics, but make the program unwind upon panics, and then in some cases letting catch_unwind catch the panics (the panics that are not exceptions, remind you), and unwind safety being something that Rust developers have to know about when using that setting AFAIK, similar to C++ exception safety.
>>
>>106433723
>>106433827
Forgot to mention the time crate 1.80 debacle.
https://internals.rust-lang.org/t/type-inference-breakage-in-1-80-has-not-been-handled-well/21374
And the multiple different crates that the Rust community have authored for avoiding the borrow checker due to it often being unergonomic. https://donsz.nl/blog/arenas/
https://www.reddit.com/r/rust/comments/1etbfym/a_comparison_of_every_arena_in_rust/
>>
>>106431989
There are 2 types of people that shill the borrow checker.
> Webdevs that only know javascript and they need someone to hold their hand to stop them doing retarded shit.
> Trannies that garner all meaning in their life from the programming language they use
Everyone else hates it.
>>
>>106433884
NTA, but I don't think the borrow checker is without value, but it is definitely not a free lunch either. But the borrow checker has to be considered together with the escape hatch(es) used with it.
>>
>>106433931
What escape hatches are you talking about in this context?
>>
>>106434004
It depends on the definition that is used for "escape hatch". But, in all definitions, unsafe is a/the escape hatch for borrow checking. Unsafe does not disable all borrow checking or type checking, but it does allow things that are not allowed otherwise.
>>
>>106431905
It gives me the ick. Because it smells of carelessness and future issues.
>>
>>106433437
because names that start with underscores are reserved by the compiler
>>
>>106434044
>Unsafe does not disable all borrow checking or type checking, but it does allow things that are not allowed otherwise.
no shit ???
>>
>>106435633
FR FR.



[Advertise on 4chan]

Delete Post: [File Only] Style:
[Disable Mobile View / Use Desktop Site]

[Enable Mobile View / Use Mobile Site]

All trademarks and copyrights on this page are owned by their respective parties. Images uploaded are the responsibility of the Poster. Comments are owned by the Poster.