« first day (1153 days earlier)      last day (3803 days later) » 

7:00 PM
That's that magic thing you can't implement, right?
 
Xeo
Properly detecting member function pointers is annoying due to their many forms with cv- and ref-qualifiers
 
Ell
@DeadMG oh. Then you store the up vector as well?
 
Xeo
@rubenvb You can
 
user1804599
Holy shit.
 
user1804599
They redesigned MDN.
 
Xeo
7:01 PM
It's actually rather simple
 
@Ell Yeap. I think. Don't actually recall what I did.
actually
 
Ell
Hmm okay. I'll try both ways
 
on reflection, I'm pretty sure I stored the rotation quaternion and rotated a pre-defined "forward" vector.
 
Ell
right okay
that seemed most intuitive for me, but I'm having trouble looking up this basic stuff and don't have a book :S
 
also, quaternions suck.
 
7:03 PM
well, I have a Render project up on Bitbucket you can check.
 
Ell
@rubenvb howcome?
 
@DeadMG Do you have a store bought solution to displace the euler angles?
 
it's seriously old code though written when I still sucked considerably.
 
Ell
@DeadMG ahh okay I will
I'll take a look at bartek's too
 
7:04 PM
@DeadMG So like, this morning, or was it yesterday? (SCNR)
 
lol
 
./burned
 
a good couple of years since I wrote the main body.
 
I shouldn't laugh though... I'm still terrible
Just dont tell anyone until I get a job ;)
 
lol
@Xeo: Bah, I completely screwed this one up.
Fuck the whole "Can be another Standard string" thing.
 
Xeo
7:07 PM
wut?
 
a standard library string should be any other string type that can accept the interface.
 
@Borgleader Then, as soon as somebody hires you, we'll make them regret it big time!
 
user3010322
What is SCNR, btw?
 
it should be any string type- can be constructed from literal string, let's say- which can be constructed from a range of Unicode codepoints.
 
@ThePhD "Sorry, could not resist"
 
user3010322
7:07 PM
Ahhh.
 
user3010322
That explains a lot of things. xD
 
Though in my case it's usually closer to: "Sorry, but I never try to resist."
I suppose it could also be: "Silicon Controlled Negative Rectifier" (which is even a real thing, if you remove one word).
 
Ell
SBINAE - sorry but I never attempt to evade
(meh, evade isn't good enough :( )
 
I remember now.
I didn't want to have something like template<typename Encoding> f(String(Encoding) x)
 
Ell
@DeadMG also are linking errors fixed on wide on linux?
 
7:10 PM
@Ell If you start with SFINAE, anywhere you go is going to be bad.
 
dunno
oh wait
 
@Ell Substitution Breaking Is Not An Error?
 
do you mean when compiling Wide or when executing Wide?
 
Ell
Compiling
 
then yes.
 
Ell
7:10 PM
ahh wait I think I built x86_32 wide
 
@Ell not bad.
 
it's running on TeamCity right now and robot built it also
 
@Rapptz Silent Breakage Is Not Allowable Ever.
 
@JerryCoffin Of course it is. Websites with Javascript is a prime example.
 
@ell now you can write hello world, maybe
 
7:13 PM
Maybe "Acceptable" would have been better than "allowable" there.
 
I think i will do my next uni project in haskell
It is supposed to do image processing
 
Ell
uh oh
only 1.1 GB disk space
 
Most importantly quantization
 
welcome to LLVM and Clang
especially with debug symbols
 
Hurmh but i think I'd rather use Fay than Reactive Banana
 
user3010322
7:17 PM
Alright!
 
user3010322
Getting teh ball rolling. Gonna know within teh week whether tehre's room on STL's team.
 
Eh fay github page has build error
 
good, next time you see him, tell him his talks are always too damn fast
 
Xeo
@ScarletAmaranth Still? He even slows down for people like you!
Only 30% lightspeed instead of 90%
 
7:19 PM
I dont think its too fast
But then again i talk very fast myself
 
30% lightspeed is pretty good
 
Also someone downvoted my answer
Asshats not getting non-direct non-jquery stuff
 
I think I got it now.
Yay for me.
 
Got what
 
is_member_function_pointer
 
7:22 PM
What is the use of that again?
 
@BartekBanachewicz Determining whether something is a member function pointer.
 
No idea.
But I've got it.
 
Thanks Tom, you're extremely helpful.
 
@BartekBanachewicz You're welcome, and I know.
 
you can then print "Member function pointer" into your stdout obviously
 
Xeo
7:23 PM
@rubenvb Does it also not cry when passed a member object pointer?
 
@Xeo yes.
 
Xeo
@BartekBanachewicz Not very much as soon as you have invoke (which needs it, thiough)
 
Hmph. I don't get { instance: "Vector", x: 5, y: 5 }
 
can you have something like class A { void f() volatile; };?
 
7:25 PM
Can't they just wrap it, it looks so terrible
 
i.e. s/const/volatile/
 
@rubenvb don't think so.
 
user3010322
I'm not sure volatile belongs on member function declrations. o.0
 
Xeo
@rubenvb Yes
 
lol
 
Xeo
7:26 PM
i.e. you're only missing another 12 partial specs :P
 
really?
 
@rubenvb Why do you need the second pair of ellipses for R(T::*)(Args..., ...)
 
@ScarletAmaranth variadic functions.
 
user3010322
Variadic functions, the c-style varargs.
 
oh god
 
7:27 PM
yep. type traits are looooooaaads of fun.
 
user3010322
Looooads of monaaay.
 
yeah I don't mind but I would never think of that really
 
Humpfh I can write directly to js global space right
 
@Xeo 12? I count 6.
Still, I need a better implementation. Dammit.
 
Or i could just reflectively process what Fay gives me and refactor shit out of me
 
7:29 PM
template< class R, class T, class... Args >
/*unspecified*/ mem_fn(R (T::* pm)(Args...));
template< class R, class T, class... Args >
/*unspecified*/ mem_fn(R (T::* pm)(Args...) const);
template< class R, class T, class... Args >
/*unspecified*/ mem_fn(R (T::* pm)(Args...) volatile);
template< class R, class T, class... Args >
/*unspecified*/ mem_fn(R (T::* pm)(Args...) const volatile);
template< class R, class T, class... Args >
/*unspecified*/ mem_fn(R (T::* pm)(Args...) &);
template< class R, class T, class... Args >
dang
 
Xeo
:3
that ^
And that's even missing c-style varargs
And all those overloads are useless anyways
since R T::* catches them all
 
yeah they were removed
 
@Xeo including member objects.
 
how do I know what memory order I need?
I'm so confused =/
 
user3010322
?
 
Xeo
7:30 PM
@rubenvb mem_fn works perfectly fine for member objects
 
And is_function seems unable to help here.
 
Ell
@nightcracker memory order?
 
Xeo
For member function pointer types, you have {_, varargs} x {_, const, volatile, const volatile} x {_, &, &&}
Where _ stands for empty
 
You know, nullptr_type already has a name. It's std::nullptr_t.
 
@Ell atomics
 
7:32 PM
@Xeo I need a way to remove the cv and the refs. Maybe I can. Give me a sec.
 
Xeo
Yes
 
@Rapptz I'm not including any std C or C++ headers.
 
it's not in a header
 
for example
 
you can roll your own std::decay sort of thing then
 
let's say I have a linked list I want to append another list to (ordering within the list is not important)
        Node *previous_head;
        do {
            previous_head = blocklist.load(std::memory_order_acquire);
            tail->prev_node = previous_head;
        } while (blocklist.compare_exchange_weak(other_blocklist, previous_head, std::memory_order_release));
 
@ScarletAmaranth I believe I already have that.
 
no clue if that's correct
 
@rubenvb weird. I've used it without including anything iirc.
 
@Rapptz well, guess what. Compilers suck.
 
7:33 PM
@rubenvb then you should be able to do this
 
@Rapptz Note that <cstddef> is included in close to everything that uses sizes.
 
yeah I know
 
@ScarletAmaranth I probably should. The question is, if I am.
:-p
 
user3010322
@Xeo I made it to the core of a small moon.
3
 
7:36 PM
@rubenvb No compilers might have faults, but as far as software is concerned they sure as hell don't suck.
 
@CaptainGiraffe ya duh.
 
boost has been building for like an hour already
lol
I probably should've chosen the minimal build
 
A hour on a Haswell i5?
 
yep
I did like the full build thing though
so all combinations of debug, multithreading, static, etc
@Mysticial do you have any experience with atomics?
 
@nightcracker Only in C#.
 
7:41 PM
whoa, a question
 
Yes- you're forgetting
 
:13491930 you're forgetting
 
and a quick one!
 
Ell
@nightcracker how did you do that?
 
7:41 PM
@Ell magic
 
@DeadMG You're supposed to name a price! :)
 
im sorry
 
@ScarletAmaranth Actually that was pretty slow.
 
@Mysticial does the C# implementation also have memory orderings?
@Mysticial in particular, does this look right to you? chat.stackoverflow.com/transcript/message/13491795#13491795
 
On AMD, a MultiDrawElementsIndirect with 65536 draws: 23.1ms. a MultiDrawElementsIndirect with 65535 draws: 3.363ms
/cc @BartekBanachewicz wut ^
 
7:43 PM
@nightcracker Depends. All lock regions have implicit memory barriers. There are atomic increments/decrements.
Volatile implies atomic, but not necessarily cache coherent.
 
so how's everyone doing?
 
@nightcracker You're locking in the loop condition?
 
@Mysticial what do you mean, locking?
 
@nightcracker Atomic operation.
 
@Mysticial yeah
 
7:45 PM
I tend to put them in the same category.
WTH are you trying to do?
 
@Mysticial in plain english the loop would read like this: "get the head of the linked list, set the tail of the thing that's going to be appended to the previous head, atomically replace head with the new head until it works (no contention)"
this is lock-free, if we failed it means someone else made progress
 
And it's that performance critical?
I probably would've just locked the entire data-structure. Screw it.
 
this is basically free(void* ptr) in a nutshell
pushing it on a freelist
so yeah, performance critical
 
You're trying to implement a thread-safe memory allocator?
 
7:47 PM
Why don't you just pool it?
Pool the free list on the local thread.
 
I do
 
Occasionally propagate up to the global list.
 
this is the propagating part
 
Propagation should be rare.
IOW, you should be able to just lock the whole thing.
 
right now I'm thinking about a ~256 element local capacity, then start propagating in blocks
why lock if we can be lock-free if properly implemented?
 
7:49 PM
Right now, you're doing an atomic operation for each block. You could probably just lock both objects and do all 256 blocks in one go.
 
no I don't
 
Why not?
 
tail is the tail of a linked list of 256 elements saved up for propagation
 
Xeo
He's pushing his whole list up at once
 
so I'm propagating 256 elements in one shot
 
Xeo
7:50 PM
as soon as it succeeds
 
Oh each iteration of that loop is 256?
 
Fuck this shit.
stupid templates.
 
Xeo
@rubenvb Just churn out the specializations
 
@Mysticial there's no iteration going on
 
Xeo
It's a write-once job
 
7:51 PM
@Mysticial the loop only exists to deal with contention
 
Xeo
Since you can't just std::remove_reference the ref-qualifiers, apparently :/
std::remove_cv works for void() const, but std::remove_reference does not for void() &
 
@nightcracker So this thing is called at most once every 256 free()s and it's a performance bottleneck on the atomic operation?
 
@Xeo Nope. Use Clang. Find the real error. Fast.
 
@Mysticial yes to the first statement, second probably not ;)
@Mysticial having the entire allocator be lock-free is a major win though
 
@nightcracker sigh...
 
7:54 PM
@Mysticial this is mostly aimed at games - the crux here is reliability
 
If it works... then fair.
 
@Mysticial a mutex might actually lock for longer than you want it to
 
@Xeo I'll try anyways. For laughs.
 
Xeo
I tried with GCC 4.8.1 and Clang 3.4 SVN
 
Maybe I can alter remove_reference for that purpose.
It doesn't have to be exactly the same.
More useful is definitely better ;-)
 
Xeo
7:57 PM
tbh, I'm not even sure if std::remove_cv should work for void () const
 
@nightcracker I'm aware of that. I was just saying that rather than trying to make the bookkeeping cheaper, you try to bookkeep less often.
 
Xeo
It does on both compilers, but if that's really how it should be is another question
 
ha lol.
 

« first day (1153 days earlier)      last day (3803 days later) »