« first day (833 days earlier)      last day (4118 days later) » 

12:01 AM
Does anyone know how to read these numbers?
 
Hmm...maybe I should try out Minecraft one of these days...
 
real    0m5.985s
user    0m10.881s
sys         0m0.144s
real is realtime right?
and user is CPU time?
Does that mean the program ran 2 threads?
 
Possibly.
Yes.
@Mysticial In user mode.
 
0
Q: Naive Matrix Multiplication in C++ 150 times slower than BLAS?

user1131467I am taking a look at large matrix multiplication and ran the following experiment to form a baseline test: Randomly generate two 4096x4096 matrixes X, Y from std normal (0 mean, 1 stddev). Z = X*Y Sum elements of Z (to make sure they are accessed) and output. Here is the nieve C++ implementa...

That's where I got it from.
I'm running some numbers on his BLAS benchmarks.
And they don't make much sense.
 
Hey, Microsoft Connect gave me a workaround for the bug I submitted in December. Cool.
 
12:03 AM
@StackedCrooked obviously, no. I still think that's papering over the real problem: you should be using JSON, or some other structured format and encode using base64/base92/uuencode/whatnot
 
Still a dumb question if you asked me.
 
@Mysticial Why not?
 
Write a dumb algorithm (w/ no research), compare it to state-of-the-art tech, and ask why it's slower...
 
@LuchianGrigore "Because you suck."
 
@sehe I considered JSON. However, I don't understand how base64 can be used here.
 
12:04 AM
@R.MartinhoFernandes If we assume 1 thread running AVX, then BLAS is getting 76% efficiency.
 
@LucDanton can I get on your whitelist thingy? :)
 
Or if we assume 2 threads running only SSE, then it's also 76%.
 
@Mysticial yes
 
@melak47 What should I put you down as?
 
But a quick google shows that BLAS supports AVX.
 
12:05 AM
@Mysticial What does 76% efficiency mean?
@Mysticial Maybe his machine doesn't?
 
@LucDanton I...don't know, what do you need? my minecraft account nick? :S
 
@R.MartinhoFernandes 76% of what his machine is capable of.
 
@melak47 Ye, if you don't mind.
 
@LucDanton apparently, it's "Kopfsalat"
 
12:05 AM
lol
 
Okay, try to join.
 
it werks!
 
@sehe thx. Which is funny, because that processor has 6 cores...
 
@Mysticial Well, as you are probably aware, some things don't actually scale with the number of threads used. I'd be surprised if BLAS were able to figure that all out, though
 
Is there a std function to tokenize a string?
 
12:08 AM
@Mysticial If I had to guess
 
Isn't User+Sys the time the CPU used?
 
I'd say that he created only integers in matlab.
 
@Rapptz Yup
 
and multiplied a pair of integers
not matrices
 
@sehe Matrix multiplication is something that does.
 
12:09 AM
@Mysticial In light of cache, wouldn't that largely depend on the dimensions?
 
@AndreiTita What do you plan on doing?
 
(answer: yes, a bit)
 
@Rapptz Tokenize a string.
 
@sehe There are block algorithms that completely eliminate the memory bottleneck from dense linear algebra operations.
 
getline has a third parameter for character delimiter
which defaults to '\n'
 
12:10 AM
@DeadMG The code he showed creates matrices.
 
oh, ok
 
If BLAS is using AVX, then it's it's only getting 32% efficiency - which is pretty crappy in my opinion.
 
it's just named as if it's rand().
 
@Mysticial Well... I reckon that if it's a really small matrix, just making it into the cache for each core might take more time than just running it on a single core. But that's a moot point of course :)
 
@AndreiTita No.
 
12:11 AM
-1
Q: Opposite of if(x.contains(y)) in java

user2012658How do I express something like if x not in y for example if I wanted to say if x in y, i'd use: if (x.contains(y)) how do I negate that? Do I put an exclamation mark somewhere?

 
@DeadMG Yeah, I thought so at first too, but then I looked at the docs :)
@LuchianGrigore OMG
@LuchianGrigore -1 + too localised.
 
hmmm
what is the complexity of the algorithm used by BLAS?
 
@Rapptz Not really what I needed, but thanks anyway.
 
@R.MartinhoFernandes -1, no prior research/effort
 
it's the bare minimum
 
12:14 AM
@DeadMG Less than cubic, for sure.
 
There's Boost Tokenizer if you're not willing to write a basic one yourself.
 
yeah.
 
@Rapptz also with boost range "tokenized" adaptor
 
@LuchianGrigore: Its running, you'll have to wait 10 minutes sorry :) — user1131467 47 secs ago
hahaha
 
lol
 
12:15 AM
@Rapptz It's ok really. It's a very simple case and I can write it in 2 min. I just didn't want to reinvent it.
 
I still don't know if tokenize is a synonym of splitting a string
 
@Rapptz It isn't.
 
What else is there to tokenizing?
 
Well, the resulting tokens don't have to be strings.
 
If this were JavaScript, you could use JQuery. In Java, you can probably find something in Spring. — Luchian Grigore 1 min ago
 
12:17 AM
@Rapptz recognizing different kinds of tokens, not just a set of delimiters. Also, expecting certain tokens (that's more like lexing already, but still)
@R.MartinhoFernandes Oh that too. I forgot the most conspicuous thing
 
@R.MartinhoFernandes Hm. That one makes sense.
 
@Non-StopTimeTravel yeah, that's what I came for !
 
wtf java, & and && are both logical operators?
 
huh, really?
 
I don't think so.
 
12:19 AM
@MooingDuck I don't think so.
 
"15.22.2 Boolean Logical Operators &, ^, and |"
"15.23 Conditional-And Operator &&"
two diffferent sections
actually, Java never uses the word "logical" with &&, so I guess not really.
the fact that && is not a logical operator but & is is just absurd.
 
actually, Java never uses "logic" in it's specification
FTFY
@MooingDuck it probably hinges on shortcut evaluation
 
moo
@MooingDuck && shortcuts, & doesn't
 
@Code-Guru yeah, but still...
 
hence the word "conditional" (the rhs is evaluated conditionally)
 
12:25 AM
Pups, the O(N^3) is for square matrices, i.e. N is their dimension (4096), not the number of elements (4096*4096)
 
yeah
I know
as soon as that guy commented the first time, I saw that he was correct.
 
@MooingDuck Thus the star ;-)
 
WTF. All tests pass?
2
But, but, ...
I was just debugging the failing one.
WTF.
 
YOU BROKE IT ALL
 
Ah, now this is better.
I was not running all the tests.
Fammit, I am making too many silly mistakes today.
 
12:28 AM
-2
Q: Why is my vector empty?

user2012732I have a public function in a class which pushes an object back onto a vector: Class People{ ... public: vector<Payment> Payments; void addPayment(Payment Pay){ Payments.push_back(Pay); } ... }; ... I'm able to ascertain that the elements are successfully pushed back...

 
I know what the duck feels like ;)
 
@Rapptz Lemme guess, the OP didn't put anything in it?
 
Maybe he copied it and tested a copy.
Wait.
People person = new People(...);
 
No he used new
 
Yeah, -1.
Not copy-pasting the bad code is silly.
 
12:30 AM
@R.MartinhoFernandes that should work in his case...
 
aw he deleted it.
 
@MooingDuck Really?
 
He didn't wanna lose his rep
 
@MooingDuck Why?
 
oh wait...
 
12:30 AM
@R.MartinhoFernandes wait, I assumed he had ` = *new`
that's just bad.
 
He could have a People::People(People const*), but gosh.
 
I always feel dirty when I use new in other languages :(
 
user142019
Scala y u no work.
 
You suck.
[Finished: 'words' 1 test case failed (190 of 6356 assertions failed)]
 
user142019
Netbeans sucks.
 
12:32 AM
@Rapptz I code Java at work :(
 
I am almost back at the 162 of yesterday!
:(
 
@MooingDuck Really?
 
@R.MartinhoFernandes Wait, are you not playing?
 
@Rapptz very sadly
and with much rage
 
@LucDanton Shit started lagging.
 
12:33 AM
oshi
 
So I got back to failing at code.
 
like on your end or?
 
Yeah, could be my connection.
 
@R.MartinhoFernandes wokay, lemme try to do a graph and tell you when it happened?
 
@MooingDuck lol
Someone's having a hard time with project euler 13 and they're trying to read all the big numbers.
0
Q: trouble with C/C file I/O

Zachary O'KeefeNoobie Alert. Ugh. I'm having some real trouble getting some basic file I/O stuff done using <stdio.h> or <fstream>. They both seem so clunky and non-intuitive to use. I mean, why couldn't C/C++ just provided a way to get a char* pointer to the first char in the file? That's all I'd ...

 
12:37 AM
@Rapptz I'd say that tokenizing means to split up a string of characters
 
I love the rant in the first paragraph lol
@Code-Guru I always considered tokenizing a form of splitting.
 
@Rapptz a variation, in some cases
 
@Rapptz I don't know if I've every put it into those words explicitly, but it works for me ;-)
 
that's it, I'm turning off -Weffc++ on this project. I don't want to be effective.
oh look, dropped from 50 stupid warnings to one useful warning!
 
a lot of the effc++ warnings are false positives or simply no longer problematic.
 
12:43 AM
I've never used -Weffc++
 
Guys, where are you?
 
@MooingDuck effectiveness is overrated
 
@DeadMG in this case, I'm using a lot of inheritance to ease some tasks, and it's whining that I don't have a virtual destructor, and also that I have classes with pointer members but no op= (those pointers are non-owning)
 
@EtiennedeMartel I'm lost.
 
@ZacharyO'Keefe I don't know about you, but my text editor (vim) lets me do that by placing the cursor on the first column, pressing Ctrl+V for column selection mode, then 300j to go 300 lines down, then I to insert, typing " and pressing Esc to stop inserting text. — R. Martinho Fernandes 16 secs ago
 
12:45 AM
@EtiennedeMartel chair
 
I meant in Minecraft.
 
@MooingDuck Yeah, -Weffc++ warning detection is not very effective.
 
Do you guys know how to change the icons of certain files based on their extension?
 
On Windows?
 
Yeah
For some reason all my .cpp, .h, and .hpp look like text files now
 
12:47 AM
@EtiennedeMartel You should be more specific =p
 
@EtiennedeMartel ping @luc he was waiting for you I think
 
@EtiennedeMartel brb soon
 
@Rapptz did you associate them with notepad?
 
Nope
 
@Rapptz check the open with thing
 
12:47 AM
try re-associating them with whatever should open them, anyway
 
@Rapptz haha
 
It has this in the about box:
user image
2
 
lol thanks, I'll try it out
 
Alright, who let a creeper blast away a chunk of the farm?
 
Is Johan a common name in Sweden?
 
user142019
12:50 AM
Hurray got Scala to work.
 
user142019
Maven > Ant.
 
@EtiennedeMartel It was me.
 
@EtiennedeMartel Same happened to the pen :(
@Rapptz You blew up the pen, kbok blew up the farm
 
@Rapptz very common
 
I don't play minecraft :(
 
12:51 AM
We're gonna have to build walls everywhere
 
I have an account though
 
@EtiennedeMartel or a moat :3
 
@LucDanton lol
 
@Rapptz fifth most common male name 173 062 population 10M according to this random source
 
12:53 AM
this program is cool
 
Which one?
 
the one you sent me
 
what's an .hhp file is that a convoluted .hpp
Oh no it's some microsoft shit
 
12:56 AM
I secretly like MS
 
@JohanLarsson Variants of John seem to be a very popular male name in most Western countries.
I wonder why...
 
@EtiennedeMartel Zillions of historical figures had that name.
Plus at least two biblical ones.
 
@R.MartinhoFernandes Where's the about box? I dl'd defaultprogramseditor, but it has no menu.
 
I wonder where QtCreator keeps its .ico for file associativity.
 
@Code-Guru Small question mark button, I think.
@Rapptz in the exe?
 
12:59 AM
@R.MartinhoFernandes Hmm...dun see that, either.
 
@EtiennedeMartel according to the link it stems from Johannes and means god had? mercy, also there are 9 females named Johan according to the link, can't explain that
 
Wow they really end their names with -sson?
 
I have a cousin named Johan. He's half Malaysian.
Our grandmother is Norwegian, though...
 
Johansson, Andersson, etc
Cool.
 
1:01 AM
@JohanLarsson "Johanne" is a French female name, so...
 
@Code-Guru Hmm, I guess it's not there in the newer versions :(
 
Huh. Apparently you can't return a pointer to a member variable from a const function. Either I forgot that or it took me 10+ years to realize it.
 
@EtiennedeMartel we have Johanna in Sweden (female and fairly common name)
 
@AndreiTita a mutable pointer? You should be able to return a const pointer
 
@MooingDuck Yes, but it's not what I need. Doesn't really matter because I can make the function non-const, but I don't really get the logic of this restriction.
 
1:04 AM
@AndreiTita so that people don't modify const objects obviously.
@AndreiTita I think what you've forgotten is the keyword "mutable"
a const function can return a non-const pointer to a mutable member.
 
Good to know, thx.
 
mutable means "even if the object is const, this member is allowed to be changed."
 
WTF, something is wrong here.
 
@R.MartinhoFernandes I'm thinking the same thing of my code. It appears that my container is successfully making copies of noncopiable elements.
 
No, it's correct. Dammit.
@MooingDuck I was talking about the spec. It seemed the conformance tests did not match the rules. I really should not be coding today.
 
1:10 AM
@R.MartinhoFernandes yeah, I assumed you weren't talking about my code.
oh, MSVC10's __has_assign and __has_copy return true for move-only types >.<
 
@R.MartinhoFernandes arg. vmstat and gnuplot is quite inconvenient. I should have installed munin or something: (that's Idle% vs. Wait% starting Jan 24 08:26:10 CET)
Or the last 10%:
So this would indicate that the server wasn't ever under any kind of load and the gaming started after 21:30
 
Nice investigating.
 
@sehe and memory? bandwidth?
 
@LucDanton Yeah. Not really informative. Or the lag is indeed network related/local. I only just in time (it was ~4am, right?) thought about tailing a vmstat -s m 10 to a logfile. I though, hell I figure out what to do with it, later.
@MooingDuck I'm not sure vmstat shows network bandwidth. But 2.6mbps download from my machine seems... plenty, right? Disk IO is pretty much absent. Let me do some mem graphs. Pretty hard to read anything into that, though on linux
 
@sehe I heard that Minecraft servers take lots of RAM and bandwidth, very little CPU
does MSVC10 really not have a trait to detect if a type is movable but not copiable? I can't find anything in the MSVC12 docs even!
 
1:24 AM
@MooingDuck I noticed about the RAM, no clue about bandwidth (what for anyway, it's not like a voice chat, or anything, right). Again, with feeling (starting Jan 24 08:26:10 CET)
The "swapd" or "swapped" column reports how much memory has been swapped out to a swap file or disk. The free column reports the amount of unallocated memory. The buff or "buffers" column reports the amount of allocated memory in use. The cache column reports the amount of allocated memory that could be swapped to disk or unallocated if the resources are needed for another task.
 
"Result: Sorta, but you're pushing it! You can host a maximum of: 8 Players at the same time, plus yourself. The problem is that the internet connection speed is too slow to send and recieve data the data for more than 8 people at the same time. You're probably better off renting a server instead to have a decent experience."
 
@MooingDuck you know, it oughta be okay, but I can hardly be running speedtest from a headless remote vps
I'd be happy to iperf to your machine though. I have run iperf in server mode on the vps and iperfed from my home desktop (resulting in 2.6mbps)
@MooingDuck It told me the same from the input I gave TTBOMK. Anyways, I don't play :)
 
@sehe guess the server isn't as RAM hungry as I thought. The site says with 640MB, and 2.6mbps up/down that bandwidth is still the chokepoint.
 
 
@Zoidberg You know, we're gonna have to merge your base and ours at one point. Or at least I hope it's your base.
 
user142019
1:30 AM
It's a chest room.
 
user142019
I don't claim it or anything.
 
@MooingDuck it's just 2.6mb up, I reckon a minimum of 40mbps down (possibly a lot more)
 
@sehe 40up and 2.6 down is enough for 16 players, 2.6up 40down it still says 8 players.
 
user142019
You can connect any pipe to it and it will sort everything into the right chests.
 
user142019
But it's far from complete. :P
 
1:33 AM
heh, 100mbs up/down + 64GB ram is enough for 303 players :D
anyway, time to go home
 
@Zoidberg Oh, so it's alright if we annex it to the Federation?
 
@MooingDuck Here's what my hosting provider reports as "actual stats". Looks like it's not pushing the limits. I'll see what more details I can unearth
 
@sehe was just speculating at causes for RMartinho's lag.
 
@MooingDuck Yeah. I'm interested as to what my VPS supports. Apparently, my colo has 40Gbps connection to the backbone. Obviously, the VPS has only 2x 1Gbit NICs. It's not entirely clear that that's per host/gues (so I assume per guest).
There's no mention of a bandwidth limit, really.
 
time to go hoem!
 
1:49 AM
bye @MooingDuck
 
@lucdanton pastebin.com/Ab3bzSYY (yeah, I remembered to %s/\v\d+(\.\d+){3}/x.x.x.x/g this time... - actually I just aligned and snipped the uninteresting columns)
Night all
 
 
1 hour later…
3:16 AM
@All: Describe the moment you first realised that you were wrong about everything.
 
Someone had rashes on their skin and I dismissed it thinking it was probably due to the effect of weather but I was wrong and it was due to an allergy.
First time I've been wrong in a while :(
Is this picture depressing or is it just me?
 
4:05 AM
@Non-StopTimeTravel: I was in an arcade in Japan with some friends. One of our acquaintances, "Balls" we called him, an atheist, was saying things about the christian god and his relationship with Mary. I believe the word "rape" was used. I was a christian at the time, but I didn't see any point in arguing with him. However, some other guys overheard, I think they were marines, and apparently took much offense at the comments.
There was some back and forth, then one of the marines said to Balls, "You're lucky you're wearing glasses mother fucker." Then Balls, who is a bit skinnier, takes off his glasses and places them on the counter. The guy didn't back down on his threat.
Before that, I had this distorted view of the world that led me to believe that christians were simply better people. They had to be, because they had Jesus in them, and he made them better, is what I thought. This event brought that into question, and eventually led to a complete change in my belief system.
 
Heylo
 
Hi
 
4:26 AM
Hello.
 
 
1 hour later…
5:48 AM
... OK ...
 
OK.
 
So, I got a SimCity beta key. Started playing a bit.
Seems nice so far. Much easier than SC4.
 

« first day (833 days earlier)      last day (4118 days later) »