« first day (1206 days earlier)      last day (3757 days later) » 

10:00 PM
@ScottW how much?
 
degree in what?
 
hebrew for double double colon, but ... see bugs.php.net/bug.php?id=14492: "BTW, there is a spelling mistake in the parse error, it should be T_PAAMAYIM_NEKUDATAYIM (in hebrew, the 'double' form is just the original noun + the 'ayim' suffix and 'nekuda' is the single form ['nekudot' is the plural form])." — Wolfgang Fahl Oct 26 '12 at 13:18
Oh God.
 
Tsk, well that's what I thought. I keep getting brainwashed "it's all about degrees".
 
well, thanks for your help
 
@LightnessRacesinOrbit just tell him that the order of operation is undefined
 
10:03 PM
@ScottW Baby I'll be free for you ♥
 
I just realized that C++14's lambda capture expressions actually introduce a new_variable = value syntax.
 
C++ will have lambda expressions?
 
I guess it won't harm since it can only be used in lambda a capture.
But it's funny.
auto ptr = std::make_unique<int>(10);
auto lambda = [ptr = std::move(ptr)] {return *ptr;};
            // ^ ptr is a new variable, only visible in lambda
 
user1804599
auto lambda = [] { return 10; };, noob.
 
user1804599
You don’t need all that indirection just to create a lambda that returns ten.
 
10:05 PM
271
Q: What is a lambda expression in C++11?

NawazWhat is a lambda expression in C++11? When would I use one? What class of problem do they solve that wasn't possible prior to their introduction? A few examples, and use cases would be useful.

 
user1804599
This isn’t Java.
 
well?
Do you?
 
user1804599
I can’t twerk, but I can jerk.
 
@JohanLarsson I think he's regularly checking in. With more of the same questions?
 
ok I never knew him, just wondered since he was mentioned
 
10:06 PM
@LoïcFaure-Lacroix lol
 
@rightfold jerk synchronizes-with twerk
 
user1804599
@StackedCrooked zip(twerks, jerks)
 
@StackedCrooked twerk happens-before jerk (it's just a bit of werk)
 
user1804599
I like jeans with zips on the backside (ass).
 
@sehe I'm kind of stopped in time waiting for C++0x to happen...
 
user1804599
10:07 PM
It is sexy.
 
Your friends can give you as many badges as you want. No problem. — Vlad from Moscow 1 min ago
haha
 
@sehe yep, it's important to get the order correct
 
Circle twerk
 
user1804599
Also the excessive belts that sehe hates.
 
@LoïcFaure-Lacroix meh. Unimpressed
 
10:08 PM
@LoïcFaure-Lacroix wake up
 
I don't sehe ;_;
 
ooh, yay, repcapped
 
Can you teach me? I think polar bears are adequate teachers when it comes to these kinds of things~
 
can't have @sehe catching up to me
 
user1804599
@LightnessRacesinOrbit all repclapclapclap for Tomalak!
 
If I had to pick a favorite C++11 feature, I think I'd pick..
auto
 
@StackedCrooked move semantics
 
oh don't start
 
@sehe Oh, yeah.
 
rvalue refs is the single most important feature in C++11.
 
10:10 PM
my favourite C++11 feature is that it's still turned off by default in GCC 4.9
 
then I'd say auto and decltype.
 
But I do like auto. And range-based for
 
@LightnessRacesinOrbit lol.
 
range-based for is a hideous abomination that should be burned at the stake.
 
10:11 PM
really?
 
@DeadMG lol. I like it. A lot.
 
but I know that I'm the only one who feels this way
 
@DeadMG lol :D
 
I'm actually migrating one of our dev environments to C++11 later this week; there are a couple of places in code desperate for some auto and ranged-for. They do have appropriate uses.
3
 
you can't really burn the range-based for loop. it's a concept, not a thing.
 
10:11 PM
I can see why you wouldn't like it one may take issue with it, @DeadMG. But I think it's worthwhile.
 
@LightnessRacesinOrbit I thought auto's appropriate use was everywhere
 
@StackedCrooked But concepts were burned too
 
@SamDeHaan That is its appropriate use.
 
@LightnessRacesinOrbit What's worthwhile is ranges.
 
10:12 PM
> Even worse, you are actually digging yourself a hole, because what this model of practicing does is strengthen undesirable habits and errors, increasing the likelihood of more consistently inconsistent performances on practicing
 
what's not worthwhile is a pathetic bandaid over one specific range-based algorithm that we don't even really need after you get poly lambdas.
 
maybe it would be nicer if range-based for loop was an expression. (if that makes sense)
 
@LightnessRacesinOrbit Woot. We'll have it saved in the annals
 
maybe it would be nicer if we actually had ranges.
 
@LightnessRacesinOrbit Zing
@DeadMG good point, in a way. A ranged for would be easier on the compiler than a poly-lambda for_each, though
 
Xeo
10:14 PM
@DeadMG break / continue / return
 
1
A: size of a list using pointer in C++

Vlad from MoscowIf you are are using a pointer to list you shall allocate the list itself list<int>* t = new list<int>(); And do not forget to delete it delete t;

he's really whoring himself out nowadays
@DeadMG go go go
 
@Xeo inb4 exceptions or accumulate + shortcut boolean eval
 
@StackedCrooked like std::for_each, you mean?
 
@LightnessRacesinOrbit inb4 "retards" or something
 
what happens if you try to obtain a function pointer to an overloaded function? (say, &f where f(int) and f(char) exists)
 
10:15 PM
you have to admit you mostly notice because you're preying on the very same questions :)
(Not disputing the answer quality differences)
 
@Xeo All algorithms have the same issue. for is not special in this regard.
 
@StackedCrooked You have to cast.
 
those arguments would justify range-fold or range-map as well.
@StackedCrooked Error if not cast.
 
Xeo
@StackedCrooked my proposal happens :)
 
user3010322
@StackedCrooked Must cast. =[
 
10:15 PM
@LightnessRacesinOrbit yeah, but with more convenience
 
user1804599
Celldwlell
 
Xeo
@DeadMG err, algorithms have no intent to break, continue, return whatever from within the operation
 
which is just fine and dandy.
 
Xeo
@rightfold s/lell/eller/
 
user1804599
lel
 
10:16 PM
@FredOverflow funny that this problem never occurred to me
 
what I'm saying is that those things have nothing to do with for and everything to do with "It's not an algorithm it's a language construct".
which would be equally true for a range-map, or range-fold, or whatever.
 
user1804599
So Long Sentiment is great.
 
@StackedCrooked It's a weird corner case of C++'s static type system.
 
@DeadMG except that these algorithms haven't enjoyed 30 years of legacy language-level support. And people came to rely on those. And the equivalent old-style loop is really really tedious to write. (Well. Not sure. Never really tried the halfway with auto and classic for(auto ;b;c))
@rightfold Size doesn't matter
 
user1804599
That’s what she said.
 
10:17 PM
@Xeo Does it!?!?!
@rightfold Subtly
 
user1804599
Also, I should acquire All Hope Is Gone by Slipknot.
 
The classic for loop is an abomination. It's just a while loop in disguise.
 
@FredOverflow Truth
 
@sehe It's also really really tedious to write an old-style loop to map or fold.
 
user1804599
@FredOverflow As long as I can have my precious foreach-with-index, I agree. :)
 
10:19 PM
@DeadMG You're gonna love Scala's for comprehensions.
 
Xeo
@sehe as in, 'my proposal comes into being', because overloaded functions don't work if you want to pass them somewhere
 
user1804599
@FredOverflow lol puppy and comprehensions.
 
@DeadMG Yes? That's why there was no ll support for that since 1970
 
Guys, have we ever discussed 3D TVs? How big does it have to be?
 
user1804599
Yes.
 
user1804599
10:20 PM
I know a guy who has one.
 
user1804599
It is horribly unnecessary.
 
What 3D films have you seen?
ah
 
@sehe We haven't had legacy language support for ranged-for since 1970 either.
 
@FredOverflow Big enough to swoon over sheer size. Because 3D is overrated :)
 
Well, I guess I could just buy one from amazon, watch Jurassic Park 3D on it once and then return it :-D
 
10:20 PM
@DeadMG Gosh. But for(decl;cond;iter) existed, right. Don't start circling and blame me for it
 
Xeo
@DeadMG Here's how I think about it: established algorithms have a purpose, with a hole which the user plugs by passing some function. for_each does not inherently have a purpose, it's a utility to realize a purpose.
 
@sehe I don't see how that's relevant
 
@DeadMG Because in practice range-based for is a better general-purpose replacement for legacy for(;;) than std::for_each. Was my whole point
 
@Xeo I somewhat agree. Of course, in Wide I cheated by making copy and for the same algorithm, so "side effects" is the whole purpose.
@sehe What I'm saying is that there's no more pressing need to replace legacy for than there is to replace legacy map or fold.
and since there is already some language-level support for for if anything I'd suggest the other algorithms are more important, rather than less.
 
Ell
I just tried to blag a java test and got stuck on all the JavaBeanFactorySingletonProxy type questions and gave up
 
user1804599
10:23 PM
@FredOverflow porn
 
@sehe The vast majority of those I don't answer. I happen to scroll down to answers though even when the question is shit. What I'm really doing is refreshing every few minutes :)
 
I've just read the most retarded argument ever
 
user1804599
@ScottW that’s what she said.
 
Redundancy. Yes, the grammar should be redundant. You've all heard people say that statement terminating ; are not necessary because the compiler can figure it out. That's true — but such non-redundancy makes for incomprehensible error messages. Consider a syntax with no redundancy: Any random sequence of characters would then be a valid program. No error messages are even possible. A good syntax needs redundancy in order to diagnose errors and give good error messages.
 
@nightcracker That's a quote from Walter Bright. Mark it as such.
 
Ell
10:27 PM
@nightcracker I thought exactly the same thing when I read this
 
not sure what this guy is smoking
who the fuck is walter bright?
 
Designer and Implementor of D.
 
user1804599
@nightcracker the guy who made the first C++ compiler that didn’t target C.
 
Yes, mark quotes as quotes please.
 
user1804599
10:28 PM
He is fucking insane but cool.
 
the guy who came up with language-level hashmaps in a C-derivative language.
 
@DeadMG Show me legacy map or fold.
And yes, there's more pressing reasons because of for (typename Container::const_iterator it = container.begin(); it != container.end(); ++it) { typename Container::reference_type v = *it; /*...*/ } is a hell of a lot more tedium than for(auto& v: container) {/*...*/}. And also a hell of a lot more prevalent than map. Or rdecude.
 
@rightfold Do you still have the "C+ lol" picture? :)
 
Incidentally, he's entirely correct.
 
@sehe Most of that isn't even for, it's lack of auto.
 
10:29 PM
@DeadMG ...
 
Yeah, ranged-for and auto I shall use for iterating containers. neither for anything else, I suspect.
 
user1804599
 
@rightfold I love it :)
 
@DeadMG it's about 50% let's not kid
 
user1804599
Me too.
 
10:29 PM
@DeadMG I can only presume you still haven't read my original message. Which I relinked to before
 
user1804599
But it is boring OOC. :P
 
so glad that I get to spend my Monday night with you nutjobs xx
 
> "rdecude"
Lol. I typed a boo boo
 
user1804599
@sehe C’est ridicule!
 
!?!? Ridiculeuse (more likely, whatever)
 
10:32 PM
@LightnessRacesinOrbit You're welcome
 
@TonyTheLion You misspelled 'awesome'
 
@sehe actually, it's ridicule. sorry.
 
Apology accepted.
Also, TIL. Or, probably more accurately: TISHF
 
@sehe lol
 
10:35 PM
(Today I Stopped Having Forgotten)
 
How is Mr. Polar Bear doing?
 
I'm alright. I guess.
 
I'm alright too.
and I'm not guessing.
How's the new job?
 
user1804599
23:37.
 
10:37 PM
@rightfold and?
 
user1804599
ZEET
 
user1804599
I AM SO ZEET RIGHT NOW.
 
user1804599
CHAV
 
oh you
 
user1804599
10:42 PM
Je bent een dwaas.
 
Ja bedankt eh
 
user1804599
Dwaas.
 
You're terrible.
 
user1804599
geenstijl.nl y u no work.
 
10:47 PM
@Xeo oh that pinned message is perfect <3
couldn't have done it better myself, unless I were more like me that is
 
Xeo
Oh sweet, now my right ankle is hurting
 
user1804599
 
user1804599
Heterosexual Testosterone Compressor is a nice song.
 
Soon my server's birthday
 
That's quite some time without updating the kernal
 
11:03 PM
I live dangerously
 
user1804599
@LoïcFaure-Lacroix What is the IP?
 
Xeo
Oh hell yeah the new vsauce.
 
@rightfold as long as you promise to not reboot it or break anything... well there is nothing really to break
 
user1804599
Promises are lies.
 
living dangerously doesn't mean being stupid then!
@thecoshman it's its last month, next month I'll have a brain new server for half the price
@rightfold oh wait I don't care check this out
I made that a while ago it's a multiplayer pong (works with arrows)
 
user1804599
11:16 PM
@LoïcFaure-Lacroix It doesn’t work.
 
Which browser?
 
user1804599
Chrome.
 
you did type a name?
 
user1804599
Can’t even enter it anywhere. vOv
 
strange I'll check sec
 
user1804599
11:17 PM
I just have empty rectangle with “I” above it.
 
It works on my chrome
 
user1804599
Hmm.
 
user1804599
I can’t load your blog either. :v
 
@CatPlusPlus where is it?
 
works for me
 
11:20 PM
@rightfold may be a dns problem
 
user1804599
OIC.
 
user1804599
I don’t know very much about networking.
 
@melak47 ah it was you! we can play like many people at the same time
 
he just wants to reboot and kill your uptime anyway :D
 
user1804599
11:21 PM
I tried different standard SSH passwords and none worked.
 
see? :p
 
I don't use passwords
 
user1804599
That should not matter.
 
@Jefffrey you need someone to enter the game too wait a sec
 
user1804599
@LoïcFaure-Lacroix I must get your server down.
 
user1804599
11:23 PM
I will not sleep.
 
cmon
lets play pong
 
user1804599
I want to reboot your server.
 
@Jefffrey it puts half of the people on top and half on the bottom
top
 
I'm behind two or three corporate firewalls... your site won't load
 
user1804599
@LoïcFaure-Lacroix the pong worked for a while but now it is broken again. :|
 
11:30 PM
Quite possible it's not an optimized, it quite suck actually
 
user1804599
Is it vulnerable to slowposting?
 
gg
 
Yeah it was me
well we were two for a while
 
no it was you
 
oh wait
didn't see the name
 
11:32 PM
Hello
 
user1804599
Now your blog doesn’t load anymore.
 
user1804599
Just a minute ago it finally did.
 
@rightfold that's strange the server is static so it's just nginx
 
user1804599
> Oops! Google Chrome could not connect to blog.vosnax.ru
 
your dns suck
 
user1804599
11:33 PM
Weird.
 
user1804599
macbook :: ~ % ping blog.vosnax.ru
PING blog.vosnax.ru (91.121.123.5): 56 data bytes
64 bytes from 91.121.123.5: icmp_seq=0 ttl=56 time=25.303 ms
64 bytes from 91.121.123.5: icmp_seq=1 ttl=56 time=28.208 ms
 
curvefever.com is really addicting :P
 
weird
I should remake the pong with golden shower power
 
I think my latest addition here should officially make this answer pretty awesome:
Here's the last demo updated for virtual invocation - retaining the out-of-class customization point UserTypeHooks::RenderClientObjectsImpl: coliru.stacked-crooked.com/a/e88572fdda9eadf4. Note I stay with value-semantics (even though it's heap-based now) - because I strongly believe in that for /simplicity/. And if your ClientObjects aren't movable, you'll want to add some kind of emplace-constructor (make_clientobject<T>(...)) :) — sehe 5 mins ago
1
A: boost::mpl::fold for double parameter abstraction

sehe Update I've since provided an updated version that does match your question more closely (by dispatching on client object and and context). See Live On Coliru. Update 2 Posted a version adding type-erasure to the mix to get a virtual interface while retaining the other benefits. ...

Shameless. Yup.
 
@Xeo Messed up lumbar spine is pretty common (relative to a messed up thoracic or cervical spine), it leads to the things I've mentioned to you before: messed up sciatic nerve, sciatic pain, herniated disc, leg pain, etc. It's kind of expected that you have it to be honest. Also, the lumbar spine is your lower spine.
 
11:36 PM
@Xeo "I'm a lumbar jack, but I'm okay" :S
 
@sehe I sleep all night and I whine all day?
 
user1804599
@HamZa Takes a year to load.
 
On average
 
@rightfold What internet connection do you have ?
 
The green one
 
user1804599
11:38 PM
Well, speedtest.net itself loads in under a second so that’s already great news.
 
@rightfold lol
 
the server is located in france btw
 
user1804599
I think my fucking ISP is sucking hard again right now.
 
user1804599
Bunch of idiots.
 
UPC ?
 
user1804599
11:39 PM
 
user1804599
@HamZa KPN.
 
Xeo
@Rapptz doesn't make it any less of a PITL :p
 
@Jefffrey haha :)
It's been a while I haven't played this game
Common rightfold :P
 
@Xeo Yeah it sucks. At least with that confirmation out of the way you can get a faster diagnosis.
 
Maybe it's a DNS problem ?
 
user1804599
11:40 PM
@HamZa Only if you can get me a girl who wears jeans with zips on the backside.
 
@rightfold lolwut
 
user1804599
2 hours ago, by rightfold
I like jeans with zips on the backside (ass).
 
Yeah I've read that and I find it weird
 
I can make a html5 version of curveforever
 
user1804599
What.
 
11:43 PM
@rightfold I never quite figured out why speedtest makes us long-distance piss on pyrimads
 
user1804599
So slow.
 
@Jefffrey not as a spelling bee
 
@sehe that's slower than 54% of Poland? yeesh.
 
oh well. /care
 
user1804599
NL is not Poland, you fool.
 
11:44 PM
lol
 
user1804599
Met je Nederlandse naam.
 
that looked like a P to my brain.
 
@SamDeHaan Interesting
 
there is clearly something wrong with it
 
user1804599
@Jefffrey shoulder-deep pl0x
 
11:45 PM
^ sorry for the spam
 
user1804599
@sehe Perl addiction.
 
user1804599
 
@HamZa → 2 messages moved to bin No problem! It won't happen again - I promise
 
user1804599
Should I use a hash table of regex–function pairs instead?
 
user1804599
Declarative programming is nice.
 
11:46 PM
lolz
 
34 messages moved to Trash can
 
@sehe dankje well :P
 
There
 
WTF
ahahah
you hitler
 
Thanks for giving me the opportunity to test this... feature
 
11:48 PM
I'm gonna unfriend you on FB
 
Oooh. Tell me my password again. :/
 
polarassbear
 
user1804599
> Permission denied, please try again.
 
I don't get why he binned it
What do you have against it?
How is 2 posts spam?
 
The fact that it was (a) needless (b) advertised as spam (c) obnoxiously formatted (d) sent without supporting context repeatedly
 
user1804599
11:52 PM
Bye.
 
I'm fixing things in the script though.
 
If there is something I like about russia it's this, and I pay only around 15$ a month
 
That's ... silly. And nice
 
But that isn't something about Russia. You're faster than 94% of russia
 
Good point
 
11:55 PM
gg
 
Well @SamDeHaan when you live enough long in russia you get to understand that many things really don't make any sense
 
user1804599
No amount bandwidth can account for Putin.
 
20 messages moved to bin
20 messages moved from bin
 
@LoïcFaure-Lacroix not going to argue with that
 
@sehe are you ok?
 
11:56 PM
Yup. That's lot's better. I improved the script to (a) bin to bin instead of trash (b) allow restore from that room
 
moved from bin? that never happened before
 
@Jefffrey A lie. I've done this on more than one occasion. Frequently when others binned message without warning and/or hiding the audit message
 
I'll give you a simple example, in the supermarket you can buy 3liter pepsi for 2$ and 1.5 liter pepsi for 2.5$
 
@Jefffrey that means he has admin powers in the bin room
For example, I can move a message from the regex room to this one. But that would be offensive, right :) ?
 
@sehe ok, well, you don't deserve the star then
 
11:58 PM
@HamZa Depends
@Jefffrey Indeed. Not for that reason, but still.
 
@sehe java code lol ?
 
word string emotion?
 
@sehe What script?
 

« first day (1206 days earlier)      last day (3757 days later) »