Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon. Entire thread

C++ hatred

Name: Anonymous 2012-01-08 12:26

Why is C++ hated so much here in /prog/? Many good software are written in C++.

I'm aware that there are some problems in the language and it is considered "hard" to master it, but why do so many people hate it? What harm has it done?

Software can be written much quicker when using some scripting languages like Python. Software can be writte slightly quicker when using some managed language like Java. But when using those languages, the resulting program will require more resources to run. So there is place for C++.

For example, I bet the web browser of 99% people browsing /prog/ is written in C++. It's not perfect language, but it is the best language for complex program with relatively small CPU and RAM requirements.

Name: Anonymous 2012-01-08 14:50

>>37
expecting the creator of C++ to say anything logical about C

keep your bloat to yourself

Name: Anonymous 2012-01-08 15:28

C++ is used for games, if only because of the rate of growth and refinement of gaming technologies and the advance of hardware is pressuring game makers to improve their graphics and engines to a level like never before, requiring more power, and thus, to use a language needier on CPU than C++ would be a fallacy.

Name: Anonymous 2012-01-08 15:29

>>42
Why don't they write hand-optimized assembly, instead of C++?

Name: Anonymous 2012-01-08 15:41

>>43
Because they are poor programmers (proven by their usage of C++).

Name: Anonymous 2012-01-08 15:42

>>43 They already do. When necessary.

Name: Anonymous 2012-01-08 16:08

C++ is the only option if you want fast high level language.

Name: Anonymous 2012-01-08 16:10

>>46
>C++
>high level

Name: Anonymous 2012-01-08 16:12

>>47
>2012
>sucking dicks
Go back to /gay/

Name: Anonymous 2012-01-08 16:13

>>47
C and C++ are both high-level.

Name: Anonymous 2012-01-08 16:15

So is this new C++ fandom on /prog/ somehow linked with /g/ and rest of the imageboards going down?

I mean, the language is complete and utter shit, I don't see any competent programmer defending it, only shitty retarded ones.

Name: Anonymous 2012-01-08 16:16

>>50
Go back to using your toy languages. C++ is for real world.

Name: Anonymous 2012-01-08 16:26

>>50
Yes, when you see posts that are clearly made by mentally challenged people, they're from /g/.

Name: Anonymous 2012-01-08 16:37

LOL U MAD 2012 IMPLYING XD
These threads reek of imageboard users.

>>>47,48
Back to /g/, ``please".

Name: Anonymous 2012-01-08 16:40

C++ sucks, but there isn't any other viable choice if you're looking for a natively compiled, C ABI compliant, and widely supported language.

D looks very promising, but it's too early to be used for critical applications by industrial standards.

when going for/against a language, don't forget practical arguments as well as "BUT ITS LITPPPPPPPPPH"

anyone who _worked_ as a programmer won't be able to refute the first paragraph.

Name: Anonymous 2012-01-08 16:48

>>54
D is never gaining industry relevance, ever.

Name: Anonymous 2012-01-08 16:52

>>54
Go may just become that. Right now, it's far from perfect, but it's already quite usable. Give it some time.

Name: QUICK POLL 2012-01-08 16:59

>>54
What program do you use most?
A. editor
B. debugger
C. compiler

Name: Anonymous 2012-01-08 17:04

>>54
You might want to exclude web developers from programmers then. (Please do.)

Name: Anonymous 2012-01-08 17:06

>>54
everybody press >>54

Name: Anonymous 2012-01-08 17:07

>>54 natively compiled, C ABI compliant, and widely supported language
ANSI C?

Name: Anonymous 2012-01-08 17:10

>>60
Why not just create programs with hex editor?

Name: Anonymous 2012-01-08 17:11

>>54
when going for/against a language, don't forget practical arguments as well as "BUT ITS LITPPPPPPPPPH"
Sure, but would you mind define what makes a programming language ``practical''?

Lots of libraries? Then no new language will ever be practical.
Standard C FFI interface? It may be impratical to implement if the platform isn't C-based.
Standard C API? Then I either must write the implementation in C the way the interface, or implement the interface and pay some performance overhead because my internal API does not map 1:1 with it.
Standard ABI? Then I'm stuck with that ABI, and I can't improve on it without breaking everything. Also, portability issues.
Standard FFI? It must be flexible/abstract enough to accomodate any platform and calling convention that existed, exist, and will ever exist.
Is this just mental masturbation? C will be the standard for at least another 20 years? See the Y2K problem. 20 years are fucking nothing.

So, what's ``practical'' in your mind?

Name: Anonymous 2012-01-08 17:39

>>61 LOL!

Name: Anonymous 2012-01-08 18:08

I like C++ and there's nothing you can do about it.

I know C++, C, Python, Java, C#, Javascript, PHP, PL/SQL plus some BASIC craps. From these, C++ is my favourite. I very much enjoy writing C, which is very different from writing C++, and it's not very productive. I also enjoy very much writing Python, which is fast to write, but ridiculously slow. I very much enjoy writing in C++, which is more productive than C and as fast C (if programmed well).

Of course, the chosen language depends on project. For most web stuff and misc scripting I would use Python. For desktop most applications I would use C++. For embedded micro chip programming I would use C.

Also, Lisp is shit.

Also, even though GC is shit, I'm planning on learning some FP language.. maybe OCaml or Haskell.

Name: Anonymous 2012-01-08 18:31

It may be impratical to implement if the platform isn't C-based.

Most high level languages are a superset of C-based. It is hard to find high level language that doesn't have some equivalent to the function call stack. If a language was designed to work well with such architectures, the restrictions would be evident, and you would only want to put up with the restrictions if you were writing code for that architecture. It's true that it woulnd't make sense to use a FFI for C in this scenario, but you probably wouldn't want to use the language on different architectures.

Name: Anonymous 2012-01-08 18:41

>>64
>c++ is as fast as C
You obviously don't know shit, so your opinion is now irrelevant.

Name: Anonymous 2012-01-08 18:42

It is hard to find high level language that doesn't have some equivalent to the function call stack.
Stackless Python.

Name: Anonymous 2012-01-08 19:03

>>64
SPOKEN LIKE A TRUE PHP PROGRAMMER!

Name: Anonymous 2012-01-08 19:13

It's as if big projects simply can't handle all that code and need to be either implemented on leaky C++ or enterprise Java/C#.

A shame really.

Name: Anonymous 2012-01-08 19:27

>>65
Most high level languages are a superset of C-based. It is hard to find high level language that doesn't have some equivalent to the function call stack.
Cactus stacks, segmented stacks, stack implemented as a linked list of activation records instead of a contiguous block of memory, and even CPS exist today.
C's (most) calling conventions are not suitable for tail calling (and, thus, CPS), multiple arity functions, and Lisp-style varargs (put everything in a list, which is the same as Python's).
Implementations must either jump through several hoops to get C interop, or maintain two stacks (the C stack, and its stack), or rape the C stack and use that.

Name: Anonymous 2012-01-08 19:45

>>70
stack implemented as a linked list of activation records instead of a contiguous block of memory
That's how the IBM System/360 and System/38 and their descendents do it. Arguments are also passed as a pointer in a specific register and stored in an entirely different location than the return address stack, and automatic variables are allocated from a heap and then deallocated before the procedure returns.

Name: Anonymous 2012-01-08 19:47

>>65
Most high level languages I know are a superset of C-based
fixed that for you!

Name: Anonymous 2012-01-09 9:47

>>66
Well, actually one can make cleaner and faster code in C++ than one can with C. Templates are very useful.

Name: Anonymous 2012-01-09 9:51

>>73
Templates are fucking slow. Debug them low-level if you can. So no, try again.

Name: Anonymous 2012-01-09 9:59

Name: Anonymous 2012-01-09 9:59

>>74
eh?? they only slow down the compilation process. They are not processed runtime.

Name: Anonymous 2012-01-09 10:05

>>64
DKIYT, but other than JavaScript thats a pretty blubby list of languages. You should at least try some of the symbol manipulation languages more (Haskell isn't really one of them, Lisp is).

Name: Anonymous 2012-01-09 10:31

>>73
Templates are absolute shit. The merits and demerits of C++ are surely somewhat debateable, but templates being garbage is an objective fact.

Name: Anonymous 2012-01-09 10:40

>>77
Hmm.. I might try some Lisp at some point, but Haskell seems more interesting right now. As a toy language of course, since C++ is for real stuff ;-) (don't take it too seriously)

>>78
Your "fact" seems to be quite subjective actually.

Name: Anonymous 2012-01-09 12:55

>>79
Haskell is definitely not a superset of C-based, though.

Newer Posts
Don't change these.
Name: Email:
Entire Thread Thread List