« first day (1043 days earlier)      last day (3921 days later) » 

8:00 AM
lol
 
And my XMPP roster disappeared.
Greeat.
Not that I had more than 3 contacts.
 
@ScottW Hello!
The lowest of the low..
The mud under the troll's bridge.
 
8:54 AM
Weee
Hm.
 
@ScottW I can think of a few worse than you but I wisely won't disclose :)
 
Gotta figure out a good way to do the API...
 
Can anybody try to download the above link?
I am only getting 0 sized files from this using Chrome, Firefox, curl.
 
9:10 AM
There are 40 files called iostream on my machine.
 
9:22 AM
@wilx Works fine.
 
9:41 AM
std::vector<uint8_t> data;
data.reserve(500);
while (data.size() != data.capacity())
    data.push_back(data.size());
Generating test data :)
 
9:52 AM
@StackedCrooked 40% of all pop singers, right
@StackedCrooked Erm:
    std::vector<uint8_t> data(500);
    std::iota(begin(data), end(data), 0);
 
I never used std::iota.
Interesting.
 
@StackedCrooked No, litb is just a guy who is terribly random
 
That'll overflow
 
@Rapptz Meh. That's the "OP"'s choice :)
@CatPlusPlus taken like that, it's like std::bind(&auto::first, _1) :/
 
Xeo
@sehe Just without pointers. Also, std::mem_fn(&auto::first)
 
10:00 AM
Night.
 
@Xeo I keep forgetting
 
Xeo
Or even std::ref(&auto::first) :D
 
Also, we need applicatives! It would be so cool to have std::applicative(std::make_tuple([].first, [].second, [].third)) return a [](auto x) { return std::make_tuple([].first(x), [].second(x), [].third(x)); }
@Xeo And I keep forgetting that too. Allthough I strongly remember that being of very limited use from last time (it can't be stored like as a callable object? something like that)
(psst. can you see it? it's a-happening to me too)
 
Eheheh
 
Xeo
@sehe I don't think "applicative" quite fits here
Actually, isn't that more like fan-out?
My.first &&& My.second &&& My.third?
Althought that gives you a ((a, b), c) result tuple I think
Oh, (a, (b, c)) even
 
10:16 AM
`--# curl -vO 'http://www2.ati.com/drivers/beta/amd-catalyst-13.8-beta2-linux-x86.x86_64.zip'
* About to connect() to www2.ati.com port 80 (#0)
*   Trying 32.58.164.146...
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0* Connected to www2.ati.com (32.58.164.146) port 80 (#0)
> GET /drivers/beta/amd-catalyst-13.8-beta2-linux-x86.x86_64.zip HTTP/1.1
Why the hell am I getting Content-Lenght: 0?
 
Xeo
Yay, time for Twilight Imperium~
 
@CatPlusPlus How big is the file you have downloaded? :)
 
10:43 AM
@wilx because web servers suck and treat the HTTP protocol as an inspiration, rather than a rule to follow? :p
@Xeo oooh, I wanna try that
 
Xeo
@jalf First time playing, let's see how it goes :s
 
11:04 AM
@Mysticial +18 8 hours ago reversal Serial downvoting reversed - They reversed it pretty fast
 
11:17 AM
@FlorisVelleman There is some script that does it. I had the same problem some while ago when I took issue with some moron for posting a marketing question. The script zapped all the downvotes and the mods dealt with the moron.
 
@MartinJames Ah okay, was wondering if team@stackoverflow.com was just very fast or if it was something else :)
 
@wilx thats weird
 
11:35 AM
I'm disappointed that litb hasn't deigned to comment on my most recent exciting C++ corner case questions.
 
@Borgleader I almost finished the Week 1 lectures, and I must say, the union-find problem is quite interesting. I also love how they implement everything with just int arrays.
 
@FredOverflow I can tell you're impressed.
 
I find it surprising that OpenGL doesn't have something premade for like, interpolation
 
11:57 AM
@Xeo back from groceries
 
@sehe I have nothing in I want to eat. My car is 2km away and it's raining. OK, so it's 'lose weight' day.
 
@MartinJames Can't you get something delivered?
I'm in the same boat, but my favourite indian food delivery service isn't open until this evening
 
@Xeo so, no. My understanding may be limited but it sure looks like haskells Applicative Functor
 
@willj Yes, I could: pizza. I'd better not go down that road at this time of day else I'll become deep-pan myself:)
 
@MartinJames man up. The grocery store was 2 km away, and it was reading. Still got the week's groceries bicycle. And yes that means left 2 cars parked right out front our house.
 
12:05 PM
@MartinJames Then the sensible thing to do is to wait until the evening and order food then, when you're properly hungry ;).
that's my plan
 
I just can't afford loose-weight-week
It would not have a beneficial effect on the children's wellbeing and agreeable behavior either
 
@sehe I MUST lose some before my vacation. Sitting on a Ryanair 'seat' for 3.5 hrs is a painful experience even when I'm at my normal summer weight.
 
@MartinJames Lost 37 pounds now myself.
 
Wow
 
OK, that's enough, I can't take any more. I'm plonking the puppy :)
 
12:10 PM
Lol
Victory for irrationality
 
Alright, HTTPS has worked around the problem. It looks like CDN cache/proxy issue to me.
 
Yup
 
Howdy.
 
12:26 PM
@StackedCrooked Perhaps you should test it on a 'real' multicore box?
 
@sehe Oh wait, that was Yup and not a Yo.
 
YoYo
 
@MartinJames It only works with two threads though.
 
Coliru experience is far from optimal on Android Chrome
YoLo
 
I don't have Android :D
So I don't need to fix it :)
 
12:28 PM
hmm.. it's not supposed to take more than five minutes to compile a single source file, right?
 
@StackedCrooked Oh, I guessed that. AFAIK, lock-free with multiple producers and/or consumers is err 'very, very difficult', even if you restrict the data type to pointers.
 
I think I've taken the code generation a bit too far
 
But it's perfect for a specific use case of mine.
 
might need to revert to using macros :(
 
I wonder how much the throughput would decline if you made along chain of threads where each thread pushes data to the next one with this thingy.
 
12:31 PM
aww.. the compiler is now consuming 3.5GB
 
@StackedCrooked I did look breifly at your code but, IME, the only way to be reasonably sure is to test the shit out of it.
 
Yeah, I'll give it a run with valgrind, helgrind and drd.
 
Sam
@StackedCrooked Howz u?
 
@MartinJames But given the small size of the program a good code review would be much more effective at finding bugs.
 
does anyone have a profiler for template instantiation? :)
 
12:33 PM
@Sam I'm going nuts.
 
@StackedCrooked TBH, I'm not sure how online environments, like Coliru, provide thread support.
 
@willj time g++ ...
 
Sam
@StackedCrooked Why?
 
@MartinJames By... using he OS threads?
 
@MartinJames It just asks the OS to run the program.
 
12:34 PM
TADAA. Simplicity beyond belief
 
I put a limit on the process count of the user that runs the program. (10 or so)
 
@sehe Oh sure, but you will get a process environment with ? threads available to it? Maybe it's like multithreading on a single-core CPU?
 
@MartinJames My VPS has 4 cores.
 
@StackedCrooked Test away:)
 
However, since it's a virtual server the cores are technically also virtual.
But I noticed that make -j4 is much faster so I can assume they are real.
Or maybe they anticipated that!
 
12:43 PM
Your VPS is conspiring against you.
 
@StackedCrooked Duh, why would they virtualize guests with more LCPUs than the host has? It's likely a 8-core host (Xeons)
 
Because they are just pure evil.
 
Anyways, cat /proc/cpuinfo is usually a good way to tell the host CPU type
 
1:00 PM
@JohannesSchaub I deleted my answer. Why don't you ... post one?
 
1:10 PM
posteone on ideone?
 
SO, Y U NO SATURDAY
 
1:33 PM
I hate long parties, even with the people I like to hang around with
I want to go home but it's a bit rude when no one else leaves ...
 
> stackoverflaw
 
Yikes, is Google Hangouts down for anyone else?
 
1:48 PM
@Telkitty猫咪咪 That's maybe because they are boring parties.
@KonradRudolph I never used that. What is that exactly?
Ah, there's plenty of documentation. Never mind then :)
 
I don't have the same definition of exciting party as most people.
 
oh boy, Jaedong vs Naniwa
 
@StackedCrooked It’s the least insane chat service currently available
 
Sounds cool.
 
Chat? Who wants to hang around in a chat all day?
 
1:56 PM
@chris Messaging service then?
 
@KonradRudolph (Notice where we are all day)
Well, a fair number of people in here anyway.
 
hah, such a nice note in n3642, "[Note: The keyword if is not available as a suffix.]” was criticized by STL for being too helpful"
 
2:25 PM
@StackedCrooked How do you know there weren't any? Eventually, one of the four threads will get to shove Max in Id, and then they all stop.
@StackedCrooked Maybe you should add a count to each thread to see how many times they each get to loop?
 
@MartinJames Doh! Silly me.
Hm...
Still no exciting race :(
I remember Herb saying that Intel architectures are very forgiving.
Which unfortunately leads to sloppy developers.
 
You know that the compiler can optimise the loop to Id = Max, right?
 
I don't know that.
@R.MartinhoFernandes Oh! I see it now.
That seems like a very likely optimization.
 
Yeah, I would check it before more trials.
 
hmmm
I think I'm going to need more context.
 
@R.MartinhoFernandes Also, what I meant was, you need to keep a count, and print it when done, of just how many times each thread goes round its loop. A race on incrementing Id will result in the threads actually looping more times than expected because more than one thread has performed the same increment.
 
wow 20% races
 
@StackedCrooked '-400000' - that value is VERY suspicious...
 
lol I think so too
Actually it makes sense.
It's the AB problem, right?
 
@StackedCrooked do you like my 'pet' cockatoo? :p
 
2:43 PM
@StackedCrooked I found another cppreference example that expects a locale you don't have: en.cppreference.com/w/cpp/locale/time_put/put
 
It's more suspicious than 'why is the size of my buffer always 4/8?'.
 
user1804599
Boo.
 
@StackedCrooked I think the main problem is that you're not good enough at writing bad code. I don't have that problem 'cos I've been doing it all my life :)
 
user1804599
Is there a C++ implementation that supports segmented stacks?
 
2:49 PM
@StackedCrooked That is what you are looking for, yes. I'm not sure that you've found a way of detecting it!
 
@MartinJames I speak truth by authority.
 
@StackedCrooked :)
 
maybe I should just be like, "Screw error recovery, just report it."
 
@StackedCrooked It's in the nature of data races like you're after to give a result that is no consistently repeatable. If you get -400000 every time, it's more likely that your code is not bad enough yet.
 
user1804599
Don't do error recovery.
 
user1804599
2:54 PM
Crash, report and restart.
 
yeah, but then you lose the outlining as soon as you make any grammar error.
err, maybe for a server instead of a parser.
 
user1804599
Oh a parser.
 
why would the compiler crash if there's a parser error?
 
user1804599
Because it cannot continue.
 
err, for one thing, I could print the error.
 
user1804599
2:56 PM
Part of the crash report. :P
 
2 mins ago, by DeadMG
yeah, but then you lose the outlining as soon as you make any grammar error.
and if I had fancy syntax highlighting depending on if a thing is a variable or argument or class or whatever, then I'd lose that too.
 
@StackedCrooked Nope.
would not surprise me at all if compiler would still optimize that loop away.
 
Your standards are too high man :P
 
@DeadMG Well, Id does end up less than it should have been if there were no races.
 
3:07 PM
well, of course there are races, so it's undefined behaviour.
so the compiler can optimize however it likes
 
@DeadMG Something is being executed, since Id ends up pretty close to Max.
 
blah blah blah
irrelevant implementation details
 
0<Id<Max. Defined.
 
nope
 
3:17 PM
@Telkitty猫咪咪 That dog doesn't look very happy
 
all race conditions are instantly undefined behaviour.
 
@Kian would you be very happy if you get dressed up like that?
 
@Telkitty猫咪咪 Haha yeah
 
Let's do a little quiz!
 
user1804599
lol
 
3:21 PM
Gawd..
 
If you usleep(1) how long will it take to wake up on average?
 
user1804599
@StackedCrooked It depends on the implementation and environment.
 
Of course.
The environment is Coliru.
 
user1804599
@StackedCrooked Probably about zero seconds.
 
@StackedCrooked Well, that's even more undefined than '0<Id<Max' :)
 
3:22 PM
@not-rightfold That's very good @not-rightfold!
 
depends whether your system has a deadlock or not
 
user1804599
@StackedCrooked That's not what you asked.
 
usleep(2)     ->  117   us
usleep(4)     ->  116   us
usleep(8)     ->  117   us
usleep(16)    ->  114   us
usleep(32)    ->  116   us
usleep(64)    ->  136   us
usleep(128)   ->  193   us
usleep(256)   ->  321   us
usleep(512)   ->  590   us
usleep(1024)  ->  1104  us
usleep(2048)  ->  2132  us
usleep(4096)  ->  4184  us
 
..and how many higher-priority threads are ready.
 
I was kinda surprised by the low resolution.
I expected around 50us.
 
user1804599
3:23 PM
You asked how long it would take to wake up, not how long it would take before it wakes up after you called it.
 
@not-rightfold I'm so terribly sorry @not-rightfold!
Seems that lower than usleep(100) is pointless.
 
@StackedCrooked Pretty much, yes.
 
HOWEVER
On my mac:
usleep(2)     ->  4     us
usleep(4)     ->  6     us
usleep(8)     ->  11    us
usleep(16)    ->  22    us
usleep(32)    ->  43    us
usleep(64)    ->  89    us
usleep(128)   ->  161   us
usleep(256)   ->  309   us
usleep(512)   ->  607   us
usleep(1024)  ->  1209  us
usleep(2048)  ->  2349  us
usleep(4096)  ->  4599  us
That's pretty sharp.
 
you have to compare apple with apple ... you need to show us what other processes are running in the background & what kind of hardware you are using
 
user1804599
@StackedCrooked The difference is greater if the argument is greater.
 
user1804599
3:26 PM
That surprises me.
 
user1804599
You'd expect it to be about constant.
 
It depends very much on the OS scheduling strategy.
 
user1804599
I wonder how precise Erlang is at this.
 
Erlang is dependent on the underlying OS.
 
user1804599
It does its own scheduling.
 
3:28 PM
The "low" 100 microsecond resolution however still means you can do it 10k/s.
@not-rightfold Is it installed in the kernel or ring1?
@not-rightfold How does one implement its own scheduling without making use of the OS facilities?
 
SAM
3:41 PM
waiting for Going Native 2013....
 
Don't expect too much from those. They are good, but not super.
 
@FredOverflow I was floored by the final performance comparison. And yeah, I was also impressed by how it only requires an array.
 
SAM
@StackedCrooked Was it a reply to my message?
 
4:20 PM
@StackedCrooked ABA?
 
@sehe Right.
Actually looking at the description it's not exactly the same.
@DeadMG Hey you were talking about this yesterday.
 
@StackedCrooked Pretty sure that it doesn't meet my requirements.
plus, I find it hard to respect someone advocating that ScopeGuard stuff.
 
Yes that special someone :P
 
10.3/11 is a bit shit
 
4:58 PM
@Borgleader From the checklist: "Your Percolation class should use the WeightedQuickUnionUF class. If you submit with the UF class, your code will fail the timing tests. "
 
> [C++11: 10.3/11]: A virtual function declared in a class shall be defined, or declared pure (10.4) in that class, or both; but no diagnostic is required (3.2).
It doesn't bother to say why a diagnostic would be required. Think it needs a trailing "if neither is the case", or somesuch.
Best place to report? comp.lang.c++?
ah, std-discussion
 
JBL
@EtiennedeMartel I'll be fine with whoever advances
 
> If you already believe your opinion to be correct, why would you challenge it?
 
@JBL The forward iterator shall advance.
 
5:09 PM
ARRRGH! The stupid, it burns!
 
it burns, but it is not very bright?
 
@FredOverflow I'm almost done with the second half of the lectures so I haven't looked at the homework yet, but it doesn't look very difficult.
 
5:24 PM
@Borgleader I have been grinding my teeth on corner cases for a couple of hours already, and I still get 4 failing tests...
I would say the algorithms course is definitely harder than the Scala course. Which is good. I like a challenge :)
 
5:37 PM
@Telkitty猫咪咪 wow lol.
 
I don't understand that Potato humor.
Is it related to some recent event?
 
old old picture
I'm pretty sure that was the first one
 
Would someone please answer http://stackoverflow.com/questions/18418862/reporting-cumulative-coverage-across-multiple-python-versions with http://nedbatchelder.com/code/coverage/cmd.html#cmd-combining please? I've sworn off of Stack Overflow.
@FredOverflow with Chris Sells :)
 
@sehe I wonder if that helped sales...
 
5:48 PM
@FredOverflow It helped in publishing, at least :/
 
@FredOverflow I just saw the author.
 
@chris That's what made it funny for me :)
 
6:03 PM
Can we get one more delete vote on this: stackoverflow.com/a/18419405/922184
 
@Mysticial Will flagging do anything?
 
@FlorisVelleman I don't want to get the mods involved.
Or rather there's no need to if we can keep it clean ourselves.
 
he deleted it himself
 
Actually one of us beat him to it.
 
6:07 PM
But yeah, we decided to clamp down on all new non-answers to that question.
 
You scared of being de-throned? :P
 
@Borgleader wiki actually.
 
That would be -84k rep ?
ouch..
 
He'd lose his rep if it became a wiki thing?
that's fucking dumb...
 
Isn't that how it works?
 
6:13 PM
Be right back I'm adding 10 answers so I have a chance to catch up to Mysticial.
 
@FlorisVelleman We don't lose the rep that we already gained on it. We do lose future rep from it. (which is already devastating to both me and GMan.) But more importantly is we lose ownership and our names and flairs get removed from it.
 
Okay yeah, that is terrible.
 
@Mysticial No more passive rep then?
 
Aside from that, the question really doesn't need anymore answers. I already aggressively destroy useless answers to other high-traffic questions. I'm not making an exception for the branch question - especially when I have a lot to lose.
 
The names will still display right, just not the portrait?
 
6:15 PM
@FlorisVelleman Yeah, your flair gets downgraded to a two links. Only one of which actually goes to your profile.
@chris lol
 
@Mysticial Meh, I'd have to answer questions.
 
@Mysticial whoa - 5458 up votes on the Q. Since when is that even legal
 
Mysticial doesn't need no rules.
Also, I'm doing some interesting shit with my Hopscotch Hashtable right now.
 
6:31 PM
@FredOverflow I thought in the intro video they said they were going to talk about the environment for doing homeworks at some point?
 
Perfect forwarding a constructor is hard when you have a pair =[
 
@Borgleader I'm not sure what you mean.
You can use any IDE you want.
And when you're ready to submit, just zip some .java files and submit the zip via web.
(The Submit button is under "Programming Assignments".)
 
> My opinion is that you are an idiot, and you're not doing a very good job of challenging that.
why, oh why do I argue with people on Reddit?
 
just stop
 
Oh, he said "we have instructions on the web on how to do that", nvm I'll just grab IntelliJ community edition
 
6:40 PM
also, why do you get downvoted when posting an incontrovertible fact and back it up with links to strong evidence?
I mean, how can this possibly be downvoted?
 
@KonradRudolph because ~~idiots~~
People don't like being told they're wrong
 
it offers no interpretation, no insults, no joke, just a bare fact
 
Maybe they don't like your accent? ;)
 
I lol’d
@FredOverflow Ja ja!
 
6:44 PM
@Borgleader The comments make me sad. Again.
 
@chris I rarely read the comment's they make me want to live on another planet.
 
hello, World!
 
Java 8 is out right?
 
6:52 PM
It's out of the game.
 
lol... I need to download the Java SDK to do these programming assignments
 
SO got a Resharper ad.
 
but google pointed me to the Java 7 sdk =/
 
@KonradRudolph Cool, they updated it.
 
I don't think Java 8 is... out yet?
 
6:55 PM
@Borgleader Is that a problem?
 
Well I thought Java 8 was out, so sort of, but apparently it isn't
 
I haven't kept up on Oracle's release schedule...
apparently it was supposed to be released in Sept, but it's been delayed: theregister.co.uk/2013/04/18/java8_pushed_back_to_2014
 

« first day (1043 days earlier)      last day (3921 days later) »