Quantcast
[ 3 / biz / cgl / ck / diy / fa / g / ic / jp / lit / sci / tg / vr / vt ] [ index / top / reports / report a bug ] [ 4plebs / archived.moe / rbt ]

Due to resource constraints, /g/ and /tg/ will no longer be archived or available. Other archivers continue to archive these boards.Become a Patron!

/g/ - Technology


View post   

[ Toggle deleted replies ]
>> No.79973193
File: 113 KB, 750x920, 1612060706166.jpg [View same] [iqdb] [saucenao] [google] [report]
79973193

Kek

>> No.79973391
File: 46 KB, 899x324, 1611961594022.jpg [View same] [iqdb] [saucenao] [google] [report]
79973391

>>79973183
He's based

>> No.79973419
File: 61 KB, 614x344, bjarne.jpg [View same] [iqdb] [saucenao] [google] [report]
79973419

>>79973183
OP is a faggot.

>> No.79973424

>>79973183
yes

>> No.79973460
File: 71 KB, 876x493, faggot40374.jpg [View same] [iqdb] [saucenao] [google] [report]
79973460

>>79973183

>> No.79973504

>>79973486
Why is it "based"?

>> No.79973528

>>79973183
yes

>> No.79973553

>>79973486
Based on what?

>> No.79973573

>>79973553
Based on C

>> No.79973581

>>79973183
he looks like THAT?!
explains a lot

going back to C

>> No.79973591

>>79973183
Blogpost but, yesterday he actually appeared in dream and I told him that I wouldn't use the features of nu-C++, after that he slapped me and told me that I am not allowed to program in C++ then he broke my PC. It was weird as fuck

>> No.79973628

>>79973183
No, Dan Abramov for creating react hooks

>> No.79973870
File: 64 KB, 1100x619, biden.jpg [View same] [iqdb] [saucenao] [google] [report]
79973870

Only code monkeys have worked more than practise with that language, so it wouldn't be a crime against humanity. Perhaps animal cruelty is more suitable charge.

>> No.79973904

>>79973419
>that desktop clutter
absolutely based

>> No.79973952

>>79973486
C++ is the worst designed language in the history of humanity.

>> No.79974593

>>79973952
I agree, javascript is better.

>> No.79975314

Once again another C++ hate thread that proves no substantial points and provides nothing of value.

OP will post this thread again tomorrow all the while ignoring the tangible benefits that C++ provides as a language.

Zero-cost abstractions, anonymous lambdas, templates all make C++ the giga-chad of languages.

Maybe instead of being triggered by based Bjarne you should go back to your Java class homework.

>> No.79975598
File: 112 KB, 944x531, nk.jpg [View same] [iqdb] [saucenao] [google] [report]
79975598

>>79973183
Yes.

>> No.79975691

>>79973183
templates are fucking genius!
multiple inheritance, runtime polymorphism and awkward handling of namespaces can eat a dick!

>> No.79976025

>>79973183
Yes, but Ritchie and Thompson should ultimately be convicted instead for enabling him.

>> No.79976040

>>79975314
Split a string.

>> No.79976844

>>79976750
cdecl.org/

>> No.79976889

>>79976803
>Language features arent bloat because they dont get compiled into your program if you dont use them.
This is a lie. The two main offenders are exceptions and RTTI, which is also why most implementations allow you to turn them off.
Sadly, most of the C++ standard library relies on exceptions, therefore there is no way to avoid that additional cost if you use the standard library, even if you don't use it.
The so-called "zero cost" unique_ptr actually adds exception-managing code when compared to a raw pointer.
C++'s abstractions aren't actually zero cost, the syntax is insanity and metaprogramming relies on horrible design hacks such as SFINAE, instead of providing proper facilities. There is really nothing redeeming about C++.

>> No.79976922

>lets return error codes instead of the value we want because exceptions bad

>> No.79977200

>>79976889
>>79976922
Dangerously Based and Anti-Stroustruppilled

>> No.79978398

>>79976750
C is a retarded language with topically nonsensical abstractions that only make sense if you understand what a hypothetical stack-based register machine is doing under the hood. So it's retarded in a good way, and that's why I like it. Lots of weird bullshit like static and includes in general.

LISP is well designed.

>> No.79978636

>>79973628
literally fucking this

>> No.79980864

>>79975314
if(a == 2)
if(a = 2)
if(a := 2)

fucktard design

explain to me why we need operator and functions.

sum = add(a,b);
sum = a + b;

oh sure we have std::accumulate and std::plus. do you understand where we are going now?

>> No.79980946

>>79980864
>if(a := 2)
?
>explain to me why we need operator and functions
You skipped your English classes or something?

>> No.79981126

a = 10;
b = a + 10
a = 20
assert(b == 30) // FAILS!

this is a language for code monkeys

>> No.79981238

>>79980946
Wow you really don't know better Syntax than C style?

:= is the assignment operator in Pascal. This was an improvement because you could catch a lot of common typing mistakes. while C++ uses = for assignment and == for comparison.

Now answer how can you justify std::plus when we already have the '+ operator'.

>> No.79981270
File: 241 KB, 432x324, bjarne68000ad.png [View same] [iqdb] [saucenao] [google] [report]
79981270

>> No.79981362

>>79973183
Yes, I program c++ as my main language and I am fully confident in my opinion that the world would be a better place if c++ was never created.

>> No.79981405
File: 214 KB, 432x324, bjarneai.png [View same] [iqdb] [saucenao] [google] [report]
79981405

>> No.79981411
File: 220 KB, 432x324, bjarnedeleteworld.png [View same] [iqdb] [saucenao] [google] [report]
79981411

>> No.79981489
File: 361 KB, 1046x717, bjarnestackunwind.png [View same] [iqdb] [saucenao] [google] [report]
79981489

>> No.79981512
File: 1.82 MB, 9974x324, long_long_int.png [View same] [iqdb] [saucenao] [google] [report]
79981512

>> No.79981532

>>79981525
Of course it is, you can tell by the shadowing.

>> No.79981539

mad cuz filtered

>> No.79981587

>>79976750
C++ inherits most of its flaws from C.

>> No.79981830

>>79973581
Wtf? Just because he doesn't wear """programming socks""" and doesn't have dildos layong around you're gonna hate on him?

>> No.79982219
File: 79 KB, 1000x557, Bjarne Stroustrup.1000x557.jpg [View same] [iqdb] [saucenao] [google] [report]
79982219

>supplying std::sort with a weak ordering causes random seg faults

>> No.79982239

>>79981587
And what about templates? Are you going to blame that tire-fire on C as well?

>> No.79982249

>>79973391
Someone edit this to show a template error message spanning every single screen

>> No.79982268

>>79982249
this except on >>79981512

>> No.79982276

Making C++ was the ultimate gamer move tbqh

>> No.79982468
File: 33 KB, 432x324, 1598786660931.jpg [View same] [iqdb] [saucenao] [google] [report]
79982468

>> No.79982646

>>79981005
Amazing. You replied to a post refuting the bullshit you just wrote with the bullshit that was refuted in the first place. It's like you can't even read.

>filtered by sfinae
Nobody in her right mind would think grokking SFINAE is worth her time.

>> No.79982667

>>79982633
>>79980864
>>79982657
Lisp doesn't have this problem.

>> No.79982680

>>79982633
for succinctness. its also easier to write more complicated equations with symbols rather than composition

>> No.79982689

>>79973183
You don't prosecute a chemist for inventing a substance, you prosecute pushers.

>> No.79982691

>>79975691
Templates is fucking duck typing, the most ghetto, shit, type-anaware method of handling generics. It's the lowest step possible up from void*
It's literally just attempting string substitutions and seeing if the code compiles or not. After having used a language that takes types seriously going back to C++ feels like visiting a third world country

>> No.79982698

>>79982691
*type-unaware

>> No.79982707
File: 564 KB, 800x430, glowing_kek.gif [View same] [iqdb] [saucenao] [google] [report]
79982707

>>79982691
>It's literally just attempting string substitutions
Holy fucking shit this thread is pure gold
Go on

>> No.79982725

>>79975314
does C++ have pattern matching yet?

>> No.79982746

>>79982733
Sunken Cost Cope

>> No.79982752

>>79976803
vtable is an implementation detail, you're not supposed to have to deal with them (but you do because C++ has leaking abstractions galore so they will find their way to your 500 page error messages)

>> No.79982755
File: 25 KB, 474x473, 1612009562725.jpg [View same] [iqdb] [saucenao] [google] [report]
79982755

>>79982738
>destructuring binds
It's called structured bindings you absolute ape
Holy fucking shit
Don't stop

>> No.79982763

>>79979008
>The idea of having C but with classes & templating was not inherently bad but the way it turned out is an absolute abomination.
That's where I'll have to disagree with you. The problem lies not in the implementation, but in the concept itself. C was always known as a a "low level" language even back when it was first introduced (because no, C wasn't the first language after assembly despite what revisionists believe, nor the highest-level one at the time). While some of its flaws are inexcusable, it had to make compromises due to its nature. Stroustrup was a huge Simula fan and for some bizarre reason that was never fully understood, he became truly obsessed with bolting classes (a relatively high level concept) on top of C. The rest is history.

I believe he himself is in denial, in the first 100 or so pages of "The C++ Programming Language" he repeats multiple times that "no language solves all problems" and that "the concept of using a single language for everything is a fantasy". These statements are bizarre because they go against what C++ itself ended up being. Deep down, he knows he knows people should just use an actual high level language whenever convenient and a dedicated low level language when the former doesn't cut it, instead of some barely-a-jack-of-all-trades such as C++.

C++, just like JavaScript, became popular solely because of really clever marketing, not because it's technically good. The name "JavaScript" itself is dishonest, since it has nothing to do with Java. The name "C++" is more accurate, but it never truly delivered actual, 100% compatibility with C. The original CFront compiler translated C with Classes to C, allowing it to run on machines which only had a C implementation.

>> No.79982764

>>79982755
>Term jerking
Incel /g/ weaboo LARPer

>> No.79982774

>>79982691
>It's literally just attempting string substitutions and seeing if the code compiles or not.
this is obviously wrong, but you’re not incorrect in that templates had a pretty bad interface. now with concepts it’s a lot better though

>> No.79982775

>>79973183
It's a good language, what's your problem with it?

>> No.79982794
File: 189 KB, 462x450, 1580569259036.png [View same] [iqdb] [saucenao] [google] [report]
79982794

>>79973419
>tons of low-resolution monitors with abysmal panels
Why? Is he broke?

>> No.79982795

>>79982786
This

>>79982684
Kys

>> No.79982802

>>79982786
it’s obvious you know nothing about C++. operators are just sugar for functions call. now stop.

>> No.79982803

>>79982788
>marketing made by who? the 40 unpaid members of the C++ committee?
Marketed by people who make C++ tools to make the language less unbareable. There is a gigantic amount of money on the table here

>> No.79982805
File: 67 KB, 788x685, 9801345678.jpg [View same] [iqdb] [saucenao] [google] [report]
79982805

>>79982786
>>79982786
>It's really embarrassing
Yes, yes it is since you still provided no arguments
But it's funny to see you try so go on

>> No.79982810

>>79982790
you genuinely have autism hey?

>> No.79982816

>>79982810
I'm a compiler developer

>> No.79982821

>>79982803
why would the tools be desirable if the language was shit?

>> No.79982837

>>79982733
>if you turn them off
Thanks for proving his point.

>> No.79982839

>>79982828
Not even joking. Working on LLVM has given me a hatred for C++ and Bjarne that you couldn't even imagine.

>> No.79982840
File: 39 KB, 588x823, 6835683568.jpg [View same] [iqdb] [saucenao] [google] [report]
79982840

>>79982825

>> No.79982841

>>79982803
>let’s try to make this language popular because we accidentally wrote tools for it that aren’t selling
>wait... why don’t we just hope on the java train?
>dude, trust me
That doesn’t make any sense whatsoever

>> No.79982852

>>79982821
It's precisely a shit language that makes tools desirable.
Harder to sell tooling and support for a well designed language that doesn't need them as much.

>> No.79982873

>>79982841
Maybe you are more familiar with spring and the other java tools for handling dependency injection (something that the language itself is unable to handle well)
Do you now see how the engineering effort put into spring gives the owners of spring an incentive to market the usage of java? Same goes for C++

>> No.79982875

>>79982802
Thanks, you just admitted I'm right.

>>79982805
There is no argument to be made here. The entire concept of "operators" is redundant. C++ itself admits this by implementing operator overloading as just writing regular functions.

C++ at this point is just a synonym for Stockholm syndrome. It's unbelievable how arrogant its proponents get while also being completely wrong about things.

>> No.79982878

>>79982825
shut the fuck up lol are you seriously going to complain about a few kilobytes or binary size that you can avoid by disabling RTTI/exceptions? you’re grasping at straws so hard they’re going to break

>> No.79982935

>>79982886
>waaaaa my program is 0.05% bigger if I don’t use compiler options waaaaa
the standard isn’t requiring shit like basic diagnosis or optimisation either, are you going to complain that C++ is too slow and let you compile with a missing return?

>> No.79982936
File: 41 KB, 289x289, 1558206443647.png [View same] [iqdb] [saucenao] [google] [report]
79982936

>>79982917
You're actually fucking retarded

>> No.79982945

>>79982917
A shit language which happens to have billions of legacy lines of code opens up a huge demand for tools to cope with it. The fact that you can't understand this outs you as a LARPing NEET who is just making shit up and "guessing" how these things work.

>> No.79982964

>>79982936
youre retarded lol

>>79982945
where did the legacy code come from if its so shit? also i am actually employed at a market maker, you are not LOL

>> No.79983004

>>79982990
yeah i get 6300€ a month after taxes. and you are autistic, born broken LOL

>> No.79983140

>>79983035
i found it to be the same truthfully, though with room for extremely stressful events. my first job was at a standard enterprise product (big data processor) and i didnt think about it before or after work hours. if i introduced a bug it didnt really matter even if it got released. here i have weekends where i suddenly think remember a possibly bad block; although there is a lot of testing and fairly long pre release cycles if you put something out there that can cause big losses for rich people. you get 2 chances from what ive seen, though someone blew them both in one particular fuckup since ive been here

i also dont work so much on the algo side of things, just platform and backend, queues, messaging etc.

>>79983071
americants and larping neets need no longer respond

>> No.79983170

>>79983150
If only they could switch to something better...
Oh, wait, there is nothing better, that's why they keep using it.

>> No.79983192

>>79983170
Great argument lol
LARPer

>> No.79983213
File: 25 KB, 300x441, 412-4126948_60734710-golang-retarded.png [View same] [iqdb] [saucenao] [google] [report]
79983213

>>79983170

>> No.79983843

>>79973419
>socks and sandals
>windows
is this linus ++ tips

>> No.79984689

>>79982839
kek larping so hard it's not even remotely passing

>> No.79986816

>>79973183
I vote we prosecute Al Gore for inventing the Internet

>> No.79986826

>>79973183
Being Danish is reason enough.

>> No.79986845

As a fellow JS/Python developer, I also think C++ is terrible and Rust is the future. I haven't used either of course, but seen enough snarky comments on 4chan and HN to know what to think

>> No.79986885

>>79986845
Seething CPP monkey

>> No.79986928

>>79986885
I know, static typing and dynamic memory can be scary, but we can get through it together.

>> No.79986945

>>79973183
who gives a shit, don't like it don't use it

>> No.79987065

>>79987001
C++ is perfectly fine, and so are many other programing languages
prove me wrong, good luck for your phd thesis

>> No.79987131

>>79981126
But b is 20

>> No.79987808

>>79982733
Cope

>> No.79988161

>>79988061
the same program will be as efficient in c++ and have less lines of codes than c
case closed eternally

>> No.79988266

>>79988161
Proof?

Do you want to say that you are better Computer Scientist than Linus (Tech Tips) Torwalds?

>> No.79988812

>>79988764
Mad.

>> No.79989464

>>79973183
holy shit imagine being this retarded to not understand C++, just invest more time on it instead of your shitty vidya

>> No.79989502 [DELETED] 

>>79973183
>>79973419
kek i'm sitting like this right now. this means our sould are connected.

>> No.79989550

>>79973183
>>79973419
kek i'm sitting like this right now. this means our souls are connected.

>> No.79989927
File: 114 KB, 1500x843, misc-jackie-chan-l.jpg [View same] [iqdb] [saucenao] [google] [report]
79989927

>>79981126
holy shit are you serious

>> No.79989992

>>79988266
Honestly anything but highly optimized C will be slower than brain-dead C++ purely because you can use data structures that aren't linked lists or arrays without wanting to kill yourself. The compilers are also much better at optimizing C++ than C these days.

>> No.79990015

>>79973419

What chair is that?

>> No.79990032

>>79989992
>No source given

>> No.79990088

>>79990032
https://benchmarksgame-team.pages.debian.net/benchmarksgame/

>> No.79990091

>>79990032
>Want hash table
>C
>HashTableCharPointerIntImplInsert()
>C++
>#include<unordered_map>

>> No.79990215
File: 205 KB, 706x324, rms_long_int.jpg [View same] [iqdb] [saucenao] [google] [report]
79990215

C++ chads send languagelets into a seething rage simply by existing

>> No.79990343

>>79974602
Kek

>> No.79990916

>>79988161
Cope

>>
Name (leave empty)
Comment (leave empty)
Name
E-mail
Subject
Comment
Password [?]Password used for file deletion.
Captcha
Action