« first day (1305 days earlier)      last day (3659 days later) » 

Xeo
12:01 PM
LUIGAHAJGH:AGH, fuck you "tabs are better" and "tabs can look however the user wants!" people
 
:v
 
liftA2 (,) == zip, right?
 
Xeo
no
 
hmm
 
Xeo
list's applicative instance isn't zipping
it's combinatory
 
12:06 PM
oh right...cross product-ish
nvm, I knew that
 
How do I do the same thing with lists instead of tuples?
 
Xeo
?
 
umm...
 
1
A: Add all parameters with parameter pack expansion

rubenvbYes, using a trick I learnt from @Xeo in the Lounge. I originally used it to make a variadic "print" template function. #include <iostream> template<int... ints> int add() { int result = 0; using expand_variadic_pack = int[]; // dirty trick, see below (void)expand_variadic_pack{0, ((resu...

 
Xeo
12:10 PM
VARIADIC_EXPAND plx
@rightfold That comma was there on purpose
It's operator, specifically
 
user1804599
That was quite confusing then.
 
@rightfold yeah, the comma was there on purpose.
 
user1804599
How about "comma operator" or something like that?
 
Xeo
put it in backticks
 
@Xeo it's inside a code comment.
 
user1804599
12:15 PM
Any way of distinguishing it from an English comma would be nice, and backticks would do that fine IMO.
 
Xeo
@rubenvb Yes. So?
 
I added the usual quote quotes
 
user1804599
Nice.
 
I still think it's a nice trick.
Prevents a shitload of function templates being instantiated recursively.
 
user1804599
Can you do something like ([&] { result += ints; }())...?
 
user1804599
12:18 PM
Arbitrary statements would be fun. :P
 
user1804599
Although arguably you can use a named function for that.
 
Xeo
of course
you can use any expression that contains a pack
 
user1804599
Cool.
 
user1804599
@Xeo Thought maybe lambdas are special since they cannot appear in decltype either.
 
nah
it wouldn't make sense to decltype a lambda, that's why they can't appear.
 
user1804599
12:22 PM
By that logic C++ should be a very different language.
 
not really
 
Xeo
@DeadMG The actual reasoning is name mangling
 
it's just a very old language and the needs of the time when it originated are very different to our needs now, so it's no surprise it's not that great a fit.
I find that most aspects of the language make sense if you understand where it came from, when it was produced, and who produced it.
@Xeo Standard doesn't have name mangling.
 
I still like C++, althout that might be biased by the fact I don't know any other language well enough to write anything more than "Hello World", except Java, which, technically speaking isn't a language anyways.
@DeadMG Standard also doesn't have implementations, yet it takes them into account well enough.
 
tell that to export.
 
Xeo
12:27 PM
can't, it's gone :P
 
@DeadMG Exactly, no one implemented it, so the Standard just removed it.
 
sure, but the problem with lambdas isn't implementation-specific
 
That's not relevant? It would be a problem for implementors, so they decided to limit decltype for the sake of easy name mangling.
 
it's not a problem for implementors as in it's hard for them to implement, it's a conceptual impossibility that has jack shit to do with name mangling.
or any particular implementation
implementing it wouldn't be "a problem", it would be totally impossible and in violation of the Standard's own existing rules.
it's a problem at the Standard level, not implementation level.
 
I love extending Unity's editor to automate lengthy tasks <3
I think it's the best part of my work, actually
building a product people enjoy is awesome, but building a tool that does minutes of manual work in a second is even more awesome
well, for the people involved in development at least
 
Xeo
12:38 PM
@DeadMG What 'conceptual impossibility'?
What exactly would the difference between auto l = []{}; decltype(l) and decltype([]{}) be?
 
user1804599
I wish TypeScript had friend. :[
 
simple
if you do std::is_same<decltype(l), decltype(l)>, it's gonna be true.
if you do std::is_same<decltype([]{}), decltype([]{})> it's gonna be false because they're unique types.
there's nothing you can do with a lambda type you get back from decltype in such a fashion, if you could do it.
 
Xeo
Sure, that doesn't imply a 'conceptual impossibility', though
 
user1804599
Wasn't it because of unevaluated context?
 
user1804599
IIRC you cannot do sizeof([]{}) either.
 
Xeo
12:42 PM
ye
 
Friday: cloud cover 95%. Saturday: cloud cover 99%. Sunday: cloud cover 94%.
Fuck off, universe.
 
Xeo
It's basically raining non-stop here :(
 
weather is fine here
autumn so pretty & nice <3
 
@R.MartinhoFernandes same here
 
No clouds during the week. Weekend after? Saturday: cloud cover 95%. Sunday: cloud cover 92%.
 
12:51 PM
except it's worse, I also get cold winds and storms
 
This is the last weekend with astronomical darkness until August.
Dammit.
 
astronomical darkness? You mean no moon?
 
G'day folks.
 
1:07 PM
@Collin No twilight.
On latitudes above 48.5 degrees there is a period around the summer solstice when "night" consists of only twilight and no actual night.
For Berlin that will be from 17 May to 27 July.
 
@R.MartinhoFernandes like this? footage.shutterstock.com/…
 
Xeo
Itching to play around with your new telescope?
 
@R.MartinhoFernandes Neat, I didn't realize Berlin was that far north.
 
@Collin Go visit in winter:(
 
@Collin Roughly anything further North than Paris is above that line.
@AlexM. Hmm, yeah.
It's not as easy to notice from the city because of the light pollution.
 
1:19 PM
Nice and sunny here - just been for a long walk with dog. Unfortunately, when I got back, I was informed of a huge black cloud approaching from Germany. Lord Haw-Haw wants a word:((
 
@AlexM. abs(x)
 
Xeo
3 hours ago, by Alex M.
@Code-Guru I talked about mathematical notation mainly
 
well I should scroll chat sometimes
 
I got answers on my codereview question :D
> Function names generally shouldn't end in -of. (That's a way to pronounce function call, but it's not part of the name.)
this makes sense, but due to me studying math in Romanian I never had it in mind
"f of x" in Romanian is "f de x" and "complement of" would be "complementul lui"
I'll be sure to remember this
1
A: Rosalind's 3rd problem in Scheme

Anonymouscomplement-of The nicer way to write complement-of is with case instead of cond: (case char ((#\A) #\T) ((#\T) #\A) ((#\C) #\G) ((#\G) #\C) (else char)) Function names generally shouldn't end in -of. (That's a way to pronounce function call, but it's not part of the name.) complemen...

looks like a complete and useful answer to me
 
@Xeo Yes :(
Also, neat, there's Astronomy.
 
1:44 PM
coding while drinking sparking french rosé, good idea or not?
 
excellent idea
 
@chmod711telkitty yes
 
@R.MartinhoFernandes
0
Q: What to use to store Unicode (UTF-16) strings? (C++11)

Andrey ProI ask this question in the light of the innovations that C++11 brings, namely uchar16_t/u16string. I write an application that should have multilingual support. According to my plan the localization strings will be stored in XML as UTF-16, and retrieved with pugixml. THe strings will be used bot...

 
thought so :p
 
one of the requirements of classy coding is to drink sparkling wine while at it
the other is to wear a tuxedo if you are a guy or a red dress if you are a woman
and play some sinatra in the background
 
1:47 PM
@LightnessRacesinOrbit Ugh, wchar_t-based APIs :S
> The exact wide character encoding is assumed to be either UTF-16 or UTF-32 and is determined based on the size of wchar_t type.
 
@AlexM. I wear my wife-beater, play Nine Inch Nails in my trailer house, and I got class up the ass!
 
@LightnessRacesinOrbit Argh, the "blah blah UTF-8 crowd" is so annoying.
 
for a low budget game done by 4chan, KS had some awesome music
then again, smooth jazz & lounge is one of those types of music with which you can't go wrong as long as you like the genre
 
Daisy cried to be let up on my lap
 
Xeo
@AlexM. I still haven't played that
 
2:01 PM
1
Q: Why does Javascript alert pops up only numbers and not strings?

user3632544Can anyone help me understanding why: <?php $x = 'b'; ?> <script> var v=<?php echo $x;?>; alert(v);</script> does not pop up an alert whereas <?php $x = '3'; ?> <script> var v=<?php echo $x;?>; alert(v);</script> does pop up an alert with the text 3?

People do this?
 
@Xeo it was my first VN; people usually say it's a bad VN to start with but it sure got me interested in trying out others
 
Xeo
@AlexM. Try Little Busters or Rewrite :)
or MuvLuv...
 
user1804599
 
oh boy
time to refactor.. ClangType.
ehhh, I should do UserDefinedType first.
 
ever since 50 shades of grey became popular, wife beating became awfully sexy :p
 
2:07 PM
@Xeo noted
 
public Class (Context context) // is a constructor in java
public void Class (Context context) // isn't
 
Isn't u16string a more modern solution? — cubuspl42 3 mins ago
I don't understand what people think u16string can do.
 
Xeo
Magic, apparently
 
@R.MartinhoFernandes No recommendation of ICU?
it has a shit API but you can't say it doesn't support UTF-16.
 
I am watching the trailer for 50 shades of grey, it isn't exactly a romance & it is not a porn - I don't get it ... but then I didn't get twilight when my friends were so into it either.
 
2:16 PM
@chmod711telkitty Actually, it is porn--just not very good porn.
 
you watched it? :p
 
@DeadMG Yeah, but it seems the OP only wants to get stuff from the file into the screen through some MFC control, so ICU wouldn't be particularly helpful.
 
@DeadMG I can say it: it doesn't support UTF-16. It's a lie, but I can say it anyway!
 
@JerryCoffin Robots can't lie.
 
listen buddy
I got a dog on my lap
she cried to be let up.
so you better be careful
or I'mma sic her on you
she's vicious, ripped out the throat of the delivery man yesterday
also she can teleport herself through the Internets
 
2:18 PM
@DeadMG But then I'll cry and whine. If you let a dog do what she wants because she cries and whines, you'll obviously treat a person even better.
 
robots can't lie, but maybe it's not a robot
 
@chmod711telkitty twilight is the reason I couldn't see what the night in Berlin in summer is like on my first google
 
yeah, but she's cute and you're not.
also, let's be fair, she has little other available means of communication
 
@DeadMG All too true, I'm afraid.
 
nothing beats a cute b!tch :p
 
2:20 PM
looks like from now on whenever I google twilight to see actual twilights, I have to include the "-faggots" param
ba dum tschh
 
no.
you can't construct funny jokes that involve calling people "faggot".
and probably not for a few years.
then it'll go the way of "nigger".
 
Now I figured out what's wrong with 50 shades of grey - BDSM porns are rough, 50 shades isn't - it is almost you are paying to get an aggressive magpie, instead you get a lame chicken instead
 
@R.MartinhoFernandes Must suck to have to sleep standing up.
 
SHIT!!! An app wot I wrote has come back to haunt me. 16 years it's been hiding out in the world, keeping it's head down. Now it has arisen, like some vampirish nightmare, for an enhancement. I can't even remember where the source is:(
 
charge $500 an hour for searching your home for the source
 
2:22 PM
@MartinJames its* ^^
 
@MartinJames Releasing as open-source is primarily to place responsibility on the user in situations like this.
 
@MartinJames NSA probably can help you :p
 
The source is in one of the many 'archive' zip files that have been copied from machine to machine throughout the years.
 
I am excessively happy again tonight ... for no reasons
 
I blame the champagne
 
2:26 PM
have not started drinking it
Maybe I am genetically happy ... so I hope >_<
 
The most annoying thing is that it's one of my few success stories. I've never had a single bug report - it's just worked every time it's been installed. If I change it.....
 
@chmod711telkitty wired to be happy, eh
sounds nice
 
My dad is an intelligent & happy person, so is my grandpa
so maybe ... just maybe ... I am in luck on those traits :p
 
I have to work hard to be happy, either by removing or ignoring everything that makes me unhappy
as long as there's something making me unhappy, even if it's small, I can't properly enjoy the things that make me happy
so I can't be happy, in short :(
 
Xeo
UTF-8 Everywhere zealots are nearly as annoying as Haskell advocates. Seriously, there are reasons to use UTF-16. — DeadMG 18 mins ago
haha, Puppy so annoyed
 
2:32 PM
@DeadMG I'll make 'em pay for the unconference flights and hotel. They can put it down as international collaboration expenses. I'm really sick of rehashing old shit.
 
lol
 
lol
"I'll drink beer with my Internet buddies, er, I mean, collaborate internationally."
3
 
@Xeo Are there really reasons to use UTF-16 other than interop?
 
@EtiennedeMartel At least IME, the primary reasons to use UTF-16 are Windows and Java.
 
@JerryCoffin So, interop with those two.
 
2:35 PM
@R.MartinhoFernandes I can go visit them for a day or two - I have a week there. I can say hello and give them the fucking receipts.
 
@EtiennedeMartel Yes, pretty much (my comment wasn't intended as disagreement with yours).
 
I'm hungry enough for my stomach to make noises, ugh
perhaps it was time I went home
 
@AlexM. Me too, but I need to shop and my shopping time has been eaten up with conference calls with Lord Haw-Haw and some bastard in France. Now we're gonna be stuck in rush-hour and I still haven't eaten anything today:(
 
@MartinJames At least you don't have to play host to a useless lump of a mutt
comfortable programming position = way overweighted hand and mutt pawing me
 
@DeadMG Our 'useless lump of a mutt' is outside, slowly reducing a tree branch to sawdust.
Anyway, it's gone quiet, so shopping.
 
2:44 PM
yeah I think I'll drop by the store too
I'll make myself some hotdogs
 
0
Q: Is it possible to define a std::array without size?

FriggSimilar to a standard array: int A[] = {1,2,3,4}; The problem I have is that a std::array that is initialized, must match the size and the number of initialization elements manually, which is bad. I know I could construct my own array with an initializer list and do something similar, but it ...

I just used my super-powers to close a question single-handedly for the first time. Now I feel like a god :)
 
user1804599
@FredOverflow C+ lol
 
> warning C4522: 'config::property<gl::box<1,Scalar>>' : multiple assignment operators specified
Are you kidding me?
Why should I fucking care. And why is this a level 3 warning?
 
Xeo
@FredOverflow I wonder why people expect language magic from library types :(
 
@Xeo Other languages do it, for example in Java, string literals are objects of class java.lang.String.
 
Xeo
2:56 PM
@R.MartinhoFernandes Are you not using the header full of #pragma warning(disable:silly_warning_number)?
 
Morning.
 
Xeo
You can do this with a variadic macro. I'm having dinner but Fred can possibly post such solution for you if you're interested. — Cheers and hth. - Alf 2 mins ago
 
+1 to counter silly downvote. — Cheers and hth. - Alf 2 mins ago
 
Xeo
... 'variadic macro'
 
AAAARGGG!!
 
2:57 PM
@Jefffrey Ah, Alf, still with the idea that someone else's votes should not count.
 
Xeo
Too many people with that idea. :(
 
Or that if someone thinks the question is poor, that makes it better.
 
Too many people indeed.
 
Alf loves macros =\
 
@Xeo C99 has variadic macros. Does C++?
 
Xeo
3:00 PM
@FredOverflow 11 does
 
@Xeo C11 or C++11?
@R.MartinhoFernandes Is the question poor? I don't see why it was downvoted.
 
@FredOverflow I haven't read it. Someone thought so.
And, because someone thought it was poor, Alf decided to vote it as good.
I do appreciate the fact that it backfired.
 
@FredOverflow C++11 includes the C99 preprocessor.
including variadic macros
 
@DeadMG Having Herb as chair makes the C++ committee follow Microsoft's idea of messed up versioning.
 
Xeo
lolno
 
3:05 PM
@R.MartinhoFernandes What, you think they should have incorporated the C11 preprocessor?
I don't see what's fucked up about this particular thing (any more than the preprocessor itself)
 
Xeo
C11 was released after C++11...
 
what I was thinking.
 
I know that.
I was just joking.
Tinfoil hat theories.
 
right
wow 8 seconds left to squeeze in that edit
new record
 
@R.MartinhoFernandes Yuuuup.
 
3:13 PM
A mondegreen is the mishearing or misinterpretation of a phrase as a result of near-homophony, in a way that gives it a new meaning. Mondegreens are most often created by a person listening to a poem or a song; the listener, being unable to clearly hear a lyric, substitutes words that sound similar, and make some kind of sense. American writer Sylvia Wright coined the term in her essay "The Death of Lady Mondegreen", published in Harper's Magazine in November 1954. "Mondegreen" was included in the 2000 edition of the Random House Webster's College Dictionary. Merriam-Webster's Collegiate D...
 
@R.MartinhoFernandes I will use that word all of the time. Because I do that constantly.
 
@R.MartinhoFernandes Homophony is when you're afraid of gay people, right? ;)
 
@FredOverflow when you're afraid that you're speaking to a gay person on the telephone
 
No, homophony is when you pretend to be gay but aren't.
 
@R.MartinhoFernandes Smooth.
Yesterday I was playing some League of Legends, and one of my teammates seemed to be unhappy with my performance, so he told me I liked to suck penises.
It gave me pause for thought.
Anyway, the guy was probably a resident of the United States because he was dumb as fuck.
 
3:21 PM
> A Freudian slip is when you say one thing but mean your mother.
11
 
@EtiennedeMartel wooooah, there. We 'muricans are probably supposed to take offense to that.
 
@SamDeHaan Well, thanks, Obama.
 
@EtiennedeMartel hey now, that statement is trademarked for use by 'Murican citizens only.
 
Xeo
Welp, time to head home
 
3:29 PM
user image
10
 
Hi
 
Lo.
man, I overwrote my environment Path variable earlier
had to go find the original in the registry
 
user1804599
lol global PATH instead of setting it in zshrc
 
quote of the day: "I am really upset lol"
not sure if the "lol" at the end is helping the case :P
 
user1804599
lol
 
3:38 PM
would "lol I am really upset" make more sense?
or "I am really lol upset"
 
It's not like "lol" means a lot though.
 
user1804599
lol
 
It's supposed to be "laugh out loud" or "lots of laughs", but people mostly use it for small chuckles these days.
 
@EtiennedeMartel to me it means you find it funny in some way
 
lqtm (quietly to myself)
 
user1804599
3:39 PM
Ik had heel veel lol in het pretpark, lol.
 
@TonyTheLion See? The etymology is fucked.
 
its The Internet, Everything is Literally Fucked
 
user1804599
kek
 
user1804599
Tomalol.
 
3:40 PM
@EtiennedeMartel I'm reading through its etymology, but not finding "fucked" anywhere.
 
hahaha
 
@LightnessRacesinOrbit A Dalek? Why not broadcast your exact location to the entire Internet while you're at it?
 
@EtiennedeMartel hmm?
 
@EtiennedeMartel It's not like you can google maps "mom's basement"
 
@LightnessRacesinOrbit DW fans don't exist outside of the UK.
 
3:42 PM
this guy is such a drama queen it's hilarious
 
(I'm kidding, they do exist, and they're fucking obnoxious)
 
@EtiennedeMartel what the fuck are you talking about? that's not true whatsoever
 
Oh wait: here it is: "LOL: originally stood for 'laughing out loud', but now used by every fucked-up Internetizen to mean whatever the hell he wants or (often) nothing at all."
 
@EtiennedeMartel oh, come on. anyone outside of the UK is fucking obnoxious
 
(They also tend to never shut up about Sherlock either)
 
3:43 PM
@EtiennedeMartel Or as a nervous interjection
 
@LightnessRacesinOrbit Hey now, I find myself to be only moderately obnoxious
 
> so lol u okay? lol.. was wondering if u mebe want to get a drink some time maybe lol dw if not tho lol ok well cya haha x
 
@LightnessRacesinOrbit Poor obnoxious.
 
@R.MartinhoFernandes lol
 
3:46 PM
he thinks he's so special he should get one-on-one support with a small company that's already clearly massively overwhelmed by subscriber numbers, because he pays -- wait for it -- $9 per month!
 
@LightnessRacesinOrbit Has nothing do with money spent. We get customer support tickets by people who expect to receive free stuff because they've spent time (and no money) playing our games.
 
I didn't wait for it. I read straight away.
 
Feeling entitled to stuff is a personality trait.
 
@LightnessRacesinOrbit lol MAJOR billing issue.
"I was billed for the exact amount that I should have! This is a MAJOR issue!"
 
> > see dota 2 announcement on steam, click on it
> > page is in russian
shit, it has begun already
 
3:54 PM
Romania, Russia... same thing.
 
not really
 
yeah, we're way more manipulable than russia
 
Fucking vlad.
 
3:56 PM
how many times is linked in going to spam me with "introducing useless feature X" videos for the same feature
it's getting annoying already
 
user1804599
@TonyTheLion ahahah
 
user1804599
Pretending that what’s been on the Internet will not be there forever.
 
@TonyTheLion Still Eastern Urope. I think.
 
@EtiennedeMartel Canada is also North America
but it ain't the same as the USA
 
Indeed it is.
@TonyTheLion Serious Tony
 
3:59 PM
I'm a Lion, your argument is invalid.
 
@TonyTheLion Ok. Code red. We need courts to hire experts before deciding any more ruling.
 

« first day (1305 days earlier)      last day (3659 days later) »