« first day (1674 days earlier)      last day (3291 days later) » 

11:01 PM
@TechnikEmpire right. I'm trying to find a way to have an API that asynchronously writes to an output iterator. std::future is just a way to wait for the population to complete. Another issue that I see with this kind of api, is that while the function is asynchronously populating the collection, accessing that collection is not safe.
Just wondering if anybody here came across an API that solved this in some elegant way..
 
user3790646
It's 8pm here, going to bed, good night guys
 
I'm becoming a little bitch
3
I just can't watch this without losing it
 
user562566
@KarimAgha You can only provide so many guarantees to your user. Eventually you have to expect that they're going to have to be past a certain level of stupid to use your library. There is no way you can account for the safety of an external object. Just make a comment "you can't be dumb when using this function" and that's the best you can do
 
Works best if you have played the game or know the characters
 
11:05 PM
@Jefffrey You look more like a girl than I imagined
 
> I am cutting onions again.
lol
 
@TechnikEmpire hehe. yup - that's what I might end up doing.
 
user562566
@KarimAgha lol it's like roller coasters. They go to great lengths to make sure you'll survive it, but there's still forever that "you must be at least this tall to ride" sign. You need a "you must be at least this non-dumb to ride" sign.
 
user562566
@Jefffrey I like how she's not just getting misty, it's a full on breakdown
 
@Jefffrey i would watch it, but i havent played the dlc and dont want to spoil it
 
11:09 PM
@Borgleader Oh, it's not DLC though.
It's the original game.
 
@Jefffrey ohhh its that kid, i thought it was the black girl from the dlc (i closed it after a few seconds)
 
It's just for the reaction of the girl. She is so invested in it.
 
StringUtils.isNumeric("???") = true

wtf??
 
Jeezus... I mean, I was all aboard the feels express during that game, but... not like that
 
can you 360 noscope things in that game
 
11:13 PM
@Borgleader That intro man.
 
We need a teamspeak.
 
@Jefffrey Oh yeah, that hit hard
 
Ell
@Nooble we have a mumble
I will be on it tomorrow
 
Oooh we do?
 
@Ell I thought it got closed
 
11:14 PM
Where?
Yeah
I thought it got closed too.
 
Ell
Oh right
 
We can always use Google Hangouts
 
what for
 
hey that game looks great
 
man git is so confusing
 
11:22 PM
@AlexM. bool A_am_i_kawaii_senpai();
 
@AlexM. Dunno, as a substitute for Mumble since no one wants to host it.
 
@LightnessRacesinOrbit It's awesome. Even just to watch it on youtube.
It's like a movie.
 
@Nooble but why use mumble, we can talk here
 
Does it not bother any of you that "???" is numeric?
 
@AlexM. Hearing people is nice.
 
11:23 PM
@DonLarynx What do you mean?
 
12 mins ago, by Don Larynx
StringUtils.isNumeric("???") = true

wtf??
 
Eh, Java.
Even though "???" is probably considered numeric in C++ too.
 
And Spring framework is actually famous.
 
but still...it is an error - a large one - i found it in the docs and it's like "normal, nothing to see here, move along"
 
@Jefffrey seems so
liking those walkthroughs too
I have no PS so can't play it but remind me to watch more :)
 
11:26 PM
lol TLOU
 
std::is_pointer<decltype("sss")>::value :c
 
@Jefffrey hisss
 
Wait, what's decltype("sss")?
 
@Nooble :\ I guess
 
It's neither a pointer nor an array.
 
Ell
11:28 PM
Const char*
No wait
 
Ell
Its an array of const char
Size.... 3?
 
I don't think C++ would cast it into a string
 
Ell
No 4
 
So it would be a array of const char of size 3
 
11:30 PM
@Ell Then why does it return false for std::is_array<...>::value?
 
Ell
@Jefffrey Section 7, § 2.14.15
 
@Ell 0: 's' 1: 's' 2: 's' 3: 0
 
Ell
@LucasHenrique 4: NUL
 
@LucasHenrique '\0' != '0'
 
Ell
Oh wait I cant parse your message :P
['s', 's', 's', '\0']
 
11:31 PM
better now? :3
 
@Ell what
 
'\0' = 0 ?
 
Ell
@Jefffrey it does return false?
 
Section 7?
 
If I'm correct it is (I really don't remember the ASCII table)
 
Ell
11:32 PM
Nvm
 
How is it section 7 and begin with 2?
 
Ell
@Jefffrey that's the relevant part of the standard
 
In my standard I don't have neither §2.14.15 nor §7.2.14.15
 
Ell
Im on my phone
I just copy and pasted from somewhere :P
 
@LucasHenrique no
 
Everybody does references to the "standard" but I don't know what it actually is
 
N4296 to be exact
 
(Well I have a file on my pendrive but I'm too lazy to read it)
 
Which is ~C++14
 
11:35 PM
Damn so heavy
 
It's barely 1300+ pages long
 
That's as long as Cormen's Introduction to Algorithms
 
Ell
@Jefffrey it'll be in 2.13
 
Except the standard is way harder to read.
 
> Ordinary string literals and UTF-8 string literals are also referred to as narrow string literals. A narrow string literal has type “array of n const char”, where n is the size of the string as defined below, and has static storage duration (3.7).
So it should be char const[]
 
Ell
11:39 PM
§ 2.13.5.8
 
§ F.U. In any circumstance in which arrays can decay to pointers, they shall. Just to piss you the fuck off and make you miserable.
 
i kinda wish uint128_t was a thing
 
@Jefffrey whats the difference between that and const char[]?
 
Ell
Long unsigned int
 
@Ell Yup, that's the one I posted above
 
11:41 PM
@DonLarynx Nothing
 
Ell
@Prismatic what do you need 128 bits for? :P
 
long unsigned int is 64 bit usually innit
draw state sorting
 
Ell
Long long unsigned int
@Prismatic wut
Explain
 
use keys to hold draw state information for your draw calls, sort calls by key, reduces state changes etc
 
11:43 PM
By the way go here and farm some rep if you know the answer.
 
Ell
That's not a very good explanation
 
Sorry, thats what happens when you're completely steeped in something and can't break back out to a normal context
 
It's probably some very dumb thing I'm missing
 
Ell
@Prismatic I ses
 
Jesus
 
Ell
11:45 PM
*see
 
@Jefffrey Oh, it's decltype being shitty
 
Oh, hey I called it
 
I was typing and in less than 30 seconds 2 answers were spawned
 
I could always stitch two uint64_t's if I really had to I guess
since I don't need to do anything to them except fiddle bits and compare magnitude
wow fiddle bits sounds lewd
 
Ell
@Prismatic Is packing it into an int necessary though?
Why not just put it into a struct?
 
11:47 PM
It makes for super easy comparisons. You want something that can be sorted very quickly
 
Ell
You can write a syruct which can be compared quickly
 
Say your key holds 10 different pieces of information... rather than defining a comparison for all those 10 things (10 comparisons), you can do one comparison if you stuff it into a key
 
Ell
Right but then you have to stuff it into a key still
 
You sort every frame, but create the key / modify it far less often
 
@Prismatic GCC has it, I believe clang does as well
 
Ell
11:51 PM
How is it that you create the key less?
 
Aug 30 '13 at 5:02, by Etienne de Martel
Seems like you're also scared of being judged.
eh
 
@Prismatic if you have a struct of POD types, you could implement comparison as if it were a uintNNN_t for performance. IE memcmp
 
Ell
Or reinterpret cast if you love UB
 
@Ell for POD types, it might be less UB than you expect, there's a few odd loopholes here and there if you look hard enough. Mostly revolving around reinterpret_cast<unsigned char>
but you're probably right
 
iunno, current solution works pretty well. I prefer it over using a struct with bit fields
 
Ell
11:55 PM
@MooingDuck yeah I'm just thinking actually about it being POD
I think with multiple members though
 
I finally opened the link. I'd use a unsigned ???? wrapped in a class with easy-access members. But I didn't look hard at what you're doing.
 

« first day (1674 days earlier)      last day (3291 days later) »