[ / / / / / / / / / ] [ dir / cute / fur / htg / lovelive / misr / wai / waifuist / wooo ]

/tech/ - Technology

Catalog

Name
Email
Subject
Comment *
File
* = required field[▶ Show post options & limits]
Confused? See the FAQ.
Flag
Oekaki
Show oekaki applet
(replaces files and can be used instead)
Options
Password (For file and post deletion.)

Allowed file types:jpg, jpeg, gif, png, webm, mp4, pdf
Max filesize is 12 MB.
Max image dimensions are 10000 x 10000.
You may upload 3 per post.


File: 06e33117a4eb6de⋯.jpg (56.1 KB, 480x668, 120:167, 1495220314002-int.jpg)

 No.749192

Is there any point/aspect in which C is superior to C++?

 No.749197

what a low effort thread. I'm a C++fag but even the most autistic retard knows C absolutely crushes C++ in build times.


 No.749198

i wouldn't know, i just larp here


 No.749200

>>749197

I don't see building faster as a practical advantage since the final user won't build it.


 No.749202

>>749192

As linus says, C++ attracts some terrible programers, so even if the only reason to choose C over C++ was to exclude them, it'd be worth it.


 No.749208

Binary size and memory footprint


 No.749212

>>749192

OO software usually has a lot more cache misses than imperative code.


 No.749217

>>749192

C is more portable than C++. C++ compilers will compile C code, with a few exceptions, mostly related to stricter type checking.


 No.749218

>>749202

Top fucking kek

Linus has always great lines.


 No.749233

C++ needs big ass compilers.

C++ is too big; find me something they DIDN'T put in it.


 No.749264

I prefer C simply for the reason that I can actually read one book in a realistic time and know the language (as well as a low-level language like C can be known at least). With C++ they have bolted so much onto C that at this point it might be better to just throw away the syntax and invent a new language that does everything C++ does without looking like an abomination.

>>749233

>C++ is too big; find me something they DIDN'T put in it.

Hygienic macros. C++ 20 when?


 No.749294

Yes, simplicity.


 No.749295

>>749200

That means that you can throw out almost all advantages almost any language has over almost any other language since the final user won't write it.


 No.749297

>>749295

>performance

>availability

>ease of use

>support

tl;dr you're fucking wrong etc


 No.749316

>>749218

Enjoy the entire rant.

http://harmful.cat-v.org/software/c++/linus

BTW, did you guys know the creator of that site committed suicide a few years ago? Sad. Bloat in your software, is more hazardous to the public health than you think.


 No.749323

>>749217

C++ compilers cannot compile modern C. Any of the new C11 features are a syntax error. Some C++ compilers have very incomplete implementations of the latest C standard though.


 No.749387

>>749323

Most C compilers can't compile "modern" C either. If you want to write portable C then you write C89 with one or two C99 features (stdbool.h).


 No.749395

>>749387

pocc and gcc can both compile C11. I haven't tried others but i seriously doubt C11 support is lacking in most C compilers.


 No.749403

>>749316

>BTW, did you guys know the creator of that site committed suicide a few years ago?

Yes, Uriel realized he was harmful and deprecated himself.


 No.749406

File: 4a54d91ccaaaf72⋯.jpg (110.51 KB, 573x820, 573:820, eurorape.jpg)

>>749403

*Keks politically incorrectly*


 No.749408

>>749395

Should have mentioned I write firmware so my definition of portable is a bit different. For embedded compilers "C99 support" usually doesn't mean much more than C++ style comments.


 No.749431

>>749387

Eh, stdbool.h is 45 lines and defines true/false. Guess I'll stick with plain ANSI C. Anyway I only really care about old 8-bit systems and m68k, modern computers are dogshit.


 No.749432

variable length arrays


 No.749433

>>749403

>>749316

It appears to me he was a lefty faggot of some sort, went by Lucy on twitter. Also a Swede.

cat-v and suckless have interesting rants and sometimes a point, but their solutions are mostly crap.


 No.749436

>>749432

C99 has variable-length arrays.


 No.749451

>>749197

t. NEET who never wrote anything of significance


 No.749453

>>749212

>ALL c++ code is OOP

lol retard


 No.749456

Compile errors are understable

Also: http://yosefk.com/c++fqa/


 No.749458

>>749436

And c++ doesn't


 No.749682

>>749316

>>749403

>>749433

He died before getting to see cloud computing really come into fruition, and the rise of the nu-swedes deprecating his country.


 No.749724

C has >>749432 and designated initializers, I guess. Barring those, C++ is simply better.


 No.749727

>>749436

C11 also has them but they are optional.


 No.750077

>>749233

some kind of bytecode that is JIT-compiled at runtime

C++VM WHEN


 No.750125

>>749192

Better portability and a MUCH leaner runtime.


 No.750156

>>749192

C++ is for niggers. for example game developers (which are largely all niggers) use it as if it's C, so they got about 50K features in there for no reason


 No.750157

>>749682

go back to /pol/ faggot


 No.750186

>>750157

What? Laughing at SWEDEN YES isn't really exclusive to /pol/.


 No.750190

>>749192

>>749192

Device drivers have consistent operational timing. Fewer faults.


 No.750204

>>750186

Believing or caring about muh evil gypsies (or whatever race is in question here) is some turbonormie bullshit and so is LARPing about nationalism. The irony is that only nu-channers (people who joined after 2006 or 2007) do this shit on imageboards today.


 No.750218

>>750204

|

|>

|3

|


 No.750219

>>750204

Anally conflicted.


 No.750220

>>749408

Okay, that's more understandable now. I write C for applications so I have it a lot easier.


 No.750229

>>750218

Why are his lips so swollen?




[Return][Go to top][Catalog][Post a Reply]
Delete Post [ ]
[]
[ / / / / / / / / / ] [ dir / cute / fur / htg / lovelive / misr / wai / waifuist / wooo ]