*** tpb has joined #tp | 00:00 | |
*** ChanServ sets mode: +o tpb | 00:00 | |
CIA-10 | nash galaxie * r964befd065b9 /ewl/gewl_object.c: Resources are now listed. | 01:06 |
---|---|---|
CIA-10 | nash galaxie * rb203c929382c /ewl/gewl_object.c: Show resources! | 01:06 |
CIA-10 | nash galaxie * r4eb8e1d044a4 /ewl/gewl_object.c: Some updates to resource display. | 01:06 |
*** greywhind_ has joined #tp | 01:41 | |
*** greywhind has quit IRC | 01:41 | |
*** nash has quit IRC | 01:42 | |
*** greywhind has joined #tp | 03:41 | |
*** greywhind_ has quit IRC | 03:41 | |
mithro | well, off home | 04:10 |
mithro | see ya! | 04:10 |
*** llnz has joined #tp | 04:24 | |
*** mithro has quit IRC | 04:29 | |
*** llnz2 has joined #tp | 05:15 | |
*** llnz has quit IRC | 05:19 | |
*** llnz2 is now known as llnz | 05:19 | |
*** llnz2 has joined #tp | 05:24 | |
*** llnz has quit IRC | 05:24 | |
*** llnz2_64 has joined #tp | 05:28 | |
*** llnz2_64 is now known as llnz | 05:29 | |
*** mithro has joined #tp | 05:32 | |
llnz | hi mithro | 05:32 |
mithro | hey llnz | 05:32 |
mithro | sup? | 05:33 |
llnz | not much, about to go to bed | 05:33 |
*** llnz2_64 has joined #tp | 05:40 | |
*** llnz has quit IRC | 05:40 | |
*** llnz2_64 is now known as llnz | 05:41 | |
* llnz sighs | 05:41 | |
*** greywhind_ has joined #tp | 05:42 | |
*** greywhind has quit IRC | 05:42 | |
* llnz wanders off | 05:43 | |
llnz | later all | 05:43 |
*** llnz has quit IRC | 05:43 | |
*** llnz2 has quit IRC | 05:44 | |
*** jotham has quit IRC | 06:37 | |
*** mithro has quit IRC | 07:45 | |
*** greywhind has joined #tp | 09:41 | |
*** greywhind_ has quit IRC | 09:41 | |
*** Demitar has quit IRC | 11:27 | |
*** greywhind_ has joined #tp | 11:42 | |
*** greywhind has quit IRC | 11:42 | |
*** Erroneous has joined #tp | 12:21 | |
tpb | aloril has quit worldforge (Remote host closed the connection) | 13:13 |
tpb | aloril has joined on worldforge | 13:16 |
*** greywhind has joined #tp | 14:27 | |
*** greywhind_ has quit IRC | 14:27 | |
*** guitsaru has joined #tp | 16:11 | |
*** nash has joined #tp | 16:20 | |
tpb | aloril has quit worldforge (Remote host closed the connection) | 16:30 |
tpb | aloril has joined on worldforge | 16:34 |
*** guitsaru has quit IRC | 17:37 | |
*** guitsaru has joined #tp | 17:39 | |
*** mithro has joined #tp | 17:50 | |
mithro | hey people | 17:50 |
mithro | hey guitsaru | 17:51 |
* mithro has put on 6kg since I started working at this job :( | 17:54 | |
nash | heyp | 18:00 |
nash | In what - 6 months? | 18:00 |
mithro | about 3 and a half | 18:08 |
nash | 2kg a month is pretty dangerous | 18:09 |
mithro | I think it's because I'm now eating breakfast and lunch - where at uni I barely ate lunch | 18:10 |
mithro | and of course at uni, atleast you had to walk around campas and up-and-down stairs and such | 18:11 |
nash | You need to switch from a teen -> adult metabolism I think as well | 18:11 |
nash | Which changes you appetite | 18:11 |
mithro | I think I need to switch from doing no exercise and less crap :) | 18:12 |
nash | Yes | 18:12 |
nash | quick question : How many papers are scheduled for gaming miniconf | 18:12 |
mithro | I was walking home from work there for a while - but then it got hot :( | 18:13 |
mithro | you mean, how many have I already scheduled? or? | 18:13 |
nash | Submitted et al | 18:13 |
mithro | well, I havn't got a huge number of submissions so I have been actively going out and finding people for specific talks I would like | 18:14 |
nash | Okay... You should have mine today | 18:15 |
mithro | nash: thanks | 18:15 |
mithro | is it tp related or other? | 18:16 |
nash | Other but has a tp touch | 18:16 |
nash | And gives me an excuse to do a couple of projects I've wanted to do for ages | 18:16 |
mithro | okay - no guarantees obviously | 18:19 |
nash | When will you finalise ;-) | 18:24 |
nash | So when do I start on my two other projects? | 18:25 |
mithro | I will finalise the timetable late next week probably | 18:26 |
*** greywhind has quit IRC | 18:26 | |
*** greywhind_ has joined #tp | 18:27 | |
nash | Cool | 18:31 |
*** greywhind_ has quit IRC | 19:17 | |
*** guitsaru has quit IRC | 19:20 | |
*** greywhind_ has joined #tp | 19:34 | |
* mithro ponders why this C++ code is starting to look like lisp | 19:41 | |
nash | Too many parenthesis? | 19:51 |
greywhind_ | mithro: so i figured out why nothing but the 0, 0, 0 coordinate had more than a dot. the calculation of the size was integer math, so only the max would have a size of 1 and everything else would have a size of 0 | 19:52 |
greywhind_ | what i haven't figured out yet is why the center point (0, 0, 0) has an object with 18 resources where the max anything else has is 1 | 19:52 |
mithro | greywhind_: okay | 19:54 |
greywhind_ | aha - figured it out | 19:54 |
greywhind_ | it's considering the universe and the galaxy as objects whose resources should be shown | 19:54 |
mithro | okay | 20:00 |
greywhind_ | fixed that | 20:02 |
nash | Which reminds me | 20:02 |
nash | Strange issue: RFTS has some visibility rules... | 20:03 |
nash | is there a way of detecting the difference between and explored world and a world with no planets? | 20:03 |
mithro | not really | 20:03 |
greywhind_ | mithro: so the dots are now showing up correctly and at the right size... now i have to convert them into pie charts, correct? | 20:05 |
mithro | greywhind_: that is how I would do it | 20:05 |
greywhind_ | mithro: it would be nice to test this on a server where there's more variation in resources... is there such a thing? | 20:05 |
mithro | tpserver-py has a "Minisec+" ruleset | 20:06 |
mithro | which adds a whole bunch of useless resources | 20:06 |
mithro | but I haven't tested in a long time | 20:06 |
mithro | so it might have suffered bitrot | 20:06 |
greywhind_ | well, the current server is basically giving me either 1 resource on a system or 0. not much to look at. | 20:07 |
nash | RFTS on tpserver-cpp has a lot of resources | 20:07 |
mithro | greywhind_: yeah, you can add more resourced by setting a large fleet to build | 20:07 |
mithro | nash: it does? | 20:07 |
nash | Yeah, but initially you can only see your home system... | 20:08 |
nash | So until you send a scout or two out... one systems worht of resources | 20:08 |
greywhind_ | nash: can you log in as a guest and see everything? | 20:08 |
greywhind_ | mithro: never mind, demo2 is running mtsec. i'll use that one | 20:09 |
greywhind_ | it gives me some variety in circle size | 20:09 |
nash | greywhind_: I hope not... else it kinda breaks the point | 20:10 |
nash | server-cpp creates users on teh fly however | 20:10 |
nash | So you just login as != guest and you have a homeworld | 20:10 |
greywhind_ | nash: yeah, doesn't help for testing resources though. fortunately, MTSec seems to work | 20:11 |
nash | greywhind_: Why not? | 20:11 |
greywhind_ | nash: i don't want to play the game and find all of the other systems just to test my resources code :P | 20:11 |
nash | You will likely have 3 planets in your home system to jump between | 20:13 |
CIA-10 | mithro tpclient-pywx-incoming * rd529a8dfeae7 /requirements.py: Always set system on failure. | 20:20 |
CIA-10 | mithro tpclient-pywx-incoming * r9a9ace021064 /windows/main/overlays/Systems.py: Make the fleet object's hittable area larger. Make the fleet appear in the Foreground. | 20:20 |
CIA-10 | mithro tpclient-pywx-incoming * rd18fbf53e61b /tpclient-pywx: | 20:20 |
CIA-10 | All events now inherit from the Event object. | 20:20 |
CIA-10 | "Out of date" events no longer get posted. This is a pretty gross hack. | 20:20 |
CIA-10 | mithro tpclient-pywx-incoming * r691175b94e3a /windows/main/ (overlays/Path.py panelOrder.py panelStarMap.py): Order selection now highlights the correct path segment. | 20:20 |
CIA-10 | mithro tpclient-pywx-incoming * r08559ccb96cf /windows/main/panelOrder.py: Add the text "No Arguments" for orders which don't have any arguments. | 20:20 |
CIA-10 | mithro tpclient-pywx-incoming * r44073c7b9340 /extra/__init__.py: Freeze the control while changing the selection. | 20:20 |
CIA-10 | mithro tpclient-pywx-incoming * r6053b7b4e2ff / (10 files in 3 dirs): | 20:20 |
CIA-10 | Totally change the way the event system works. | 20:20 |
CIA-10 | Now based around explicitly binding for events rather then implicit methods. | 20:20 |
CIA-10 | mithro tpclient-pywx-incoming * rc9c03fffb080 /windows/main/winDesign.py: Some cleanup of commentted out code. | 20:20 |
CIA-10 | noegnud tpclient-pywx-incoming * r01226c0d42ff /windows/main/overlays/ (Proportional.py Resource.py): | 20:20 |
CIA-10 | Implemented Resources overlay to the point of drawing white circles whose | 20:20 |
CIA-10 | sizes correspond to the total amount of resources in a system. These will | 20:20 |
CIA-10 | be converted to pie charts later. | 20:20 |
CIA-10 | noegnud tpclient-pywx-incoming * rd1c3d8ce8fb6 / (12 files in 4 dirs): Merge with development branch. | 20:20 |
greywhind_ | mithro: check the patch i just submitted on the demo2 server. | 20:20 |
greywhind_ | it's more interesting than on the demo1 server | 20:21 |
mithro | okay | 20:22 |
*** Erroneous has quit IRC | 20:25 | |
*** greywhind has joined #tp | 20:27 | |
*** greywhind_ has quit IRC | 20:27 | |
*** greywhind_ has joined #tp | 22:27 | |
*** greywhind has quit IRC | 22:27 | |
mithro | I wonder what ever happend to peres | 22:34 |
mithro | ~seen peres | 22:34 |
tpb | mithro: peres was last seen in #tp 9 weeks, 2 days, 17 hours, 14 minutes, and 14 seconds ago: <peres> anyway, knowing you think i'm going down the right way is important :) | 22:34 |
mithro | he never gave us an email | 22:35 |
mithro | nash: do you ever feel down that your this really cool code is never going to be seen by anyone else? | 23:07 |
nash | Only if it's never going to be used by anyone else as well ;-) | 23:07 |
mithro | well, it's only going to be use by one company | 23:08 |
* mithro is writing a simcard simulator and it could be really useful for other people | 23:09 | |
mithro | but it's only going to be delivered to our clients | 23:09 |
mithro | and there is some cool stuff in there (well for C++) | 23:10 |
nash | Welcome to non-OSS coding | 23:10 |
nash | actually now you mention the language.. sounds like a bonus | 23:10 |
mithro | I have to admit I have never written anything for non-OSS that I have liked enough to want it to be release :) | 23:10 |
mithro | s/release/released/ | 23:11 |
mithro | nash: I think I have asked you this before - but I'm going to ask you again | 23:18 |
mithro | Why do C/C++ coders write the following "uint32_t *abc" instead of "uint32_t* abc" when the * is really part of the type definition? | 23:19 |
nash | Because * is not part of the type definition | 23:19 |
nash | It probably should be, but it's not: | 23:19 |
Epyon | it is! | 23:19 |
mithro | it is, you are saying "I want a 'uint32_t pointer'" | 23:19 |
nash | int* foo,bar; is an int * foo and and int | 23:19 |
nash | Read it slightly different | 23:19 |
Epyon | type abc = ^UInt32 :P | 23:20 |
nash | abc is a pointer to a <type> | 23:20 |
nash | Not a member of the type <pointer to <type>> | 23:20 |
mithro | but why should pointers be special? | 23:20 |
nash | Epyon: Strictly speaking... yes | 23:20 |
nash | mithro: NFI, but they are | 23:20 |
nash | If you write: | 23:21 |
nash | uint32_t* x,y; | 23:21 |
nash | x != y | 23:21 |
nash | typeof(x) != typeof(y) | 23:21 |
nash | so it's best to keep them close | 23:21 |
mithro | nash: well - that sucks | 23:21 |
Epyon | That's one example of C's drawbacks/errors/stupidnessess :P | 23:21 |
nash | Hence if you write uint32_t *x,y; it's clear that x and y are different | 23:22 |
nash | It's weird | 23:22 |
nash | There are reasons, and it is more consistent once you start to hit function pointers | 23:22 |
mithro | thinking of the * as part of the type is the only way i can keep all the pointer and const and stuff straight | 23:22 |
nash | heh | 23:22 |
mithro | ie (char const*) < pointer to a char const | 23:23 |
nash | It is part of the type, but it's not part of the declaration | 23:23 |
mithro | I currently have a (char const*) const& | 23:23 |
mithro | A const reference to a pointer which references a const char | 23:24 |
mithro | actually that it wrong | 23:25 |
nash | You know how to read C declerations - in to out right? | 23:26 |
mithro | how? | 23:26 |
mithro | "char* const&" -> "char pointer const reference" ? | 23:27 |
nash | No, int *(*x)(int) => x is a pointer[*] to a function[(*x)] taking int [(int)] returning a pointer (*) to an int | 23:30 |
mithro | how did you get that? | 23:31 |
nash | Which bit? | 23:32 |
mithro | all of it :) | 23:32 |
Epyon | Types... damn, why can't all languages have as understandable types as SML... | 23:32 |
mithro | I have never been able to read a function pointer | 23:32 |
nash | Find the name and start reading out | 23:32 |
mithro | which way? | 23:32 |
nash | (*name)( ) is always a function pointer | 23:32 |
nash | mithro: back and forst | 23:32 |
nash | mithro: back and forth | 23:32 |
nash | start by going left | 23:33 |
nash | x is a pointer * -> then right ) -> then left ( A function -> right taking (args) -> return a pointer -> (nothing at the end - no const magic) -> to an int | 23:34 |
nash | mithro: apt-get install cdecl | 23:34 |
mithro | this looks kind of useful | 23:39 |
nash | mithro: Actually it's fun to play with | 23:39 |
nash | After a while you don't need it | 23:39 |
mithro | i | 23:46 |
mithro | I'm getting better at using gdb | 23:46 |
mithro | I now set breakpoints :P | 23:46 |
nash | mithro: See ddd | 23:47 |
mithro | nash: I'm trying to get my gdb foo down first :) | 23:49 |
mithro | then I can get lazy and use ddd | 23:49 |
nash | ddd is a front end to gdb | 23:49 |
nash | I found it worked the other way for me | 23:49 |
nash | I got ddd down, then started to use gdb | 23:49 |
mithro | woot! no memory leaks | 23:51 |
mithro | nash: can ddd do syntax highlighting? | 23:52 |
nash | No it doesn't - at least not that I know oif | 23:53 |
nash | but it displays data structures which is gold | 23:53 |
mithro | looking at unhighlighted code makes my brain hurt | 23:53 |
nash | mithro: You know memprof and valgrind I assume | 23:53 |
nash | Also alleyoop which is a front end to valgrind | 23:54 |
mithro | yeah, just ran valgrind and got no memory leaks | 23:54 |
nash | memprof is often prettier - and it shows memory usage as a graph in real time | 23:54 |
nash | You can click and check for leaks at anytime | 23:54 |
nash | So you can try particular things to see if the leak occurs after you do particular things | 23:55 |
mithro | I wonder if I can get the c++ console working | 23:57 |
Generated by irclog2html.py 2.5 by Marius Gedminas - find it at mg.pov.lt!