« first day (573 days earlier)      last day (4373 days later) » 

11:00 PM
@MooingDuck It's a core language feature- it's not in any header.
@StackedCrooked Yeah.
 
Alright.
 
has 7 flags
 
Thanks.
 
@DeadMG gcc and cppreference disagree
 
11:00 PM
@StackedCrooked np.
 
@Mysticial oh that, I'd already ignored that.
 
@MooingDuck They're wrong. And I seriously doubt that GCC has decltype in a header. More likely, they have typeof in a header.
 
cppreference says declval is in <utility> while gcc says <type_traits>
 
@MooingDuck declval != decltype.
declval is a Standard function in some header where I have no idea. decltype is a core language feature.
 
@DeadMG whoops, typo'd
huh, gcc appears to have it in the wrong header
 
11:07 PM
are we talking declval or decltype?
 
@DeadMG However, since Intel is LE does't that mean the the MSB is at the other side?
 
@DeadMG declval
 
@DeadMG Never mind.
 
@StackedCrooked no. << goes from low values to high values reguardless of endian.
 
@MooingDuck Just realized that.
 
11:09 PM
@StackedCrooked Nope. Shifting is endianness-independent.
 
my gcc <type_traits> includes <bits/c++config> which doesn't exist.
 
size, map/hash (found/total)
    1      1 ms (100/100000).            2 ms (70/100000).
    2      2 ms (189/100000).            2 ms (186/100000).
    4      3 ms (385/100000).            2 ms (344/100000).
    8      5 ms (787/100000).            3 ms (765/100000).
   16      7 ms (1625/100000).           3 ms (1604/100000).
   32      9 ms (3158/100000).           3 ms (3111/100000).
   64     11 ms (6131/100000).           4 ms (6359/100000).
  128     13 ms (12449/100000).          3 ms (12512/100000).
^ Performance of map vs hash. Funny result at container size of 256 :D
 
uh oh: "fatal error: wchar.h: No such file or directory"
nevermind, I'm dumb. Or rather, My gcc has headers in wierd directories, some of which were so wierd I deleted them.
 
@StackedCrooked Agreed- what a strange timing.
 
11:11 PM
@StackedCrooked reproducable?
 
what's more strange is that the time goes up at all
 
@MooingDuck Yeah, I currently test with the same data every time.
 
I expect std::map's timing to go up, but unordered_map should be O(1).
unless you perform a bunch more lookups on the extra sized data
 
@DeadMG not really, hash collisions make things tricky
 
@MooingDuck Not 3ms -> 23ms tricky, assuming that the input is uniformly distributed.
especially as StackedCrooked is using a hash function which does not collide
 
11:14 PM
@DeadMG There is some strangeness in my test code definitely. I'm using some quick and dirty tricks to pseudo-generate random data and that probably messed things up.
 
@StackedCrooked Yeah, if you happened to end up with a bunch of non-uniform inputs, you could screw up the bucketing.
 
@DeadMG no, I assume that was another process interfering.
 
result[3] = numbers[3];
result[4] = numbers[3];
oops
 
static const std::vector<std::uint8_t> & GetRandomNumbers() {
    static std::vector<std::uint8_t> fNumbers = [](){
        std::vector<std::uint8_t> numbers;
        for (unsigned i = 0; i != 255; ++i) { numbers.push_back(i%4); }
        return numbers;
    }();
    std::random_shuffle(fNumbers.begin(), fNumbers.end());
    return fNumbers;
}
This is one smelly :D
I should clean up my act lol.
 
Is there any purpose for the () after the lambda definition when there are no parameters provided ?
 
11:16 PM
@DeadMG Oh right. Didn't see that one yet.
 
std::map can deal with very close data a lot better than std::unordered_map can
 
@DeadMG With "close" data ?
You mean unordered_map's default hash function sux ? :)
 
@DeadMG Yep. With this change the results are more normal.
 
@ScarletAmaranth not evenly distributed
 
size, map/hash
    1      1 ms (0/100000).              2 ms (0/100000).
    2      2 ms (0/100000).              2 ms (0/100000).
    4      2 ms (0/100000).              2 ms (0/100000).
    8      3 ms (0/100000).              3 ms (0/100000).
   16      4 ms (0/100000).              3 ms (0/100000).
   32      6 ms (0/100000).              3 ms (0/100000).
   64      7 ms (0/100000).              4 ms (0/100000).
  128      8 ms (0/100000).              4 ms (0/100000).
  256      9 ms (0/100000).              4 ms (0/100000).
 
11:18 PM
@StackedCrooked why are they all zeros?
 
@MooingDuck Because I suck.
 
and why does my code not compile? I see gcc's errors, but I don't understand a word
 
@MooingDuck That's weird, from what i've seen so far, it's actually distributing stuff very well for me :)
 
@MooingDuck Sorry, left my psychic hat with my parents
 
@MooingDuck Basically it means that every search failed. So these values represent the worst case timings.
 
11:19 PM
@DeadMG And what happened to your crystal ball ?
 
@DeadMG I guess that's what they call amortized constant.
 
Dear Visual Studio: Stop loading stuff from the web in the UI thread. Thanks. --Everyone
 
@MooingDuck From what I've heard, VS is not that easy to multithread.
 
@EtiennedeMartel I don't care about easy. I want it to not freeze every time I switch panes when editing xml files.
 
@MooingDuck Do it during the summer then?
 
11:31 PM
@StackedCrooked just now I'd clicked a URL in my code, and VS froze until it the page was completely loaded.
 
That's pretty stupid.
 
@StackedCrooked yes
anyway, it's time to go home
 
Synchronous GET request?
Btw, shouldn't CTRL-clicking on URLs in source code launch the default browser?
@MooingDuck They can defend themselves by saying that it's the webserver's fault for being slow to respond. :p
QtCreator fail. Can't handle a 27KB text file.
 
11:47 PM
aaargh, y i so sick
 
@DeadMG Karma, again
 
@sehe It doesn't have a C anymore :(
 
Well, back to the sort/copy forwarding problem...
The closest I get is to overload for each possible result type.
That's kludgy!
@johannes, please fix it. :-)
 
i looked all day on some complicated floating point printing library my colleague wrote and at the end of the day I still didn't understand it xD
 
@CheersandhthAlf with(src)(copy, dst) looks sorta strange. maybe it should be with(src).do(copy).to(dst)
 

« first day (573 days earlier)      last day (4373 days later) »