« first day (797 days earlier)      last day (4154 days later) » 

Xeo
1:00 PM
@FredOverflow I wouldn't want that.
It's member pointers.
I have an aversion against those.
 
@FredOverflow Make a comparator builder instead.
 
Ell
hmm. C# is hiding exceptions from me or something o.O
 
user142019
JAVA Y U NO MULTIPLE INHERITACNE
 
Xeo
std::sort(RANGE(persons), LESS_F(age)); with #define RANGE(r) std::begin(r), std::end(r) and #define LESS_F(f) [](auto const& a, auto const& b){ return a.f() < b.f(); } :D
 
Waaaaaaaaat.
 
Xeo
1:03 PM
Note the ':D' and don't burn me!
 
template <typename Fun>
struct projective_comparator {
    // ctors and shit
    template <typename T, typename U>
    bool operator()(T t, U u) { return INVOKE(fun, t) < INVOKE(fun, u); }
private:
    Fun fun;
}
template <typename Fun>
projective_comparator<Fun> make_projective_comparator(Fun fun) {
    return { fun };
}
// TODO use references and perfect forwarding and shit for better goodness
 
Xeo
@R.MartinhoFernandes Still needs member pointers.
 
@Xeo Wut?
Needs not.
 
Xeo
Well, I guess you could write make_projective_comparator([](auto const& a){ return a.my_fun(); }).
 
They should standardize INVOKE. Someone write a proposal.
 
Xeo
1:05 PM
Man, I'm tempted to use auto&& because it's just that much shorter than auto const&.
 
@Zoidberg'-- Java has multiple interface inheritance.
 
user142019
That sucks.
 
Xeo
or just #define autocr auto const&
 
user142019
What if I want to inherit from two concrete classes.
 
Xeo
@Zoidberg'-- Inherit linearly. :)
 
1:06 PM
@Xeo You have been away too long and you cannot think straight anymore.
 
Xeo
IOW, change one of the concrete classes.
 
Xeo
@R.MartinhoFernandes Whenever you see '#define' and ':D' in my messages, that means I'm in '#define-troll-mode'
@TonyTheLion What, empty space?
 
0
Q: Will modules proposal for C++14/17 make it possible(easy) for other native languages to be used to generate modules?

NoSenseEtAlthis might sound weird, but I was thinking about modules proposal and wondered if it is possible for example that in future Haskell code could be exposed (as a module) in a way that C++ can use it(lets say list of T in Haskell maps to vector<T>). So do modules make that easy, possible, o...

Close as too localized.
@TonyTheLion ⁣
 
quickmeme sucks
fapping
 
1:09 PM
I am in love with the invisible separator.
 
Ell
arghh c# is silently ignoring FileNotFound exceptions - why!?
 
@Zoidberg'-- Implementation inheritance sucks in general, so I don't care too much about single-implementation-inheritance only.
 
@Ell try catch?
 
@Ell What do you mean by "silently"? At runtime? At compile-time?
Are you catching IO exceptions somewhere with an empty catch block maybe?
 
Haha. I'm quicker
 
1:12 PM
woah, a wall of text
 
Quicker than what?
 
Than Xeo obviously
 
Xeo
@R.MartinhoFernandes Me removing the last star.
 
My invisble separators! They are gone!
6
 
1:12 PM
Polar Bear is in asshole mode
 
Xeo
lol
 
@R.MartinhoFernandes I made them invisible, hope you like it
 
They were invisible, remember?
 
Xeo
Make that one message and it gets a star.
 
@TonyTheLion Excuse me
 
1:13 PM
why u remove stuff?
 
Xeo
@TonyTheLion Because useless noise.
 
Ell
Nope, I just have this in the form load method:
MessageBox.Show("hmm.");
var igm = Image.FromFile("i don't even exist you stupid mofo.stupid and silly.");
 
user142019
TIL: @Override works with interfaces. Well, at least I learned something. :^)
 
Y⁣o⁣u⁣ ⁣w⁣i⁣l⁣l⁣ ⁣p⁣a⁣y⁣ ⁣f⁣o⁣r⁣ ⁣t⁣h⁣i⁣s⁣.⁣
 
@TonyTheLion Because it was supposed to be invisible
 
Xeo
1:14 PM
@Ell Try changing igm to img, maybe that fixes it.
 
@Xeo Isn't that natural where you have a bunch of random animals in one meeting place?
 
@R.MartinhoFernandes A bit late to the party, but how about this simple solution? :)
template<typename Iterator, typename Fun>
void sort_by(Iterator begin, Iterator end, Fun fun)
{
    typedef typename Iterator::value_type value_type;
    std::sort(begin, end, [=](const value_type& a, const value_type& b) {
        return fun(a) < fun(b);
    });
}
 
Ell
@Xeo The message box shows, but it doesn't appear any exception is thrown - usually visual studio stops execution and shows an error, deosn't it?
 
room topic changed to Lounge<C++>: Useless noises are under-appreciated. [c++] [c++11] [c++-faq]
 
Xeo
@Ell That was meant as a joke.
 
1:15 PM
@Ell If the exception travels up all the way beyond main, presumably. Is that the case?
 
Xeo
@FredOverflow Needs INVOKE(fun, a) instead of fun(a).
 
Ell
@Xeo I know, sorry, I meant to send that to fred
 
What the hell is INVOKE?
 
Xeo
Love.
 
@FredOverflow My comparator can be reused for other stuff, say lower_bound.
Generic > simple :P
 
Ell
1:16 PM
@FredOverflow I think so o.O
 
@FredOverflow Try passing a member pointer to yours.
fun(a) does not work for calling that.
 
Xeo
Or a member data pointer.
 
@Ell What does "the message box" look like? Can we see a screenshot?
@R.MartinhoFernandes Oh, I would wrap that in std::mem_fn, presumably.
 
INVOKE is the generic invocation thing.
 
user142019
@FredOverflow It looks like a message box.
 
1:16 PM
It can invoke anything.
 
Xeo
@R.MartinhoFernandes And it can even invoke member data!
 
The only annoyance is that, while thoroughly defined in the standard, it is not included in the standard library.
For absolutely no fucking reason.
 
@Xeo Can it also invoke undefined behavior?
@R.MartinhoFernandes oversight
 
Xeo
@FredOverflow I don't think so.
 
user142019
Yo momma is so fat, her belly overflows making her pregnant.
 
Ell
@FredOverflow I would expect to get this: i.imgur.com/nYRpK.png
 
@TonyTheLion: Why would you want a non-expert to rewrite the book? — Ben Voigt 6 mins ago
 
Xeo
Since INVOKE is specified as Define INVOKE as ... (list of all invokation forms with conditions)
 
Ell
but I only get that if I try to load the image in the form's constructor
 
1:18 PM
@Ell lol @ additional information
@Ell Well, then it's obviously swallowed somewhere.
 
Ell
@FredOverflow Yeah, I don't know where though :/ maybe it's project settings
 
@Xeo And why does that imply it is not an oversight?
 
Ell
@FredOverflow haha yeah :P
 
user142019
I like Python.
 
Ell
@Zoidberg'-- meh, it's so so
 
1:19 PM
@Xeo Would std::bind(fun, a) not work?
 
@Ell No I meant you probably have an empty catch block somewhere. Or are you perhaps loading in a different thread? Then you need to learn about exceptions and multithreading.
 
Xeo
@sehe Yes, since it's defined in terms of INVOKE.
 
user142019
lol the teacher is writing a singleton while we are doing the excersises.
 
@sehe You spoil all the fun. Now what wheel is the Robot going to re-invent instead?
 
@BartekBanachewicz TIL you work at intel??? Error Code: 502 Proxy Error. The host was not found.(11001)
 
Ell
1:21 PM
@FredOverflow I don't think so - even on a brand new project with a single line of code it still get's swallowed
 
@TonyTheLion Anyway, the guy got nearly to implementing his own memory pool.
 
user142019
It's not even thread-safe.
 
@Ell Oh, that really is strange.
@Zoidberg'-- We have enums for Singletons in Java, all other idioms are deprecated since Java 5.
 
user142019
@FredOverflow No, we have static.
 
@FredOverflow But that is not what bind does.
 
user142019
1:21 PM
Just make everything static already. No need for an instance!
 
@Xeo Ok. Good enough for me, then
 
Oh boy oh boy, I have free run of the house for two weeks!
 
@sehe Ah, I thought it's public information :P (Anyway, they literally moved the lab outside, and then to the roof)
 
std::bind(x...)() is kind of invoke(x...) (note the parenthesis)
 
@BartekBanachewicz So, you do :)
 
1:22 PM
123
Q: What is an efficient way to implement a singleton pattern in Java?

Riyaz Mohammed IbrahimWhat is an efficient way to implement a singleton pattern in Java?

 
@BartekBanachewicz Why not just run an antenna to the roof?
 
@sehe Oh yes, I do, I never hide that. You must've missed it :)
 
@R.MartinhoFernandes sorry, I thought it was clear I was just citing a relevant subexpression
 
user142019
@FredOverflow not at all. :^)
 
@BartekBanachewicz I must. Positively
 
1:23 PM
@Collin they were testing tablets
 
The use cases for bind and invoke are different.
 
user142019
A logger singleton is silly. What if you want multiple loggers.
 
@BartekBanachewicz GPS repeater then?
 
Ell
@FredOverflow stranger still, when I run without debugging I get this: i.imgur.com/VkGoc.png?1
 
@Zoidberg'-- 1 logger, many sinks
 
user142019
1:23 PM
wat
 
user142019
why
 
Decoupling. Decouples the code that logs from the method used for logging
 
@Ell Check your debugger settings.
 
user142019
Still, what if you want multiple loggers?
 
@Ell I think it's time to ask a question on stack overflow.
 
1:24 PM
@Collin There was no time for that. Also, they wouldn't be able to make such a story. It was 3. am.
 
Xeo
@FredOverflow Preferrably with a different file name.
 
user142019
You can have multiple loggers and multiple sinks.
 
@Zoidberg'-- How do you decouple it? How do you make sure you can make warnings end up in a logfile, the eventviewer and in a remote log monitor application? Using only configuration settings?
@Zoidberg'-- No problem. Obviously.
2 mins ago, by Zoidberg'--
A logger singleton is silly. What if you want multiple loggers.
^ I responded to the question part
Obviously, singleton is silly. But that wasn't even part of the question.
 
Why did I never think of looking at the first stack overflow question ever before? lol
 
@FredOverflow Too bad it's non-accessible under the rep gap.
 
1:27 PM
@FredOverflow To this day, I still don't know what "the Joel data" is :(
 
@BartekBanachewicz rep gap?
@R.MartinhoFernandes I BOW TO YOUR SENSE
 
That question is deleted.. I can't see it
 
@sehe I believe you have to have at least x rep to view closed/deleted/whatever questions
 
Ell
Ahh fixed it: Debugger>Exceptions>tick some stuff
 
1:30 PM
Ghhgrgrg... @FredOverflow, Y U NO post shorter great thoughts. It doesn't fit into twitter :(
 
@BartekBanachewicz Yep. That's called the 10k threshold. Rep gap is ... interesting
@BartekBanachewicz URL shortener
 
@sehe Is SO chat history guaranteed to keep these links active?
 
Anyway, it still requires the reader to one more click, when it's just a short thought
 
1:31 PM
I'll just shorten it up a bit, hope Fred doesn't mind
 
First one is still up.
 
@BartekBanachewicz What's so great about "I bet there is a question #1"?
 
@FredOverflow Not this, lol. The one with four 5 stars.
 
@BartekBanachewicz Oh. I can see how that would be longish. Don't forget @jalf wouldn't be able to read beyond 40 characters...
 
Oh. Well, I bet everybody already knows, anyway :)
 
1:33 PM
@Xeo Oh shit, my 1000th answer was on a C++/CLI question. Now I feel even dirtier.
 
You should think about your 1024th answer.
 
@R.MartinhoFernandes Why? 999 answers of abstinence is a good mark
 
@sehe why's that?
 
@sehe lol
@BartekBanachewicz His Twitter client broke.
it's c++, but I think c# need compiling as well, so I add c# tag.. — gbstack 5 mins ago
WTF
 
1:36 PM
LOL
 
Some stupid update to it so it no longer linebreaks tweets to actually fit in the window without scrolling. And it doesn't have a scrollbar, so scrolling horizontally is nontrivial ;)
 
2000 lines? 20 seconds? What are you doing, some template black magic (e.g. show the code)? Maybe you should not compile on your mobile phone. — hate-engine 6 mins ago
lolz
 
You know what else might need compiling? C. D. Haskell. Java. Why not add all those tags? — R. Martinho Fernandes 52 secs ago
 
You're going to confuse him with D
 
@jalf Btw, we are now using the last 100 characters of every tweet to mock you behind your back.
 
Well I barely fit it into 140 chars with #LoungeCpp at the end
Oh well. Someone just downvoted my string literals question
 
fuck Twitter
 
@BartekBanachewicz How about "C++ is wonderful. You can spend years figuring out every weird corner case of the language without writing any useful programs."?
 
1:43 PM
"...not writing anything useful"
 
Oh, fuck it, it's just a twit, not a formal letter or a novel
 
Xeo
It's called "a tweet".
 
@Xeo It was a twit, not a tweet. L2Twit #LoL
Oh god, now I am in so miserable pain after reading what I just wrote.
 
> There is *absolutely no difference in the observed behavior* between

(auto a, auto b, auto c) and (auto a, auto c, auto b)
lolol, @Xeo have you seen this?
 
instagram ^
 
Xeo
1:46 PM
@R.MartinhoFernandes oO
 
I will just stay away from the madness.
 
Xeo
No, I haven't been following the thread after finding he's nuts.
 
Anyway, is anyone here using musing streaming service like Spotify? Because there's one free, originated in Poland, called Wimp. Maybe, just maybe it will work in your country. Lots of good music anyway
 
lol @nickname
 
@R.MartinhoFernandes link link link
 
1:46 PM
Just in case it turns out madness is contagious.
 
@Xeo it's a twat
 
@BartekBanachewicz I'm using Spotify
 
Can anybody recommend Windows 8?
 
but I'll stick to it
 
@BartekBanachewicz I am not dignifying it with a link (also, it takes too much effort, because I cannot link to my mailbox directly)
 
1:47 PM
quite happy with it
 
@TonyTheLion the point is, Wimp is free.
 
@TonyTheLion Y U NO PROPER EMBED LINK
 
point is, I'm happy with what I've got
 
@BartekBanachewicz instagram was free
 
I would need to go to some page somewhere, find the same thread, find the exact message, click somewhere to ask for a link, copy it, and paste it here.
 
1:48 PM
@sehe because I'm a lion
 
Xeo
Okay, I'm really concerned with the fact that Google's telling me I'm a robot.
 
Never happens to me :P
 
@TonyTheLion Oh, ok, I just thought maybe someone would like to check it out.
 
@BartekBanachewicz Spotify here
@Xeo It tells me all the time
I have a few 'standard' queries that look complicated (like, e.g. site:chat.stackoverflow.com/transcript/10...) and it suspects I might not be human. Little do they fathom I'm actually a bear
 
Oh, fuck it.
 
1:50 PM
http. again and [SE]
 
@BartekBanachewicz You suck.
 
Xeo
 
@sehe Google can't bear that any longer :)
 
@BartekBanachewicz wimp.dk, wimp.de
 
Xeo
And after I enter the CAPTCHA once, another one comes.
And only after that I get my request through.
 
1:51 PM
I suck.
 
Well, there's Wimp.dk, Wimp.de and Wimp.se <-- look mom, in one try
 
Uppercased URLs are evil.
 
Xeo
Oh, 'twas 3 this time even.
 
as long as it's not goatse.cx
 
@R.MartinhoFernandes not my choice
 
Xeo
1:52 PM
@sehe I'm just searching for short strings, so I really don't know why...
 
@TonyTheLion http://
 
@TonyTheLion goatse.cx, kiddo.
It's an upcoming mail service now.
 
@Xeo that may be it. Also, make sure to turn on safesearch if you google 'short strings'
2
@R.MartinhoFernandes Oooh. I've never sent upcoming mail before
 
@sehe And similar thongs.
 
@sehe wat.
 
Xeo
1:54 PM
@R.MartinhoFernandes Lol, the video.
 
@Xeo What video?
 
Xeo
@R.MartinhoFernandes The ad.
 
There was no video in there last time I checked :(
Also, who the fuck clicks on a link to goatse.cx?
 
@R.MartinhoFernandes Only a web robot would... I informed google
 
ARATGrwhgerjkhgerklhjerh. Boost.Optional without moves is pile of junk.
 
Xeo
1:58 PM
Boost without move semantics is meh. :(
 
Just don't use boost::optional<std::unique_ptr<T>>...
 
Xeo
Same goes for Boost.Filesystem, when passing paths around, it will always copy. :(
 
Look, a Kickstarter that isn't just some preorder crap.
 
@R.MartinhoFernandes That minesweeper was pointed out to be flawed on hackernews
It doesn't guarantee 99.9% mine-free or something which is required for civilian use
Meaning it might lead to more casualties due to civilians thinking the area is mine-free
 
2:10 PM
That would be if they advertised it as such.
It sounds more like a flaw of the deployers than the device.
 
@R.MartinhoFernandes Well then, what's it good for?
 
Dunno, initial sweeps before conventional sweeping methods are deployed?
 
Maybe. I like the idea of mine-detecting plants more. Drop seeds via airplane over minefield, then see how it grows to locate mines.
 
@Pubby Maybe reduce military casualties on mine-sweeping missions?
 
How does that work in sterile soil?
 
2:16 PM
@Pubby Yeah. That'll work. 'Cause plants obviously grow everywhere
 
@R.MartinhoFernandes probably doesn't. Then again, AFAIK most mine accidents happen on fertile soil because that's where people live and work.
 
@Pubby half point awarded
I think mines are also commonly deployed in strategic buffer zones. You know, the 'borders' they don't want enemies to cross.
 
@sehe That sounds right
 
Also, you are working under the assumption that plants give a better ratio than rollers.
There are no actual tests though.
 
^demining shoes are neat
> The Nazi Germans used captured civilians who were chased across minefields to detonate the explosives. According to Laurence Rees, "Curt von Gottberg, the SS-Obergruppenfuhrer who, during 1943, conducted another huge anti-partisan action called Operation Kottbus on the eastern border of Belorussia, reported that 'approximately two to three thousand local people were blown up in the clearing of the minefields'."[
 
2:23 PM
Yeah, that's crazy.
 
@Pubby What does that have to do with the shoes?
They'd put them on the civilians and tell them they'd survive the blast?
 
@Neil Unrelated. The shoes are to protect against mines.
 
That looks like a ridiculous claim
 
That may be true, but you'd have to have some big gohonas to walk across a minefield, even with shoes like that
 
I don't quite see how these shoes would protect from a mine blast
 
2:27 PM
0
Q: What's the point of iter_swap?

FredOverflowI was just wondering, why would anybody write this: std::iter_swap(i, k); instead of this? std::swap(*i, *k); // saved a few keystrokes! Then I looked into the implementation of iter_swap, and of course it only uses swap instead of std::swap since we're already in namespace std, anyway. T...

 
the lessen the chance that you step on a mine in the first place, I guess
 
@TonyTheLion I suppose the point might be, that it will be easier to distribute your weight over more pressure points, far enough apart to not be on the mine at the same time?
 
Also, most of the explosion is probably directed into your feet. Those things are probably very strong.
 
@sehe But a smaller surface results in more pressure.
I would expect something more like snow shoes.
{| align="right" |- | | |} A snowshoe is footwear for walking over the snow. Snowshoes work by distributing the weight of the person over a larger area so that the person's foot does not sink completely into the snow, a quality called "flotation". Traditional snowshoes have a hardwood frame with rawhide lacings. Some modern snowshoes are similar, but most are made of materials such as lightweight metal, plastic, and synthetic fabric. In addition to distributing the weight, snowshoes are generally raised at the toe for maneuverability. They must not accumulate snow, hence the latticework,...
 
2:29 PM
Pillow shoes
 
@R.MartinhoFernandes Yeah. Well. Just thinking along here
 
Who the hell thinks on a Friday?
 
Hey. That's a bit insane. Someone posts a NSFW image. It gets flagged. PRESTO! NSFW now appears on all screens of 10k+ chat users
@TonyTheLion Me. GAC
 
lol
@sehe I declared it invalid. Was merely half boob
 
@TonyTheLion I didn't. I wouldn't want it on my screen. Hell. I was annoyed it was on my screen even as a flag report
 
2:36 PM
Go and play in the snow to cool off :)
 
The snow has melted already.
 
he's a polar bear
 
... in the Netherlands!
 
Is all of the [steamid] sharing for a specific game?
 
Steam group.
 
2:37 PM
Ahh. Well. [steamid] dehaansa
 
Ping the cat so he will notice.
 
@CatPlusPlus Don't forget me. The robot said you can't. [steamid] dehaansa
 
Please don't forget to mention your [steamid]. Plenty of times
 
that steam group is pretty pointless, no one ever chats
or plays games against another
why the fuck do these gore WTF posts end up on Reddit's frontpage?
I got caught out this morning, cannot unsee
 
@TonyTheLion idk... and im at work!
 
2:44 PM
@TonyTheLion because... Reddit?
 
because reddit is full of the type of people who go on reddit, of course
 
@TonyTheLion No one ever sent me an invite to play anything.
Also, we can chat here.
 
I don't have any games
 
WTF are you complaining about then?
 
I have amassed more games than I will ever play by buying too many bundles.
 
2:46 PM
I'm not complaining, I was merely stating a fact
 
You suck.
(How do you know no one plays with each other?)
 
It's Friday, your argument is invalid.
 
It's the last Friday of the year.
 
even more reason why your argument is invalid
lol
 
...no it isn't?
 
2:47 PM
Yes, it is.
 
What do you have against the 28th?
 
also fail?
 
@SamDeHaan world will end today
 
Robot sucks at basic calender
 
@BartekBanachewicz ahh, we're still on that
 
2:48 PM
Dec 21st Friday, Dec 22nd Saturday, Dec 23rd Sunday, Dec 24th Holiday, Dec 25th Holiday, Dec 26th Holiday, Dec 27th Holiday, Dec 28th Holiday, Dec 29th Saturday, Dec 30th Sunday, Dec 31st Holiday.
See, no more Fridays.
 
@R.MartinhoFernandes Hmm. I can live with that.
 
Today is also known as goodie day at my place of employment. It's a day long (very Merkin, I know) food binge with limited working.
 
ohhh
food binge
 
And once again you starred a message of mine with typos. I hate you.
 
2:53 PM
There is no std::swap invocation in my second question. — FredOverflow 28 secs ago
 
Hey, who changed the festive topic I set up?
 
<-------------
 
No no no, you need to do using std::iter_swap; iter_swap(i, k); because iter_swap might have been specialized. (Just kidding. I think.) — Potatoswatter 1 min ago
I lol'd hard.
 
Like this.
 
@R.MartinhoFernandes Is there a "topic history"? Never mind, found it: chat.stackoverflow.com/…
 
2:55 PM
@NikiC No. And chat search is unreliable because sometimes we edit the topic change messages.
 
@R.MartinhoFernandes oh crap ^^
 
And sometimes non-owners fake topic changes too.
room topic changed to Lounge<C++>: This is not a topic change, I am just kidding [c++] [c++11] [c++-faq]
 
you cheated
 
user142019
So, I downloaded this book in PDF format, and it consists of 2600 blank pages.
 
2:58 PM
It's more like a dry run.
 
@Zoidberg'-- Maybe your PDF viewer sucks?
 
@Zoidberg'-- That should be very compressible.
 
@Zoidberg'-- Is it a book on that the describes the advantages of using PHP?
 
@Zoidberg'-- Epic. Troll.
 

« first day (797 days earlier)      last day (4154 days later) »