Camelia, the Perl 6 bug

IRC log for #padre, 2010-07-08

| Channels | #padre index | Today | | Search | Google Search | Plain-Text | summary

All times shown according to UTC.

Time Nick Message
00:01 azawawi joined #padre
00:17 teejay joined #padre
00:53 Alias joined #padre
03:51 |Sno| joined #padre
03:59 [Sno] joined #padre
05:11 Alias joined #padre
05:25 PerlPilot joined #padre
06:51 Hyppolit svn: r11823 | adamk++ | http://padre.perlide.org/trac/changeset/11823
06:51 Hyppolit Upgrading dependency to get Wx::HtmlWindow support
06:51 Hyppolit trunk/Padre-Plugin-FormBuilder/
07:12 marcela joined #padre
07:29 jagd joined #padre
08:12 Alias joined #padre
08:15 daxim joined #padre
08:51 szabgab_ heavy ctrl-shift-rightarrow caused Padre to crash with    (padre:29437): GdkPixbuf-CRITICAL **: gdk_pixbuf_get_has_alpha: assertion `GDK_IS_PIXBUF (pixbuf)' failed
10:28 waxhead what does that do?
10:40 Sewi Select words
11:13 waxhead oh right... it would..
11:13 waxhead man, this sorting dirs first is killing me!
11:19 daxim alias ll='LC_COLLATE=C /bin/ls -FGl --color=auto --group-directories-first --time-style=long-iso' # can't live without dirs at the top.
11:20 Alias waxhead: It's one line of code... or should be
11:20 waxhead alias, no way... serious??
11:20 * waxhead just wants to cry
11:20 Alias Like I said, look in the ::Task
11:21 waxhead I am, and making a royal mess of things!  :)
11:21 Alias And change the sort order in that
11:22 waxhead in the compare method?
11:25 Alias oh wait, maybe I'm wrong
11:28 waxhead hope so, I've butchered the whole sorting thing time and again the last couple of days...
11:29 waxhead it hasn't been fun...
11:29 waxhead sigh
11:29 Alias ok
11:29 Alias So try this
11:29 Alias oh... hrm
11:30 Alias I mean, the current system is very fast :)
11:30 Alias Just not HUGELY flexible :)
11:31 Alias Maybe doing it in ->compare wasn't particularly optimal
11:31 Alias I can't help wonder why the fuck I didn't originally sort early, near readdir
11:31 waxhead I've been working on the premise if returning the model, but in a way that the directories are at the front of the returned array
11:32 Alias That's correct
11:32 Alias I really pushed the limits of optimisation with the ::Path object
11:32 waxhead but my code... good lord.. you'd think I could work it out...
11:32 Alias It's extremely efficient
11:32 waxhead but failed...
11:32 Alias heh
11:32 * Alias ponders
11:32 waxhead in the Task, I have a sort_dirs_first which works down the sorted ->{model}... so I don't have to sort it...
11:33 waxhead ok.. let me show you just how bad I've done...
11:33 shadowpaste "waxhead" at 217.168.150.38 pasted "this is how bad it can get! :)" (83 lines) at http://paste.scsys.co.uk/46473
11:35 Alias hrm
11:35 Alias Can you replicate the original logic just by modifying readdir?
11:35 waxhead so I started with the idea of a dirs array holding all the directories, and a files array holding hte files... from there walk the directory array and then append in the files at the right spot.. FAIL!
11:35 Alias And remove the compare line
11:35 waxhead dunno...
11:35 waxhead my head hurts...
11:35 waxhead going to give it break...
11:35 Alias :)
11:35 Alias One of the nice things about the current design, is it only has to call stat once
11:35 waxhead at least I got some gardening done.. so the day wasn't a complete waste
11:36 Alias But I admit it's really really limited for flexibility
11:36 waxhead I don't think it's that problematic... I just lack the clues...
11:36 * waxhead gives up any thought of working at google..
11:36 waxhead not that I ever entertained the though..
11:37 waxhead besides I'm >40 now, so too old anyway
11:40 Alias Kids aren't really compatible with google
11:41 Alias ok, so here's what I'd do looking at it again
11:41 Alias Don't split early
11:42 Alias Iterate over the files in that foreach my $file (@list) {
11:42 Alias Build the list of ::Path objects
11:42 Alias But DON'T add them to the @queue
11:43 Alias Just replace them in the original @list
11:43 Alias So they are built into the objects, and all the same work is done, but you still have them unsorted
11:43 Alias THEN, after the foreach my $file (@list) { you do a discrete sort on it's own
11:44 Alias And then unshift the whole lot to the front of @queue in one go
11:44 Alias (unshifting results in depth-first)
11:45 Alias Doing it with a discrete sort in that way also means we can customise the sorting
11:45 Alias if ( dir_first ) { @list = sort { ... } @list } else { @list = sort { ... } @list }
11:45 Alias And the comparison code only has to think at one level of depth, it doesn't have have the while crazyness in it
11:47 Alias So 1. Scan, delink, and build path objects, 2. sort, 3. Recurse
11:47 Alias (via the same list recursion)
12:02 waxhead ok...
12:02 waxhead I'm just catching up on a few things...
12:03 waxhead I'll copy and paste and take another look at it.
12:10 szabgab joined #padre
12:14 szabgab joined #padre
12:21 szabgab joined #padre
12:22 Alias waxhead, goodo
12:25 szabgab I have just switched back to using screen+irssi
12:26 szabgab this time I hope I'll have time to learn a bit more on how to configure it and how to use it
12:28 * waxhead uses xchat
12:29 szabgab that's what I used for a year or two now
12:42 waxhead alias, I don't get it... sorry.. .
12:42 Alias waxhead: So you underwhile the while ( @queue ) idea right?
12:43 Alias It's recursion, but without using recursive subs
12:43 Alias "list recursion"
12:43 waxhead oh.. so that's legal!!
12:43 Alias It's a queue of directories, you process in the order you find them in the queue
12:43 Alias Sure
12:43 waxhead you can actually push to the end of an array your are working over...
12:43 Alias no
12:44 Alias But if you are doing while ( @queue ) { my $this = shift @queue } you can
12:44 Alias You don't foreach over it
12:44 Alias You while it and pull stuff off
12:44 Alias So that's the queue
12:44 Alias Then you foreach @files within that
12:44 waxhead ok...
12:44 waxhead yes...
12:44 waxhead OK.. don't go any further....
12:45 Alias So what you need to do, is do all the processing inside of the foreach, but don't change the queue inside the list
12:45 Alias Turn the whole of @files into path objects first in one phase
12:45 Alias Then in a second phase, sort that list
12:46 Alias Then in a third phase, add the post-sorted stuff to the queue and return list as appropriate
12:47 Alias All three phases are inside the outer while
12:50 waxhead OK.. so when you hit a directory with the -d that's where you add it to the @queue... which eventually becomes the @list until it hits the leaf nodes... at which point it gets added to the @files array...
13:08 Hyppolit svn: r11824 | adamk++ | http://padre.perlide.org/trac/changeset/11824
13:08 Hyppolit Updating the dependency, again
13:08 Hyppolit trunk/Padre-Plugin-FormBuilder/
13:10 waxhead alias...
13:10 waxhead still don't get it..
13:10 Alias heh
13:10 waxhead I just keep breaking it..
13:10 Alias You're running the test case right?
13:10 Alias So you can step it though?
13:10 waxhead how so?
13:10 Alias Test 62
13:11 Alias It's there so you can run the task inside the debugger
13:12 waxhead I run the test in the debugger in Padre?
13:12 Alias no no
13:12 Alias perl -Mblib -d t\62...
13:12 waxhead you can see why I do the release now.. :)
13:13 waxhead oh.. the debugger...
13:14 Alias Things are a lot easier when you can look at the code from the inside
13:16 waxhead that would require I learn the debugger though
13:16 waxhead which isn't a bad thing, just time consuming
13:17 Alias h h
13:17 Alias There's only 4 commands to learn
13:17 Alias n
13:17 Alias s
13:17 Alias c
13:17 Alias b
13:17 Alias x
13:17 Alias ok, five
13:19 waxhead ok... thanks...
13:19 waxhead I'm going to bed now...
13:19 waxhead I'll get back to this tomorrow..
13:56 zenog joined #padre
13:56 zenog Hi guys.
13:57 zenog I just read that Rakudo Star will be (maybe) released on July 29
14:00 daxim and?
14:05 zenog I haven't used it yet, and I have no idea of Perl 6, and Perl support in Padre, but I wonder whether the Perl 6 plug-in is currently working.
14:06 zenog It would be neat if the Rakudo guys could say: "And, by the way, there is already an editor/IDE that supports Perl 6/Rakudo pretty well ..."
14:08 Alias They already say that
14:08 Alias Or at least they had better :)
14:09 Hyppolit svn: r11825 | adamk++ | http://padre.perlide.org/trac/changeset/11825
14:09 Hyppolit Inching forwards
14:09 Hyppolit trunk/Padre-Plugin-FormBuilder/lib/Padre/Plugin/
14:10 Alias right, bed
14:16 szabgab zenog: they are planning to release rakod on windows that includes an IDE :)
14:16 szabgab s/rakod/rakudo/
14:44 Sewi which one?
14:46 kanishka joined #padre
14:52 szabgab Sewi: the one and only :)
14:53 zenog Sounds good ;-)
14:53 Sewi szabgab: You mean Nano? :-))
16:00 Sewi ping szabgab
16:03 Sewi unping szab
16:33 ilbot2 joined #padre
16:33 Topic for #padreis now Latest Padre is 0.66 - If you have 0.65 upgrade now, for installation see http://padre.perlide.org/trac/wiki/Download | Log: http://perlide.org/irclogs/ and http://irclog.perlgeek.de/padre/today | Pasting: http://scsys.co.uk:8001
16:43 dapatrick joined #padre
17:00 danlucraft joined #padre
17:01 danlucraft1 joined #padre
17:08 rindolf joined #padre
19:14 rindolf joined #padre
21:24 jagd joined #padre
21:42 rindolf joined #padre
21:42 rindolf Hi all.
21:49 garu hi rindolf
21:49 rindolf Hi garu
21:49 garu Sewi: nice post :)
21:49 rindolf garu: what's up?
21:49 garu rindolf: going to cancun tomorrow \o/
21:49 rindolf garu: ah.
21:49 rindolf garu: what for?
21:51 garu one-week vacation...ish
21:51 garu sadly, there are no Perl Monger groups in Mexico :(
21:52 garu rindolf: how about you?
21:52 rindolf garu: I'm working on Catable.
21:52 rindolf CATAlyst BLog Engine.
21:52 rindolf Ran into a few problems with DBIC.
21:53 garu nice :)
21:53 garu rindolf: using Padre + Cat Plugin for development?
21:54 Sewi garu: Thanks! Did you add a button?
21:54 garu to where? :P
21:55 rindolf garu: Catalyst.
21:55 rindolf garu: and gvim . :-D
21:55 garu Sewi: I don't have any live websites (other than $work)
21:56 garu rindolf: bah!
21:56 rindolf garu: but I published the new version of Padre on Freshmeat.net.
21:56 garu rindolf: ok, you're forgiven :P
21:56 Sewi garu: There was a solution for $work sites in the post
21:56 Sewi http://www.socialtext.net/perl5/?actio​n=edit;page_name=companies_using_perl#
21:56 rindolf s/published/announced/
21:57 garu Sewi: it's already there :)
21:57 Sewi :-)
21:57 garu rindolf: should you consider using Padre for your work, please give me any feedback on the Catalyst Plugin
21:58 rindolf garu: OK, I will.
21:58 garu rindolf: and, if you still decide to go with gvim, please let us know why, and what could we improve in the Padre experience enough for you to switch :)
21:59 rindolf garu: sure.
22:10 dolmen joined #padre
22:11 rindolf "Acces it via Plugin/Git " - typo in the  git plugin.
22:24 awnstudio joined #padre
22:42 dolmen left #padre
22:51 rindolf joined #padre

| Channels | #padre index | Today | | Search | Google Search | Plain-Text | summary