« first day (1747 days earlier)      last day (3209 days later) » 

4:01 PM
> This application will be able to read your private email addresses.
Why the hell does anything need to read that :<
Those addresses are for GitHub to contact me, not third parties.
Why does GitHub even allow this.
 
@Mr.kbok Wait, you like Sonic's platforming?
Now I understand.
 
JENSKINS
> Matrice de Configuration
 
Wait, it's localised?
 
4:04 PM
@EtiennedeMartel Only Sonic Adventure 2 Battle.
 
My browser sends fr-ca?
(and then fr-fr)
 
So your facebook says "clavardage" too ?
 
My Facebook is configured for Français (Canada).
It's not automatic in their case, I had to input that.
 
BUT IT SAYS CLAVARDAGE RIGHT
 
Ell
4:08 PM
I'm using swap incorrectly
I always forget what I have to do. I don't know ADL :O
 
It says "discussion instantannée"
 
using std::swap; swap(stuff, more_stuff);
 
But, yes, I like using tools in my native language.
It's not like using Facebook or Jenkins or YouTube in English gives some deeper meaning.
 
Xeo
I like using tools in English
 
Ell
@LucDanton thanks
 
4:12 PM
Also, what I dislike is half-assed localization, like when you get half menus in one language and the other half in another language.
 
@Ell If you can't remember Luc's advice, just use boost::swap. It does it for you.
boost::swap(stuff, more_stuff); //handles ADL
 
@caps Good point. I was holding up on 'you can write your own wrapper that does the ADL for you' since it’s sort of an advanced technique, but hey it comes for free.
 
Guys where's @TheQuantumPhysicist?
 
@ʞɔᴉN Explaining random passers-by on the street how fucking great he is
 
that sounds great
nobody ever believes me when I say that kind of thing though
 
4:23 PM
I'd believe it
 
@ʞɔᴉN He's here and elsewhere at the same time.
 
Spoopy action at a distance
 
@ʞɔᴉN Wherever he is, he ain't moving.
 
4:38 PM
@R.MartinhoFernandes does that mean you've fixed it breaking when benchmarking std::find yet? :p
 
@CatPlusPlus Erm, what's order by 1.0 supposed to mean?
 
It assumes 1 is a table name
Hence why it's in quotes
Also the input came up in security testing
 
user1804599
@ʎǝɹɟɟɟǝſ non-deterministic order.
 
"Order by" takes a column, so obviously "x.y" is taken as "x" is the table and "y" is the column name within the table
 
user1804599
Or maybe order by the first column.
 
user1804599
4:48 PM
That feature is so moronic.
 
user1804599
They should've put select at the end and introduced let instead.
 
user1804599
This is almost but not quite entirely unlike the opposite of PHP's break 4;.
 
ORM is making the best choice it can in that case. And all of that doesn't matter because "order by 1.0" makes no goddamn sense.
 
user1804599
ORM is shit.
 
ORM is still terrible for other reasons. Not that one.
Cheers & hth.
 
user1804599
4:51 PM
Alf
 
Seems tagging C++ questions using facilities adopted from C with [C] is carrying the day on meta: meta.stackoverflow.com/questions/300162/…
 
user1804599
Luckily nobody gives a damn.
 
guys what's up with the Quantum Physicist bashing? I wasn't online yesterday so I am not aware of what happened but this doesn't look good.
 
How do you pipe standard input text in coliru?
Was it echo "abc" | ./a.out?
That doesn't seem to work too well.
 
5:07 PM
that's an interesting way of plotting that... -.-
ugh mobaxterm's ssh segfaults when I try to use with a ed25519 key
so much badness in the software world.
 
can't <3
 
@ʎǝɹɟɟɟǝſ was it .\a.out < stuff?
 
@ʎǝɹɟɟɟǝſ This problem is really more with SQL than ORM though.
 
user1804599
@ʎǝɹɟɟɟǝſ just like in Gentoo.
 
user1804599
@ʎǝɹɟɟɟǝſ yes.
 
5:15 PM
Yeah, it works.
@melak47 echo ... | ... seems to work.
 
user1804599
> Eminem Terrified As Daughter Begins Dating Man Raised On His Music
 
@JerryCoffin How?
 
so why did you say it doesn't work :S
 
@ScottW he he
 
user1804599
M&M's
 
5:16 PM
@melak47 I said it didn't seem to work, but in the end it did.
 
@yer name's all messed up
 
user1804599
@ScottW Eat proper chocolate instead, silly American.
 
@melak47 Funny. I got a ping from that.
 
user1804599
You're nuts.
 
std::vector<int> array;
std::cout << "Enter values:";
std::copy(std::istream_iterator<int>(std::cin),
          std::istream_iterator<int>(),
          back_inserter(array));
std::cout << "\nThe values in the array are:\n";
std::copy(begin(array), end(array), std::ostream_iterator<int>(std::cout, " "));
:3
 
5:18 PM
@ʎǝɹɟɟɟǝſ ORM is basically just generating SQL. The problem (IMO) is with the fact that the order by 1 syntax exists at all.
 
user1804599
H&M's
 
@JerryCoffin IIRC tables can be named by numbers. I don't see why not.
 
std::cout << "Enter values: ";
std::vector<int> array{std::istream_iterator<int>(std::cin),
                                    std::istream_iterator<int>()};
 
user1804599
@ScottW No.
 
On the other hand order by 1 is always invalid.
 
user1804599
5:19 PM
Your chocolate is full of sugar and makes you fat.
 
Because column names cannot start with a number, always IIRC.
 
user1804599
Proper chocolate has very little sugar and doesn't make you fat at all.
 
proper chocolate is raw cocoa
 
@ʎǝɹɟɟɟǝſ No. order by 1 means "order by the first selected field".
 
user1804599
The Beheading of a King is a great song.
 
5:20 PM
@JerryCoffin std::vector<int> array{std::istream_iterator<int>(std::cin), {}};
 
@JerryCoffin I see
 
@Veritas Good point. I'm still not entirely accustomed to C++11 coolness, obviously enough.
 
user1804599
:3
 
user1804599
amon amarth
amodrn amarth
amodrn warth
modern warfare 2
 
wow, win10 just decided to install a new touchpad driver. killing the touchpad. even though I explicitly told it not to download updates over my metered mobile connection. and now I have to restart to get the touchpad working again......
 
5:23 PM
and someone said "this stuff is obvious and useless": twitter.com/gevik/status/622159981111050240 :P
 
since we are at it should I upgrade to win10 ?
 
I dunno, do I sound excited about it?
 
I wish ostream_iterators took a string to interpolate between copies as second argument
 
@Veritas 11 or gtfo
@ʎǝɹɟɟɟǝſ it does
 
5:25 PM
@MarcoA. No, it always places it after the copy.
 
So you end you with an extra one at the end.
 
I wanted to link cppreference
 
ostream_iterator(ostream_type& stream, const CharT* delim)
 
I suppose that is quick to fix
 
5:26 PM
@ʎǝɹɟɟɟǝſ No you don't.
 
@ʎǝɹɟɟɟǝſ You're right, I misread the cppreference example.
 
> Optional delimiter string is written to the output stream after every write operation.
 
In fairness, how is the output_iterator to know it's at the last element so as to NOT include the delimiter?
 
user1804599
@ScottW B.B.K.
 
 
@caps Erm, you start by not adding the delimiter and then for each one you add the delimiter before printing the element?
 
@caps it != end :p
 
@ʎǝɹɟɟɟǝſ True, that's what I do when I write it myself.
 
Which has the convenience of working even when there is 1 element.
 
@melak47 end is 1 past the end.
 
5:32 PM
Overall I think that it's much more useful to have one that interpolate between values, as opposed to blindly add characters at every read.
 
Sometimes the latter is what you want, though.
 
And the second is easily achieved by repeating the delimiter after the printing if you need to.
@caps For example?
 
It may be that it is the more common use case.
@ʎǝɹɟɟɟǝſ \n
 
Ell
@rightfold chocolate snob
 
@caps Would create an extra new line at the end of the stream.
Which is almost never what you want.
Especially in files.
 
5:33 PM
@caps that is one of the quick workaround I was thinking of
 
The only one I can think of is when you want to add like "!" at the end of a bunch of words.
So you use ostream_iterator(..., "! ").
 
@MarcoA. It's the one @ʎǝɹɟɟɟǝſ just proposed for the reverse case.
 
26
Q: infix_iterator code

Jerry CoffinI've previously posted this on Stack Overflow, and am considering submitting it to Boost for wider distribution, but thought perhaps it would be best to put it up here for peer review first, and see whether there are clear improvements that can be made first. // infix_iterator.h // #if !defined...

 
@rightfold Batman's parents were killed when he was a child.
 
user1804599
5:39 PM
XD
 
user1804599
I'm now writing my SSA to stack machine converter.
 
awsum
 
user1804599
I just translate each SSA register to a local variable. :)
 
user1804599
-- so f(x, y) will translate to:
{- code for f -}
stloc 0
{- code for x -}
stloc 1
{- code for y -}
stloc 2
ldloc 0
ldloc 1
ldloc 2
call 2
 
user1804599
It's incredibly silly and inefficient to store locals just to subsequently load them, but it works and it's easy to implement. :P
 
@rightfold You can always write an optimizing compiler later.
 
user1804599
My compiler already optimises.
 
user1804599
It does TCO and eliminates redundant string literals. :P
 
But does it optimize the shit out of everything??
 
user1804599
TCO is really easy to implement with pattern matching: github.com/mill-lang/millc/blob/master/lib/millc/opt/tco.ex
 
user1804599
5:46 PM
defp optimize_block([{call_id, {:call, callee, args}}, {ret_id, {:ret, call_id}}]) do
  [{ret_id, {:tailcall, callee, args}}]
end
 
@Jeremy Well, damn.
I was expecting bullshit. Now I don't really know what to say.
 
Uggh stupid snackchat not scrolling down automatically
 
Because ruining the life of someone who made a mistake totally fixes the much larger problem. Well, okay, no it doesn't, but it sure makes us feel good about ourselves.
 
> The important thing is that he's found a way to feel morally superior to the rest of us.
Balance restored.
 
@Jeremy You don't get it, that lion had a name
 
5:54 PM
Is it crazy how saying sentences backwards creates backwards sentences saying how crazy it is?
Ah, English.
 
unfollow'd
 
@EtiennedeMartel yes
vOv I'm an English master!
 
hi guys, a little help for case switch in c? my default is not working. :/
 
@rocky No
> >Lounge<C++>
> >c
> >help
 
ow. okay. no one is online in c
 
6:05 PM
@rocky That's because nobody cares about C.
 
I've seen that thing here probably five times already.
 
isn't a C++ switch the same as C?
 
@R.MartinhoFernandes That would explain the stack.imgur part...
 
@ʞɔᴉN No.
A C++ switch is used in C++
 
6:08 PM
the cases in my case switch works fine except for the default part
 
A C switch is used in C
 
whats wrong with it
 
@rocky code or didn't happen
 
how is reposotory formed
 
it does not execute the default if there's no match in the cases
 
6:09 PM
@AndyProwl well, when a mommy and a daddy love it each other very much
 
@fredoverflow lel
 
@ʞɔᴉN Sort of, but effectively, no.
2
A: MetaProgramming in c++

Jerry CoffinTo just use the function call like a function call, you need to use constexpr (a new addition to C++11). Note that when you do use this, you do not need to use a template at all though. Though there are some limitations, the basic syntax is that of a normal function: int constexpr fact(int x) { ...

 
boom
 
Enfer, c'est expliquer comment marcher git/github aux autres
 
6:09 PM
@rocky Don't dump code.
 
nice indantation
 
@JerryCoffin I have no choice but to upvote this now since it helped me
 
@rocky use coliru to show us an example of what is wrong
 
sorry sorry. @caps
 
@rocky Have you checked the spelling? I once spent hours figuring out why defualt: didn't work right...
 
6:11 PM
@StackedCrooked god damn your url!
@rocky hint: you can edit or delete that to redeem some points
 
@JerryCoffin lol, and the language so conveniently treats it as a label for you!
 
@caps I specifically asked him to dump the code. Unfortunately, he did not tell us a) what he expected the code to do, and b) how the observed behaviour differed from that.
 
@JerryCoffin pubic void
 
@fredoverflow why... why would you do that :'(
 
@R.MartinhoFernandes Precisely (part of the trick that lets you insert one (and only one) URL as-is in any function).
 
6:13 PM
pubic ecstatic void main(String[] thong)
@thecoshman 'cause I'm gay for code!
 
@fredoverflow stop using words the way they are meant to be!
 
@Jeremy A shot of penicillin may cure that.
 
Compiler and Assembler are usually used in a weird way. Like, a compiler does not compile, it translates. And an assembler does not assemble, but translates on a different level.
 
@AndyProwl nice spalling
 
@JerryCoffin I already checked the spelling.
 
6:18 PM
@fredoverflow Assemblierer
According to DIN in German
 
@fredoverflow A compiler compiles (a collection of error messages).
 
evening guys
 
@MarcoA. Hello.
 
>: (
 
@MarcoA. Hey mate, why are you mad at Jerry
 
6:19 PM
@Columbo next time I'll say "f*** you guys, whatever the time zone you're in"
 
@MarcoA. I'm fine with that :-D
:-----------------------D And suddenly the smiley became a penis
 
user1804599
Yay, it works!
 
@Columbo Probably because I'm on one of those time zones where it's still morning?
 
@JerryCoffin Ahh, I forgot, if you live with your wife the sunshine never ends
</poetry>
 
Why do so many merkins describe the devices that use friction to retard the progress of a vehicle 'breaks'?
 
@JerryCoffin Since when are antibiotics effective against razors?
 
@MartinJames You mean "brakes"?
 
@MartinJames Not just merkins. Cosh too.
 
@R.MartinhoFernandes lol
@EtiennedeMartel Not, aparrently, in the US of A.
 
6:23 PM
fuck you @R.MartinhoFernandes fuck you @MartinJames fucka y'all!
 
I've never seen the word "break" used for "brake", even in the US.
Except by illiterate fucks, but that's not a phenomenon specific to the US.
 
@EtiennedeMartel It's common:(
 
@fredoverflow That depends on the type of razor. They became effective against blade razors in the 1950's, but weren't effective against electric razors until the mid-1970's.
 
user1804599
There was nothing wrong with the Windows 8 start menu.
 
I love this guy. (Haven't watched this particular video, though. Didn't want to post one of his usual 90 minute lectures.)
 
6:25 PM
@MartinJames Where?
 
user1804599
@fredoverflow done!
 
@EtiennedeMartel Novels by US authors.
 
@thecoshman how can I delete it? sorry. very slow internet connection.
 
@rocky No need. I took care of it.
 
Xeo
Overlord is so enjoyable
 
6:27 PM
Thank you @JerryCoffin :)
 
@rocky not being ten minutes late would help to start with
 
@thecoshman very slow internet connection. sorry
 
@MartinJames Don't they have editors to pick up those kinds of mistakes?
 
@MartinJames One of the early US presidents (maybe Jefferson, but I don't remember for sure) apparently rather enjoyed misspelling things, and apparently commented to the effect that language would be boring if there was only one way to spell a word.
 
> 21g per 6oz
ffs america
 
6:29 PM
the default still does not work. it should print an error message whenever a user enter an integer or any value other than "E","W","N","S"
 
@EtiennedeMartel Yeah. The editors use US-developed spellcheckers:(
 
@thecoshman
 
@MartinJames Yeah, but "break" is a valid word.
As I said, I'm fairly sure it's not a valid spelling in the US either.
 
@thecoshman Hm, that particular video was pretty terrible, though. This one is a lot more interesting:
 
@fredoverflow to late, you've lost your video linking privileges for the night
 
6:33 PM
How many hours 'til the night ends?
 
@fredoverflow A long time.
 
@fredoverflow Pretty interesting.
 
If you find this interesting already, I highly recommend watching his lectures.
 
guise
I'm bored
I'd install Windows 10, but I haven't got the upgrade message yet
also meh, will it really be worth upgrading?
 
@TonyTheLion Going to find out on one of my machines soon.
Well.
"Soon"
I won't actually have time for it for several days at least. :(
 
6:46 PM
@caps trademark
 
@caps I'm a tad apprehensive about installing something that only came out
I'm more for letting other people find all the bugs
and waiting until SP1 is released
 
@TonyTheLion I have a machine I don't use very often.
 
@fredoverflow But yes, food education would probably fix a lot of problems in the Western world.
 
is there any header to include to serialize boost::asio::ip::address ?
 
@EtiennedeMartel definitely!
@TonyTheLion 10 is bigger than 8
 
6:51 PM
@fredoverflow Is 10 bigger than "XP", though?
 
Isn't practically everything better than XP these days?
 
Yes
Except OSX
 
Ha ha pointer arithmetic ha ha bad joke sorry
 
You can't compare int with const char[3], sorry. No pointers involved.
 
Damn you, arrays!
 
6:55 PM
Hm... not sure if 10 < "XP" triggers pointer decay before the compiler starts barfing or not :)
 
Man, I wish I had a PhD in physics.
 
@fredoverflow It does.
 
I have a PhP in pythics.
 
> error: ISO C++ forbids comparison between pointer and integer
 
interesting
 

« first day (1747 days earlier)      last day (3209 days later) »