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

Why still use C++?

Name: Anonymous 2011-09-19 2:01

So, why do people still use C++ if it is so complicated? Here is what I was thinking tonight. I was watching that lecture about the C++ Renaissance, but a lot of the code was so messy even for very basic stuff. Also, the libraries were very limited to just basic computational stuff. Then we look at things like Java or Lisp were the already given libraries can do things like GUI and concurrency (C++ took a long time to catch up). Everything is pretty safe and easy to code. I do not understand why so much of the industry still uses C++.

Name: Anonymous 2011-09-20 18:53

>>40
Why don't you tell us what you do for a living? Are you an assistant manager at your local Taco Bell? Are you the HR person at your local Target?

Name: Anonymous 2011-09-20 18:57

>>41
Go run off and scrub another midget you subhuman toilet.

Name: Anonymous 2011-09-20 19:51

>>40
You don't need GC for closures. C++11 has closures, without requiring garbage collection. They captures values by reference and value, and you can copy closures around like other objects, and so they can exist either on the stack or heap.

Name: Anonymous 2011-09-20 19:58

>>43
An example, you can do this;

int main(int argc, char**) {
    int i = 0;
    auto func1 = [=] () { std::printf("%d\n", ++i); };
    auto func2 = new decltype(func1)(func1);
    func1();
    (*func2)();
    delete func2;
    return 0;
}


Which prints the following:

1
1

Name: Anonymous 2011-09-20 20:58

>>43
the problem is still the heap/stack distinction.

The cool thing about normal closures is that they obliterate that distiction. This is why C++ lambdas are not impressive. It's another example of C++'s attitude of creating syntactic pseudo-abstractions that don't actually buy you anything.

Name: Anonymous 2011-09-20 21:09

>>45
C++'s attitude of creating syntactic pseudo-abstractions that don't actually buy you anything.
But they look so intimidating! Imagine the bewildered face of a noob, who encounters them for the first time in an involved template code.

Name: made you look! 2011-09-20 21:11

>>40
good how about you?

Name: Anonymous 2011-09-20 21:12


auto f=[=](){a::b("%d\n",++i);};(*f)();

Now it truly looks like Haskell.

Name: Anonymous 2011-09-21 6:06

>>46
Imagine a subtle typo in some 100kb file which is perfectly OK to compile since now C++ is fine with line noise like that.

Name: Anonymous 2011-09-21 6:28

>auto f=[=]()
Why not drop the "auto"
C++ should infer types on its own.

Name: tdavis 2011-09-21 7:06

>>50
types don't exist, only values exist. Show me the "Integer type", jew!

Name: Anonymous 2011-09-21 7:22

>>51
The real psycho tdavis has never heard of the sage field.

Name: Anonymous 2011-09-21 7:41

>>52
>the sage field.
Its actually called an email field.

Name: Anonymous 2011-09-21 7:43

>>53
...

Name: Anonymous 2011-09-21 7:44

>>50
Because C/C++ needs to differentiate between declarations that allocate storage for some type on the stack, and statements. It's not dumbed down with garbage collection to make it accessible to morons.

I'm surprised you didn't realize this.

Name: Anonymous 2011-09-21 9:21

>>50
Because C++ is not one of your toy languages.

Also GC is shit. That's why people use C++.

Name: Anonymous 2011-09-21 10:12

>>55
C/C++
Way to be a retard, Retard.

Anyway, the reason why C++ needs the auto keyword is backwards compatibility.

Name: Anonymous 2011-09-21 10:25

>>56
Go scrub another midget you human toilet.

Name: Anonymous 2011-09-21 14:08

GC is shit. auto_ptr and unique_ptr give me anything I need for zero overhead.

And if I need to go berserk I can use shared_ptr and weak_ptr from C++11 standard (or just use boost).

Name: Anonymous 2011-09-21 14:39

>>59
auto_ptr, unique_ptr, shared_ptr, weak_ptr,...
Perfection is achieved, not when there is nothing more to add, but when there is nothing left to remove. -- Exupery

Name: Anonymous 2011-09-21 14:42

>>Exupery
Perfection is achieved, not when there is nothing more to add, but when there is nothing left to remove.
Perfection cannot be archieved.

Name: Anonymous 2011-09-21 14:44

>>61
"God" forbids you to use Lisp?

Name: Anonymous 2011-09-21 14:54

A famous Lisp Hacker noticed an Undergraduate sitting in front of a Xerox 1108, trying to edit a complex Klone network via a browser. Wanting to help, the Hacker clicked one of the nodes in the network with the mouse, and asked "what do you see?" Very earnesty, the Undergraduate replied "I see a cursor." The Hacker then quickly pressed the boot toggle at the back of the keyboard, while simultaneously hitting the Undergraduate over the head with a thick Interlisp Manual. The Undergraduate was then Enlightened.

Name: Anonymous 2011-09-21 15:03

alphaleah Leah McElrath
#BAHRAIN : Today I'm hearing #GCC forces entered again, garbage collection has stopped in many Shia village… (cont) deck.ly/~flVbw

Name: Anonymous 2011-09-21 15:04

>>62
Lisp is far from perfect
))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))

Name: Anonymous 2011-09-21 15:51

>>65
Yeah! Lisp is above perfect.

Name: Anonymous 2011-09-21 16:38

Manually managing memory makes me feel like I am a maid-programmer that doesn't want to use unnecessary memory on eir masters' computers. I feel dirty and disrespectful when using GC, and a good maid should always be proper and honest.
That's why I dislike GC.

Name: Anonymous 2011-09-21 16:59

>>67
I tried to find the upvote button but I failed.

Name: Anonymous 2011-09-21 17:08

>>66
Perfection is overrated.

Name: Anonymous 2011-09-21 17:10

>>69
A good programmer-maid should strive for perfection. That said, Lisp uses GC and is therefore tainted with shame.

Name: Anonymous 2011-09-21 18:16

>>59
you must be a ``3-ptr programmer''

Name: Anonymous 2011-09-21 18:51

>>71
Never used *** in my life.

Name: Anonymous 2011-09-21 18:59

>>33
nope. only in the vast majority of cases while writing 10 times more C code than it would take in a dynamic language.

Name: tdavis 2011-09-21 19:34

When I made my compiler, I did something perhaps odd.  I had a structure for a class.  I needed pointers to classes, double pointers, triple pointers... I think I said 4 was enough.  What I did was make an array of class structures there were MAlloced in a chunk and put into the hash symbol table.  Then, I could dereference a class by decrementing a type pointer.  The funny thing is I stopped at 4.  Fuck-em.

Name: tdavis 2011-09-21 19:44

wanna see?  Right at the top.

http://www.losethos.com/code/StmtParser.html

Name: Anonymous 2011-09-21 22:39

>>75
You're a piece of shit. Nobody will ever give a fuck about your crappy OS. You don't even realize how ludicrous you are when you talk about making money of your failure. Every forum has banned you, spammer, idiot.
You shared your dreams of being the next Linus here... Have you noticed? The Finnish guy is nice, polite and good looking. It took him one single post on Usenet to be popular. But you can spam days and nights nobody will ever care.
Face it, you're a sick person, an ugly schizophrenic medical monster. Your OS is another dejection of your repugnant mind.
It took you 8 years to defecate that Losethos which does not even match PC-DOS. Bill Gates would have done a better job in a couple of nights back in the days. You are twisted, I don't even want to hear about your twisted architectural choices.
Fuck off, Terry Davis... I'll do my best to ignore you from now on, there's no point in bullying a delusional retard.

Name: 2011-09-22 0:55

Name: Anonymous 2011-09-22 1:02

Google search "64-bit operating system."  Eric Schmidt said the numbers are true.

God says...
cultivated wild pest probably Russia Obama oil Japan pretty Jew Apple computer Hell heart good marriage angel virtue silly angel car patience pretty pretty software Microsoft climate food pretty pretty pretty LoseThos probably now NASA Apple food pity Vegas Heaven fun honest pretty patience oil USA art pretty car art pretty charity lust why spend pest do_it probably pretty Hell pretty pretty Europe music angel smack fire happy love Linux Christian thank you pretty pretty sad pest pretty hardware virtue you good probably fortitude China sex Old Testament silly Sun rock patience obviously sing Afghanistan virtue sin pest pest greed snow pity patience Satan pest stupid food do_it stupid Ticketmaster Afghanistan computer Google art pretty Hell food honest music pretty food Christian pretty pest pretty lust Catholic pest demon Russia fight pretty pretty Christian pretty pity Hell pretty pretty pretty angel house pest Google done

Name: Anonymous 2011-09-22 1:04

>>76
Why are you arguing with a non-sentient being?

Name: Anonymous 2011-09-22 1:10

I got 34 downloads today after releasing LoseThos V7.06.  I'll get abnother 20 tomorrrow.  I used to get those numbers every 10-14 days when I did releases.  I ran out of things to do.

I'm ahead of these guys...

http://wiki.osdev.org/Projects

That's ugly :-)

Maybe God doesn't give you the time of day, Cain?

That's ugly :-)

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