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

GNU/Communism

Name: Anonymous 2011-02-05 9:21

Linus B. Torvalds:

    GNU community that is an anomaly: virtually all users of GNU software and the GPL, under which my Linux kernel falls under, are unkempt, long-haired, beast-bearded dirty GNU hippies, and I am sick and tired of having to deal with them.

Linus actually hates GNU. :3

Name: Anonymous 2011-02-05 15:49

>>39
It depends if you bind by reference or if you're binding pointers to objects.

If an object is allocated on the stack, and you bind a pointer to that object within a closure, which you then copy into the heap, once the stack object goes out of scope, it is destructed and deallocated and you have a dangling pointer in the closure.

You still need to be aware of the life times of various objects, and you need to ensure that objects bound by reference or the objects referred to by pointers remain valid for the duration of the closure's lifetime.

If you use smart pointers to objects allocated on the heap, you won't run into any problems. Unfortunately, reference-counted smart pointers have their own performance problems if you use them at to fine of a granularity.

On the other hand, if the closure is only used during the lifetime of a stack allocated object by executing the lambda, then you don't need to worry.

It's a lot to think about perhaps, but it first nature stuff for us experts. We don't even need to think about it, our idioms and ``muscle memory'' are conditioned to work around these nuances and also exploit them for maximum efficiency during execution.

But if you can't deal with it, that's why the invented garbage collection: for all of you babies who will never be EXPERT PROGRAMMERS!

Name: Anonymous 2011-02-05 16:14

>>41
You still need to be aware of the life times of various objects, and you need to ensure that objects bound by reference or the objects referred to by pointers remain valid for the duration of the closure's lifetime.
That!
That exactly makes this ``feature'' barely ever useful.  You can't PITAlessly compose functions through higher-order combinators that make life with Haskell so much easier.  Maybe when Boost.Phoenix will be updated for C++0x it would help.
Proper lambdas plus Phoenix HOF and scope management and currying plus automated lifetime management could really make C++ tolerable.  But, alas, all of its ``features'' are crippled.

Name: Anonymous 2011-02-05 23:02

check my dubs

Name: Anonymous 2011-02-06 3:57

check dubs everyday

Name: Anonymous 2011-02-06 13:51

Name: Anonymous 2011-02-06 14:01

>>45
Thank you, really. Thank you, I enjoyed reading every single word.

Name: Anonymous 2011-02-06 14:03

>>46
You're welcome. Linus is hilarious. If I were on the mailing list back in 2001, I'd reply to him "More of this, please".

Name: Anonymous 2011-02-06 14:33

>>45-47

Sun, 1 Apr 2001

Name: Anonymous 2011-02-06 14:38

>>48
So? Doesn't make the message any less valid just because it's satire. GNU hippies are unkempt.

Name: Anonymous 2011-02-06 14:39

Uhm, yeah... I don't know who wrote this, but it came from Washington
state and was written with MS Outlook... Something tells me that this
April Fool's joke wasn't Linus'. :-)

Name: Anonymous 2011-02-06 15:17

>>50
How about
learning how
to multiline
quote, ``faggot''?

Name: Anonymous 2011-02-06 20:39

: (      >mfw semantically incorrect quoter lectures others on the subject

Name: Anonymous 2011-02-08 12:21

>>38

That was... beautiful.

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