« first day (755 days earlier)      last day (4176 days later) » 

Ell
8:01 PM
hier kommt alex
 
@Ell Nein. Zu viele Ergebnisse!
 
user1804599
f ∘ g = x ↦ f(g(x))
 
user1804599
The parentheses around x are not needed.
 
Ell
@sehe "too many results"?
 
Xeo
@sehe Google search?
 
8:02 PM
Alternatively, (f ∘ g)(x) = f(g(x)) ... but I think we're all familiar :)
 
@Ell Too much info. Too much news
 
Xeo
@sehe No, Ell's translation is right.
 
Ell
ahh okay
 
user1804599
@robjb of course. :)
 
Xeo
 
8:03 PM
@Xeo Ah, it was my intention. Ok, so, 'Informationen' then?
 
Xeo
Aye.
 
@Xeo Why? It's no fun that way. I mean, I know I can google. Best to just keep shut then :)
 
user1804599
@sehe no fun? fun(X) -> 2 * X end. FTFY.
 
funadics
 
user1804599
fun, gun and hun
 
Xeo
8:06 PM
@sehe Funatics
:3
 
user1804599
 
Pon pon, way way way, pon pon way pon way pon pon.
 
@EtiennedeMartel I know! operator[]=().
 
Ell
can we parse natural language?
 
user1804599
@Ell yes.
 
user1804599
8:08 PM
Not sure if computers already can, though.
 
Ell
as in, do we have a defined grammar for english?
 
@Rapptz Yup.
 
There was some serious bitching about C++ not having operator[]=() and enforcing usage of proxy objects for this case.
 
@Griwes You can always make an operator= that returns a reference to an object with an overloaded operator=.
 
8:09 PM
I'm kind of ashamed I even know it.
 
@Rapptz Do you know her other three singles?
 
@EtiennedeMartel That's the situation it can avoid.
 
@Aardvark Back in my days we used foo and bar. You kids, sheesh...
 
user1804599
I use foo and bar too. And spam and eggs in Python.
 
@EtiennedeMartel I think so.
 
8:10 PM
Creating proxy object just to call one operator=() on it sucks.
 
I like Nyannerz version of this song, makes me lol. I don't think it's SFW though, hell do I know what is considered NSFW here.
 
@Aardvark spam and eggs. Thanks! No really, I need to look like a seasoned python programmer in a few days. =)
 
Xeo
@Griwes ?
 
@Rapptz Basic rule is, if you might get in trouble if your boss glances at your screen, then it's NSFW.
It's all about appearances.
 
@Xeo As in, people were bitching about C++ not having operator[]=() many times in the past.
 
user1804599
8:12 PM
@Griwes for std::bitset and std::vector<bool>?
 
user1804599
Or what do you mean by "proxy objects"?
 
pretty weird.
 
Basically, you can swear all you want. A boss isn't gonna pick that up at a glance. But pictures need to be more careful.
 
Xeo
@Griwes Yeah, what would operator[]= do?
 
@Aardvark For anything that currently needs proxy objects.
 
Xeo
8:12 PM
@Rapptz POMF!!
 
I saw it on 4chan ages ago.
 
user1804599
@Xeo you cannot return a reference to a bit, so you need proxies for std::bitset.
 
Xeo
Ah.
 
@Mysticial Fuck yeah.
 
user1804599
operator[]= would be subscript and assign in one.
 
8:13 PM
@Xeo Array copy?
 
Why is it so much complicated to install an SQL server on windows compared to Linux
 
@Xeo some_object[some_index] = some_value; would invoke some_object.operator[]=(some_index, some_value);.
 
Ell
I find this awesome: webpronews.com/…
 
@Borgleader Linux master race?
Everything is easier to install in Linux.
 
@Rapptz Definitely not.
 
user1804599
8:13 PM
Ruby has []=, IIRC.
 
@Ell no, natural language is very complicated, with far too many loopholes, and it keeps changing.
 
user1804599
def []= n, val

end
 
@Borgleader MSSql is quite easier on a windows box.
 
Xeo
@Aardvark That just doesn't make sense, though. All other compound assignment operators' base operators (+, -, << etc) are infix, not postfix (or some weird form between infix and postfix).
 
user1804599
@Xeo []= would be infix too.
 
8:15 PM
@CaptainGiraffe I tried installing the server that comes with MySQL workbench, it is unable to start the service. I tried to use the Microsoft SQL server but no luck there either.
 
user1804599
my_array [42]= 64;
 
Xeo
@Rapptz Do you know what she's singing about? And the origin of that thing?
 
The only thing I need for writing some basic proposal is way to avoid making it breaking change for code using proxies.
 
user1804599
operator[] is indeed postfix.
 
Like order of operators used etc.
 
user1804599
8:15 PM
Since you cannot have a unary infix operator.
 
@Xeo It's in the title.
 
And it would need to make much sense.
 
@Borgleader In my 3 year old memory I seem to recall credentials being a very difficult issue.
 
user1804599
But operator[]= would be a binary operator.
 
user1804599
No wait, it would be a ternary operator and [] is binary. Meh.
 
8:16 PM
@Aardvark Not really.
@Aardvark Yeah.
 
user1804599
Then we finally have two ternary operators! :D
 
Xeo
@Rapptz I know the origin of POMF and the content she's singing about. Was just wondering if you do too. :)
 
That's exactly what we need! Overloadable ternary operator! <3
 
Yeah. You can literally google POMF and get the context instantly.
 
void operator []=(double flash, string key) ?
 
user1804599
8:17 PM
operator[]= would also allow for operator[] on const maps.
 
user1804599
Oh no, nevermind.
 
Don't sweat it. We have int main(){(([](){})());} which is valid C++
5
 
@Aardvark Wait, what?
 
user1804599
13 secs ago, by Aardvark
Oh no, nevermind.
 
@sehe wut?
I'm trying to parse that...
 
8:17 PM
@Mysticial Yeah, I forgot the trigraph treatment :)
 
There's trigraphs in that?
 
@Mysticial Its a perfectly cromulent statement.
 
They don't all start with "?".
 
@Mysticial int main()??<((??(??)()??<??>)());??>
 
C++11 has much weird... syntaxes.
 
8:18 PM
@sehe Eh? [](){}, shouldn't there be a semicolon in the end since that's a lambda?
 
@Mysticial Look for the nucleus [](){} and the rest is simply wrapping/invocation
 
So even after trigraph replacement, int main(){(([](){})());} is still valid.
 
@Rapptz It's called with () after ) :D
 
@Mysticial yup
 
So how exactly are we supposed to say that C++ is less messed up than Javascript?
 
8:20 PM
Oh come on, it's much less tricky than it looks. Just try it: liveworkspace.org/code/a824df157b1f5efa5ab3cea0fe7070d4
Or at least star the message :)
@Mysticial We don't. Javascript is equally bad, but for different reasons
 
Well, @sehe, you just added ( and ) here and there to famous [](){}(); :P
@Mysticial C++ is positively messed up.
 
2 mins ago, by sehe
@Mysticial Look for the nucleus [](){} and the rest is simply wrapping/invocation
 
Somebody should ask this on SO:
 
Oh, didn't notice that one.
 
"Why is int main(){(([](){})());} valid C++?"
 
8:22 PM
@Mysticial Now speaking of cromulent, Javascript is beautiful. and a nice introduction to functional languages.
 
Xeo
@Mysticial Yeah, you'll get a lot of WTF upvotes, but that's it.
 
I'm not gonna answer it. Since I don't know the answer...
 
We can put that in FAQ, even if it's not really frequently asked one...
 
@Xeo Have you heard Nyanners' covers? They're actually really nice..
 
Xeo
@Mysticial Just emove the unneeded parens
 
8:23 PM
I'm still trying to break it down...
 
sbi
So I have my automatic buffer management implemented, and as repelling as I find this, I have to admit that it is much slower. Apparently, copying around a ref-counting object is much slower than copying around a 64bit POD. I wonder if I can help this a bit by preallocating the shared counters, to dampen the effect of new and delete, but I am afraid all the counting might still be a bit too much of a performance hog.
 
Xeo
int main(){ (([](){})()); } -> int main(){ ([](){})(); } -> int main(){ [](){}(); } -> int main(){ []{}(); }
 
@Xeo It's my lousy program, and I don't think it's worth posting. Precisely the thing we have seen enough of. So, no
 
user1804599
I'm learning lambda calculus.
 
@Xeo syntax error: expected unqualified-id before -> :)
 
8:24 PM
Gentlemen, have a nice weekend. Until next year then.
 
@Xeo Anyways, you missed the lambda invocation, so you failed
 
Xeo
@sehe pedantic error: expected real error before :)
 
@sbi I feel the tinge of the very good Q and A on cache hits/misses here on SO.
 
What exactly is: [](){}
 
@Xeo well played
 
Xeo
8:25 PM
@Mysticial The same as []{}
 
@Mysticial Empty lambda. Or nothing, w/e you prefer.
 
@Xeo (full disclosure: this is what gcc actually says for that "code")
 
It's a lambda.. no wonder I've never seen the syntax.
 
@Mysticial lambda with empty body and formal argument list
 
No seriously, somebody here should post that. And somebody should answer.
 
8:26 PM
@Mysticial lambdas are not as ugly as they could have been in C++
 
and [](){}(); is the most perfect no-op in C++11.
 
Though they look pretty bad when empty.
 
sbi
@CaptainGiraffe What?
 
Xeo
@Mysticial You ask. I answer. :)
Since you were actually confused.
 
@Xeo I'll do it Monday morning. (monday evening at your end)
 
8:28 PM
@Rapptz They look bad when typed
 
I'll ping you then.
 
Xeo
Heh
Shooting for highest visibility, eh.
 
@Xeo :)
 
@sbi I have not read about your original predicament but the very mention of newing and deleting small stuff made me think about cache misses, and this stackoverflow.com/questions/11227809/…
 
Feel free to prepare an answer ahead of time. But don't post it all at once, or it'll be clear that we planned it.
 
8:30 PM
@Mysticial Downvotes your question
 
ow :(
I actually expect a ton of downvotes
But not more than upvotes.
 
You've only given 3 downvotes.. Who did you downvote?
 
@Mysticial calling 4chan... dialling
 
@Rapptz I don't remember, it's been a long time.
 
Xeo
@CaptainGiraffe lol
4chan is not your personal army!
Also, I'd expect upvotes from that, actually.
 
8:32 PM
I remember most of the 68 downvotes I've done.
I also remember most of my downvotes on Reddit, which is probably like over 4 thousand..
 
@Mysticial I can flag. It's my idea. I'm against posting this :)
 
All 3 things that I've downvoted are deleted. So I can't find them.
 
lol
 
lol
 
This escalated quickly.
 
8:34 PM
@CaptainGiraffe ?
 
Its actually the first time in this chat that I've seen threats of downvotes.
 
I don't think they are serious though.
 
Yeah I won't really downvote.
 
Anyways. How are you even contemplating posting this on Stack Overflow. The same people didn't even think it worthy of a star in the lounge ... <whistle/>
 
Maybe my memory is going the same way my intellect is though.
 
Xeo
8:35 PM
@sehe But @Mysticial was actually confused by that syntax, so it's a valid question in a way.
 
@Xeo "In a way" - lol
 
Ell
do they call "()" strictly parenthesis in america?
 
@Mysticial Yeah, this I know. Just trying to take it an inch further.
 
I genuinely didn't know the answer. I tried to parse it for about 5 min. before I gave up and just asked.
 
@Ell parentheses
 
Xeo
8:35 PM
What else would you call it?
 
@Xeo Brackets.
 
Ell
@Xeo brackets
 
Xeo
Brackets is always [] or <> for me (square and angle, respectively)
 
@Mysticial we told you 'lambda'. Search:
44
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.

 
@sehe That was after I asked.
 
8:36 PM
@Mysticial That happens a lot, you know. The answer rarely precedes the question
 
Ell
I would say brackets "()", square brackets "[]", "curly brackets"/"braces" "{}"
 
@Ell I've never seen () referred to as brackets. The rest: square/angle brackets.
 
It's common in Canada and probably the UK.
 
Inb4 guillemets
 
Not so much in American English.
 
8:38 PM
@Rapptz I'd like to call on the puppy to call BS on that
 
Ell
Nobody has heard of the word "parentheses" in the UK
 
> Parentheses (/pəˈrɛnθɨsiːz/) (singular, parenthesis (/pəˈrɛnθɨsɨs/)) (also called simply brackets, or round brackets, curved brackets, oval brackets, or, colloquially, parens) contain material that could be omitted without destroying or altering the meaning of a sentence (in most writing, overuse of parentheses is usually a sign of a badly structured text).
 
Game time again! Lots of nice prizes to win. Just answer the following questions in a timely manner and you could be the winner to a luxury yacht trip to Barracuda!
What is the name of this symbol in your native language? I'm teaching a blind guy in a programming course.
#
 
@Ell Well, no Britt apparently wrote a technical piece/paper/book, ever, then :)
@CaptainGiraffe Pound, hash, hekje (Dutch)
 
I have heard them as both brackets and parentheses frequently.
 
8:40 PM
number sign, nummertecken (Swedish)
 
as far as I can tell, they're quite interchangable and also quite common.
 
Next sign ......
{
 
@CaptainGiraffe "Curly Brackets" or "braces"
 
Ell
well not in common terms anyway, programming yes
 
Punctuation marks are symbols that indicate the structure and organization of written language, as well as intonation and pauses to be observed when reading aloud. In written English, punctuation is vital to disambiguate the meaning of sentences. For example, "woman, without her man, is nothing" (emphasizing the importance of men) and "woman: without her, man is nothing" (emphasizing the importance of women) have greatly different meanings, as do "eats shoots and leaves" (to mean "consumes plant growths") and "eats, shoots and leaves" (to mean "eats firstly, fires a weapon secondly, a...
@CaptainGiraffe or accolade
 
8:42 PM
Accolade is only for musical notation.
 
@sehe sehe made responses from the british audience redundant. But if you care to add please do.
New sign. [
 
@Rapptz Not true. It's the dutch word for {}
> An international patent application was filed, and published in 1992 under WO number WO9219458,[13] for two new punctuation marks: the “question comma” and the “exclamation comma”. The patent application entered into national phase exclusively with Canada, advertised as lapsing in Australia on 27 January 1994[14] and in Canada on 6 November 1995.[15]
@CaptainGiraffe Add to WP?
 
@sehe In English it's only used for musical notation.
 
4 mins ago, by Captain Giraffe
What is the name of this symbol in your native language? I'm teaching a blind guy in a programming course.
 
@sehe We could do that. Or we could make it a programmers business and make it a community wiki here on SO.
 
8:44 PM
How da fuck?
 
cc\@TonyTheLion
 
@sehe He has a very distinct opinion based on his reading software.
 
I don't know.
 
yes but how do you make it a link?
 
Xeo
@Ell // replaces braces with spaces in places where braces cause stasis
I can't find the "best code commets" question. :(
 
8:45 PM
commets?
 
[like this](http://cc/@TonyTheLion)
 
@CaptainGiraffe I was reminding about "in your native language" /cc @Rapptz
 
@Rapptz I don't see how you did that? I only see the result
 
Xeo
@TonyTheLion See history?
You can see the raw text there.
 
@sehe Yes that is what I am curious about. What got me curious was the blind student.
 
Xeo
Works.
 
lol
 
Xeo
No need for the c/ actually, Lion.
 
@Xeo Another innovation by yours truly, today: /cc @TonyTheLion
8 hours ago, by sehe
@sbi I have tried to find a reasonable explanation in the specs. Haven't found it. Perhaps the Robot can think of something I'm missing?
 
Xeo
@sehe I saw that.
Nvm you do need one character before the @, else it transforms into just the name as lowercase string.
 
8:48 PM
@sehe huh?
 
@TonyTheLion Apparently, someone might think this is harmful: see history of this message: chat.stackoverflow.com/messages/6164555/history
8 hours ago, by sbi
Hush, unstar this. We don't want everyone to know it!
 
Are we trying to hack the autolink system?
 
I don't want to get on the DO NOT FLY list, so count me out!
 
@CaptainGiraffe Nope. I was trying to mention Robot without visibly also showing the @Plink vocative
 
8:50 PM
smart polar bear is smart ^
4
 
O very sorry for plinking with autolink.
 
plauto ink
 
@TonyTheLion He is actually a disguised penguin.
 
Xeo
autoplink?
 
@Xeo um yeah,
 
8:52 PM
@CaptainGiraffe Nah. I eat them, but that doesn't make me one
 
now, am I the only one to think that raw links posted look ugly? If you put them in a proper format it look much nicer.
 
> Spare a moment to thank blonde bomb thrower Ann Coulter. Author of seven—count them, seven—New York Times best-sellers. All of them say the same thing: Liberals suck, and anyone who doesn’t agree with me is a liberal. And probably a lazy parasite, and sucks.
 
In other news: How to recognize terrorist hotel guests (PDF). Official document
 
@sehe Last one still in your teeth? I have a product for you!
 
@CaptainGiraffe nah, he's been prayin on the penguin for a polar bear breakfast though. :P
 
8:54 PM
pengiun, dat typo
 
I don't think getting on the NYT best seller list is anything special
 
I have a penchant for penguins
 
for whatever reason, I can never spell it correctly
@Rapptz til the day you get on it, you may think that.
 
@TonyTheLion So, who's there doing the corrections for you, now?
 
you'll think differently the day you know the effort it took to get on it
 
8:55 PM
@Rapptz Nobody does. Every airport is littered with crap thats on the NYT top spot
 
@sehe you are, apparently
 
Books I've never heard of end up on the NYT best seller list.
 
@TonyTheLion that's on porpoise :):):)
 
I'm pretty sure its purpose is just to encourage sales of said book.
 
@sehe :P
I personally would never eat a penguin, but I've got a varied diet of other mammals. :)
also, insects are also not my favorite. You're lucky @JerryCoffin. :P
 
8:57 PM
I found "The animal farm" in an OHare bookstore though. Did not claim to be on the NYT bestseller list.
 
Ok, well, I'm off
 
Wait...
 
going to get drunk at the local pub
 
@TonyTheLion I guess I am!
 
8:58 PM
@TonyTheLion Woot. Tony's decided to have a life.
 
@sehe :)
 
Quiet night on mumble
 
@TonyTheLion A fine idea. If I didn't have kids to watch, I'd join you (in spirit, anyway).
 
(discovers not even a mumble client installed on current lappie)
 
@sehe Have a beer you too.
 

« first day (755 days earlier)      last day (4176 days later) »