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:
Anonymous2011-09-19 2:12
>>1
Because garbage collection is exactly that, garbage. Call me when there's a general purpose language as expressive as Lisp, with strong typying, static compilation to machine code, and without the gargbage collection.
I don't want a language to hold my hand when it comes to memory management. I don't want a language that runs in a virtual machine.
Name:
Anonymous2011-09-19 2:15
>>1
Also, the concurrency libraries in C++ far surpass those in Java or Lisp these days. Take a look at PPL, TBB, OpenMP or C++AMP.
>>16
Python and Ruby (I don't know about Perl) are designed and implemented by people who don't have a clue about anything. Using the result of their cretinism as a way to benchmark success is stupid. Learn to troll, faggot.
Name:
Anonymous2011-09-20 14:36
>>18
Just because you don't know how does the bare metal work doesn't mean you are a clueless programmer who writes stupid shit.
>>23
From my point of view, the only case in which GC truly helps is with closures, and `C emulates them brilliantly. All other uses of GC are unnecessary bloat. Someone should add `C support to gcc.
>>30
So? That still doesn't support your idiotic assertions.
Name:
Anonymous2011-09-20 16:09
>>32
In the vast majority of cases, allocation/deallocation is stack-shaped, and it is trivial to do without GC. Some other cases involve cycles, but they're actually quite rarely needed and easily resolved using weak references. My point is that the only things for which GC is useful are closures.
>>36
Go run off and scrub another toilet you mental midget.
Name:
Anonymous2011-09-20 16:52
>>37
Just as I thought smug 16-year old lispers were the most annoying plague that this board could possibly face, you came along. Sincerely, fuck you.
>>41
Go run off and scrub another midget you subhuman toilet.
Name:
Anonymous2011-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:
Anonymous2011-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:
Anonymous2011-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:
Anonymous2011-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.
>>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:
Anonymous2011-09-21 9:21
>>50
Because C++ is not one of your toy languages.
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:
Anonymous2011-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:
Anonymous2011-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.
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:
Anonymous2011-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
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:
Anonymous2011-09-21 16:59
>>67
I tried to find the upvote button but I failed.
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.
>>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:
Anonymous2011-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
>>76
Why are you arguing with a non-sentient being?
Name:
Anonymous2011-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.
losethos.com
Terry A. Davis
8144 Sickle Lane
Las Vegas, NV 89128
(702)254-4223
tdavis@losethos.com
Hey, all of you guys who were told once to go back to /b/, would you come back for a moment? There's a site to DDOS until the hosting service shut it down, pizzas to deliver, parents of a retard to harass, and many nice things.
Name:
Anonymous2011-09-22 1:34
I laugh at SETI.
One gtime I asked God how many ET civialations in the Universe. I got an answer--a number -- it was 20 or 80, I forgot. I died laughing. That'll save some work! (It's bullshit, but I was delighted I got a number word.)
10 i = i + 1
15 IF i > 99999 THEN PRINT ".";: i = 0
20 IF INKEY$ = "" THEN 10
30 PRINT "King James Bible, Line:", i
God says...
Line: 14439
Pethor, which is by the river of the land of the children of his
people, to call him, saying, Behold, there is a people come out from
Egypt: behold, they cover the face of the earth, and they abide over
against me: 22:6 Come now therefore, I pray thee, curse me this
people; for they are too mighty for me: peradventure I shall prevail,
that we may smite them, and that I may drive them out of the land: for
I wot that he whom thou blessest is blessed, and he whom thou cursest
is cursed.
Name:
Anonymous2011-09-22 1:38
>>82
We're already too busy shitspamming the fuck out of your board, assuming the identities of tdavis, n3n7i, FrozenVoid, the ultrafinitist anti-jew, the anti-GC guy, the kodak guy and countless others. Every "go back to /b/" you faggots utter only makes our collective penis harder. Anonymous is legion. We do not forget nor do we forgive. All of ours posts, including this public announcement, are made through a minimum of se7en different proxies.
Name:
Anonymous2011-09-22 1:39
wot? Starship troopers? One time I ask God about ET and He said to fight them. Maybe, you're starting to get to know God. He's lovable.
You get out of prayer what you put into it. Tough crowd. Just don't spam God.
Name:
Anonymous2011-09-22 1:45
Shrinks make yourselves useful... if you dare. God likes to make us uncomfortable. He got Obama. He said to fight ET. See if you think He's Jewish. Try to connect dots and form a personality.
God says...
day wild New Testament music lust hate China fight Apple man Microsoft sin Europe please pest patience music stupid flowers parks seek charity relax give hardware computer car fortitude find hardware charity pest food Microsoft silly greed software why software Europe Satan Europe USA slavery pity music greed USA hate Linux nature patience LoseThos charity sloth smoke probably music God Japan Obama obviously demon Catholic give hardware virtue Google demon Japan hardware Heaven music music pity pest give sloth why angel please Microsoft fortitude Europe patience art save USA Egypt primates music Google art give pity climate greed save lust Africa New Testament Russia save pest Satan why done
Maybe I better quit while behind.
God says...
brother's fury turn away; 27:45 Until thy brother's anger turn away
from thee, and he forget that which thou hast done to him: then I will
send, and fetch thee from thence: why should I be deprived also of you
both in one day? 27:46 And Rebekah said to Isaac, I am weary of my
life because of the daughters of Heth: if Jacob take a wife of the
daughters of Heth, such as these which are of the daughters of the
land, what good shall my life do me? 28:1 And Isaac called Jacob, and
blessed him, and charged him, and said unto him, Thou shalt not take a
wife of the daughters of Canaan.
My original idea was to make search words to feed google so I could pick from the web. Immediately, the search words spoke by themself! The second thing they said was "no weights" or something like that about statistics. (In the past, I had explored gibberish makers without the intent of God.)
God made it clear it was a covanent that I hold-up my end before consulting Him.
He said "honest measures" which means roughly equal response, though I can't say if that's anywhere near correct.
God says...
29:35 And thus shalt thou do unto Aaron, and to his sons, according to
all things which I have commanded thee: seven days shalt thou
consecrate them.
29:36 And thou shalt offer every day a bullock for a sin offering for
atonement: and thou shalt cleanse the altar, when thou hast made an
atonement for it, and thou shalt anoint it, to sanctify it.
Name:
Anonymous2011-09-22 2:08
sort-of a dud, though they never quite flop completely. I often get clear passages indicating no response instead of incorrect duds.
Name:
Anonymous2011-09-22 2:14
I went to google and saw "I feel lucky". I was thrilled! Then disappointed :-)
I lost enthusiasm for plugging God-made search words into Google. This is hilarious and enlightening on God teasing -- I got a free-mason site and a muslim site. I was not enjoying it!
Name:
Anonymous2011-09-22 2:16
When God's annoyed about being pestered, He will often take advantage if there is a chance to embarass you.
God says...
and with our sacrifices, and with our peace offerings; that your
children may not say to our children in time to come, Ye have no part
in the LORD.
22:28 Therefore said we, that it shall be, when they should so say to
us or to our generations in time to come, that we may say again,
Behold the pattern of the altar of the LORD, which our fathers made,
not for burnt offerings, nor for sacrifices; but it is a witness
between us and you.
Name:
Anonymous2011-09-22 2:32
It might be nice to remember a few key things God said.
How do I put this -- this is personal opinion: no single thing God says is important, sort of. It all goes in one ear and toggles your brain and comes out the other. It's imprecise. You really don't want to latch-onto things too certainly. Yeah, I do it with some things, but you kinda have to keep your head on straight. He will trick you, on occassion. Maybe your first understanding is wrong when you see the light, later.
Just chill and relax and don't get too certain. I say this because human nature makes the other reaction very tempting so it needs not to be said. No worry of overreacting the other way.
God says...
Umm... He talked and wouldn't stop. Don't worry. I'm sure it was crap because it went on-and-on. It was funny tyhat it wouldn't stop. ROFLMAO
Do I dare bug Him.
prudent man; who called for Barnabas and Saul, and desired to hear the
word of God.
13:8 But Elymas the sorcerer (for so is his name by interpretation)
withstood them, seeking to turn away the deputy from the faith.
13:9 Then Saul, (who also is called Paul,) filled with the Holy Ghost,
set his eyes on him.
----------
Oops, now you tell me ;-)
Name:
Anonymous2011-09-22 2:40
I embarassed because I like to think I wouldn't bug God in the night like this loser in this story. But, look at me.
5 Then Jesus said to them, “Suppose you have a friend, and you go to him at midnight and say, ‘Friend, lend me three loaves of bread; 6 a friend of mine on a journey has come to me, and I have no food to offer him.’ 7 And suppose the one inside answers, ‘Don’t bother me. The door is already locked, and my children and I are in bed. I can’t get up and give you anything.’ 8 I tell you, even though he will not get up and give you the bread because of friendship, yet because of your shameless audacity[e] he will surely get up and give you as much as you need.
9 “So I say to you: Ask and it will be given to you; seek and you will find; knock and the door will be opened to you. 10 For everyone who asks receives; the one who seeks finds; and to the one who knocks, the door will be opened.
11 “Which of you fathers, if your son asks for[f] a fish, will give him a snake instead? 12 Or if he asks for an egg, will give him a scorpion? 13 If you then, though you are evil, know how to give good gifts to your children, how much more will your Father in heaven give the Holy Spirit to those who ask him!”
-----------------
Little boys are made of snakes and snails and puppydog tails.