« first day (1580 days earlier)      last day (3371 days later) » 

2:00 AM
but how would the algorithm actually traverse this tree if it was using memoization?
 
@ScottW q
 
memoization of what
 
@ScottW s
 
@AMostMajestuousCapybara of subtrees you have already calculated, of course
 
@ScottW u
 
2:00 AM
the node in the center of the grid would be calculated many times otherwise
 
@ScottW w
 
Aaaaaand...
 
@ScottW y
Yay!
 
@Jefffrey yes yes
 
@Blob what's the difference?
@AMostMajestuousCapybara ok, but what algorithm would you use?
depth first wouldn't be able to use memoization, for example
 
2:02 AM
@ScottW No clue. I though we would get cut off mid alphabet
 
@ScottW shhhhh
 
@Jefffrey why not
 
@ScottW hello
 
@AMostMajestuousCapybara well, ok, maybe it would
then only depth first would do it
 
@ScottW Too bad we can't test for it. Now someone's going to pull the "I can't hear you" prank.
 
2:05 AM
@Jefffrey yes I think so. Scott & I like orange juice
 
Breadth-first definitely not
STAHP
GODDAMNIT
 
Victory!
He noticed.
 
@ScottW lol
 
@Jefffrey Indeed, because you can't decompose that as a sub problem
 
@AMostMajestuousCapybara if you two don't shut up....
 
2:08 AM
@ScottW Cat wouldn't like that.
 
guise don't make me laugh at work pls
 
I'm going to eat
not dicks
 
static std::atomic<int> x; // is x guaranteed to be 0?
 
@Jefffrey homophobe alert
 
well basically I have to create an operator overload on `<<`. So then, I have to output 4 numbers like so:

` s << timeObj.days << "~" << timeObj.hours << ":" << timeObj.minutes << ":" << timeObj.seconds;`

But, the issue here is that any of these can be less than 10, in which case I have to output it as a 2-digit format because my professor wants me to. That's 2^4 = 16 possibilities...so my program currently contains 1 if statement, 14 else if's, and 1 else.

Holy crap.

Is there a better way?
 
2:10 AM
with bread
lmao
> The default constructor is trivial: no initialization takes place other than zero initialization of static and thread-local objects. std::atomic_init may be used to complete initialization.
 
this year is the year of breaking changes, I love it
 
so much code to rewrite #employment
 
Yeah! Herb and Bjarne be proud!
 
Herbjarne Suttrup
 
2:18 AM
Am I the only one who doesn't go crazy about both American Sniper and The Imitation Game?
Yeah, they are decent movies, but they are by far not exceptional.
Interstellar is exceptional.
 
No. IDGAF about those two either. Maybe because I haven't seen them.
 
But of course Interstellar is not nominated as best movie.
 
I love sniper movies
 
Is this pattern considered bad: struct foo { foo(bar& b) : _b{&b} {} bar* _b; };
 
_b{&b}?
 
2:23 AM
AKA "take by reference but store as pointer"
 
@AMostMajestuousCapybara IMHO, better take it as a pointer so that it'll be more obvious to the caller.
 
^
 
Though you can't enforce really-object-and-not-null at compile time.
 
@AMostMajestuousCapybara maybe use std::reference_wrapper?
yeah, use this
 
@MarkGarcia Then he can pass null which is not what I want.
 
2:26 AM
@AMostMajestuousCapybara Not necessarily bad. If _b must be rebound after construction, it's pretty much your only choice.
 
@Jefffrey it does the same internally
 
@AMostMajestuousCapybara nope, it uses std::addressof
 
@AndyProwl I just want my class to be copyable/movable/assignable
 
Also, if foo has value semantics, references will make it unassignable
 
which is not the same as using &
 
2:27 AM
@AMostMajestuousCapybara Yeah. I think it's fine to use pointers in that case
 
@Jefffrey Right.
 
@AMostMajestuousCapybara Can you not store it as a pointer? Store it as a reference instead?
 
or reference_wrapper, as Jeff wrote
 
@AMostMajestuousCapybara use std::reference_wrapper really
pointers are ambiguous
they mean too many things
 
2:28 AM
std::reference_wrapper means exactly what you are asking for
 
OTOH I don't think I've ever seen it used as a class member
 
what do you mean
 
@AMostMajestuousCapybara you'll be a pioneer!
 
lol
 
@Jefffrey I mean, from my limited C++ experience, I've never seen a member of type std::reference_wrapper. ICBW, ofc.
Not that I think it's wrong but since I have not seen that use, there must be a reason?
 
2:32 AM
yeah, the reason is that it's not used that much anywhere
 
A possible reason is that reference_wrapper does not really behave like a reference, so some may find it confusing
You can rebind it, and you have to perform indirection on it
 
So what do people usually do when they want reference members but keep assignability
 
It's more like a "never null pointer"
@AMostMajestuousCapybara I personally use pointers. But I find reference_wrapper a valid alternative.
 
Thanks to both of you for your input :)
 
No prob
 
2:38 AM
well basically I have to create an operator overload on `<<`. So then, I have to output 4 numbers like so:

` s << timeObj.days << "~" << timeObj.hours << ":" << timeObj.minutes << ":" << timeObj.seconds;`

But, the issue here is that any of these can be less than 10, in which case I have to output it as a 2-digit format because my professor wants me to. That's 2^4 = 16 possibilities...so my program currently contains 1 if statement, 14 else if's, and 1 else.

Holy crap.

Is there a better way?
 
He's only allowed me to use iostream
 
make a helper type that outputs everything on fixed 2-digits then
s << as_fixed(timeObj.days) << ...
and overload << for that fixed type
 
my rep went up by 30 today guys and I didn't even do anything :O

http://300bps.org/gallery3/downloadfullsize/send/20818
 
You're welcome.
 
2:45 AM
i wish raspberry pis had wifi
 
@Pris Buy a dongle.
 
yeah im going to
 
@AMostMajestuousCapybara This makes sense. I'll try this.
 
WTF did someone just upvote 5 of my posts?!
 
3:01 AM
man the raspberry pi is almost depressingly slow
 
@AMostMajestuousCapybara For a while I though your name was "A Most Mysterious Capybara"
@Pris What are you using it for?
 
I just hooked one up for the first time and am playing with it. Some of the software it comes loaded with takes like minutes to start... pretty ridiculous
 
Someone is serial upvoting me =_=
That'll get rolled back...
 
@Pris Have a look at cubietruck
 
@AMostMajestuousCapybara Compiler is telling me that timeObj.days is undefined.
friend std::ostream& operator<<(std::ostream& s, const as_fixed& fixedObj);
 
> rep-hound
> Obviously, you could use the longer form reputation junkie, but it lacks the punch.
anything other than repwhore lacks the punch
 
@DonLarynx Too vague, can't help without actual code.
 
lol the formal languages prof decided to write her own page
and somehow made all links go to .\somethinghere.pdf
so it's like http://herpagehere.ro/somecrap/.\somethinghere.pdf
 
All that’s missing is `\My%20Documents\`.
Really, morkdown?
 
3:28 AM
oh god and she gives out exam results in .xls
people like her should not be allowed to get anywhere near a computer
 
Oh we have a future Bartek in there
 
@AlexM. has you say, she teaches theoretical computer science
She has the same right to get near a computer as my grandmother does
 
@AMostMajestuousCapybara why, did he also give out exam results in .xls?
 
@AlexM. No, he tends to also say "X should not be allowed to Y for reason Z"
 
I'm pretty sure I said that independently of Bartek
and most likely before him
 
3:31 AM
@AlexM. lame
 
@AlexM. Forget it
 
@Amxx thanks
 
@AlexM. She doesn't want to finish the excellent se...
 
whenever I'm passed a doc or xls I upload it to google docs
it's just such a pain to do it all the time
and the alternative is to install shit like microsoft office or libre office
and only use them once a year
or never, once I finish college
 
@AlexM. :D should I tell you that I know people developping low level com interface for supercomputers (MPICH) who are required to do all there slides in .ppt ?
 
3:34 AM
should I care?
 
@AlexM. I think even Libre is much better than Google's.
 
it probably is
but as long as I get to see the grade, anything's fine
but really it's not that hard to export to pdf from excel
lots of profs do it
 
Office Online is also fine.
 
but every now and then there's one that just refuses to do it
and has you open an xls
lots of students don't mind because they have so much stuff installed
 
@AlexM. Some people just can understand that .xls might be less easy to open then .pdf
 
3:37 AM
sometimes when it's exam time I... "forget" my laptop at home so I use other people's laptops
it's scary to see what kind of mess I usually find around there
I can't even do anything unless I delete the file I downloaded 10 mins ago if I know I'm not going to use it later
 
@Amxx Should obviously use xlsx instead.
 
Just like 1 kilobyte is obviously 1024 bytes
 
@AlexM. i'm sure I would think the same of your laptop, and you would think the same of mine
 
@JerryCoffin nah, more like a .docx with a screenshot of the spreadsheet embedded
 
People always find my laptop too boring (no desktop icons, uninteresting taskbar icons, few items in start screen), which is probably a good thing.
 
3:40 AM
C
 
@AlexM. But the issue here was how easy they are to open, and xlsx and docx are equally easy to open because they're both really the same format.
 
t7oefwsiopkòo+
 
@Amxx well let's see
> Computer science researcher
you're not that far from a prof!
I might even agree
 
bjnbnnbm§
 
@AlexM. same here :P
 
3:41 AM
@Amxx I was talking about you
 
@AlexM. never mind
 
cg
 
aye
 
my desktop totally says "programming"
 
l
FFK
 
3:43 AM
 
@Jefffrey Are you cleaning your keyboard or what
 
> Chat like it's 1994.
 
@AlexM. mine says "if you don't know how to type startX you're f****d"
 
I was 2 in 1994
 
lol
 
3:45 AM
@Jefffrey You really waited for someone to point for you to say that...
 
@MarkGarcia Yeah, and it was really painful
 
I actually didn't think of that, I was going to ask "were there no proper words in 1994"
 
@AlexM. Is that AoE II HD?
 
yup
I go back to it from time to time
I'm doing the campaigns
never been good enough for multiplayer
 
@MarkGarcia are you doing the same "i'm 2 yo"-game?
 
3:46 AM
@AlexM. How's it compared to the original?
 
I also liked standard games vs AI
@MarkGarcia the same but at a higher res and better looking water (+ an expansion that was not in the original)
there is just one bad thing about it imo
 
wow
woiwowowowowoww
 
you cannot change the resolution, it defaults to what your desktop uses
 
wowowowowowowow. This:
if (timeObj.days < 10){
s << "0";
}

worked @AMostMajestuousCapybara
 
Don?
 
3:48 AM
so if you happen to have, say, an 1080p res on a tiny screen like on a netbook
 
@Jefffrey Don't you notice I'm always like that?
 
you're pretty much fucked because you can't see anything
 
@AlexM. Poor scaling?
 
yes
 
@AlexM. +1 having a 4k 15.6" screens sucks
 
3:49 AM
the high res thing is really just making things smaller to fit more on the screen as the res increases
 
Raster everything!
 
so on a small hi res screen everything will look really tiny
 
@AlexM. At least for programming, 1080p pretty much sucks regardless of screen size. For programming, vertical resolution matters, and 1080 just isn't enough. 1200 is (IMO) the bare minimum to be usable.
 
are c++ modules going to be in c++17?
 
hopefully
read: no
 
3:51 AM
@JerryCoffin still better then 768p
 
@JerryCoffin I would like to have 3:2 for programming, but it's practically non-existent.
 
@Amxx There's no real better or worse involved--unusable is unusable. Might as well try to write C++ on an abacus.
 
i have 720p on 13''
 
@MarkGarcia True (though 16:10 isn't too terrible).
 
and it's perfectly usable
 
3:53 AM
I use 1080p because games
I also program on this
and it's ok :D
 
@JerryCoffin I use to code on a 800x600 screen ... you get used to it
and also used not to it
 
wat
 
user3010322
I kinda wish sehe was here.
 
user3010322
I heard about MIR and I wanted to ask him if he knew stuff abou tit.
2
 
@sehe ^
 
3:53 AM
@ThePhD @sehe is always in our collective hearts
 
There.
 
@Borgleader loooooooooool
 
@LightnessRacesinOrbit hi
 
@ThePhD Tits are more fun if you're not looking at them through an MIR. :D
 
I'm not gonna stop until I get one of these though
they're not helpful for my work nor are they helpful for games
but I want one because it looks awesome
 
3:55 AM
@Amxx I've programmed on 80x24 text-only terminals at 2400 baud--but I wouldn't consider that usable any more though.
 
@AlexM. such a huge screen for such a poor window manager windows as ...
 
user3010322
FFFFFF
 
@AlexM. Side-by-side windowing is too annoying IMO.
 
Come on guys. Gaining rep is of course a positive outcome from positive behaviour, but you're all missing the fact that this term -- for better or worse -- describes someone who will do anything (no matter how harmful or detrimental to the site in general, to the OP, whatever) purely for the gain of rep. The two are not at all the same thing! — Lightness Races in Orbit 20 secs ago
 
user3010322
Goddamn TYPOS.
 
@MarkGarcia it does look annoying
 
@MarkGarcia It's a personal thing, I personnaly can't work without a tillable window manager
 
but look at how great the monitor looks
 
> Chapel Hill, North Carolina: Police say parking dispute may be motive in killing of 3 Muslim students
unlike these muppets
 
@LightnessRacesinOrbit You should have gone etymology-wise
 
3:56 AM
"Holy shit that guy has an elongated monitor he must mean business."
 
-1
A: What's a less offensive substitute for "Rep-Whores"

Ben KovitzReputation sex-workers. Seriously, if you want to insult them, then you should call them “rep-whores”. That has exactly the right connotation. If you don't want to insult them, then you shouldn’t call them rep-whores, whether in straightforward language or in politically correct language. If yo...

 
cba I'm stood up, just in from the cold, about to Hibernate my PC, just sorting out my pending SO notifications :)
 
Dammit, I'll wait for HoloLens and have all the screen space I want!
 
"he must have a tiny penis"
 
-2
A: What's a less offensive substitute for "Rep-Whores"

NotMeI like to call such people "skeets". As in Jon Skeet, who, apparently without even trying, continues to dominate the "reputation gathering" game that is stackoverflow.

whoah
 
3:57 AM
0
A: What's a less offensive substitute for "Rep-Whores"

Michael SouthcottI think rep-player conveys the tone of the activity while separting the moral ambiguity and social stigma that the word whore drags into the discussion.

This is PC shite right here
 
omg delete button I love you
 
absolutely no logic or constructivism in this idea whatsoever. just knee-jerk word-shaming
I also enjoyed the answer from 1-rep user "not a repor"
 
@LightnessRacesinOrbit rep-pimp
 
@LightnessRacesinOrbit shut up before I stick you with an itoa(type crap);
 
do rep-pimps organize rep-whores
 
3:58 AM
return love;
 
@LightnessRacesinOrbit I read that like it came from some gym instructor guy.
 
well Vlad still hasn't shown up so there's no point in living. consequently, I am going to bed. bye!
 
let's go to bed together
3
at the same time I mean
in separate beds
ew
I hope I don't suffocate and get at least 10 hours of sleep
stupid cold
 
i want to love someone
 
cya
 
4:01 AM
bye
 
@Jefffrey you mean with genitals and all
 
@AlexM. @LightnessRacesinOrbit Good night. Sleep well.
 
nah, I'm asexual I think
 
@Jefffrey secretly has secs with computers.
 
4:01 AM
@DonLarynx more like hours
 
Right in the PS/2 port.
 
why don't more sound card have 1/4" jack ?
 
@Amxx Because most people wouldn't use them even if they did?
 
For member functions of a class, did you know the calling object is always the first parameter?
-Captn Obvius
hence n3 = 10 + n2 will never work unless automatic type conversion into an n object was available.
 
4:12 AM
@AMostMajestuousCapybara ?
 
An implementation may choose to rewrite o->m(args) as m(o, args) but that's an implementation detail
 
@AMostMajestuousCapybara that's an interesting remark.
 
@DonLarynx Not true. It won't work as a member function, but it's entirely possible to overload with a free function: N operator+(int, N);, for example (where N is the type of n2 and n3). No implicit conversion to N needed or used (though it's usually more convenient to use operator+(T const &, T const &), along with a conversion constructor from whatever base type to T.
 
I agree.
Thanks Jerry!
 
@DonLarynx Where "interesting" translates to "dead wrong" (and even if we interpret it as what he intended instead of what he actually typed, it's still dead wrong).
@DonLarynx Surely.
 
4:18 AM
@DonLarynx You may not know, but every message on this chat boils down to "Thanks Jerry".
 
lol
I have to advise everyone: When I type the string literal "lol", I am really laughing out loud.
 
@MarkGarcia Oh hardly. At times people don't appreciate my twisted sense of humor.
 
4:31 AM
awk
 
4:52 AM
@Jefffrey Consider its non-IO friend, get.
 
dude wtf
so wait a minute
 
@DonLarynx That's a member initializer list.
 
wow strong mind-blone
I'm going to delete this now.
I was confused at LIMIT(lim) but just realized it initializes the LIMIT const int and also value
wow
very cool c++. very cool.
 
@DonLarynx would have been better as :LIMIT(lim), value(0) {}
 
Strong memory
I found that odd too the declaration inside the constructor.
 
5:27 AM
that weird feeling when your leg freezes. wtf?
stahp it neurons
 
6:07 AM
Paresthesia.
More generally called obdormition.
 
6:58 AM
@Xeo I could have - he wasnt there, was early sunday morning and I needed that post to get out of the door. So: sorry for not asking, @R.MartinhoFernandes
 
7:40 AM
So tempted to comment "maybe you should use the single-threaded version of the library"
@Rapptz I like this
@DonLarynx I've noticed (i.imgur.com/415bXm0.png)
 
8:11 AM
I can't get out of bed
The gravity is too strong
 
user1804599
hi
 
Yaaaarrhhh
 
user1804599
Fucking OP accepted an answer inferior to mine.
 
user1804599
Fuck OP.
 
@sehe Well, I think that the -mt part is a Windows nonsense and he's clearly on Linux... :P
 
user1804599
8:26 AM
 
vOv just use a perl shell
call it it sperl, and insist it's called 'spell' (like a magic spell)
o_0 map.remove(foo); map.put(foo, bar); WHO THE FUCK WRITES THIS SHIT?
 
user1804599
> Perl Shell (psh) combines aspects of bash and other shells with the power of Perl scripting.
 
user1804599
@thecoshman it removes the foo even if put throws an exception.
 
user1804599
If you want that behavior you have to do it that way,.
 
wait, it's a real thing?
@райтфолд how can the put throw? in this situation, if it did throw, everything is fucked anyway, transaction needs to be rolled back
 
user1804599
see "Throws:"
 
in this case, none of those will happen.
 
user1804599
Then the explicit removing is useless.
 
@Griwes it depends on the tagging scheme
 
user1804599
I think IOException should be unchecked.
 
user1804599
8:46 AM
It's something you rarely can/want to handle.
 
depends really
you could probably debate all day if any exception should be checked or not
 
I'm not going to .. edit .. the question .. for you .. for lack of time i.imgur.com/kp8I6Hl.pngsehe 12 secs ago
 
on one hand it means shit can't slip past you, but on the other, sometimes there's fuck all you can do
@sehe tl;dr fuck him
 
Though most of the crewmen are whites,
Uhura has full equal rights.
        Her crewmates, you see,
        Love De-mo-cra-cy,
And the way that she fills out her tights.
I love my daily fortune -o. :D
 
user1804599
8:57 AM
@FredOverflow :D
 
There were only 3 messages containing his name in FP. It had to be in the vicinity of one of those :)
Of course, it would have been much easier to find the picture if we had only one room to chat in.
CPLUSLOL! Now it should be trivial to find the picture of Walter Bright saying "C+ lol" in the future :)
 
user1804599
> AssertionError: field 'name' must be of type 'dict', got 'str'
 
user1804599
so glad I added type annotation facility to my named tuple implementation
 

« first day (1580 days earlier)      last day (3371 days later) »