« first day (910 days earlier)      last day (4044 days later) » 

8:01 PM
In my pi program I went with my own wrapper - mainly because I had my own allocator underneath.
 
I suck at AI.
 
me too, I want to change it though but might be too old
 
@ScottW To me, this is like saying my decision to make my website's background red. True, but discards the fact that how it looks to the viewer is important.
 
fucking fuck! that's really annoying that std::thread deadlocks in DllMain when boost::thread doesn't
 
user142019
@Mysticial I have to use Ruby's allocator because of garbage collection. Would that mean I need to use extra indirection if it doesn't appear to align correctly?
 
8:02 PM
@Zoidberg Yeah.
 
user142019
:'(
 
There's a lot of ways to build your own aligned allocator.
 
user142019
Oh well, let's try and see if it works first.
 
The most common one is to align extra memory, and place the "actual" free address just below the returned pointer.
 
8:03 PM
@Abyx Why are you trying to create a new thread in DllMain?
Isn't that considered bad practice, and not recommended by Microsoft?
 
So when you call your own free() on it, you actually free the pointer that's stored just below the pointer you pass into free().
 
@IDWMaster fuck Microsoft. it's good practice.
 
No it's not
 
oh cat
 
"Because DLL notifications are serialized, entry-point functions should not attempt to communicate with other threads or processes. Deadlocks may occur as a result." -- msdn.microsoft.com/en-us/library/windows/desktop/…
 
8:05 PM
I'm not discussing that.
 
@Abyx Why not?
 
ok... I still have _beginthread
 
Meh, I've just build Quake 3 from sources, but it's crashing
I think it needs resources I lack
but uh, APPCRASH?
 
@IDWMaster because.
fuck, I don't want _beginthread, I want std::thread =\
 
@kbok you there?
 
8:09 PM
Damn.
Animations in 3D are diesel. ;~;
@EtiennedeMartel I'll give your Sausage high APM~
 
@BartekBanachewicz Weird, they did a good job with Doom3. When I compile it from sources I get a window saying it cant find the data (which is normal) but no crash =/
 
user142019
Hmm.
 
@Zoidberg UB doesn't really anymore since SSE intrinsics are already below the standard. It would be just an alignment fault.
Hardware exception
 
user142019
@Mysticial OIC.
 
8:15 PM
> "The bad news is you're not getting any of these"
 
@Zoidberg Yeah, the compiler will treat __m128 just like any other variable. And if it needs to load it, it will use the aligned load instructions.
So it'll break if it's misaligned.
 
user142019
Ah I see.
 
also TIL CATCH test cases can have tags
 
@StackedCrooked Goed geisoleerd...
 
8:19 PM
lol
isolé
isolated
have a nice eating session
insulated
 
@ScottW insulated
 
yay
isolé, desolé, éternité!
 
joe le taxi
 
wut
 
8:25 PM
lol
 
Her. I do vividly remember once buying a vinyl of her for a friend of my moms. It was a santa-claus thing if I remember correctly
I had no clue what I was buying. And I never had. Turns out this was a blessing
 
hehe
vas-y joe
Funny that "vas-y joe" can be understood intuitively even if I never learned about that grammatical form.
@JerryCoffin Nice one :)
 
std::chrono::microseconds(milliseconds) fuck =\ why "microseconds" looks exactly like "milliseconds"?
 
0
Q: Resolving % operator ambiguity in boost spirit grammar

RajeshwarI have the following line in my project boost::spirit::qi::parse(lines[i].begin(), lines[i].end(), *(boost::spirit::qi::char_ - ',') % ',' ,temp); I am getting the error operator % is ambiguous any suggestions how I could resolve it. My header files includes #include "boost/spirit/incl...

 
8:34 PM
@Rapptz ',' looks like a bird
 
lol
 
@StackedCrooked it doesn't
 
what?
 
or I don't know a bird which looks like that
 
0
Q: C++ Pointers/References

Ricardo SimmusThis code takes coordinates from mouse click and creates a new vertex; void DrawingWidget::mousePressEvent(QMouseEvent *event){ if(getCurrentState()==ADD_VERTEX){ x=event->x(); y=event->y(); Vertex p1 {&x,&y}; m_mainWindow->addVertex(p1); update(); } } Here...

 
8:37 PM
just what part of bird is it?
 
Am I missing something, or does the OP's question require absolutely no pointers?
 
0
Q: How does the internet work?

user2278283What happens when you request a webpage on the internet? Please Make It Simple For example you computer connects to a router... and so on.

 
@Abyx I thought it looked like a bird in the referenced question.
 
It forks just fine. — Abyx 17 secs ago
^^ nice
It's actually too slow for me though.
 
You need to post a minimal SSCCE because, obviously, this is not a problem: http://liveworkspace.org/code/lz4In$1 (you might also want to specify compiler and library versions/options) — sehe 2 mins ago
 
8:38 PM
Yeah I saw your comment.
 
@Mysticial probably it's bedtime for me %)
 
I posted it here because I figured you'd know.
 
@Rapptz :)
 
So TIL std::bitset can take any number of bits.
 
@Rapptz I do :) But I'm not psychic. I'm afraid this user will have something like template <typename X, typename Y> void operator%(X,Y) { } somewhere in an ADL-implied namespace... Not pretty
 
8:40 PM
For some reason I thought I couldn't.
 
Why else would it exist. You mean, you assumed it would be fixed length ([vector vs. array] is as [bitset vs. ...]?)
 
I figured it had an assert to see if was evenly divisible by CHAR_BIT
 
Interestingly. One can hover deleted messages to find out what they are no longer in reply to :)
 
@sehe room owners can read them anyways, no?
 
8:44 PM
I can read them. And I'm not an owner.
 
@bamboon yes
 
@CCInc after deletion?
 
Yup
 
@CCInc Hmmm. How? :)
You mean, involving javascript, I bet
 
8:46 PM
It's a GreaseMonkey script IIRC
 
Image not found
 
That's vewwy nice
 
I thought I had lots of tabs up.
 
You do
 
lol
 
you've crapped all over your chat
 
lol
 
"profanity filter" LOL. fuck that
 
@LightnessRacesinOrbit That's just the SE Chat Extensions
 
8:48 PM
@sehe Yes, I guessed
@sehe I have SE Chat Modifications which do just enough
 
I still dunno how to use it :/
 
lol, this is probably worst place to be in if you wanna avoid profanity.
 
Yuup
 
fuck yeah!
 
Good shit.
 
8:50 PM
@CCInc Ask your bot
 
I mean like fuck. Fucking like, how can you fucking be in this fucking room and not fucking expect to fucking see fucking fucked up profanity.
 
What is he posting now
 
@Mysticial That's some fucked up shit man.
 
That guy edited the boost-spirit question.
 
8:51 PM
cc/listcommands
@CCInc help, listen, eval, live, die, refresh, forget, ban, unban, info, jquery, choose, user, listcommands, purgecommands, define, norris, urban, parse, tell, mdn, beautify, convert, get, google, hang, hangs, image, learn, thanks, askquestion, hi, asktoask, people, bots, sad, nudge, python, regexexplain, s, ss, spanish, spec, stat, timer, todo, undo, wiki
 
With a cruddy example :S
 
can't find the app to add view-deleted
 
Oh shitty bots
 
@Rapptz who gives a damn? we already downvoted it
 
8:52 PM
Get out with this crap
 
@Abyx How did you ping me?
 
We've been on IRC we've seen bots they're not new they're not cool just don't
 
@Rapptz what?
 
@Abyx That message pinged me.
 
Thanks for the love as usual cat.
 
8:52 PM
@Rapptz yep
 
That one didn't.
Shit's weird.
 
@CatPlusPlus We've all been drawing breath for years. It's not new. It's not cool. Just don't.
 
@Rapptz switch to another tab
 
@Rapptz I prepended :<messageid> there
 
@CCInc ping
 
8:53 PM
@Rapptz ping
 
I'm not getting pings anymore. Cool.
 
... really?
 
I have the noise turned on but I don't hear the sound.
It's weird, yeah
 
@LightnessRacesinOrbit Hey you can play with bots in JavaScript room or something if you like them so much
 
@Rapptz It's the little speaker button
@Rapptz in the top left of the room
 
8:54 PM
maybe something is wrong with your ears
 
I know but I don't hear it still.
@Abyx I'm listening to VGM!
Maybe that's it.
 
6
Q: GIF Killer! Stop animated gifs in the Chat

rlemon About Bookmarklet that stops GIFs in their tracks! until you refresh.. GIFs are replaced with the following image: How to use. Depending on your browser you create a new bookmark, copy and paste the code below in the Location field, then name it something cool like GIF KILLER!. Voila! Th...

 
cc/wiki vgm
Oh.
 
video game music
 
@CatPlusPlus Never said I like bots. I was just pointing out that your argument against them was, as usual, completely and utterly moronic.
 
8:56 PM
My argument against them is "fuck off, no bots allowed"
 
@CatPlusPlus That argument works
 
I don't care for arguing about this
It's useless noise and will be binned
 
@CatPlusPlus Then why are you?
teehee
Seriously now where is the app that caches later-deleted messages and displays them in grey?
 
seehee
 
I guess I shouldn't launch a game of hangman.
@LightnessRacesinOrbit The one I have? Who gives a fuck in this room? :P
 
8:57 PM
@CCInc wait until he's gone ;P
@CCInc I do, as evidenced by the fact that I am fucking asking you.
 
It's Shaq's
 
in Sandbox, Mar 23 at 4:44, by uınbɐɥs
Download Deleted Message Keeper v1.1 | New in this version: Removed messages stay even after page refresh
I'll post it on StackApps
OH YEAH FREE REPZ
 
@CCInc So can your profanity filter block this: "f​u​c​k"
 
9:00 PM
You broke it :(
 
Awesome, I f​u​c​k​ing broke the f​u​c​k​ing profanity filter.
 
That's fucking cool shit.
What the fuck
it blocks my fucking fuck but it doesn't filter your fuck
 
zws probably
 
In words, my f​​u​c​k​s are so important that your profanity filter won't block it.
 
Fucking right
 
9:03 PM
d​a​m​m​i​t... :(
 
hrrngg
 
@Mysticial gonna get a haswell?
 
@bamboon probably
There's a good chance I might end up getting both a Haswell and the latest AMD.
 
sweet
 
But both will be entry-level. Just enough to OC, but not the high-end stuff.
 
9:07 PM
let's see how long the survive in your bootcamp :P
 
But I'm likely to get a higher-end mobo for the Haswell machine so I can max it out on ram later on.
 
@Mysticial hmm, at Intel you will need a K anyway
 
@bamboon f​u​c​k
 
@Mysticial wanna beat your 64G machine?
 
9:08 PM
How much are they right now?
@bamboon I'm planning on retiring that machine.
It's kinda retired already...
The memory optimizations that work on that machine don't really apply much to the newer gen stuff anymore.
 
so
I leave for Bristol tomorrow
 
Although, having optimized the program heavily for my 64GB machine, I can say that I've gotten pretty good at handling machines with shitty memory bandwidth.
That's something that a newer with fast memory cannot provide.
 
@Mysticial well, I think the 4670K will start at 200$ and 4770K at 300$ (I hope I have all that numbers right).
 
@DeadMG Interview?
 
@Mysticial No, the Committee meeting.
 
9:11 PM
@bamboon Oh. That's fine. I'm just not shelling out 1k for f​u​c​k​ing CPU.
:)
@DeadMG ah
 
then after I return, it will only be a couple of days until I interview with The Googles
 
When is Haswell coming out?
 
Anyways, enough of the special unblockable "fuck"s. They're hard to type...
@Mikhail This summer I think... I think...
 
Google Code Jam is pretty fun this year if you haven't tried it yet
 
I'm a bit confused by the Haswell's process. TSMC has a 14nm arm chip, but is haswell still going ot be 22nm?
 
9:14 PM
what's up Lounge<C++>?
 
@Mikhail yeah
 
thats lame. I want a 14nm chip and I want it now.
 
Seems that my laptop has a 22nm ivy...
 
@Mikhail haha, you have to wait for that a while
 
When they make arm chips smaller they don't get a performance boost. when they make x86 smaller we see a large performance boost
 
@Mikhail Wait for the tick then?
Haswell is tock.
 
I'm interested to see this FMA stuff.
 
The FMA numbers from the bulldozer were disappointing, I saw OpenFoam have a +3% increase (bad) when going from magnycours to interlogos
 
@Mikhail Did they actually use it?
 
Yeah, I did a grep on the assembly and found them
 
9:19 PM
lol
I'm gonna be especially interested to see what FMA does to high-end algorithm in my pi program.
 
is FMA3 newer than FMA4?
 
yes
its really anoying
 
@bamboon Technically yes, but the story is messy.
 
confusing
 
3 means 3 input and 4 means 4 input. I have changed the wikipedia article.
 
9:22 PM
I have both FMA and XOP versions of my code compiled. I just don't have the hardware to test it... :(
 
You should ask intel for test hardware. I know the place I worked in got MIC well before its release: sometime in May 2012
 
Here's a snippet of some FMA in y-cruncher:
	vfmaddpd ymm2, ymm11, ymm0, ymm1
	vbroadcastsd ymm1, YMMWORD PTR [rax+520]
	vfmaddpd ymm0, ymm10, ymm1, ymm3
	vfmaddpd ymm1, ymm13, ymm1, ymm4
	vbroadcastsd ymm3, YMMWORD PTR [rax+72]
	vfmaddpd ymm3, ymm12, ymm3, ymm0
	vbroadcastsd ymm0, YMMWORD PTR [rax+80]
	vfmaddpd ymm4, ymm11, ymm0, ymm1
	vbroadcastsd ymm1, YMMWORD PTR [rax+528]
	vfmaddpd ymm0, ymm10, ymm1, ymm5
	vfmaddpd ymm1, ymm13, ymm1, ymm6
And some FMA + XOP:
	vmulpd	ymm11, ymm1, YMMWORD PTR [rax]
	vmulpd	ymm0, ymm9, YMMWORD PTR _e0$1$[rbp]
	vfmaddpd ymm1, ymm2, ymm3, ymm0
	vfrczpd	ymm0, ymm6
	vfmaddpd ymm1, ymm0, ymm5, ymm1
	vmovapd	ymm0, YMMWORD PTR _e0$1$[rbp]
	vfrczpd	ymm2, ymm1
	vmovapd	ymm1, YMMWORD PTR _d3$1$[rbp]
	vfmaddpd ymm3, ymm3, ymm0, ymm2
	vfrczpd	ymm2, ymm10
 
Now you lost your world record :)
 
All compiled. Untested.
 
If I run this, do I get a record?
 
9:24 PM
Untested ? O.o
 
lol
 
Isn't there an emulator?
 
I didn't spent too much looking for a (free) one.
 
user142019
I played with SSE a little. Did element-wise addition on two vectors of two million floats each.
 
user142019
9:26 PM
Took 0.070000 seconds including unboxing and reboxing of arrays and floats.
 
@Zoidberg yes, but what did you compute :-), and what was the time before :-)
 
user142019
Using map and reduce takes 0.950000 seconds. Seems nice.
 
user142019
irb(main):028:0> as.length
=> 2000000
irb(main):029:0> Oxygen::add(as, bs) == transposed.map { |xs| xs.reduce(:+) }
=> true
irb(main):026:0> puts Benchmark.measure { Oxygen::add(as, bs) }
  0.070000   0.000000   0.070000 (  0.076376)
=> nil
irb(main):027:0> puts Benchmark.measure { transposed.map { |xs| xs.reduce(:+) } }
  0.950000   0.010000   0.960000 (  0.962958)
=> nil
 
user142019
But yeah, Ruby is slow as fuck anyway and this is probably a very bad test. :v
 
@Mysticial Recently, I have played with ARM NEON, but I didn't have deivce - I just emulated intrinsics with my own functions just for testing. btw, why not gpu's for y-cruncher?
 
9:30 PM
@EvgenyPanasyuk RAM?
 
@EvgenyPanasyuk I get asked that a lot. There's a ton of reasons. 1. The code isn't that vectorizable for GPU. 2. Memory bandwidth sucks.
In the past, it was completely out of the question since double-precision support was crap.
 
@Mysticial 1. make sense 2. why? due to non-coalesced access? or do you mean gpu<->pci-e<->ram?
 
@Mysticial Okay, now they fixed double support. Go write it, I need more pie.
 
@Mysticial in 2010 double support was quite good (Fermi)
 
@EvgenyPanasyuk Correct, GPU <-> CPU main memory.
 
user142019
9:32 PM
Let's test with GC turned off.
 
user142019
Because doing it with GC on is silly as fuck. -_-
 
The program is largely memory bound anyway. The reason I still bother to micro-optimize is because the program is right on the edge where it is bound both by memory bandwidth and computation.
So if you increase the capacity of either, it will be bottlenecked by the other.
 
@Mysticial the everlasting circle of optimization
 
@EvgenyPanasyuk Yeah. Fermi made me take another look at it. But the inability to vectorize to the extent required for GPU was kind of a big barrier.
 
@Mysticial ok, I see - memory bound is road-bloacker. (especially if is each input is read only several times)
 
9:35 PM
I can break things down into 16 or 32 independent steps. Or any fixed small number. (with exponentially increasing programming effort and run-time overhead) But not into the millions that is required for GPU.
 
@Mysticial ok, I see. so "For large computations, it scales almost linearly with the # of cores" has some threshold on # of cores?
 
@EvgenyPanasyuk There's two levels actually.
 
@Zoidberg I got 15 ms for looping and adding in C#
 
^ new psy
 
9:39 PM
@EvgenyPanasyuk The Isoefficiency factor of the high-level parallelism is O(p^2 log(p)^2). So that's good enough for some very good multi-core scaling. But on the low-level (instruction-level), it's pretty limited.
 
@Mysticial I see - gpu's are not good at on complex algorithms, with many branches, etc.
 
At the instruction-level, there's too much branching at the lower-levels to easily use a GPU.
Obviously, there are parts of algorithms that will be running the same thing on millions of independent data. But it's all part of a recursive reduction algorithm.
So every thing gets repeated in smaller and smaller chunks until it reduces to completely non-vectorizable end-points.
In purely numerical computation, you'd do a transpose and continue working.
Here it's not that symmetrical.
A good example of this is the FFT that I'm using.
With no vectorization, the absolute minimum FFT size that my program will handle is 16 points.
With AVX, it increases to 64-points.
And it all shares the same code. So if I keep on increasing the vector size, I must also keep on increasing the minimum FFT size. At some point, you start to throw away useful sizes.
I could do something like 2-SIMD for X size, 4-SIMD for Y size, 8-SIMD for Z size... etc. until I reach something large enough to be GPU-able...
but you can see how that will get very unwieldy...
 
yes, thanks for details
 
Granted there might be a better way to design it so that it can handle all levels efficiently. Doing that while minimizing code-duplication and maximizing portability is probably an open research topic.
 
9:57 PM
@Mysticial I find it astonishing how much faster v 0.6 of y-cruncher is. Was that more algorithm improvements or extreme finetuning?
 
@bamboon Yeah. Most of it was purely algorithmic.
 

« first day (910 days earlier)      last day (4044 days later) »