« first day (1341 days earlier)      last day (3623 days later) » 

1:00 PM
@Xeo Because the OP needs to learn to do it.
 
@LightnessRacesinOrbit yeah, but OP is a faggot vOv
 
user3010322
@R.MartinhoFernandes By the way, this was the reason I was doing all this stuff (hacky cancellation booleans at the moment should be replaced with cancellation tokens).
 
I didn't know about the curiously recurring template pattern before now. Thanks.
 
@DeadMG Good point oops
 
Ven
wtf ruby, Array#concat is destructive ???
 
1:06 PM
@Ven of course it is
 
Ven
.
 
lol fuck shitty languages that mutate
mutants, booo!
 
Xeo
Strict-weak ordering requires that !(a < b) && !(b < a) implies a == b. A strict-weak ordering is a total ordering. — Xeo 3 mins ago
That's correct, right?
 
"!(a < b) && !(b < a) implies a == b" -- I can confirm that.
 
Ven
Can we also quote De Morgan's law ?
just for fun
 
Xeo
1:11 PM
For a partial ordering, !(a < b) && !(b < a) does not imply a == b, so no :P
 
@Ven :)
 
user3010322
 
user3010322
My thing is so multi-threading-safe, I can save in the middle of a trace! \o/
 
Xeo
@R.MartinhoFernandes Eh
 
1:13 PM
For a total ordering either a R b or b R a.
@Jefffrey No?
 
I'm stupid.
 
Xeo
@R.MartinhoFernandes Well, wikipedia told me that a strict-weak ordering is a total ordering :<
 
@Jefffrey also this is wrong
 
@Xeo Where?
It clearly fails the totality requirement.
> A strict weak ordering is a binary relation < on a set S that is a strict partial order (a transitive relation that is irreflexive, or equivalently, that is asymmetric) in which the relation "neither a < b nor b < a" is transitive.
 
Xeo
Oh wait, it's the equivalence classes that are totally ordered. Meh.
 
1:15 PM
Total orderings are strict weak orderings because "neither a < b nor b < a" is trivially transitive from the totality property.
But not the other way around.
 
speak English, motherfuckers
 
But the other way is not round
 
Xeo
Oh, I see where my initial misconception came from.
 
Xeo
He has return p.a < q.a && p.b < q.b;, and that reminded me of why we use std::tie for operator< - but that's only if we implement operator< in terms of operator== of the subcomponents.
 
1:18 PM
@LightnessRacesinOrbit nine!
@Xeo stupidity?
 
@jalf What, is it too square?
 
@DeadMG Precisely!
 
I disagree, I think it more closely resembles an octagon.
I think that you perceiving it as square results from a genetic defect due to inbreeding.
 
user3010322
 
0
A: Topological sorting using std::sort

ecatmurConsider the values pair x{0, 1}, y{2, 0}, z{1, 2}; Here, !tpc(x, y) && !tpc(y, x); !tpc(y, z) && !tpc(z, y); However, tpc(x, z); Thus your comparator does not impose a strict weak ordering, and it is invalid to use it with std::sort or in any other role where a strict weak o...

btw I had to draw a diagram to find those values
 
1:31 PM
> the SO about heaps
 
yeah?
 
Btw, I implemented page fault counting in nonius (and made it sorta general enough to implement other kinds of counters). I just dunno how to plug that with the reporting functionality.
@ecatmur You could get them easily from trying to prove transitivity of incomparability.
 
ah yeah, should have just done that
 
The other properties hold trivially.
> syntax error at line 1 near:
 
syntax error at line 1 near: all of your stupid code
11
I'm still tired from yesterday argh
And I still need to put clothes into drawers and get the empty boxes to the basement
 
1:48 PM
The crapness of this work coffee never fails to amaze me :(
 
So.
Overriding operator new to always align to 32 is a great idea.
But.
operator new[]...
FFS
 
user3010322
@R.MartinhoFernandes You can't override both?
 
You can't control the alignment in operator new[].
x = new T[n];
// becomes
x = operator new[](n * sizeof(T) + a_little_bit) + a_little_bit;
blah_blah_ctors(x, n);
 
user1804599
@thecoshman Then do not drink it.
 
That + a_little_bit; will throw off any alignment calculations you do inside operator new[].
And there's no way to know that little bit without platform-specific code.
Well, I guess you could detect it by calling new T[n] and seeing what operator new[] gets as the size. But doing that from inside operator new[] is a bad idea.
It needs a lot of hackish shit/
 
user1804599
1:57 PM
Ugh, Slack is so horrible.
 
user1804599
If you want to create another team you need another email address.
 
user1804599
T_T
 
@R.MartinhoFernandes That's why I went the allocator route
 
what else could I add that would be useful? I dunno a program that actually links let alone runs, perhaps? An example of usage? Maybe I'm going CRAZY — Lightness Races in Orbit 5 secs ago
 
@LightnessRacesinOrbit going crazy? too late for that.
 
2:01 PM
@user460114 "Get rid of the downvote button"??? "What's the point of this site if people can't ask dumb questions"??? You seem to be under the gross misconception that Stack Overflow is a "help site". It is not.Lightness Races in Orbit 47 secs ago
 
@rightfold I keep thinking I'll try it, then regret it big time.
@rightfold because you are already part of a team, or because you already created a team?
 
@ThePhD and it's so slow, you get to save in the middle of a trace! :/
 
user3010322
@melak47 :c I haven't implemented BVH's yet
 
user3010322
I'm sure when I implement BVHs I'll get some really good speed. :D
 
user3010322
... Which will be all I do today.
 
2:08 PM
do you have lots of triangles in there?
 
user3010322
No.
 
Xeo
Dat HxH chapter.
Dark Continent arc's gonna be good
 
so what kind of bounding volumes are you going for?
bsp, octree, ???
 
user3010322
I'm thinking a kd-tree
 
come on, tell us your crazy plans :p
 
user3010322
2:11 PM
If that proves too complicated, I'm just going to do an octree with a small minimum size.
 
that's so...normal
no crazy hypercube bounding volumes?
 
user3010322
kd-trees are as irregular as it gets. D:
 
where the hell is the recipe that's shown on the food & drinks tile
why would you make me click the tile only to make me see different things
stupid microsoft
 
that's what you get for clicking on tiles :v
 
2:16 PM
@AlexM. Oh wow. Now mistaking you for rightfold is 42x easier. Thanks.
 
hey it took me some time to get used to the new rightfold too
 
user3010322
@melak47 Well, how would YOU do it?
 
Why does this guy think SSE has anything to do with Compute (OpenCL) stuff? link
 
Xeo
Should I change my avatar too?
 
user3010322
@Xeo Make it you, wearing a bow, with a scrunchie on your wrist.~
 
2:18 PM
@ThePhD don't ask me, you're the crazy ideas guy :p
 
user3010322
@melak47 u.u; I am not!
 
@Xeo they forgot to release an episode today :)
 
@ThePhD have you stopped not taking your pills?
 
Xeo
I'm not watching the anime, so whatever :D
 
user3010322
@melak47 ... Maybe. >.>
 
2:20 PM
@rubenvb maybe your prof told him? :v
 
@rubenvb It clearly says that it's about running OpenCL on the CPU, not GPU, bub
 
What do you mean it's an obvious mistake? What's wrong with the code? — 0x499602D2 1 min ago
lol
 
Xeo
Is something still missing from my answer? If yes, please tell me, so I can improve it. :) If not, may I suggest to accept it? — Xeo 9 secs ago
Fuckers.
 
user3010322
Lol
 
@Xeo sometimes it seems as if new users have the accept check hidden from them as well
 
2:23 PM
@CatPlusPlus well yeah, but what does SSE capability have to do with being able to run code on the CPU?
 
Xeo
@Mgetz He has accepted answers on some other questions
So it's plain ignorance
 
@rubenvb Runtime probably requires it
 
cat, aren't you on holidays?
 
@CatPlusPlus Well, duh. I just don't see any reason for that...
@StackedCrooked YAAAAAAY! Heroooooo!
 
Xeo
Y'know, for all the work @Stacked has done with Coliru, we should really get him a prize.
10
 
2:27 PM
@rubenvb In theory you might be able to run OpenCL code on a CPU that didn't support SSE--but the current OpenCL drivers for x86 only work with CPUs new enough to include SSE (and I doubt anybody's writing a driver to support OpenCL code on, say, a 486 or even Pentium/MMX).
 
So it's marketing.
 
6
A: Why does << 32 not result in 0 in javascript?

Jon SkeetThe shift operators always effectively has a right operand in the range 0-31. From the Mozilla docs: Shift operators convert their operands to 32-bit integers in big-endian order and return a result of the same type as the left operand. The right operand should be less than 32, but if not onl...

Watch as this accrues passive score very quickly
Skeetmania
 
Or them having to admit OpenCL isn't going to magically make code run faster and their abstraction on the CPU sucks.
 
(True answer, though)
 
@LightnessRacesinOrbit :(
 
2:32 PM
I have no idea why I'm trying this, but it's not working: coliru.stacked-crooked.com/a/9e0d02f5b6c35af7
 
wonder if I can dock through a decoupler?
 
@R.MartinhoFernandes is that unreachable code? The just ifdef between a return and throw?
ah wait
warning
nvm
 
No, the warning is irrelevant.
 
@DeadMG I don't think so :v
 
The return is unused because it's a hack, and it doesn't return to user code.
 
2:35 PM
@CatPlusPlus I don't think so either but I'd rather tryit than have to relaunch.
 
@R.MartinhoFernandes interesting warning, shouldn't operator new(std::nothrow_t) be noexcept not throw()?
 
Oh, got it.
@Mgetz There's no nothrow. throw() is that.
Well, there is std::nothrow, but that's an object of type std::nothrow_t.
 
> You have achieved victory with random civilizations a thousand times. Today you know everything. Very few generals can match you victory for victory, and even fewer when using a random civilization. Today is a day of triumph. Congratulations!
the guys behind AoE 2 HD sure were serious about the achievement descriptions
all of them are like this one
 
fixed
 
meanwhile, in camp MW3
> Start the Single Player Campaign on any difficulty
 
2:37 PM
@Mgetz They are now, but they didn't change the text of the warning, I guess.
Dammit.
It's the constructor call that faults.
I need a random buffer.
 
@rubenvb I think the correct word is "practicality". Simply no point in writing code to support ancient CPUs. SSE (in various incarnations) has been around for quite a while now (the original SSE was included in the Pentium III, if memory serves).
 
I need your guys' opinion (just curious, I have mine on the matter): is this a good question: stackoverflow.com/questions/24283029/…
 
Now only delete faults.
 
@R.MartinhoFernandes are you sure an allocator wouldn't be less painful?
 
2:40 PM
@Mgetz I won't be using this. Just trying to defeat the compiler.
This is beyond horrendous.
 
@R.MartinhoFernandes ah, ok
 
@JerryCoffin write code? CPU OpenCL is just a bunch of C code and threading crap, really. I don't see why the C code couldn't be compiled in whatever way possible.
It has nothing to do with practicality, as SSE is an optimization, not something that provides a fundamental feature or burden if not used at all.
 
@JerryCoffin even VIA cpus support SSE3 I'm pretty sure at this point
 
Not that I think OpenCL is useful for anything other than high-end modern systems, mind you. It's the principle.
 
2:43 PM
@rubenvb This is actually why I like MS's AMP idea, it's a lot easier to work with than OpenCL IMHO
 
@rubenvb So you've inspected the code to ensure it doesn't contain any SSE intrinsics?
 
@R.MartinhoFernandes shouldn't that be return static_cast<char*>(ptr) + (desired_alignment - extra);
 
well, it doesn't help that the KSP docking interface is god-awful.
 
@ecatmur Yeah, I was just fixing it.
 
beautiful :D
 
2:47 PM
It's still broken, though.
 
@CatPlusPlus Yeah doesn't look like it
 
@R.MartinhoFernandes shouldn't that be using std::align and not posix_memalign?
 
but naturally thanks KSP for permanently overwriting my save so I can't revert to VAB to fix it.
 
@Mgetz align doesn't allocate memory.
posix_memalign is allocation, despite the name.
I wanted to use align in operator delete[], but it's missing anyway.
 
POSIX is really good at names
 
2:49 PM
I noticed
 
C11 has aligned_alloc.
 
@JerryCoffin where would those come from? Ah yes, a C compiler. Because it's just plain ol' CPU code.
 
But as I said, still broken. new int[10] calls operator new[](10 * sizeof(int) + 0).
 
@Mgetz I found Boost.Compute today. It's similar but not yet in Boost.
 
extra is not a constant.
It's impossible.
 
2:50 PM
So it's more of a [hopefully Boost.]Compute.
Results on my sucky GPU were... well... sucky.
 
@rubenvb Wat.
They come from a header.
It's C code.
 
@DanAndrews: What about this post screams "critiquing" or "requesting clarification" to you?! — Lightness Races in Orbit 4 secs ago
what
 
@LightnessRacesinOrbit lol, that bug.
 
yeah
it's a good one
not sure how you manage to fuck up parsing THAT much
 
@BenVoigt: Not true. If MS weren't aware of this issue specifically but it happened to be fixed by some other change, reporting this will enable them to add a regression test for it and prevent it from being re-introduced at a later date. — Lightness Races in Orbit 45 mins ago
haha lol, regression test.
haha lol.
hahaha
@Mgetz It's not declspec.
 
3:01 PM
@R ;p
well, it's the principle
I'd always prefer my users to report bugs in slightly older versions, than simply ignore and upgrade
If the version they're using has been firmly superseded for like 6 years then fair enough, but...
Can't fathom why Ben doesn't see that
If nothing else there will then be a report for people to refer to in the future which says "okay, yes, this is a bug, and it was fixed in 2013 by <x>"
 
@R.MartinhoFernandes I doubt OpenCL headers are full of intrinsics. Because, well, they're C.
 
oh what Chrome stable fucking up chat too... only it's harder to tell now without my stackapps
what is going on
 
Chrome sucks.
Look at me not missing one opportunity to say that.
 
@rubenvb Those would come from the guy writing the code attempting to at least get some semblance of decent performance on the CPU he was targeting.
 
ugh nvm
 
3:15 PM
today is: good news day
wohoo!
now, where are dem pointerz at?
 
@R.MartinhoFernandes what do you use? (honest question fool)
 
@R.MartinhoFernandes ;p
 
@thecoshman IE, obviously.
 
@R.MartinhoFernandes go on...
 
@thecoshman I use Firefox.
 
3:36 PM
7
Q: Is there a name for the promotional packs of tissues peculiar to Japan?

hippietrailAnybody who has visited a Japanese city will have noticed that peculiar type of advertising not common elsewhere. Packets of tissues containing some promotional offer or even quite like a calling card are ubiquitous. Is there a special term for them?

of course, Chrome doesn't render most of the text on that page
 
@LightnessRacesinOrbit No problem here.
 
3:54 PM
works here too
 
@LightnessRacesinOrbit does for me.
(unless I'm not seeing the text it's not rendering :p)
 
user3010322
@R.MartinhoFernandes Wipes a tear. How beautiful.
 
@ThePhD It's still broken and the remaining obstacle is provably insurmountable.
 

« first day (1341 days earlier)      last day (3623 days later) »