From: C R Onjob Date: Thu, 18 Sep 2014 17:00:02 +0000 (+0800) Subject: Automatic commit of irc logs X-Git-Url: https://git.ucc.asn.au/?a=commitdiff_plain;h=164801010fcb03fe14ece8429af55dcc8ea88581;p=ipdf%2Fdocuments.git Automatic commit of irc logs You will be awarded the Nobel Peace Prize... posthumously. --- diff --git a/irc/#ipdf.log b/irc/#ipdf.log index 4a9fdfa..c26f8d0 100644 --- a/irc/#ipdf.log +++ b/irc/#ipdf.log @@ -4767,3 +4767,186 @@ 18:42 < matches> So I can show some graphs tomorrow, although they may not be graphs of actually useful things 19:44 < matches> I hope you like ipython because we're using ipython 19:50 < matches> git.ucc seems sick... +--- Day changed Thu Sep 18 2014 +11:40 < matches> Good news! +11:40 < matches> You can run ipdf on motsugo +11:40 < sulix> I heard. +11:40 < sulix> My good news is that I just added something to the quadtree. +11:40 < sulix> (Sort-of) +11:41 < matches> The GPU rendering doesn't work on motsugo though +11:41 < sulix> I fail to be surprised. +11:42 < matches> Does the quadtree work with the centred SVGs? +11:44 < sulix> I haven't been brave enough to do the horrible merge that needs to happen. +11:45 < sulix> I'm currently trying to work out how I'm going to pass which node that you want to add something to through all of the Add* code. +11:52 < matches> Ah +11:57 < matches> I'm about to hack around C++ 'const' correctness +11:57 < matches> What could possibly go left +11:57 < matches> I mean wright +11:57 < matches> I mean lng +11:57 < matches> asdf +11:58 < matches> segmentation fault +12:00 < matches> Well it compiled at least +12:00 * matches notes that if he ever sees a function declared 'const' again he should not assume that it is actually const... +12:01 < matches> Now to overload the new and delete operators... +12:04 * sulix hides quietly in a corner. +12:05 < matches> ParanoidNumber needs to call new and delete an excessive amount +12:05 < matches> Because you might need to create a new one but you might not, but you can't tell in advance :S +12:06 < sulix> So: pool or arena? +12:06 < sulix> (I'd probably recommend an arena) +12:06 < matches> I've not heard of an arena, which probably means its better +12:07 < matches> It sounds traumatic though +12:07 < matches> Remember these numbers are paranoid as it is +12:08 < sulix> Basically allocate a large block of memory, every time you allocate return the next bytes of it. +12:08 < sulix> Delete is a no-op, everything is freed when you delete the entire arena. +12:10 < matches> Hm I thought that was a pool +12:11 < sulix> A pool is basically an array of objects of the same type that get reused. +12:12 < sulix> Though nomenclature is pretty dodgy generally wrt memory management. +12:12 < matches> SO thinks they are the same +12:12 < matches> http://stackoverflow.com/questions/13381123/whats-the-difference-between-a-memory-arena-and-a-memory-allocator +12:12 < matches> Actually no that's not quite the question I was looking for +12:13 < matches> I said pool and it says "allocator" +12:13 < matches> (But some guy with upvotes says arenas are also called pools) +12:13 < matches> (Democracy has decided!) +12:13 < matches> Ok I see the difference +12:13 < matches> Yeah, I was going to use a pool, but I guess arena would be better +12:14 < sulix> http://en.wikipedia.org/wiki/Memory_pool +12:15 < sulix> http://en.wikipedia.org/wiki/Region-based_memory_management +12:28 < matches> So, PN gives "inf" for an operation that doubles do fine +12:29 < matches> But on the plus side, Wolfram Alpha gives "Wolfram alpha does not understand your query -344+(6+8/10 +...)" +12:29 < matches> "Showing results instead for "6+8/10 +3/100" +12:30 < matches> (The maths is syntactically correct, or at least, I'm fairly sure it is. I'm not actually going to count all those brackets...) +12:31 < matches> I find it amusing that there is a number representation that is just "That number is too complicated, here is a similar looking one" +12:32 < matches> Actually, correction +12:32 < matches> *addition rather +12:32 < matches> "Insert more money to calculate the number" +12:32 < sulix> "Upgrade to wolfram alpha pro to use numbers with more factors" +12:32 < matches> Yes +12:32 < matches> That is pretty much what it says +12:34 < matches> Hmm, I think PN should take a couple of minutes per frame at the moment +12:34 < matches> I should probably actually test it +12:39 < matches> That's a whole lot of compiler errors +12:39 < matches> Argh +12:39 < matches> I hate the "overloaded call to ClassConstructor(int) is ambiguous" errors +12:40 < sulix> I think the idea of "compiler errors" is clearly too negative. +12:41 < sulix> We should have "constructive compiler feedback" instead. +12:41 < sulix> "warnings" should become "suggestions" +12:41 < matches> I don't understand that type of eror +12:41 < matches> The compiler is supposed to silently typecast the primitive types right? +12:41 < sulix> Yes* +12:41 < matches> So if you have a constructor for a double it will cast "0" to "0.0" and use that +12:41 < sulix> Yes* +12:42 < matches> If you implement constructors for *both* it will get confused +12:42 < sulix> (If there isn't another constructor that is equal or better) +12:42 < matches> If you implement constructors for only *one* it *still* gets confused +12:42 < matches> Aaskdfasdf +12:43 < matches> It's totally confused +12:43 < matches> I think +12:43 < matches> It sees the int +12:44 < matches> Then goes "I can construct a ParanoidNumber off that" +12:44 < matches> Then goes "But I can construct a ParanoidNumber off the const ParanoidNumber &" +12:44 < matches> That doesn't make sense +12:44 < matches> Why is the copy constructor ambiguous +12:45 < sulix> That's exactly what I hate about c++. +12:45 < sulix> (Also boost) +12:51 < matches> It gets Real(0) mixed up with Real(const char * str) +12:51 < matches> Really +12:51 < matches> Why +12:51 < matches> FFS +12:52 < matches> std::string it is then +12:52 < matches> Don't know why it had to complain about every single other constructor being ambiguous as well +13:01 < matches> I've just realised +13:01 < matches> ParanoidNumber is going to have to be thread safe +13:01 < matches> As long as we want the control panel to work anyway +13:01 < matches> Blergh +13:05 < matches> Oh boy +13:05 < matches> You know you are in trouble when "this == NULL" +13:06 < matches> I feel like I am messing with forces beyond my ken +13:06 < matches> I haven't even overloaded new yet +13:06 < sulix> this == NULL is actually perfectly possible. +13:07 < matches> Yeah but where is it coming from +13:07 < sulix> It's the correct result if you call a member function of a null pointer. +13:07 < matches> Yeah I know +13:07 < matches> But +13:07 < matches> But +13:07 < sulix> (Is it time for captain valgrind?) +13:07 < matches> That spits out so many errors due to other libraries :( +13:07 < matches> I'm learning to use gdb more effectively +13:07 < matches> I finally learned how to set breakpoints +13:08 < matches> And print variables +13:08 < matches> You can even get it to call functions +13:08 < matches> That's cool +13:08 < sulix> Yeah, gdb is pretty amazing. +13:08 < matches> So I have this four dimensional tree of death +13:08 < sulix> What you should do is setup the libstdc++ pretty printers. +13:08 < matches> The child links are implemented as a std::vector of pointers +13:08 < sulix> It makes gdb print stl containers nicely. +13:09 < matches> Somehow there are null pointers in the vector +13:09 < matches> That should really not happen +13:09 < matches> I could check that the pointers are not null but I suspect that won't solve the underlying issue +13:09 < matches> Of null pointers ending up in places +13:10 < matches> Couldn't I do something like: 'p (Pointer*)vector.data()' +13:10 < matches> I should try that +13:11 < sulix> PANIC PANIC PANIC +13:12 < sulix> Apparently my draft dissertation is due tomorrow. +13:12 < matches> Wahtasdfasdf +13:12 < matches> What +13:12 < matches> When did this happen +13:13 < sulix> http://undergraduate.csse.uwa.edu.au/year4/Current/dates.html +13:14 < matches> :S +13:14 < matches> I thought Rowan said you had two weeks... +13:14 < matches> Or was that two weeks ago.. +13:14 < matches> Also I know I don't technically have to submit a draft dissertation but I share some level of panic +13:15 < sulix> Yeah, I thought I had more time, too. +13:15 < matches> I'm sure you can organise it with Rowan +13:16 < matches> My last thesis was somewhat of a blur +13:16 < matches> I'm not sure there was a draft +13:17 < matches> You'll get through it +13:20 < sulix> (The question is not so much if I'll get through it, but if I'll get through it in the next hour and forty minutes... :P) +13:22 < matches> I give you permission to copy/paste my lit review +13:22 < matches> Although to be honest it could do with less rambling about svg and postscript +13:26 < sulix> btw, I've found a way to make the quadtree run as slowly as the rationals. +13:28 < matches> How? +13:28 < sulix> Totally broken linked lists? +13:28 < sulix> (I think) +13:29 < sulix> QuadTree nodes can now "overlay" other quadtree nodes, which is the way I'm hacking mutability in. +13:29 < sulix> For some reason, if you zoom in and then zoom back out again, it ends up creating a new overlay for each individual curve. +13:30 < sulix> Each overlay runs the entire View::Render function again, independently. +13:30 < matches> Damn +13:30 < matches> I don't understand how these vectors have NULL in them +13:30 < matches> I have "assert(b != NULL)" before the only two places where things get added to them +13:31 < sulix> Are asserts enabled? :P +13:32 < matches> I thought that was Java +13:32 < matches> Also python +13:34 < sulix> I'm not actually sure about the standard asserts, but most of them do get disabled if you're not in a debug build. +13:34 < matches> Ooh +13:34 < matches> oh oh oh +13:34 < matches> I always do this +13:34 < matches> std::vector::vector does not construct with a size +13:35 < matches> It constructs with elements +13:35 < matches> So vector n(0) is baad +13:35 < sulix> I always use vector(size, initialvalue) +13:35 < matches> Nope that isn't it... +13:35 < sulix> Or just use the default constructor if I want "empty". +13:36 < matches> I'm already wrapping the billions of 'new's in a check that it isn't null +13:36 < matches> What is going on +14:40 < Pommers> matches: Fix your NTP already +16:28 < matches> sulix: "That's actually not too bad, I may be rationalising it, but..." +16:28 < matches> (We wouldn't want the spectators to miss any of the puns) +16:28 < sulix> (For context: talking about the performance and correctness of rational numbers) +23:35 < matches> Your predictions of Simplify leading to infinite loops were remarkably accurate +23:36 < matches> That just means the number can be infinitely Simplified! +23:49 < sulix> Simplify() { return 0; /* it can't get much more simple */ } +23:49 < matches> Haha +23:50 < matches> Well I just spent 15 minutes learning why I had the stupid ".test" extension on all the testers in the first place +23:50 < matches> (Which I recently removed because it was stupid) +23:50 < matches> Turns out it was there so that make clean could remove all the testers without needing to keep a list of them all +23:51 < matches> And that no matter how many times I ran make clean, I was still running the same buggy executable from 7 hours ago... +23:51 < matches> "Not so stupid after all!" says past matches +23:51 < matches> "Shut up" says present matches +23:52 < matches> "When are we going to sleep" says future matches at approximately 3am +23:53 < matches> Things get wierd when you remove NTP +23:53 < matches> I have a watch on my wrist but it's not the same +23:55 < matches> "You know what the .test extension is still dumb, I'll just remember to rm them when they need rebuilding" says a slightly older present matches +--- Day changed Fri Sep 19 2014 +00:00 < matches> Ah, good old copy paste and naming variables 'n' and 'm' +00:01 < matches> Mever fails to segfault