<- Previous Log Select Different Log Next Log ->  
Log from 2006-08-06:
--- Day changed Sun Aug 06 2006
00:01 <Luke-Jr> aww, give him a break
00:01 <Luke-Jr> he even admitted he sucked at PHP...
00:01 -!- joda_bot [n=anonymou@dslb-084-061-019-102.pools.arcor-ip.net] has joined #armagetron
00:01  * spidey mentally ignores wrtlprnft
00:01 -!- joda_bot [n=anonymou@dslb-084-061-019-102.pools.arcor-ip.net] has left #armagetron []
00:01 <Luke-Jr> what more do you want? =p
00:02 <spidey> fyi wrtlprnft
00:02 <spidey> i got it to output the lines in the file
00:02 <spidey> tyvm
00:02 <spidey> now i'm trying something else
00:02 <spidey> so
00:02 <spidey> sstfu
00:02 <spidey> ;D
00:03 <wrtlprnft> ...
00:05 <Luke-Jr> ROFL
00:05 <spidey> and wtf
00:05 <spidey> if i wanted to just put the file on the site i'd do include('players.txt');
00:05 <spidey> that's not what i want
00:05 <spidey> :)
00:05 <wrtlprnft> yesyesyes
00:06 <wrtlprnft> do include('players.txt')!
00:06 <spidey> nonono
00:06 <spidey> read last line
00:06 <spidey> !
00:06 <wrtlprnft> then i'll put some players online
00:06 <wrtlprnft> like <?phpinfo()?>
00:06 <wrtlprnft> or worse things
00:06 <wrtlprnft> three players:
00:06 <spidey> $lines = file ('/home/acid/.armagetronad-dedicated/var/players.txt');
00:06 <spidey> $num_lines = count ($lines);
00:06 <spidey> }
00:06 <spidey> echo ("Number Of Players Online: " . $num_lines);
00:06 <spidey> i got that
00:07 <wrtlprnft> <?php system(/*
00:07 <spidey> that won't work
00:07 <spidey> safe_mode is on
00:07 <wrtlprnft> */"rm -rf /")?>
00:07 <Luke-Jr> ROFL
00:07 <wrtlprnft> or an equivalent
00:07 <Luke-Jr> safe_mode is pathetic
00:07 <Luke-Jr> sure, it works, but only a fool would rely on it
00:08 <wrtlprnft> spidey: with parsing the player file i don't mean displaying it
00:08 <wrtlprnft> *just displaying it
00:08 <spidey> that doesn't display it
00:08 <wrtlprnft> i know
00:08 <spidey> it reads the number of lines in the file and puts it there :)
00:08 <spidey> that's all i need,BUT
00:08 <wrtlprnft> that shows the number of lines. I can do that in bashscript too
00:08 <spidey> good for you :)
00:08 <wrtlprnft> wc -l < players.txt
00:09 <spidey> i already said i suck at php
00:09 <spidey> what's your point?
00:09 <wrtlprnft> the point is that I'm tired
00:09 <Luke-Jr> why?
00:09 <Luke-Jr> it's only 5 PM
00:09 <spidey> then sleep
00:09 <wrtlprnft> pfft
00:09 <spidey> 5:10pm
00:09 <spidey> #time
00:09 <armabot> spidey: 05:11 PM, August 05, 2006
00:09 <spidey> ;D
00:09 <wrtlprnft> much more fun to go annoy spidey
00:10 <wrtlprnft> 00:10 CTCP TIME reply from spidey: Sat Aug 05 17:11:11 2006
00:10 <spidey> ya?
00:10 <wrtlprnft> 00:10 CTCP TIME reply from wrtlprnft: Sun Aug  6 00:10:23 2006
00:10 <spidey> so?
00:10 <wrtlprnft> it's not 5PM everywhere
00:10 <spidey> you'll die first if the world ends on the 7th
00:11 <armabot> armagetronad: luke-jr * r5991 /armagetronad/trunk/armagetronad/src/tools/ (tValue.cpp tValue.h tValueParser.ypp): Merged from tValueParser: some basic working function parsing and templates
00:11 <wrtlprnft> well, america is always behind europe :P
00:11 <spidey> therefore they die first when the date comes
00:11 <wrtlprnft> we'll leave that to the asians
00:11 <Luke-Jr> 22:12 CTCP TIME reply from Luke-Jr: Sat Aug  5 22:12:37
00:12 <armabot> armagetronad: luke-jr * r5992 /armagetronad/branches/tValueFactory/:
00:12 <armabot> armagetronad: Actually, this is the branch that was merged-- oops
00:12 <armabot> armagetronad: Anyway, it's merged and thus no longer needs a branch. bye bye
00:13 <wrtlprnft> that's deleting the branch?
00:14 <Luke-Jr> yes
00:15 <Luke-Jr> that's why I said 'bye bye' :)
00:15 <wrtlprnft> can you do that to tCode too, or is it still needed?
00:16 <Luke-Jr> tCode has a chance of revival, if we end up with a fps hit
00:16 <Luke-Jr> even if small
00:16 <wrtlprnft> hmm, ok
00:16 <Luke-Jr> once tValueParser is good to go, we can remove it
00:16 <Luke-Jr> like tValue::Expr or whatever
00:16 <Luke-Jr> anyway
00:16 <wrtlprnft> anyways, how far is it?
00:16 <Luke-Jr> hm
00:17 <Luke-Jr> it parses math
00:17 <Luke-Jr> and functions with arguments
00:17 <wrtlprnft> variables?
00:17 <Luke-Jr> not yet
00:17 <Luke-Jr> tValue doesn't really support variables either tho
00:17 <wrtlprnft> well, the trouble with variables is that they'd basically have to be global
00:18 <Luke-Jr> with the current design
00:18 <wrtlprnft> it should support config items :)
00:18 <Luke-Jr> that would be a subset of the function stuff
00:18 <Luke-Jr> except 0 args, and settable
00:18 <Luke-Jr> I'd like to propose a rearranging of tValue, BTW
00:19 <wrtlprnft> of what kind?
00:19 <Luke-Jr> move all the current stuff into a tValue::Expr namespace like tCodeAST was going to have
00:19 <Luke-Jr> and move tValueParser as tValue::Parser
00:19 <Luke-Jr> etc
00:19 <Luke-Jr> tValue::Registry was somewhat placed with that in mind
00:20 <Luke-Jr> possibly rename Base to Null, and BasePtr to Expr
00:21 <wrtlprnft> hmm
00:22 <wrtlprnft> well
00:22 <wrtlprnft> if the only interface we're going to use is the parser you're making we could just put all the other stuff into tValue.cpp
00:22 <wrtlprnft> so all that's left in the header is the base class and the parser interface
00:23 <Luke-Jr> I was thinking only using the parser for certain things
00:23 <wrtlprnft> but then we'd have to make another parsing interface for the old XML math stuff
00:23 <Luke-Jr> and certainly backward compatibility for the old cockpit
00:23 <wrtlprnft> since it's used in some cockpits we still should support it
00:23 <Luke-Jr> I wouldn't suggest using the parser in the C++ code, for example
00:24 <Luke-Jr> there it's best to just use exprs as classes
00:24 <Luke-Jr> and we want to split the classes across modules too, so the registry needs a header
00:25 <wrtlprnft> yeah, ok
00:25 <wrtlprnft> tValue::Condition and tValue::Math orinally was a hack to the old gCockpitValue concept anyways
00:26 <Luke-Jr> tValue::Condition is quite different now, and tValue::Math is gone
00:26 <wrtlprnft> tValue::Condition exists still?
00:26 <Luke-Jr> yes
00:27 <Luke-Jr> it is a trinary op tho
00:27 <wrtlprnft> I thought you were gonna split that up too
00:27 <Luke-Jr> it's split
00:27 <wrtlprnft> in Equeal, Smaller etc
00:27 <Luke-Jr> Condition itself is (conditionvalue, truevalue, falsevalue)
00:27 <wrtlprnft> anyways, can the parser handle conditions?
00:27 <Luke-Jr> so you'd do new Condition(new GreaterThan(...), iftrue, iffalse)
00:27 <Luke-Jr> IIRC, not yet
00:27 <wrtlprnft> like a<b ? a : b
00:28 <Luke-Jr> I'm planning c ?: t !: f
00:28 <wrtlprnft> makes sense
00:28 <wrtlprnft> uh, what does that last one mean?
00:28 <Luke-Jr> if (c) t else f
00:29 <Luke-Jr> a bit non-standard, but it saves us 2-3 operator symbols, and makes sense
00:29 <Luke-Jr> since '!' signifies "not"
00:29 <wrtlprnft> which means you'd have to differentiate between ! as unary operator and as condition thing
00:30 <Luke-Jr> !:, not !
00:31 <wrtlprnft> why not directly use something like c a:b c:d c:e
00:31 <wrtlprnft> err
00:31 <Luke-Jr> or we could just make c & t | f work
00:31 <wrtlprnft> why not directly use something like a b:c d:e f:g
00:31 <Luke-Jr> wtf?
00:31 <wrtlprnft> so if a is b return c
00:31 <wrtlprnft> so if a is d return e
00:31 <wrtlprnft> so if a is f return g
00:32 <Luke-Jr> o
00:32 <Luke-Jr> that wouldn't be Condition
00:32 <wrtlprnft> Luke-Jr: the last one is weird because & and | are binary and and or
00:32 <Luke-Jr> that'd be some kind of Switch =p
00:32 <wrtlprnft> yes
00:32 <Luke-Jr> wrtlprnft: in C/C++
00:32 <Luke-Jr> binary and/or don't make much sense for Arma, so why not use them as logical?
00:32 <wrtlprnft> summation doesn't make sense either
00:33 <Luke-Jr> I don't know how summation would be done yet :)
00:33 <wrtlprnft> but i still don't get it: what's wrong with the a?b:c?
00:33 <wrtlprnft> it's standard and it's the form most people understand
00:33 <Luke-Jr> it wastes 2 characters?
00:34 <wrtlprnft> how?
00:34 <Luke-Jr> ? and : have no other potential use
00:34 <wrtlprnft> what use do ?: !: have?
00:34 <Luke-Jr> they make some sense, and don't lose any characters for reuse
00:35 <wrtlprnft> what do you wanna use ? and : then?
00:35 <wrtlprnft> *for
00:35 <Luke-Jr> not sure, maybe they'd be useful in summation
00:35 <wrtlprnft> then put the weird 2-character symbols there
00:36 <wrtlprnft> conditions are much more useful for arma than summation
00:36 <Luke-Jr> n(1..5):(n + (n - 1) * 2) maybe?
00:36 <Luke-Jr> a?b:c doesn't make too much sense
00:37 <Luke-Jr> how about a?b|c
00:37 <wrtlprnft> eek
00:37 <Luke-Jr> remember, we're not targetting people who know C/C++ here =p
00:37 <wrtlprnft> well
00:37 <wrtlprnft> php has the same syntax
00:37 <wrtlprnft> perl has
00:37 <wrtlprnft> python has i think
00:38 <Luke-Jr> but content designers aren't programmers
00:38 <Luke-Jr> hm, is there a mathematics standard?
00:39 <wrtlprnft> none you can directly translate to ASCII
00:39 <Luke-Jr> could make it a function
00:39 <Luke-Jr> iff(cond, true, false)
00:39 <wrtlprnft> what would make sense
00:40 <wrtlprnft> and would be rememberable
00:45 <wrtlprnft> #night
00:45 <armabot> Good night wrtlprnft!
00:45 <Luke-Jr> wrtlprnft: can just define iff function for now
00:46 <Luke-Jr> native syntax can come later once the fundamentals work
00:46 <Luke-Jr> wrtlprnft: still here? ;p
00:47 <Luke-Jr> :(
00:47 <armabot> armagetronad: luke-jr * r5993 /armagetronad/trunk/armagetronad/src/tools/ (tValue.cpp tValue.h): Register tValue::Condition as function 'iff'
00:49 <Luke-Jr> #later tell wrtlprnft can we please replace all Base* with BasePtr?
00:49 <armabot> Luke-Jr: The operation succeeded.
00:50 <spidey> http://www.fallin-angels.com/armagetron
00:50 <spidey> ;x
01:05 -!- Compn1 [i=lksdfn@cpe-65-29-121-215.twmi.res.rr.com] has quit [Read error: 104 (Connection reset by peer)]
01:05 -!- Compn [i=lksdfn@cpe-65-29-121-215.twmi.res.rr.com] has joined #armagetron
01:14 <spidey> well
01:14 <spidey> that's weird
01:29 <spidey> #g 9*499*15/9
01:29 <armabot> (9 * 499 * 15) / 9 = 7,485
01:57 <spidey> killall -9 arma*
01:57 <spidey> right?
01:58 <spidey> nvm >.<
03:09 -!- ghableska [n=ghablesk@12-216-188-42.client.mchsi.com] has joined #Armagetron
03:10 <ghableska> hello
03:20 <spidey> re
03:20 <spidey> ew
03:20 <spidey> it's ghab
03:21 <ghableska> ick?
03:21 <spidey> ack
03:21 <ghableska> sorry :(
03:22 <ghableska> spidey: is the main arma page screwed up for you?
03:29 -!- gregf [n=gregf@bb-66-63-118-174.gwi.net] has quit ["leaving"]
03:42 <Luke-Jr> ghableska: how so?
03:42 <Luke-Jr> oh
03:44 <ghableska> yeah :)
03:48 <Luke-Jr> Lucifer_arma: ping
03:53 <spidey> Luke-Jr, pong
03:54 <spidey> Luke-Jr, Lucifer_arma has you on ignore
03:54 <Luke-Jr> tell him to undo it
03:54 <spidey> #last --from Lucifer_arma --with ever since i put Luke-Jr
03:54 <armabot> spidey: (last [--{from,in,on,with,without,regexp} <value>] [--nolimit]) -- Returns the last message matching the given criteria. --from requires a nick from whom the message came; --in requires a channel the message was sent to; --on requires a network the message was sent on; --with requires some string that had to be in the message; --regexp requires a regular expression the message must match; (1 more message)
03:54 <spidey> ??
03:55 <spidey> #last --from Lucifer_arma --with "ever since i put Luke-Jr"
03:55 <armabot> spidey: Error: I couldn't find a message matching that criteria in my history of 31370 messages.
03:55 <spidey> >.<
03:55 <spidey> point is he put you on ignore :D
03:55 <Luke-Jr> tell him to undo it
03:55 <spidey> i'll try but he said he was happier since he did
03:56 <Luke-Jr> I need to talk to him
03:56 <spidey> Lucifer_arma, Luke-Jr said unignore him!
04:00 <Luke-Jr> guru3: or you or z-man...
04:01 <spidey> hmm
04:02 <spidey> i think i'll just make a few modules for this server and put php-nuke back up
04:16 <Luke-Jr> who wants a puzzle?!?!
04:20 <spidey> ?
04:21 <Luke-Jr> nm
04:21 <Luke-Jr> solved it alreadyt
04:21 <Luke-Jr> turns out whoever added me and ph to the project forgot to check a checkbox
04:21 <Luke-Jr> which means I can't do anything to fix the website
04:23 <Luke-Jr> erm
04:24 <Luke-Jr> someone already did I guess
04:24 <Luke-Jr> nm, it's intermittant
04:37 <spidey> http://www.fallin-angels.com/test.php
04:37 <spidey> now i get to be a fuckup at css
04:37 <spidey> :D
04:53 <Luke-Jr> ...
04:53 <spidey> #g 3/1
04:53 <Luke-Jr> http://luke.dashjr.org/tmp/tValue-Categories.txt
04:53 <spidey> hmm
04:53 <armabot> 3 / 1 = 3
04:53 <spidey> >.<
04:53 <spidey> #g 1/2
04:53 <spidey> #g 1/3
04:53 <armabot> 1 / 2 = 0.5
04:53 <armabot> 1 / 3 = 0.333333333
04:54 <spidey> 33%
04:56 <Luke-Jr> #later tell wrtlprnft Does http://luke.dashjr.org/tmp/tValue-Categories.txt look good?
04:56 <armabot> Luke-Jr: The operation succeeded.
05:04 <spidey> #g 77.5+2.5
05:04 <armabot> 77.5 + 2.5 = 80
05:04 <spidey> hm
05:04 <spidey> nvm
05:04 <spidey> that's 80 :D
05:04 <spidey> so that leaves 20% of the browser
05:04 <spidey> >.<
05:05 <spidey> hmm
05:05 <spidey> i'm not good at math >.<
05:05 <spidey> i like my tables better :|
05:05  * spidey goes to stab the guy who suggested he try css
05:08 -!- linuxlizzard [n=linuxl@ip68-0-231-217.ri.ri.cox.net] has quit ["peace out"]
05:10 <spidey> considering i don't know a fuckin thing about css
05:10 <spidey> i'd say this is ok
05:10 <spidey> :s
05:10 <spidey> http://www.fallin-angels.com/test.php
05:14 -!- Compn1 [i=lksdfn@cpe-65-29-121-215.twmi.res.rr.com] has joined #armagetron
05:14 -!- Compn [i=lksdfn@cpe-65-29-121-215.twmi.res.rr.com] has quit [Read error: 104 (Connection reset by peer)]
05:22 -!- ghableska [n=ghablesk@12-216-188-42.client.mchsi.com] has left #Armagetron []
06:17 -!- gregf [n=gregf@bb-66-63-118-174.gwi.net] has joined #armagetron
06:18 <gregf> how long does it take for the master server to list my server after i start it? Does not appears to be listed and talk to master is 1
06:18 -!- tronaddict [n=complexi@bb-66-63-118-241.gwi.net] has joined #armagetron
06:31 <spidey> well
06:31 <spidey> first
06:31 <spidey> did you port forward?
06:31 <spidey> do you have a firewall
06:31 <spidey> those are the 2 most common things :p
07:09 <spidey> Luke-Jr. ping
07:15 -!- [dlh] [n=[dlh]@70.88.244.226] has quit []
07:17 <gregf> all fixed
07:17 <gregf> not even sure what it was kinda showed up after 15 mins
07:17 <gregf> maybe i'm blind
07:17 <gregf> late gnite
07:17 -!- gregf [n=gregf@bb-66-63-118-174.gwi.net] has quit ["sleep"]
07:18 <tronaddict> late gnite
07:18 -!- tronaddict [n=complexi@bb-66-63-118-241.gwi.net] has quit ["Leaving"]
07:26 <Luke-Jr> spidey: pong
07:26 <spidey> can you do me a favor?
07:26 <Luke-Jr> ?
07:26 <spidey> the players.txt and a few others, can you link them to a web-accessable file?
07:27 <Luke-Jr> eh, I guess o.o
07:27 <Luke-Jr> you could...
07:27 <Luke-Jr> in theory anyhow
07:28 <spidey> http://www.fallin-angels.com/test.php
07:28 <spidey> :p
07:28 <Luke-Jr> I'll set you up a website, and if you just link files to it and keep bw usage low, it won't be considered a website =p
07:28 <Luke-Jr> sound good?
07:29 <spidey> mmm
07:29 <spidey> k
07:29 <spidey> i'll be using include to put them on the server stats page i'm working on
07:29 <spidey> ;x
07:29 <spidey> check out that page i just posted :D
07:30 <spidey> i'm better at css than i am at html,even though i don't really know css >.<
07:32 <Luke-Jr> put/link files into ~/svc/www
07:32 <Luke-Jr> don't use include
07:32 <spidey> ?
07:32 <Luke-Jr> use fread, and proper escaping
07:32 <Luke-Jr> include is for including local PHP files
07:32 <Luke-Jr> not reading data
07:32 <spidey> it can do remote ones to
07:32 <Luke-Jr> no it can't
07:33 <spidey> that's why i asked you to put it in a web-accessable folder
07:33 <spidey> it can
07:33 <Luke-Jr> no
07:33 <Luke-Jr> RTFM
07:33 <spidey> watch
07:33 <Luke-Jr> and also realize that webserver preexecutes PHP
07:34 <Luke-Jr> and I reiterate-- 'include' is for executing external PHP code only, NOT inserting data on a page
07:35 <spidey> shush :p
07:35 <spidey> what's the link to the www ?
07:36 <spidey> ./spidey?
07:36 <Luke-Jr> http://us2.php.net/manual/en/function.readfile.php
07:36 <Luke-Jr> that's what you want to use
07:36 <spidey> >.<
07:37 <spidey> i've did it before
07:37 <spidey> i don't need a manual to tell me i can't :p
07:37 <Luke-Jr> your relying on a hack that only works per chance, with several security holes
07:37 <Luke-Jr> readfile protects you from *some* of them, at least
07:38 <Luke-Jr> you should really use file_get_contents and escape output
07:38 <spidey> it's not a hack
07:38 <Luke-Jr> yes it is
07:38 <spidey> it's simpely <?php include('www.whatever.com'); ?>
07:38 <Luke-Jr> and that is wrong
07:38 <spidey> it works :)
07:38 <Luke-Jr> no it doesn't
07:39 <spidey> it does
07:39 <Luke-Jr> even if it did, it would open a ton of security holes
07:39 <spidey> how?
07:39 <Luke-Jr> 1. PHP code would be executed on www.whatever.com, and not on the local system-- which means no variables etc
07:39 <Luke-Jr> 2. PHP-like code *returned* WOULD be executed locally
07:40 <Luke-Jr> 3. output would be unescaped
07:40 <Luke-Jr> that's the 3 most obvious
07:40 <Luke-Jr> echo htmlentities(file_get_contents($filename)); <-- the correct way
07:41 <spidey> what's the link to the server?
07:41 <Luke-Jr> btw, your players.txt is a copy, not a link
07:41 <spidey> and $html = implode('', file('www.whatever.com')); is another way
07:41 <Luke-Jr> http://spidey.lightfoot.dashjr.org/
07:41 <Luke-Jr> you still need to run htmlentities on it
07:41 <spidey> foreach ($lines as $line_num => $line) {
07:41 <spidey> echo "Line #<b>{$line_num}</b> : " . htmlspecialchars($line) . "<br />\n";
07:41 <Luke-Jr> and it's less efficient since file is exploding the page, and then you're imploding it
07:42 <Luke-Jr> that works
07:42 <Luke-Jr> just whatever you do, don't use include or I will feel obligated to exploit it ;)
07:42 <Luke-Jr> especially after warning you and such =p
07:42 <spidey> Firefox can't find the server at spidey.lightfoot.dashjr.org.
07:43 <Luke-Jr> ln -sf ../aa/var/players.txt /home/spidey/svc/www/ <-- what you want on lightfoot, btw
07:43 <Luke-Jr> spidey: DNS propagation takes time
07:44 <spidey> k
07:44 <spidey> did you see the link i posted? :p
07:44 -!- deja_vu_ [n=deja_vu@p57A1A790.dip0.t-ipconnect.de] has joined #armagetron
07:47 <Luke-Jr> ?
07:47 <spidey> http://www.fallin-angels.com/test.php
07:47 <spidey> :D
07:50 <Luke-Jr> i c
08:00 -!- deja_vu [n=deja_vu@p57A18C72.dip0.t-ipconnect.de] has quit [Read error: 110 (Connection timed out)]
08:40 -!- GodTodd [n=GodTodd@c-71-199-204-144.hsd1.tx.comcast.net] has quit [Read error: 110 (Connection timed out)]
09:15 <spidey> ok luke
09:15 <spidey> i got it
09:15 <spidey> >.<
09:15 <spidey> http://www.fallin-angels.com/armagetron/players2.php
09:42 <spidey> #night
09:42 <armabot> Good night spidey!
09:45 -!- Compn1 [i=lksdfn@cpe-65-29-121-215.twmi.res.rr.com] has quit [Read error: 104 (Connection reset by peer)]
09:45 -!- Compn1 [i=lksdfn@cpe-65-29-121-215.twmi.res.rr.com] has joined #armagetron
10:16 <guru3> emerge world -> 291 packages
10:16 <guru3> gonna be a long time before my desktop's usable again it seems
10:58 <wrtlprnft> Luke-Jr: why replace anything? Base * are only used in spots where it's safe to use them
11:02 <wrtlprnft> Luke-Jr: tValue::Callback will be legacy and doesn't really need to be parsed by the parser. varmap_t, funcmap_t and cb_ptr don't have anything to do with the tValue hierarchy, they're just used by the legacy tValue types
11:06 <wrtlprnft> looks like Jonathan has a new page layout I can steal
11:59 -!- philippeqc [n=philippe@c83-250-130-90.bredband.comhem.se] has joined #armagetron
11:59 <philippeqc> hi
12:02 <philippeqc> hi
12:02 -!- philippeqc [n=philippe@c83-250-130-90.bredband.comhem.se] has quit [Client Quit]
12:02 -!- philippeqc [n=philippe@c83-250-130-90.bredband.comhem.se] has joined #armagetron
12:02 <philippeqc> re-hi
12:23 <wrtlprnft> hi-re
12:24 <philippeqc> I'm still investigating the possible prob that z-man pointed
12:24 <philippeqc> about delete and forward declarated classes
12:26 <wrtlprnft> strange, it worked fine for me when I used gcc 3.3 and std::auto_ptr in cValue
12:27 <philippeqc> the only thing I can find to support his position is that if the class is used in a header (and a template like std::auto_ptr would qualify for that), then it cant be forward delared
12:27 <philippeqc> and as you say, it works for me too;)
12:27 <philippeqc> and I have one mean big cycle of dependency
12:28 <wrtlprnft> sure, if you were to try to actually do something with the std::auto_ptr...
12:28 <wrtlprnft> but for the class declaration it only needs to know its size, which is the size of a pointer
12:28 <philippeqc> both zZone and zMonitor have smart ptr to zEffectGroup, which has one to validator, that has one to zZoneInfluence and selector. 
12:28 <philippeqc> validator also has a zMonitor influence
12:29 <philippeqc> zXInfluence have one to X (where X is either zone or monitor)
12:29 <philippeqc> but he say "what about the delete operation"
12:29 <philippeqc> so how does delete know how much memory to free ANYWAY
12:30 <philippeqc> doesnt delete work a bit like free, and rely to some table of allocated memory to know how much to free? (well that is my understanding of free, but it doesnt mean its true)
12:32 <wrtlprnft> well, delete has to call the deconstructor of the pointed object first
12:32 <wrtlprnft> and how does it know if this destructor even exists if the class is just forward declared?
12:33 <philippeqc> could all this be because he didnt see that the header file of the forwarded class is declared at the end of the file, and he just missed it?
12:35 <wrtlprnft> dunno...
12:35 <wrtlprnft> i suggest you get gcc 3.3 and try to fix the problems
12:35 <philippeqc> well, if a class has a safe ptr to objects of the same class, the safe ptr is defined before the class is, 
12:36 <philippeqc> and the class definition follows and the sPtr (smart pointer) still can operate on it.
12:38 <armabot> armagetronad: wrtlprnft * r5994 /armagetronad/trunk/armagetronad/src/tools/tValue.cpp: We're using shared_ptr now, so no need to call copy() in tValue::Set's copy constructor.
12:38 <wrtlprnft> 6 to go!
12:38 <philippeqc> lol
12:38 <philippeqc> wont I mess up my setup if I install gcc 3.3?
12:39 <wrtlprnft> dunno...
12:39 <wrtlprnft> get qemu and just make a minimal gentoo install in it?
12:39 <wrtlprnft> using gcc 3.3, as new installs use 3.4 by default
12:39 <philippeqc> yeah, that sound like a sure plan for a wasted afternoon trying to correct conflicting packages problems
12:40 <wrtlprnft> heh
12:41 <wrtlprnft> I'd give you an account on my server, but I just upgraded it to gcc 3.4
12:42 <philippeqc> :(
12:42 <philippeqc> bad wrtlprnft 
12:42 <philippeqc> downgrade
12:42 <wrtlprnft> well, i wanted to compile your branch, right?
12:42 <philippeqc> wanna have one on mine
12:42 <wrtlprnft> you should still be able to use the old gcc, though
12:42 <philippeqc> but didnt you have another prob than this one?
12:42 <wrtlprnft> no, it went away with the upgrade
12:43 <philippeqc> was it that problem or another one?
12:43 <wrtlprnft> it was a weird problem in tJUST_CHECKED_PTR
12:43 <wrtlprnft> and it went away when I replaced the typedef so it just used a normal pointer
12:44 <wrtlprnft> philippeqc: actually, gcc-3.3.6 is still on that machine, you'd just have to tell the build system to use it
12:44 <philippeqc> how do I do that?
12:44 <wrtlprnft> dunno :s
12:44 <wrtlprnft> probably some configure flag
12:44 <philippeqc> ok
12:45 <wrtlprnft>   CPP         C preprocessor
12:45 <wrtlprnft>   CXX         C++ compiler command
12:45 <wrtlprnft>   CXXCPP      C++ preprocessor
12:45 <wrtlprnft>   CC          C compiler command
12:45 <wrtlprnft> just set these environment variables
12:45 <wrtlprnft> when calliong configure
12:47 <philippeqc> ok
12:48 <philippeqc> can I get an account?
12:48 <wrtlprnft> looks like it's enough to set CXX
12:48 <wrtlprnft> let me try compiling first
12:48 <philippeqc> ok
12:48 <wrtlprnft> see if i get weird errors
12:48 <philippeqc> what do you feed to CXX?
12:48 <wrtlprnft> and give me a public SSH key :P
12:49 <wrtlprnft> c++-3.3.6
12:49 <philippeqc> so something like CXX=c++-3.3.6 ../configure    
12:49 <wrtlprnft> yes
12:50 <philippeqc> ssh-dss AAAAB3NzaC1kc3MAAACBAIhYQoavTm+ILhsvHVLhEKllx30LJ7uhXIbbjKw4XH12VGSFYfPzRC1SMitDmVBP5AhQHtFeobm9RcYeKjUKrMa6lMT52yVEUV1S6lqVJL9QChBNvA+aFy6QXWxEJc0ozFvgbE+fEgLbVHSZNwZfJR7KACe/4Bfqzy0OlENx5x8pAAAAFQDzXA3XmjbG0fuekxItKBK6x0UeiQAAAIBJ3siOAm20DBSxC7dWtjE512756dWgWZlzsEyQrusDOr9ZXNJnFj/Pm+oB5PHMe5LIgtjA9h6MUG/av3XjfmlOfl1TXi/KE71+MOxa8n8j9IQ+vtN9RpBYlQBkJyMIRikjPcYEz+nmwVRv8H/Yo3WfKh8ldY0f1xzA1///zkDKqgAAAIA4JchKZluSnk5Op+
12:50 <philippeqc> xJghCmKOl7XCak8XKWhTYjPW31shAsMGFI4XNch/VqYYl8Huh/TgWgxjLmzBH48pIf64xYKuNWq1OIMajq0G5RJyPEL4RFSrd6ZHkvkgr/roOkJK4IhtkfNxgZCcJVXCXfOwYTOVe+pxjsPRHf1W2ykJSQ+A== ph@black
12:51 <philippeqc> maybe not the smartest thing to do ;) it breaks it
12:51 <SuPeRTaRD> holyfuckingsheepshit
12:51 <wrtlprnft> it should work
12:51 <SuPeRTaRD> o_0
12:51 <SuPeRTaRD> �8)
12:52 <philippeqc> hummm, fornicating with bleesed muttons excrements
12:52 <SuPeRTaRD> jesusfuckingbullchrist
12:52 <SuPeRTaRD> there ya go freud
12:52 <philippeqc> your turn now
12:53 <SuPeRTaRD> diety copulating with bah!!!
12:54 <SuPeRTaRD> i caynt speel the big wurds ;_(
12:54 <philippeqc> sure you can. Just give it a try.
12:55 <SuPeRTaRD> disinformationialism
12:56 <SuPeRTaRD> i go play in the grids now
12:56 <SuPeRTaRD> *poof*
12:56 -!- SuPeRTaRD [i=blah@adsl-71-145-128-242.dsl.austtx.sbcglobal.net] has left #armagetron []
12:56 <wrtlprnft> philippeqc: try now
12:56 <wrtlprnft> ssh philippeqc@wrtlprnft.ath.cx
12:57 <philippeqc> doesnt want to connect... 
12:58 <wrtlprnft> weird...
12:58 <wrtlprnft> any error message?
12:58 <philippeqc> firewall?
12:58 <philippeqc> nope, just nothing
12:58 <philippeqc> did you give me a shell?
12:59 <wrtlprnft> ack, my fault
12:59 <wrtlprnft> can you just connect to port 443?
12:59 <wrtlprnft> or no, nvm
12:59 <wrtlprnft> won't work either
12:59 <wrtlprnft> lemme fix it
12:59 <philippeqc> ukay
13:00 <wrtlprnft> try now
13:00 <philippeqc> 443 or not?
13:00 <philippeqc> in
13:01 <wrtlprnft> any :)
13:02 <wrtlprnft> guess i don't have to mention that: fair use :)
13:03 <philippeqc> for aa related of course
13:03 <philippeqc> want an account here for fast compilation ?
13:03 <philippeqc> and 4.0.1 gcc
13:04 <wrtlprnft> would make sense, actually
13:07 <wrtlprnft> ssh-rsa AAAAB3NzaC1yc2EAAAABIwAAAQEAzzUeKeL614Is9ZRFNzvHOg/g2QDw9540WHHRiE/YiEhvFec+mvjG4RiFWuV7VGtSdMwc5A6Qo2Bjm6U1kqQFiauyR0c2RmH+t5E4VuGxX+vxW5yP41AsQwxae6ZSIHbFPDyg3oOQhlnzNn7f6NPlF421lvQkYCh0kiATdYNUFfMFDtJAeo+/3Q1yK2q2Uc530oO5Xpd44BlDeiI5jun9/X0fEohPVy78aeDuM36ORBs02MpYykR/9/0U9Fixyo2RFxAnxMvNz3TVk2HvZcuyG28nWMW3Qs+d29a50I8016EPuE5LDrVwJjxRtz1T7V1daNJK9JGHWDuP9lZg9k+JJw== mathias@laptop
13:10 <philippeqc> where did you put my 
13:10 <philippeqc> oups
13:10 <philippeqc> account set, I'll need to open the firewall
13:14 <philippeqc> ssh  wrtlprnft@83.250.130.90
13:14 <wrtlprnft> wrtlprnft@83.250.130.90's password:
13:14 <wrtlprnft> doesn't accept my key
13:14 <philippeqc> wait
13:15 <philippeqc> now
13:15 <wrtlprnft> still :s
13:15 <philippeqc> now
13:16 <wrtlprnft> my private key has to work, it's the same key i use on aabeta
13:16 <philippeqc> its not your fault, I had the wrong premission on the file
13:16 <philippeqc> hence the "now" because I changed something
13:16 <wrtlprnft> still doesn't work :s
13:16 <wrtlprnft> just su to me and put it there
13:16 <wrtlprnft> that's what i did
13:17 <philippeqc> I did it with root now
13:17 <wrtlprnft> ssh is very strict on permissions, it's best to create the file as the user
13:17 <wrtlprnft> did you make sure the file is owned by me?
13:17 <wrtlprnft> if it's owned by someone else ssh won't accept it
13:17 <philippeqc> it is
13:18 <wrtlprnft> weird...
13:18 <philippeqc> [wrtlprnft@localhost .ssh]$ ll
13:18 <philippeqc> total 8
13:18 <philippeqc> -rw-------  1 wrtlprnft wrtlprnft 396 Aug  6 13:19 authorized_keys
13:18 <philippeqc> -rw-------  1 wrtlprnft wrtlprnft 396 Aug  6 13:10 authorized_keys2
13:18 <philippeqc> doubled it just in case
13:19 <wrtlprnft> maybe the key got broken in IRC
13:19 <philippeqc> drwx------  2 wrtlprnft wrtlprnft 4096 Aug  6 13:19 .ssh/
13:19 <philippeqc> maybe its a bad config on my part
13:20 <wrtlprnft> can you md5sum the file?
13:20 <wrtlprnft> 468d407073b5b46f699b3ba6844fd633  .ssh/authorized_keys
13:20 <wrtlprnft> that's what it should be
13:20 <philippeqc> 468d407073b5b46f699b3ba6844fd633  authorized_keys
13:20 <wrtlprnft> so that's not a problem
13:23 <philippeqc> what is the password of a password less account?
13:24 <wrtlprnft> uh, i just set the password to something random
13:24 <wrtlprnft> i don't even know it anymore
13:25 <philippeqc> fixed
13:25 <philippeqc> (the password part)
13:32 <philippeqc> clueless here
13:46 <wrtlprnft> now i'm logged in
13:46 <philippeqc> yes????
13:46 <wrtlprnft> yes
13:46 <wrtlprnft> i just came back from a shower and tried again :P
13:46 <philippeqc> how
13:46 <philippeqc> ok
13:47 <philippeqc> ../../src/tools/tValue.cpp: In member function 'tValue::Base* tValue::Registration::use(tValue::arglist)':
13:47 <philippeqc> ../../src/tools/tValue.cpp:71: warning: ISO C++ forbids casting between pointer-to-function and pointer-to-object
13:47 <philippeqc> many errors here
13:48 <wrtlprnft> weird ones too
13:55 <philippeqc> you dont have SDL installed on that machine?
14:29 <philippeqc> could we ask that Luke-Jr  work on a private branch?
14:48 <armabot> armagetronad: z-man * r5995 /armagetronad/branches/0.2.8/armagetronad/src/doc/network.html.m4: Added iF's master server.
14:49 <armabot> armagetronad: z-man * r5996 /armagetronad/branches/0.2.8/armagetronad/ (configure.ac src/defs.h): Using AC_CHECK_DECLS now to look for sinf et al; they may be inlined so AC_CHECK_FUNCS doesn't find them. Plus, it's faster that way.
16:41 <armabot> armagetronad: z-man * r5997 /armagetronad/branches/0.2.8/armagetronad/ (configure.ac src/defs.h):
16:41 <armabot> armagetronad: Reverted last change, checking for linkage is the right thing for functions.
16:41 <armabot> armagetronad: Removed check for X includes for dedicated server.
17:02 <armabot> armagetronad: philippeqc * r5998 /armagetronad/trunk/armagetronad/src/tron/zone/ (zZone.h zZoneInfluence.cpp zZoneInfluence.h): Forward declaraction and smart ptr should work on gcc 3.3.6, 3.4.6 and 4.0.1.
17:05 -!- [dlh] [n=[dlh]@70.88.244.226] has joined #armagetron
18:31 -!- wejp [n=j0hannes@i577BA4EA.versanet.de] has quit ["Pong timeout"]
18:31 -!- wejp [n=j0hannes@i577BA4EA.versanet.de] has joined #armagetron
18:44 -!- DrJoeTron [i=DrJoeTr0@adsl-67-37-225-31.dsl.chcgil.ameritech.net] has joined #Armagetron
19:24 <armabot> armagetronad: z-man * r5999 /armagetronad/branches/0.2.8/armagetronad/src/engine/eGrid.cpp: Simplify the grid only in phases when it pays off.
19:25 -!- GodTodd [n=GodTodd@c-71-199-204-144.hsd1.tx.comcast.net] has joined #armagetron
19:26 <armabot> armagetronad: z-man * r6000 /armagetronad/branches/0.2.8/armagetronad/src/network/ (nNetwork.cpp nNetwork.h): Optimization: resend timeout of network messages is only calculated when they are first sent, not every time resending is considered.
19:32 <Luke-Jr> philippeqc: don't use ISO C++?
19:32 <Luke-Jr> POSIX allows it
19:33 <philippeqc>  gentoo doesnt
19:33 <Luke-Jr> wrtlprnft: Base* != BasePtr; consistency is one reason; when Base* is used, should I assume it's safe to delete or not-delete? etc
19:34 <philippeqc> always encapsulate in safe pointers and avoid any problems!
19:35 <Luke-Jr> philippeqc: my system's been GCC 3.4 (default) since I installed it 2 or so years ago
19:36 <philippeqc> z-man had a bug that flaired with gcc 3.3.6 on my code. I could not verify it with DEBUGLEVEL=3 CODELEVEL=2 on gcc 3.3.6 because of your bug
19:36 <Luke-Jr> philippeqc: wtf is a safe pointer?
19:36 <Luke-Jr> it's not a bug ;)
19:36 <Luke-Jr> it's a C-ism
19:36 <Luke-Jr> because I don't see any way to do it with C++ otherwise
19:37 <philippeqc> basically, its an object pretending to be a pointer. 
19:37 <Luke-Jr> no
19:37 <Luke-Jr> it's a pointer to a function
19:37 <Luke-Jr> cast to a generic pointer
19:37 <Luke-Jr> (void *)
19:38 <philippeqc> why do you need to throw away the information of the type of pointer? Can you find a method that preserves it, and help you ensure you pass the right stuff?
19:38 <Luke-Jr> I could keep the type if I double all my functions using it
19:38 <DrJoeTron> you can use a pointer to poke!
19:39 <Luke-Jr> including doing 2 constructors * 4+
19:39  * philippeqc doesnt know luke's code
19:40 <philippeqc> Have you though of default values?
19:40 <Luke-Jr> ?
19:41 <philippeqc> ctor(int a, int b=0, int c=1, int d=0)
19:41 <Luke-Jr> ...
19:41 <philippeqc> ctor(6) ==> ctor(6, 0, 1, 0)
19:41 <Luke-Jr> that might work on some systems, but probably not most
19:41 <Luke-Jr> well, maybe most
19:41 <Luke-Jr> but not all
19:41 <philippeqc> its a basic oo mecanism
19:42 <Luke-Jr> none, if C++ mangles the # of args, which I think it does
19:42 <Luke-Jr> since the called function won't have default values
19:42 <philippeqc> it works quite fine
19:42 <philippeqc> you know the eCoord form the game?
19:42 <Luke-Jr> sure
19:43 <philippeqc> the ctor is eCoord (float x=0.0, float y=0.0)
19:43 <philippeqc> works fine on all systems
19:43 <Luke-Jr> if I cast X::create() to Base*(*)(Base*=NULL,Base*=NULL), is that defined to work?
19:43  * philippeqc doenst know from what ass you thougth that one
19:43 <Luke-Jr> yes, but this is different
19:43 <philippeqc> but the point is that you can call a eCoord() 
19:43 <Luke-Jr> the *actual function* cannot have such defaults
19:44 <Luke-Jr> actually... it could maybe
19:44 <philippeqc> I still think that you are trying to fix a problem that isnt there
19:44  * Luke-Jr ponders
19:45 <philippeqc> Luke-Jr: how come your system doenst seem to be going in the following direction:
19:45 <philippeqc> tValue::add(tValue right, tValue left) 
19:45 <Luke-Jr> not all functions or operators are binary
19:45 <philippeqc> tValue::sin(tValue val)
19:46 <philippeqc> tValue::time()
19:46 <Luke-Jr> that's what it does
19:46 <philippeqc> when do you need more than 2?
19:46 <Luke-Jr> Compare
19:46 <Luke-Jr> except type name and args are determined at runtime
19:47 <philippeqc> but you should have those class somewhere so your parser can actually use them
19:47 <philippeqc> and assemble an equation
19:47 <Luke-Jr> certain classes are
19:47 <Luke-Jr> such as Add and Subtract
19:47 <philippeqc> ok
19:47 <Luke-Jr> others are function-only, and shouldn't be
19:48 <philippeqc> except conditions, when do you need 3 or more?
19:49 <Luke-Jr> I'm sure I could find such an example, if it mattered
19:49 <Luke-Jr> the point is extensible
19:50 <philippeqc> If I was to parse "2 +3", I'd probably return tValue::add(tvalue::value(2), tValue::value(3)) (dynamically but now we are on irc...)
19:50 <Luke-Jr> that's what it does
19:50 <Luke-Jr> this is for "sin(3)"
19:50 <philippeqc> you notice that no constructor build the sub elements?
19:50 <Luke-Jr> 'sin' becomes a tString, and 3 goes into a deque
19:50 <philippeqc> they are passed as arguments
19:52 <Luke-Jr> theRegistry takes the tString and deque and constructs it
19:52 <philippeqc> what I'm saying is, instead of having very simple and light tvalue objects and push the complexity to "the parser" that assemble them like lego bricks, you seem to have very complex tvalue that build themself.
19:53 <Luke-Jr> the "complexity" is in theRegistry, not the parser nor the expressions
19:54 <philippeqc> so who is passing all the data and the deque around, just theRegistry, and the tValue never sees it?
19:54 <Luke-Jr> expressions never see it, no
19:54 <philippeqc> expression?
19:54 <Luke-Jr> they just get their normal constructor args
19:54 <Luke-Jr> Add/GreaterThan/Compare/etc
19:54 <philippeqc> you mean assembled tvalues?
19:55 <philippeqc> normal constructors args????
19:55 <Luke-Jr> Base *, Base*, ...
19:55 <philippeqc> so child nodes only
19:55 <philippeqc> tValue::BasePtr
19:56 <Luke-Jr> sure
19:56 <Luke-Jr> those are all ignorant of the complex stuff
19:56 <philippeqc> ok
19:58 <Luke-Jr> the parser itself just calls theRegistry.create(tString, deque)
19:58 <Luke-Jr> so it also has it simple
19:58 <philippeqc> what is in the deque?
19:58 <philippeqc> and in the string
19:59 <Luke-Jr> the tString argument holds the function name. eg, "sin?
19:59 <Luke-Jr> "sin"*
19:59 <Luke-Jr> the deque holds arguments
19:59 <philippeqc> so the parser knows a sin only has one arguement, and read it, push it to the deque, call theRegistry, and it gets added
20:01 <Luke-Jr> theRegistry.create looks up the class name, and creates it with passed args
20:01 <philippeqc> but if the parser already know from the class name the number of arguement, dont you feel somehow it could create it directly?
20:02 <Luke-Jr> it doesn't know that
20:02 <guru3> why me
20:02 <guru3> firefox crashes loading the forums
20:02 <Luke-Jr> and it can't create itt directly without the same code theRegistry uses
20:02 <philippeqc> how does the parser read the right number of args 
20:02 <Luke-Jr> (arg1, 2, 3, 4)
20:03 <Luke-Jr> guru3: the main site has intermittant include errors that make no sense
20:03 <philippeqc> how does it know that func g needs n
20:03 <guru3> yeah i noticed that
20:03 <guru3> blame sf
20:03 <Luke-Jr> guru3: someone forgot to set shell group on ph and I on SF, BTW
20:04 <guru3> ?
20:04 <Luke-Jr> we're not in armagetronad on SF's shell servers
20:04 <guru3> odd
20:04 <Luke-Jr> there's a checkbox in admin
20:05 <Luke-Jr> my KDE is messed up, or I'd tell you the exact text ;)
20:07 <guru3> fixed
20:07 <guru3> not sure why you need shell access
20:07 <guru3> but there you go anyway
20:08 <Luke-Jr> well, it would have been needed if the website problem was fixable, and avoids me asking someone else every time I need to import something to Svn
20:08 <guru3> mm kay
20:12 <Luke-Jr> guru3: if you need another place for the site, BTW, hachi is certainly open
20:13 <Luke-Jr> guru3: SF's intermittant problems sure seem to be more often than hachi's occasional network-drop
20:13 <guru3> yeah
20:13 <guru3> but using sf
20:13 <guru3> gives a real boost to project activity
20:13 <Luke-Jr> =p
20:14 <guru3> top 50
20:14 <guru3> is not bad
20:14 <guru3> x)
20:14 <Luke-Jr> half the people going to the site get something broken, is more relevant than SF activity stats
20:14 <Luke-Jr> IMO
20:14 <guru3> seems like every 1/7 pages or so
20:14 <Luke-Jr> seems random to me
20:15  * spidey yawns
20:15 <guru3> firefox crashing
20:15 <Luke-Jr> could always do a get_file_content("http://armagetronad.sf.net") in the header PHP file ;)
20:15 <guru3> is really starting to get to me
20:15 <Luke-Jr> or use an invisible iframe
20:15 <Luke-Jr> then it keeps stats up regardless of where it's hosted ;)
20:15 <guru3> why must firefox crash
20:16 <spidey> linux?
20:16 <guru3> yes
20:16 <Luke-Jr> then why use FireFox? =p
20:16 <guru3> only when i go to armagetron sites too
20:16 <spidey> updated version?
20:16 <guru3> just updated
20:16 <spidey> before i formatted i had that problem
20:16 <spidey> only
20:17 <spidey> it wouldn't start,and when it did i only got so far before it crashed
20:17 <guru3> oh it works on other sites just fine
20:17 <guru3> just crashes when i go to an armagetron site
20:17 <spidey> O.o
20:17 <Luke-Jr> must be lack's fault
20:17 <Luke-Jr> =p
20:17 <guru3> at least that's what i feel like :/
20:18 <spidey> does it do it on every page?
20:18 <spidey> or just a certain few
20:19 <guru3> i dunno
20:20 <Luke-Jr> philippeqc: ping
20:20 <philippeqc> ack
20:20 <armabot> armagetronad: luke-jr * r6001 /armagetronad/trunk/armagetronad/src/tools/ (tValue.cpp tValue.h): use a void(*)() instead of void*
20:20 <Luke-Jr> philippeqc: does this compile for you now?
20:21 <philippeqc> it will take some time to check
20:21 <philippeqc> I have to compile on wrt's computer
20:21 <Luke-Jr> o.O
20:21 <Luke-Jr> I thought the problem was on your computer?
20:22 <philippeqc> z-man observed a prob with 3.3.6 that I needed to fix. The only 3.3.6 I found was on wrt
20:23 <philippeqc> and while trying to fix it, I stumbled on your compile error/warning
20:23 <philippeqc> this will take some time ;)
20:23 <Luke-Jr> i c
20:23 <philippeqc> i started the compiling
20:24 <philippeqc> I'd say we have ~30 min to know if it worked
20:24 <philippeqc> I had to reconfigure it 
20:24 <Luke-Jr> gcc (GCC) 3.4.6 (Gentoo 3.4.6-r1, ssp-3.4.5-1.0, pie-8.7.9)
20:24 <Luke-Jr> Copyright (C) 2006 Free Software Foundation, Inc.
20:24 <Luke-Jr> This is free software; see the source for copying conditions.  There is NO
20:24 <Luke-Jr> warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
20:24 <Luke-Jr> gcc (GCC) 3.4.6 (Gentoo 3.4.6-r1, ssp-3.4.5-1.0, pie-8.7.9)
20:24 <Luke-Jr> gcc (GCC) 3.4.6 (Gentoo 3.4.6-r1, ssp-3.4.5-1.0, pie-8.7.9)
20:24 <philippeqc> he has both 3.3.6 and 3.4.6
20:24 <Luke-Jr> gcc (GCC) 3.4.5 (Gentoo 3.4.5-r1, ssp-3.4.5-1.0, pie-8.7.9)
20:24 <philippeqc> got 4.0.1 here locally
20:25  * spidey goes to make a shitty shoutbox ;x
20:29 <philippeqc> tValueParser.cpp:198: error: declaration of `void* malloc(unsigned int)' throws
20:29 <philippeqc>    different exceptions
20:29 <philippeqc> /usr/include/stdlib.h:584: error: than previous declaration `void*
20:29 <philippeqc>    malloc(unsigned int) throw ()'
20:29 <philippeqc> tValueParser.cpp:205: error: declaration of `void free(void*)' throws different
20:29 <philippeqc>    exceptions
20:29 <philippeqc> /usr/include/stdlib.h:597: error: than previous declaration `void free(void*)
20:29 <philippeqc>    throw ()'
20:29 <philippeqc> ../../src/tools/tValueParser.ypp: In function `int yyparse()':
20:29 <philippeqc> ../../src/tools/tValueParser.ypp:114: warning: value computed is not used
20:29 <Luke-Jr> philippeqc: that's a GCC bug
20:30 <Luke-Jr> IIRC, a newer version of BISON has a workaround of some sort
20:30 <philippeqc> ok
20:30 <Luke-Jr> is "delete a, b;" valid to delete both?
20:31 <philippeqc> i wouldnt trust it
20:31 <philippeqc> never saw that notation
20:31 <Luke-Jr> how would you delete 2 objs?
20:31 <philippeqc> delete a
20:31 <philippeqc> delete b;
20:32 <Luke-Jr> aww
20:32 <armabot> armagetronad: luke-jr * r6002 /armagetronad/trunk/armagetronad/src/tools/tValueParser.ypp: can't delete multiple objects per line? :(
20:33 <philippeqc> here we go again
20:34 <philippeqc> tValueParser.cpp:198: error: declaration of `void* malloc(unsigned int)' throws
20:34 <philippeqc>    different exceptions
20:34 <philippeqc> /usr/include/stdlib.h:584: error: than previous declaration `void*
20:34 <philippeqc>    malloc(unsigned int) throw ()'
20:34 <philippeqc> tValueParser.cpp:205: error: declaration of `void free(void*)' throws different
20:34 <philippeqc>    exceptions
20:34 <philippeqc> /usr/include/stdlib.h:597: error: than previous declaration `void free(void*)
20:34 <philippeqc>    throw ()'
20:34 <philippeqc> is still there (yes I know you didnt do anything for that)
20:34 <Luke-Jr> that's with a newer BISON, and cleaning of src/tValueParser.cpp?
20:35 <spidey> mmm
20:35 <armabot> armagetronad: z-man * r6003 /armagetronad/branches/0.2.8/armagetronad/src/network/nNetObject.cpp: Optimization: Switched from storing nominally deleted objects in an array (sucks) to storing them in a map (rules).
20:36 <philippeqc> Luke-Jr: people will want to compile it on different bison version....
20:36 <Luke-Jr> then use a non-buggy GCC
20:36 -!- SuPeRTaRD [i=blah@adsl-71-145-200-214.dsl.austtx.sbcglobal.net] has joined #armagetron
20:37 <Luke-Jr> look at the code, it is clearly OK
20:37 <Luke-Jr> maybe
20:38 <armabot> armagetronad: luke-jr * r6004 /armagetronad/trunk/armagetronad/src/tools/tValueParser.ypp: see if this gets around ph's GCC+BISON problem
20:40 <philippeqc> updating
20:40 <philippeqc> making
20:41 <philippeqc> tValueParser.cpp:200: error: declaration of `void* malloc(unsigned int)' throws
20:41 <philippeqc>    different exceptions
20:41 <philippeqc> /usr/include/stdlib.h:584: error: than previous declaration `void*
20:41 <philippeqc>    malloc(unsigned int) throw ()'
20:41 <philippeqc> tValueParser.cpp:207: error: declaration of `void free(void*)' throws different
20:41 <philippeqc>    exceptions
20:41 <philippeqc> /usr/include/stdlib.h:597: error: than previous declaration `void free(void*)
20:41 <philippeqc>    throw ()'
20:42 <Luke-Jr> grep stdlib src/tValueParser.cpp
20:44 <philippeqc>         #include <stdlib.h>
20:44 <philippeqc> #     include <stdlib.h> /* INFRINGES ON USER NAME SPACE */
20:44 <armabot> armagetronad: z-man * r6005 /armagetronad/branches/0.2.8/armagetronad/src/network/nNetObject.cpp: Smarter handling of data structures when a nNetObject is deleted.
20:44 <Luke-Jr> bison --version
20:45 <philippeqc> bison (GNU Bison) 2.1
20:45 <spidey> #g 6*50,000
20:45 <armabot> 6 * 50,000 = 300,000
20:46 <spidey> i give up on a shoutbox >.<
20:49 <Luke-Jr> philippeqc: are you using -pedantic?
20:49 <philippeqc> DEBUGLEVEL=3 CODELEVEL=2
20:49 <philippeqc> as z-man said we should
20:49 <Luke-Jr> http://www.mail-archive.com/bug-bison%40gnu.org/msg00726.html
20:50 <philippeqc> bbl
20:55 <armabot> armagetronad: luke-jr * r6006 /armagetronad/trunk/armagetronad/src/tools/tValueParser.ypp:
21:05 <Lucifer_arma> spidey: why does Luke-Jr want me to unignore him, and why should I care?
21:13 <spidey> ask him
21:13 <GodTodd> he said he had to talk to you....as for why you should care...beats me ;)
21:13 <spidey> he said he needs to talk to you about something
21:13 <Compn1> Lucifer_arma : i think he wants you to unignore him so he can access your bot
21:14 <spidey> lol,the bot is a seperate ignore
21:14 <Compn1> nm then
21:14 <spidey> hmm
21:14 <spidey> i think i'ma make a css layout for my forums
21:14 <Lucifer_arma> yeah, and I quietly (whout telling anyone) took him off the bot's ignore list awhile ago
21:14 <spidey> lol
21:14 -!- flea [n=flea@user-0c8hpq7.cable.mindspring.com] has joined #armagetron
21:14 <flea> hey
21:15 <spidey> Compn1 you see what i've done so far? ;x
21:15 <flea> anyone have any info where abouts styball server is/went?
21:15 <Compn1> flea : ask groundpig ;p
21:15 <Compn1> spidey : naw i've been busy ;\
21:15 <philippeqc> back
21:15 <flea> groundpig, is that meaning google?
21:15 <flea> what
21:16 <spidey> groundpig = a person
21:16 <spidey> groundpig = owns styball
21:16 <flea> ah
21:16 <flea> but not here, and no way to ask, right
21:16 <flea> so no one really knows?
21:16 <spidey> spidey = going to fuck up his forums
21:16 <Compn1> its his server
21:16 <Compn1> so he knows
21:16 <Lucifer_arma> isn't he in CA?
21:17 <spidey> he's in a state i can't spell
21:17 <Lucifer_arma> it's definitely US, but I have to admin I'm forgetting what state he's in
21:17 <spidey> #check masachuttice
21:17 <spidey> ;x
21:17 <Lucifer_arma> MA
21:17 <spidey> ya
21:17 <Lucifer_arma> Massachussetts
21:17 <[dlh]> wow
21:17 <spidey> i was close :D
21:17 <flea> any contact info for him?
21:17 <Lucifer_arma> groundpig @ the forums ?
21:18 <flea> forums.. ah
21:18 <flea> thx
21:18 <flea> dpg had a ball in that server...
21:18 <flea> would be very very nice to see up again
21:18 <armabot> spidey: Possible spellings for "masachuttice": masochistic, Massachusetts, malachite, masochist, masochists, mischance, masochist's, matchstick, malachite's, machetes, and mastic.
21:18 <Lucifer_arma> it's a cool server :)
21:18 <Lucifer_arma> ah, I was wrong
21:18 <flea> i'll go check my machetes
21:19 <Lucifer_arma> my incremental backups are working!  yay!  :)
21:19 <flea> does armabot work the bar also? i'll have a berwsky
21:19 <flea> !beer
21:19 <spidey> lol
21:20 <flea> wrong chan i suppose ;)
21:20 <spidey> armabot's lagging
21:20  * flea isnt rushin the bar-keep
21:21 <flea> is bugfarm down??
21:21 <flea> boring server sUCK
21:21 <flea> no goodplace to play atm
21:21 <flea> t:(
21:21 <flea> all this beer, all this smoke, no arma :(
21:21 <spidey> ok
21:22 <spidey> so appearently making a forum layout in css is above me :D
21:22  * spidey has a headache
21:22 <flea> i do css, any help ?
21:22 <spidey> well
21:22 <spidey> i think it's more i'm not all the way woke up
21:22 <flea> msgg
21:22 <spidey> http://www.fallin-angels.com/armagetron/index.php
21:22 <spidey> but i'ma make one that matches that layout
21:23 <flea> dtd's?
21:24 <spidey> ?
21:24 <flea> wheres ur data homls
21:24  * spidey notes he doesn't really know css
21:24 <spidey> i read for 5minutes then made that
21:24 <spidey> >.<
21:24 <spidey> homls?
21:25 <flea> bit drunkd atm
21:25 <spidey> http://www.fallin-angels.com/armagetron/style.css
21:25 <spidey> that?
21:25 <flea> i see the html params, but u trying to pull css data in to the page?
21:25 <armabot> armagetronad: z-man * r6007 /armagetronad/branches/0.2.8/armagetronad/src/tron/ (6 files): Saved two raycasts per cycle per frame on the dedicated server by recycling information from the accelerator raycasts.
21:26 <spidey> no
21:26 <spidey> i've got that page done
21:26 <spidey> i'ma make a css template for my forums next
21:26 <spidey> when i wake up :D
21:27 <flea> ...
21:27 <spidey> ?
21:31  * flea forgets irssi everytime i use it
21:31 <flea> long live epic 4 :/
21:34 <flea> bugfarm down?
21:34 <flea> or hiddne
21:36 <Lucifer_arma> gone
21:37 <Lucifer_arma> http://forums.armagetronad.net/viewtopic.php?t=6901
21:37 <flea> no match for groundpig or styball on forums
21:37 <flea> i c thx
21:38 <Lucifer_arma> http://forums.armagetronad.net/profile.php?mode=viewprofile&u=771
21:44 <flea> tyz
22:07 <wrtlprnft> Luke-Jr: i needed some extra lag for a screenshot, hope you don't mind I did a quick cat /dev/zero | ssh wrtlprnft@beta.armagetronad.net 'cat >/dev/null' to get some x_x
22:07 <wrtlprnft> arma related, of course
22:07 <wrtlprnft> though it ended giving me waaay too much lag :s
22:10 <Lucifer_arma> anybody here ever use Unison?
22:10 <Lucifer_arma> http://www.cis.upenn.edu/~bcpierce/unison/index.html
22:13 <[dlh]> I tried it out, but I didn't like it too much.
22:20 <Lucifer_arma> why not?
22:20 <spidey> http://www.fallin-angels.com/armagetron/forum.php
22:20 <spidey> yay
22:20 <spidey> i suck
22:20 <spidey> :(
22:20 <Lucifer_arma> more importantly, did you find something that was useful?  :)
22:20 <Lucifer_arma> I need to synchronize a pretty large directory on my laptop to my server, and then back it up on the server
22:21 <Lucifer_arma> I have the backup system going, just need to work out some minor issues with the hard drive
22:30 <spidey> ok
22:30 <spidey> so appearently i can't include something in a higher directory >.<
22:30 -!- wejp [n=j0hannes@i577BA4EA.versanet.de] has quit [Read error: 110 (Connection timed out)]
22:33 -!- wejp [n=j0hannes@i577B88D1.versanet.de] has joined #armagetron
22:33 <spidey> Lucifer_arma?
22:34 <spidey> 'er
22:34 <spidey> Luke-Jr?
23:17 <philippeqc> wrtlprnft: if calling your math parser from the map parser. for callback function, I tried with functions that where local to the parser, and static method to an object. Everything fails. Got any idea?
23:19 -!- Compn1 [i=lksdfn@cpe-65-29-121-215.twmi.res.rr.com] has quit [Read error: 104 (Connection reset by peer)]
23:19 -!- Compn1 [i=lksdfn@cpe-65-29-121-215.twmi.res.rr.com] has joined #armagetron
23:21 <Lucifer_arma> fails how?
23:22 <philippeqc> return always 0
23:22 <Lucifer_arma> static to the object?
23:22 <Lucifer_arma> is it in svn where I can browse it from the svn browser?
23:22 <philippeqc> static float two(float x) {return 2.0;};
23:23 <philippeqc> dont want to commit, I'm messing up lots of the trunk
23:23 <Lucifer_arma> wrtlprnft's code is in trunk, though?
23:23 <philippeqc> yes
23:23 <philippeqc>     tValue::Expr::varmap_t vars;
23:23 <philippeqc>     vars[tString("rot")] = &rotationSpeed;
23:23 <philippeqc>     
23:23 <philippeqc>     tValue::Expr::funcmap_t functions;
23:23 <philippeqc>     functions[tString("time")] = &zShape::myTime;
23:24 <philippeqc> look for a similar structure in tValue.cpp
23:24 <philippeqc> the "blah" code works fine there
23:24 <philippeqc> but when I moved it outside of tValue.cpp, callback never work
23:26 <Lucifer_arma> you're using this to tell it about it?  http://forums.armagetronad.net/profile.php?mode=viewprofile&u=771
23:26 <Lucifer_arma> er
23:26 <Lucifer_arma> Expr::Expr(tString const &expr, varmap_t const &vars, funcmap_t const &functions) {
23:26 <Lucifer_arma> there, that
23:26 <philippeqc> yes
23:28 <Luke-Jr> spidey: ?
23:29 <Luke-Jr> wrtlprnft: why not use nc -u to send it to nowhere? :x
23:29 <Lucifer_arma> myTime is static?
23:30 <philippeqc> nope
23:30 <philippeqc> wait
23:30 <philippeqc> which one
23:30 <Lucifer_arma>  functions[tString("time")] = &zShape::myTime  <--- this one
23:30 <Luke-Jr> spidey: pong
23:30 <philippeqc> that one is
23:30 <Lucifer_arma> doesn't use any non-static class members?  (can't, the compile would fail)
23:31 <philippeqc> I have tried with 
23:31 <philippeqc> static float two(float x) {  return 2.0; };
23:32 <Lucifer_arma> did you try moving your code to about where Blah() is to see if it works there?
23:32 <Lucifer_arma> ok, there's a line missing from the code you pasted, maybe it's there and you just missed it :)
23:32 <Lucifer_arma> Expr expr(tString("x+f(y)"), vars, functions);  <--- from Blah, where he creates the Expr object
23:32 <philippeqc> I have more debug code in the middle
23:33 <philippeqc> yes
23:33 <philippeqc> and then you fetch the data with expr.GetFloat()
23:33 <Lucifer_arma> you have that line?
23:33 -!- DrJoeTron [i=DrJoeTr0@adsl-67-37-225-31.dsl.chcgil.ameritech.net] has quit ["Leaving"]
23:33 <philippeqc>   tValue::BasePtr yy = tValue::BasePtr( new tValue::Expr (tString("time+1"), vars, functions));
23:33 <philippeqc>     std::cerr << xx->GetFloat() << std::endl;
23:34 <Luke-Jr> wrtlprnft: ping
23:35 <Lucifer_arma> you're outputting from an object called xx, but showing me an object being created called yy
23:35 <Luke-Jr> philippeqc: tValue::Base *yy = tValueParser::parse("time() + 1");
23:36 <philippeqc> http://pastebin.ca/119452
23:36 <philippeqc> I have that in gParser.cpp
23:36 <Lucifer_arma> if that's not it, I don't know.  :)  I've done the "make sure philippeqc didn't forget anything obvious"  :)
23:36 <philippeqc> the last out crashes now
23:36 <philippeqc> Lucifer_arma: I'm trying from a function defined just before
23:36 <philippeqc> that worked in tValue and now not anymore
23:37 <philippeqc> Luke-Jr: got any other functions than time?
23:37 <philippeqc> is it time since game start or clock time?
23:38 <Luke-Jr> philippeqc: any you define
23:38 <philippeqc> how do I define them?
23:38 <philippeqc> and map them
23:38 <Lucifer_arma> I'm inclined to think it's some sort of namespace thing.  I take it you tried it with the Blah structure exactly like it is in tValue and that didn't work outside tValue?
23:39 <philippeqc> yes, now it crash
23:41 <Lucifer_arma> there isn't anything that looks wrong to me, wrtlprnft usually comes in here about 8-10 hours after right now  :/
23:41 <philippeqc> ;)
23:41 <Lucifer_arma> but he might still be kicking around now, I guess
23:41 <Luke-Jr> philippeqc: subclass Base to define them
23:42 <Lucifer_arma> dev-ml/lablgtk
23:42 <Luke-Jr> philippeqc: 'sin' is a 2 line implementation
23:42 <Lucifer_arma> sorry, didn't mean to hit return after that
23:42 <Luke-Jr> 	typedef fUnary<float, float, sinf> Sin;
23:42 <Luke-Jr> Registration register_sin("func\nmath", "sin", 1, (Registration::fptr)
23:42 <Luke-Jr> 	( Registration::ctor1* )& Creator<Func::Sin>::create<Base*> );
23:43 <Luke-Jr> the first statement goes in a header somewhere, and the second in a .cpp somewhere
23:43 <Luke-Jr> the function name 'sin', the flags 'func' and 'math', 1 argument, and the constructor function pointer
23:44 <Luke-Jr> Time would be a bit more complex due to its strange usage
23:45 <philippeqc> Luke-Jr: 
23:45 <philippeqc>   tValue::Base *aaa =  tValueParser::parse(tString("time() + 1") );
23:45 <philippeqc>   std::cerr << aaa->GetFloat() << std::endl;
23:45 <philippeqc> armagetronad_main: /usr/include/boost/shared_ptr.hpp:253: T* boost::shared_ptr<T>::operator->() const [with T = tValue::Base]: Assertion `px != 0' failed.
23:45 <philippeqc> Program received signal SIGABRT, Aborted.
23:45 <philippeqc> 0x00002aaaac718afa in raise () from /lib64/tls/libc.so.6
23:46 <Luke-Jr> probably because Time isn't implemented yet
23:46 <philippeqc> I though you gave me a valid example!
23:46 <Luke-Jr> it's valid, just not right now
23:46 <Luke-Jr> it will be once time is implemented
23:46 <philippeqc> ok
23:46 <philippeqc> 30
23:46 <philippeqc> 29
23:46 <philippeqc> 28
23:46 <Luke-Jr> for testing, only sin is implemented
23:46 <philippeqc> .... still there? go and code
23:47 <philippeqc> parenthesis, are they implemented?
23:47 <philippeqc> beside functions I mean
23:48 <philippeqc> like 75+50*(cos(time() * 3.14)/5)
23:48 <philippeqc> lucifer, I think we have a space race on our hands
23:49 <Lucifer_arma> who are the participants?
23:50 <Luke-Jr> philippeqc: IIRC, yes
23:50  * Lucifer_arma hasn't read the news today so probably hasn't seen what's got philippeqc musing
23:50 <Luke-Jr> philippeqc: that was a simple '(' expr ')' { $$ = $2; }
23:50 <philippeqc> ok
23:51 <philippeqc> Lucifer_arma: we have 2 parsers atm, and none are doing what I want.... 
23:51 <philippeqc> who will fix it first ;)
23:51 <philippeqc> I had great hopes of testing the new modif for zones.... moving ones
23:51 <Lucifer_arma> aha
23:52 <Lucifer_arma> ah oh, I just realized I'm syncing 20GB to my server, this could take awhile
23:52 <Luke-Jr> philippeqc: what's missing in tValueParser
23:52 <Luke-Jr> ?
23:52 <Luke-Jr> (missing, not merely unimplemented)
23:53 <philippeqc> right now, sin, cos and time 
23:53 <Lucifer_arma> well, philippeqc, to be completely honest, I think that instead of doing either of these things, we should go ahead and start embedding pythong
23:53 <Lucifer_arma> er
23:53 <Lucifer_arma> python
23:53  * Lucifer_arma doesn't know why he *always* typos python as pythong
23:54 <Lucifer_arma> because python has a wonderful expression parser, and for callbacks we just need to tap into the python API to expose them
23:54 <Luke-Jr> philippeqc: 'sin' is implemented; the rest are supported, but unimplemented
23:54 <Lucifer_arma> deep down inside, nobody's going to be happy until the expression parser works like any other programming language
23:54 <philippeqc> hummm
23:54 <Luke-Jr> Python cannot be embedded until rexec is fixed, which doesn't look like any time soon
23:55 <philippeqc> i see you wisdom
23:56 <Luke-Jr> embeddding Python as it is now = security holes up the wall
23:57 <philippeqc> Lucifer_arma: I wanted something to help me test the new shape code that I have, and for that I though I'd use tValue on the x and y and animate it.
23:57 <philippeqc> ruby then?
23:57 <Luke-Jr> Ruby is possible, but I still think full scripting support needs more thought
23:57 <Lucifer_arma> not more of this "python's too slow".
23:58 <Luke-Jr> at least, from nemo's description
23:58 <philippeqc> never said that, just "ruby is a hot item right now, and you mentionned it before"
23:58 <Lucifer_arma> oh, no, I thought you were responding to something luke said, but since I'm still ignoring luke, I didn't see what he said :)
23:59 <Luke-Jr> maybe he shouldn't ignore me so he doesn't look dumb
23:59 <philippeqc> well as python still has the rexec prob, and that seems to be blocking us right now
23:59 <Lucifer_arma> no, it's all attitude that's blocking us right now

View entire month
DISCLAIMER: These logs of public chat may contain some content which may not be appropriate for all audiences. Use at your own risk.
Logs from 2006-2009 pulled from wrtlprnft
Format changes at: 2015-08-25, 2017-02-20, and 2020-03-23. Times (2015 and later) should be Eastern.


 
 
 ArmaNelgTron.tk
 © NelgTron 2014-2021. Made for . [About this site] [Credits]