« first day (1653 days earlier)      last day (3300 days later) » 

user1804599
9:07 AM
Hello.
 
@rightfold yello
 
user1804599
Yello is great.
 
@rightfold k
 
9:18 AM
@Mysticial do you ever have to factor/test for primality? you could do some trial division using SSE with math.stackexchange.com/questions/1251327/…
 
Ven
9:28 AM
o/ @rightfold
 
Brilliant! I'm going to try it, I'll report back with results
 
user1804599
The continuation monad. Another horrible hack to get around the lack of threads:
 
user1804599
request :: forall e. Client -> String -> [String] -> ContT Unit (Eff (client :: ClientEff | e)) [String]
request (Client idRef webSocket) method arguments = ContT $ \callback -> …
 
user1804599
Fuck callbacks.
 
9:37 AM
why are C++ allocators bound to a certain type when we have rebind?
why not just make them type-agnostic?
 
user1804599
@orlp see proposal.
 
@rightfold which?
 
user1804599
No idea.
 
user1804599
But there is one.
 
-1
Q: C++ Field holding objects with different template arguments

eclipseI have the following setup: // N is the number of rooms template <size_t N> class House { void printNumberOfRooms(); } House<1> house1; House<2> house2; Now I want to have a field that can hold both house1 and house2 and on which I can call house.printNumberOfRooms(). House house; house...

 
9:50 AM
Part of C++ TS.
Polymorphic allocators.
 
@thecoshman lol it got flagged :D
 
FUCK tracker-store eats my CPU
And it comes back again and again
wtf
 
user1804599
userID <- authenticate client (EmailAddress "foo@bar.baz") (Password "xxx")
liftEff $ trace $ show userID
userID <- authenticate client (EmailAddress "rightfold@gmail.com") (Password "lol123")
liftEff $ trace $ show userID
 
user1804599
So awesome!!!!
 
I'm making an allocator that allocates on the stack up to a certain limit, what do you guys think stack_allocator<T, N> should mean - enough storage for N T objects or just flat N bytes of storage?
 
10:02 AM
N objects.
N bytes is silkly
 
I did make enough documentations. I just tend to forget that I made those documentations
 
@Cinch Why would I do that?
 
user1804599
So he's never going to ask another question on SO.
 
@R.MartinhoFernandes Yeah, that's my job!
 
@Puppy this makes rebind annoying though
 
10:11 AM
rebind's pretty incompatible with the stack allocator concept.
but I don't see how this particular aspect makes it more annoying.
just keep N the same between rebinds.
 
@orlp Why is N static anyway?
 
Xeo
I'd say it makes more sense as "N objects", actually.
 
@R.MartinhoFernandes don't want to use alloca
 
N bytes is just dumb because you can have situations where T % N != 0, for example.
 
I'll do this: template<class U> struct rebind { typedef stack_allocator<U, (sizeof(T)*N)/sizeof(U)> other; };
 
10:13 AM
and the whole concept of "small" is about "The vector will typically only hold N objects", so making that N bytes is just silly.
 
user1804599
(:) is O(n) in PureScript. :(
 
@orlp That's lossy.
 
@orlp Instead of just template<class U> struct rebind { typedef stack_allocator<U,N> other; }; ?
 
Maybe I'm confused what rebind is supposed to accomplish
 
it's simple.
 
10:14 AM
wtf developer.android.com never labels things as they go obsolete...
 
rebind is supposed to accomplish the implementation allocating memory for internal types from the user-provided allocator.
which is fucking dumb and breaks a lot of things.
but that's what it's supposed to do.
 
WTF. Why would it try to guess my email?
 
who's "it"?
 
because paypal are fool
 
user1804599
10:21 AM
Perhaps there are many users with a gmx.io email address.
 
user1804599
And few with an rmf.io email address.
 
bah
 
There's only one rmf.io address.
 
more BBC "news": london marathon.
plix report actual news
 
@rightfold Why would they even bother developing such a feature?
 
user1804599
10:22 AM
Because they had enough money already and were bored.
 
:O I've finally managed to get my computer to used some swap space! ¬_¬ I also have Steam open... coincidence?
 
user1804599
10:39 AM
Hmm.
 
user1804599
Screw web interfaces.
 
user1804599
Command-line interfaces are way better.
 
Ugh
I'm thinking of just creating a new account already
My questions are so bad I might as well abandon this account
11
 
I'm going to propose a new coding site to Area 51
 
Cinch.SE
 

« first day (1653 days earlier)      last day (3300 days later) »