[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 / qa] [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

[Advertise on 4chan]


Thread archived.
You cannot reply anymore.


[Advertise on 4chan]


http://harmful.cat-v.org/software/c++/linus
>>
He’s so based. Carmack turned on C++ in the end as well.
>>
>>84460352
I'm not a fan of Torvalds, but this is one occasion where I completely agree with him.
>>
No, Rust cult is actively trying to shit on it while providing absolute dogshit of a syntax to begin with. C++14 is a good standard, you are not required to use all those templates, you are not required to use virtual functions, you are not required to use classes. You are free to use C++ in any way you like, nobody forces you to do anything. Nowadays the trend is RAII because it's a retard filter. C++ doesn't force you to use its shitty parts in order to get the work done.

What I don't understand is the aggressive Rust community. They actively strike C++ and C++ programmers while all they do is re-write anything that was originally written in C/C++ into Rust. I am still yet to see an original work from that cult. Their committee is in a constant fight amongst themselves and every new Rust revision approaches the undefined behavior land of C. I feel like after they spend many years improving Rust, they will converge at the path C++ had to go through.
>>
>>84460446
>youre not required BLABLABLABLA
then why don't you just fucking use C if you're not going to use anything?
retarded nigger
>>
>>84460737
You're fucking stupid.
>>
File: 1637833481398.gif (820 KB, 1540x1222)
820 KB
820 KB GIF
>>84460910
and you are a
n
i
g
g
e
r
bros its fine!!!! just dont use any of the features!!!!
>>
>>84460446
>I am still yet to see an original work
this is basically the only important point. People are welcome to go play with their hobby languages but I'll keep doing real and interesting work that people pay 7 figures for, thanks. A programming language is just a means to an end for me, writing code is not a skill nor hard.
>>
>>84460390
Not surprising, anyone who has actually done some real work with C++ sooner or later comes to hate it.
C++ fanboys are nocoders.
>>
>>84460446
no. C++11 is the best
>>
>>84461243
anyone who has actually done some real work in C++ doesn't give a fuck, only trannies and undergrad midwits hit their thumb with a hammer and start coping about safety and how its bad that you can kill yourself with it if you're fucking retarded, neck yourself
>>
>>84461419
Imagine people you love and care about seeing how you write here
>>
>>84460352
>In other words, the only way to do good, efficient, and system-level and portable C++ ends up to limit yourself to all the things that are basically available in C.
First, stuff for the linux kernel has a very different definition of "portable" compared to most stuff. Second, most people don't write system-level code. Basically, if you don't care about devices outside of x86 and RISC-V, C++ is fine
>>
>>84461437
I don't have to imagine, tranny, my family isn't braindead r*ddit cult
>>
>>84461469
>hurr durr it sucks
so does everything else, braindead faggot, while you spent your life whining on 4chan about shit nobody cares, they already finished their work and moved on
>>
>>84461510
>hey look only C++ is bad and everything else is perfect
>>
>>84460446
Rust is just C++20 if make best practise the default, break backwards compatibility, and add some training wheels
>>
>>84461623
citation needed
>>
>>84461623
sent from my c++ browser
>>
>>84461517
C++ is mostly used for application code, and high-performance stuff where you don't need that much portability. If you're building a new database, C++ is a good choice, nobody cares that it can't run on obscure archs
>>
>>84460352
always has been
>>
>>84460446
Rent free.
>>
>>84460446
>absolute dogshit of a syntax to begin with
I've never see this opinion justified
>>
>>84462208
>oh no no no no

let f: Box<dyn Fn() + Send + 'static> = Box::new(|| println!("hi"));
>>
>>84462473
What's the problem here? Are you unable to parse this?
>>
>>84462492
>OH NONONONO

fn longest<'a>(x: &'a str, y: &'a str) -> &'a str {
if x.len() > y.len() {
x
} else {
y
}
}
>>
>>84462524
Again, what's your problem? 'a for lifetime values? How low IQ are you?
>>
>>84462473
>>84462524
Jesus is this how rust looks like? What sort of mental illness designed this?
>>
>>84462473
>>84462524
The worst SFINAE I have ever read is more readable than this shit.
>>
>>84462642
>>84462806
You don't need to reply to yourself because you can't read simple code anon
>>
File: lel.png (46 KB, 674x890)
46 KB
46 KB PNG
>>84462906
retard
>>
File: 1636477202001.png (125 KB, 593x888)
125 KB
125 KB PNG
>>84462951
You're right, it was just me all along
>>
>>84460946
no, retard
>>
>>84462473
>>84462524
Rust truly is the syntax equivalent of a hernia, just fucking hideous
>>
c++ without inheritance (except for inheriting type-trait dependent members) is peak language design
you get smart pointers, templates, zero-cost abstractions, and type safety.
>>
Rust's syntax is ugly, making it not fun to use it, so I don't.
>>
>>84460352
> 2007-09-06 17:50:28 GMT
But don't get too impressed by linus opinions, he is a guy that only worked on linux for his entire life so his opinions are completely biased on that.
>>
all me
>>
>>84462473
>>84462524
>dogshit syntax
So this is the power of rust?

Serious here can any rustoid explain wtf these functions do?

I have yet to learn it but I'm too tired of all those special characters bullshit they keep adding on rust.
>>
>>84463332
'a is a generic lifetime parameter, it allows the borrow checker determine whether the expression
let res = fn(x, y)
, depending on the respective lifetimes for x and y.
you should already know this.
>>
>>84463369
>you should already know this
>>84463332
>I have yet to learn it
I literally said that I don't know rust yet
>>
>>84460390
>Carmack turned on C++
Wait, what? I thought he was one of the protagonist telling developers to actually use this shit heap? Why did he flip?
>>
File: oh you.jpg (41 KB, 576x440)
41 KB
41 KB JPG
>>84462971
kek
>>
>>84460352
Anything related to Unix is cucked, so yes.
>>
>>84460446
>Thread is about C++
>First thing this guy whines about is a different language no one mentioned
Get therapy this shit isnt normal.
>>
>>84462524
Lol, you think that's bad?
macro_rules! decl_clone_fn {
( $typename:ident, $traitname:ident, $(for<$( $lt:lifetime ),* $(,)?>)? fn ($( $args:ty ),* $(,)?) -> $ret:ty ) => {
pub type $typename = $(for<$( $lt ),*>)? fn ($($args),*) -> $ret;
pub trait $traitname
where Self: Send + Sync + BoxClone + $(for<$( $lt ),*>)? Fn ($($args),*) -> $ret {}
impl<T: BoxClone + Send + Sync + $(for<$( $lt ),*>)? Fn ($($args),*) -> $ret> $traitname for T {}
};
>>
>>84464739
Sepples worship is a genuine mental illness.
They have to ferociously convince themselves that the thousands of hours they spent torturing themselves with it weren't wasted.
>>
>>84463446
>protagonist
>flip
This isn't a movie, take your fucking meds.
>>
>>84462473
What a mess, at least C++'s terrible syntax can be excused by having to be compatible with C.
>>
>>84463244
His contributions are far more important and impactful than 99% of programmers.
Having 300 forked repos on github doesn't mean you're not a nobody. Quality over quantity.
>>
File: 1637694292330.jpg (66 KB, 828x809)
66 KB
66 KB JPG
>>84460352
are people still falling for the bjarne interview meme?
that shit is OLD.
>>
>>84460352
Go is better imo. It's garbage collected, has really good C interop, and reads like C. It also has good threading and I like it's inheritance paradigm alot. Like, just don't be an idiot and its pretty easy.
>>
>>84462473
>>84462524
>>84464806
I don't care about tranny shit, politics and syntax but rust syntax actively get in you way.
>>
thinking C++'s biggest problem is its uggo syntax is peak nocode

it's the only language i can think of where error messages are commonly longer than the code
>>
>>84466534
They should at least remove some symbol and make it less compact to make it more readable
Or should force data definition in a different file so they can reuse some symbols and introduce keywords
>>
>>84465871
Go is bready gud for some things, but with the new adoption of generics it's going to get worse to read.
>>
>>84466534
It really doesn't, if you need something like the flaky ass lifetime annotation the compiler will just let you know. Its error messages are some of the best in any compiled language.
The true pain comes when you try to build something useful in Rust and discover that its ecosystem is a mess of unmaintained crap and async shoehorned into literally everything.
>>
>>84466590
> you need something like the flaky ass lifetime annotation the compiler will just let you know
I want to be able to write program without compiling it first to get suggestions like in any other programming language

> Its error messages are some of the best in any compiled language
They are good indeed but it's not relevant for the syntax

> The true pain comes when you try to build something useful in Rust
I don't know, I didn't bother learning rust yet because I find the syntax horrible and not as in every other language for which is just matter of preference
Even c++ is more readable than rust
>>
>>84460737
>>84460961
Are you seriously complaining that there are too many options?
>>
>>84461256
This. Every company and developer I know that uses C++, uses C++11
>>
>>84467124
yes, because all new sepples features are shit and most people that want to make sane shit out if it avoid any of your *many options*
>>
>>84467992
i could list features that i use, that would require lots of boilerplate without them, but i think it would be lost on you and all i would get as a reply is "cope, seethe, dilate".
>>
>>84463446
https://nitter.net/ID_AA_Carmack/status/1094419108781789184
>>
>>84468857
he didn't
just because he likes rust does not make him anti c++.
even if most faggots here believe that.
>>
>>84468921
He knows too much C++ to abandon it. It's simply too useful for him. I's nice though to see him giving the thumbs up for Rust. He mostly uses Python today for ML.
>>
>>84460352
Rust is a harder to learn C++20 desu. Both are equally bloated. Except bloating in C++ is "a matter of choice" and in Rust it's mandatory.
>>
>>84468084
Sorry nigger, your use case is probably worthless to anyone besides you.
You know that what I'm saying is true, people that code in c++ for important software (which by itself is retarded) just fucking avoid using any of its "features".
People use C for important shit, its just that your furry art scrapper is irrelevant.
>>
>>84465753
Im not saying he is a bad programmer I'm only saying that what he believe is good might not be good for 90% of programmers because he has the mindset too deep in OS development and not in other fields of programming like games or web programing where most of us work
>>
Rust is seriously a schizophrenic language. I see it filling almost zero language niches. C++ with a debugger is way more sane than Rust, forever. It's almost a sick joke.
>>
>>84465716
What's your fucking issue?
Why don't YOU take your meds?



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.