Camelia, the Perl 6 bug

IRC log for #parrot, 2008-03-21

Parrot | source cross referenced

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

All times shown according to UTC.

Time Nick Message
00:03 teknomunk joined #parrot
00:06 svnbotl r26507 | chromatic++ | trunk:
00:06 svnbotl : [JIT] Applied CONTEXT() macro changes to PPC JIT, which I somehow missed in
00:06 svnbotl : r26491.  This patch fixes RT #51912.
00:06 svnbotl diff: http://parrotvm.org/svn/parrot/revision/?rev=26507
00:16 Theory joined #parrot
00:34 amoore joined #parrot
01:31 kid51 joined #parrot
01:33 Infinoid wknight8111: they both sound very useful
01:33 wknight8111 I'm thinking of applying for SOC, but I want a project that is going to be challenging and beneficial
01:34 Infinoid well, both of the ones you mentioned (GC and PCT optimizers) will definitely be beneficial
01:34 Infinoid it's all gotta get done, after all :)
01:36 wknight8111 What does parrot do now, in terms of garbage collection?
01:37 kid51 purl seen chromatic?
01:37 purl chromatic was last seen on #parrot 1 day and 18 hours ago, saying: Or maybe just http://code.google.com/soc/2008/mentor_step1.html  [Mar 19 00:14:04 2008]
01:38 kid51 purl seen rdice?
01:38 purl rdice was last seen on #perl 9 days and 13 hours ago, saying: rjbs, I highly recommend picnicface.  To the point where my guys wish I stopped inflicting the videos on them.  [Mar 11 06:06:16 2008]
01:38 Infinoid I'm pretty sure it's a mark & sweep system
01:38 Infinoid I'm not too familiar with the internals, unfortunately
01:40 Infinoid wknight8111: please see http://www.parrotcode.org/docs/pdd/pdd09_gc.html
01:41 wknight8111 yeah, thanks
01:42 particle joined #parrot
01:47 wknight8111 ugh, I haven't updated the SVN in a week, and now it's going to suck up all my computer resources
01:47 wknight8111 note to self: don't work on parrot on an old computer
01:49 Infinoid I build it on a 266MHz powerpc machine, about once a month.  it takes a while :)
01:50 wknight8111 For some reason, TortoiseSVN crashes after updating about 500 files. So i have to stop, cleanup, and try updating again
01:55 Infinoid hmm.  does tortoisesvn execute a command-line svn process, or handle things internally?  does the command-line tool drop out?
02:00 wknight8111 it's all visual, integrated into the Win32 shell
02:02 wknight8111 i think my repository is completely borked. I may need to check out again
02:03 Infinoid on win32, I've only used the command-line tool, but it worked fine for me.
02:03 wknight8111 yeah, i should probably get something more primitive. I'm a glutton for this kind of nonsense
02:05 Infinoid the shell integration sounds really useful, but the "working" feature is kinda important to me :)
02:05 Eevee tortoise is pretty solid
02:06 Theory joined #parrot
02:06 Infinoid ok, so what's different between you two?
02:07 wknight8111 It may be, and I'm sure my computer has some kind of problem. I'm overdue for a reformat anyway.
02:07 wknight8111 I just don't want to reformat until I get my thesis finished, for obvious reasons
02:08 Infinoid makes sense
02:10 wknight8111 I get errors saying that my "access denied" to move one of the folders, and the update cancels
02:10 wknight8111 so I have to run a cleanup, and then try again
02:11 * Infinoid blinks
02:12 Andy joined #parrot
02:45 cotto_home joined #parrot
02:45 cotto_home left #parrot
02:46 cotto_home joined #parrot
03:00 kid51 purl seen allison
03:00 purl allison was last seen on #parrot 9 days and 7 hours ago, saying: jonathan: yes, it's there now  [Mar 11 12:56:49 2008]
03:00 c9s joined #parrot
03:07 Andy joined #parrot
03:07 c9s_ joined #parrot
03:08 wknight8111 literally, the svn just finished updating
03:09 wknight8111 I wanted to devote about an hour or two to hacking tonight, and that's out the window
03:13 Infinoid wow.  might be more efficient just to ssh into a linux box and develop remotely
03:13 Infinoid sorry to hear you're having issues...
03:14 c9s joined #parrot
03:16 teknomunk joined #parrot
03:21 c9s joined #parrot
03:26 Ademan joined #parrot
03:30 wknight8111 it's okay, I'll persevere. I have most of the day tomorrow to jump into this
03:32 Infinoid ok.  I'll be around most of the day tomorrow, so please speak up if you need anything else
03:33 PerlJam Infinoid: I need a working perl 6 ... can you get me one of those?  ;)
03:34 Infinoid heh, so do I :)
03:39 wknight8111 I'm building now. I'm going to log all the compile warnings, and try to fix a bunch tomorrow
03:41 Infinoid wknight8111++
04:09 * PerlJam is drawing a complete blank on how to debug a change he made to rakudo
04:13 Infinoid are there tests for it?
04:14 PerlJam I don't need a test.  I know it doesn't work  :)
04:14 Infinoid well... what's the change?
04:15 PerlJam I was attempting to add the loop { ... } construct
04:16 PerlJam I thought I'd start of implementing only the infinite loop in actions.pm, but when I execute some code with a loop {...} in it, I get an error "No result object" from get_scalar in PCT/Grammar
04:18 Infinoid "* no result object"
04:19 Infinoid "This is the case when you try to retrieve the result object from a subrule, but the subrule's action didn't set a result object using the "make" command. Check whether there's an action invocation token "{*}" in the subrule and whether that subrule's action has a "make" command."
04:20 Infinoid I found that in docs/pct/gettingstarted.pod when I grepped for the error message
04:20 Infinoid but I don't know if it helps you or not... you obviously know more about PCT than I do :)
04:24 PerlJam Infinoid: I have both of those things.
04:27 Infinoid well, apparently the value you're "make"ing is null
04:32 PerlJam It's probably my constant PAST::Val for the infinite conditional that's causing me grief
04:35 PerlJam and it's probably that I'm really tired that I can't think straight :)
04:56 cotto_home joined #parrot
05:32 Psyche^ joined #parrot
05:36 spinclad Eevee: AIUI: docs/art/pp002-pmc.pod is out of date.  the faq is correct, the VM has as many as it wants of each type.  i don't see offhand which of the pdd's covers or should cover this, but in general go to the pdd's for definitive answers.
05:39 spinclad followup question for all:  which pdd(s) cover(s) the basic architecture of the vm, like number/allocation of registers, frame and interpreter structure/attributes/properties, ... ?
05:40 contingencyplan joined #parrot
05:42 spinclad it may be sitting there staring at me, but i haven't stumbled on it yet.  i know the book chapters cover this, but (a) were/are they definitive, and (b) they got grossly outdated before getting released to us, and aiui their revision is In Progress.
06:45 cotto_home why does are there references to 78-character lines when the coding standard and associated test says 100?
06:48 cotto_home obvious answer, rhetorical question
06:54 barney joined #parrot
06:55 cotto_home anyone knowledgeable about PMC internals awake?
06:57 cotto_home bah.  I need to get Parrot to not puke with -DFREEZE_ASCII
06:58 cotto_home it's too mysterious as is
07:01 * barney is awake, but has to leave in 10m
07:01 cotto_home you're more of a hll guy anyway, right?
07:02 grim_fandango joined #parrot
07:03 barney yep. not deep into internals
07:06 slightlyoff joined #parrot
07:13 peepsalot joined #parrot
08:20 jjuran joined #parrot
08:20 svnbotl r26508 | fperrad++ | trunk:
08:20 svnbotl : [Lua]
08:20 svnbotl : aligned with Lua 5.1.3 (part 4)
08:20 svnbotl diff: http://parrotvm.org/svn/parrot/revision/?rev=26508
08:51 wknight8111 joined #parrot
08:56 turrepurre_ joined #parrot
10:33 c9s joined #parrot
12:02 c9s joined #parrot
13:01 jrt4 joined #parrot
13:04 skids joined #parrot
13:17 cdm joined #parrot
13:22 slightlyoff joined #parrot
13:42 wknight8111 joined #parrot
13:45 Andy joined #parrot
13:53 particle joined #parrot
14:05 jhorwitz joined #parrot
14:12 gryphon joined #parrot
14:12 svnbotl r26509 | fperrad++ | trunk:
14:12 svnbotl : [imcc]
14:12 svnbotl : fix version message when building a release :
14:12 svnbotl :  - DEVELOPING is removed
14:12 svnbotl :  - so Parrot_revision & Parrot_config_revision give 0
14:12 svnbotl : (see lib/Parrot/Revision/Util.pm)
14:12 svnbotl : with the latest release, the current message is :
14:12 svnbotl :   This is parrot version 0.6.0 (r26483) built for i386-MSWin32.
14:12 svnbotl :   Warning: runtime has revision 0!
14:13 svnbotl :   Warning: used Configure.pl revision 0!
14:13 svnbotl :   Copyright (C) 2001-2008, The Perl Foundation.
14:13 svnbotl diff: http://parrotvm.org/svn/parrot/revision/?rev=26509
14:49 particle joined #parrot
15:00 sjansen joined #parrot
15:07 particle left #parrot
15:16 slightlyoff joined #parrot
15:38 wknight8111 I want to clean up the snprintf macros and put them all in the same place to avoid redefinitions
15:39 wknight8111 should they go into parrot/misc.h (where one of them is now), or should I move them to some place more appropriate like parrot/string.h?
15:40 wknight8111 Actually, I may not need to move anything
16:10 Theory joined #parrot
16:37 wknight8111 purl seen chromatic
16:37 purl chromatic was last seen on #parrot 2 days and 9 hours ago, saying: Or maybe just http://code.google.com/soc/2008/mentor_step1.html  [Mar 19 00:14:04 2008]
16:41 svnbotl r26510 | infinoid++ | trunk:
16:41 svnbotl : Patch in RT #51976 seems very reasonable, and passes tests.  Apply it.
16:41 svnbotl : Thanks to Andrew Whitworth.  wknight8111++
16:41 svnbotl diff: http://parrotvm.org/svn/parrot/revision/?rev=26510
16:43 Infinoid "on first glance"?  "it sounds?"  I need a system to keep track of which metaphors are within lexical scope at any given time.
16:44 ambs joined #parrot
16:44 wknight8111 are you talking about my patches?
16:44 Infinoid no, I'm talking about my disorganized replies to your patches.
16:45 wknight8111 that's fine, i don't require organized replies
16:45 wknight8111 or any replies at all, for that matter
16:47 kj joined #parrot
16:48 Infinoid that function Parrot_char_digit_value() is pretty suspect... if -1 is a valid return value, then its return type shouldn't be UINTVAL
16:48 Infinoid good find
16:48 purl it has been said that good find is hard to man...
16:48 Infinoid % man 'good find'
16:48 Infinoid No manual entry for good find
16:48 wknight8111 I assume that they are trying to do something like return MAX_UINTVAL, just with shorthand
16:50 Infinoid -1 is returned if the character isn't in the range ('0'..'9')
16:50 Infinoid the unsignedness of the result is just silly
16:50 wknight8111 I can go through and change the result to INTVAL or something else then, if that's a better idea
16:51 wknight8111 probably only need to change that file, the header, and a few other places
16:51 Infinoid I think so.  could you?
16:51 Infinoid INTVAL is right, I think
16:51 wknight8111 Okay, let me get started on it. I'll post a patch to the same ticket # for it
16:52 Infinoid wknight8111++
16:56 * ambs prepares to test strawberry perl
16:57 ambs hmmms... yummy strawberry :)
16:57 ambs erm, why am I talking on #parrot? wrong channel :-S
17:00 Infinoid heh.  strawberry perl rules.
17:01 ambs I want to test some modules under windows
17:01 ambs :)
17:01 Infinoid wknight8111: is there an option in tortoisesvn to always generate patches with pathnames relative to the parrot root?  they would be a little easier to apply, that way
17:02 wknight8111 There might be. I didn't realize it was a problem. I'll work on it.
17:03 Infinoid its not a big deal, it just means I have to go find utils.c and cd into src/ before I can apply the patch
17:07 wknight8111 okay, i figured out what I was doing wrong. it will never happen again :)
17:09 Infinoid I'm going to reformat utilsmoveregtypecast.patch slightly so it passes t/codingstd/linelength.t
17:15 wknight8111 okay
17:15 Infinoid the code in jit_emit.h is there to reduce duplicated code; it is included and used in several source files
17:15 wknight8111 I'm searching diligently, and I can't find use of  Parrot_char_digit_value outside of string_primitives.*
17:15 wknight8111 So, I think i'm going to just submit the patch with the .c and .h files changed
17:18 svnbotl r26511 | infinoid++ | trunk:
17:18 svnbotl : Patch from RT #51984 doesn't appear to change any actual functionality, quiets
17:18 svnbotl : some warnings on win32/msvc, and passes tests.  Apply it.
17:18 svnbotl : Minor modification: I split the line into 2, to pass t/codingstd/linelength.t.
17:18 svnbotl : Thanks, Andrew Whitworth!  wknight8111++
17:19 spez joined #parrot
17:19 Infinoid I don't see any actual usage of that function, either
17:24 ambs hmms, strawberry does not include a yacc.
17:33 Infinoid great, nothing to shave
17:36 Psyche^ joined #parrot
17:42 kj Anybody know how to express that somethign is "in the public domain"? (source code)
17:42 kj Like, "this source code is public domain" or whatever? How to express that properly?
17:44 wknight8111 I assume it would be something like "This source code has been released by the author into the public domain. Where this is not possible by law, the author grants license to use this file for any reason without any rights reserved, and with no warranty express or implied or fitness for a particular purpose"
17:45 kj sounds good :-)
17:45 wknight8111 of course, that may just be a mashup of memories from PD and GPL warnings
17:45 kj Are you ok if I use that text?
17:45 kj it's just for the PCT tutorial
17:45 wknight8111 I release that text into the public domain :)
17:45 kj ha ha
17:46 ambs dang
17:49 wknight8111 on Unix boxes, what parameters does the dup() function take?
17:50 wknight8111 on Win32 it takes a single int, and if that's standard behavior for it, I think I can fix a few warnings
17:51 ambs #include <unistd.h>
17:51 ambs int
17:51 ambs dup(int fildes);
17:51 ambs int
17:51 ambs dup2(int fildes, int fildes2);
17:51 Eevee yeah that
17:51 purl i guess yeah that is absolutely outrageous
17:51 ambs purl: forget yeah that
17:51 purl ambs: I forgot yeah that
17:51 wknight8111 thanks @ambs
17:56 askie joined #parrot
18:00 Psyche^ joined #parrot
18:01 kj PCT tutorial episode 6 is published!
18:04 davidfetter url?
18:04 kj parrotblog.org
18:08 lidi20 joined #parrot
18:10 kj http://www.bitwisemag.com/2/​DLR-Build-Your-Own-Language
18:13 jhorwitz kj: very nice (PCT on parrotblog.org).  i'm compiler-challenged, so i definitely need this.  :)
18:13 kj cool! :-) good to hear.
18:13 kj I'll have about 3 more episodes, after which the complete language is implemented
18:19 cotto_work kj++
18:20 jhorwitz i've been MIA the past week or two.  did we hear what parrot OSCON talks were accepted?  i know mod_parrot was.
18:36 kj w.r.t. the link DLR-build-your-own-language: again I notice that Parrot just ignored silently; there's only mention of JVM and CLR/DLR "new" support for dynamic languages.
18:39 wknight8111 Can somebody take a look at src/encodings/fixed_8.c:to_encoding()?
18:40 wknight8111 the function is declared PARROT_DOES_NOT_RETURN, and PARROT_CANNOT_RETURN_NULL, and has a return type of STRING *
18:41 wknight8111 either it does return a non-null string, or it doesnt return at all, and it can't be both
18:41 jhorwitz kj: based on the author's other articles, he seems very MS-centric
18:44 h0rn joined #parrot
18:50 cotto_work allison was at MS recently talking to some of the DLR guys
18:51 cotto_work some of them know about Parrot
18:51 jhorwitz wknight8111: looks like that function is unimplemented for fixed8.  this is a complete guess, but in that case the PARROT_DOES_NOT_RETURN might avoid some compiler warnings since nothing is actually returned, while the STRING * return type is needed for the ENCODING structure.
18:51 kj it just seems strange that if people start writing on dynamic languages, they don't know about what's out there
18:52 wknight8111 thanks jhorwitz, that's what I figured it was. So i guess the function definition will need to change when they implement it
18:52 kj but I can understand the focus on jvm and dlr
18:53 jhorwitz i'm hoping parrot has a strong showing at OSCON this year to help spread the word.
18:56 cotto_work maybe it'd be a good idea to submit your tutorials to slashdot once they're done, kj
18:56 cotto_work that'd help raise awareness and show people the state of the project
18:58 kj i don't know if they're good enough for /. How does one get stuff there?
18:59 cotto_work http://slashdot.org/submit.pl
18:59 Psyche^ joined #parrot
19:05 Infinoid kj: use.perl.org would be a good place to put it, too
19:05 kj cotto_work: thanks for the link. That might be a good idea. Maybe it's good to wait till some people have read it and commented on it
19:06 kj to improve quality
19:06 kj Infinoid: yep: use Perl 6 to implement Your Favorite Language today!
19:06 kj :-)
19:12 jrockway joined #parrot
19:22 svnbotl r26512 | infinoid++ | trunk:
19:22 svnbotl : Apply patch from RT#51982, thanks!  wknight8111++
19:22 svnbotl diff: http://parrotvm.org/svn/parrot/revision/?rev=26512
19:28 Infinoid wknight8111: the symbol "_dup" does not exist on linux
19:29 nopaste "Infinoid" at 75.5.242.149 pasted "RT#51988 build failure on x86-64 Linux" (17 lines) at http://nopaste.snit.ch/12543
19:35 wknight8111 it doesnt? All the stuff I saw (or thought I saw) online seemed to indicate it did
19:35 wknight8111 I mean, I won't argue with you about it, I must be misinformed
19:38 Infinoid nope, it's just dup() and dup2()
19:40 Infinoid they don't really exist as symbols at all, at least not on my machine.  they're inline functions in unistd.h that boil down to some assembly code that makes the system call and updates errno if necessary
19:41 wknight8111 Okay, then I guess we need to disregard that patch then. cl.exe warns about use of dup(), but a warning on one system is better then complete failure on another
19:42 wolverian a few remarks: parrot doesn't seem to configure cleanly from the git mirror, and doesn't find my local perldoc (when using my local perl)
19:43 Infinoid wolverian: can you paste what your Configure.pl invocation looks like, using nopaste?
19:43 Infinoid purl, nopaste
19:43 purl it has been said that nopaste is at http://nopaste.snit.ch/ (ask TonyC for new channels) or http://rafb.net/paste or http://paste.husk.org/ or http://poundperl.pastebin.com/ or http://paste.scsys.co.uk/ or don't bother me while I'm eating
19:44 Infinoid wknight8111: what's the warning?  I'm sure we can find a way to make both platforms happy :)
19:44 Infinoid (and probably break Darwin in the process, tee hee)
19:45 wolverian Infinoid, do you want me to run it verboes?
19:45 wolverian s/oes/ose/
19:46 Infinoid I want to see how it's not configuring cleanly :)
19:46 wolverian well, sec. :)
19:46 wolverian it's trying to call svn to determine revision
19:46 Infinoid yeah, we keep having to fix that in various places
19:47 nopaste "wolverian" at 80.221.43.65 pasted "configure" (87 lines) at http://nopaste.snit.ch/12544
19:49 * wolverian tries to find out why it doesn't detect perldoc
19:50 Infinoid well, does perldoc exist?  (there's a funky setting called "versiononly" which will prevent perl from installing perldoc, h2xs, and some other tools)
19:51 wolverian yes, it does
19:51 * purl stays quiet
19:51 wolverian furthermore, Configure.pl says "no", which seems to indicate (by perldoc.pm) that it is finding perldoc, but it's not getting any output from it
19:51 wolverian hmm.
19:53 Infinoid hmmm.  there are some nice errors from lib/Parrot/Revision.pm, which hasn't been changed since kid51's branch merge in January
19:55 Infinoid this is a normal git-svn checkout, right?
19:56 wolverian no, this is from http://repo.or.cz/w/parrot.git
19:56 wolverian which might be totally wrong, of course, since I don't know whose it is :)
19:56 wolverian huh. perldoc.pm seems to be trying to run '...//perldoc'
19:57 Infinoid the extra / won't hurt, but does the path look correct otherwise?
19:57 wknight8111 is kj still here?
19:57 kj ambsyup
19:57 kj ehm
19:57 kj whoes
19:57 wolverian no, it doesn't. I don't know what ... would mean, anyway
19:58 kj that should have been a yes :-)
19:58 wolverian I'm in ~/projects/parrot, perldoc is in ~/local/bin
19:58 wknight8111 kj, I really like your PCT tutorials, would you mind if I "stole" them and turned them into a book at Wikibooks?
19:58 wknight8111 I mean, I know they are PD, but I like to be curteous anyway
19:58 wknight8111 courteous*
19:59 kj wknight8111: no problem.
19:59 Infinoid wolverian: what's the output of: perl -e 'use Config; print($Config{scriptdir}, "\n")'
19:59 wknight8111 excellent. I'll send you a link when I get something up and running
19:59 wolverian Infinoid, ".../"
19:59 wolverian I wonder how I managed that ...
20:00 kj great. I'm writing the last ones right now (ep.7; 8 is finished, 9 is jsut a conclusion)
20:00 wolverian the paths in perl -V look correct otherwise
20:00 Infinoid that's pretty bizarre.  mine is "/usr/bin"
20:01 Infinoid maybe there are multiple Config.pm's in your @INC and its choosing the wrong one?
20:01 wolverian okay
20:01 wolverian $Config{prefixexp} is /home/wolverian/local/bin/..
20:01 wolverian (note the ..)
20:01 wolverian and binexp, like scriptdir, is .../
20:02 wolverian scriptdirexp is correct though
20:03 Infinoid so... we could work around your bizarre and broken scriptdir by using scriptdirexp.  trying to think if there's any downside to doing that
20:04 wolverian I'm pretty sure this shouldn't be happening in any case, i.e. perl should have configured itself correctly, regardless of my stupidity :)
20:04 Infinoid I'd really like to know how your system ended up in this state, and whether its a case which will come up again :)
20:05 Infinoid I don't think "..." is a valid directory-alias on any platform.  so I'm wondering if its some kind of internal placeholder
20:05 Infinoid if so, its definitely something we need to recognise
20:06 wolverian any hints how to debug the perl source tree (after config,make,make install) to see what went wrong?
20:07 Eevee I think some versions of Windows accept ... to mean ..\..
20:07 Eevee not sure if XP/Vista still do
20:08 Infinoid wolverian: what platform are you running on?
20:08 wolverian Infinoid, linux, ubuntu 8.04
20:08 Infinoid self-built perl, or .deb package?
20:08 wolverian self, 5.10
20:09 Infinoid ok.  I'm using a half-broken 5.10.0 gentoo ebuild :)
20:09 Infinoid as for debugging it... its all about the values in Config.pm, which (judging from comments at the top) was generated by configpm
20:09 davidfetter you're repeating yourself
20:09 davidfetter "half-broken" + "gentoo" ;)
20:10 Infinoid thank you for that, davidfetter :)
20:10 wolverian ;)
20:10 davidfetter hey, it used to be 90% broken ;)
20:10 davidfetter half- is a big improvement
20:10 wolverian I think I built with userelocatableinc, btw
20:11 wolverian yes, I did
20:11 wolverian that's the only special flag besides prefix that I used
20:11 wolverian and prefix was ~/local
20:11 wolverian perhaps you can reproduce it with that?
20:11 Infinoid but remember, gentoo ebuilds aren't release quality until they're *fully* broken
20:11 Infinoid users demand nothing less
20:11 davidfetter Infinoid, are you over 30 years old?
20:11 Infinoid I'll make a build and see what it looks like... will probably take a little while
20:12 Infinoid davidfetter: not quite, but gimme a year
20:12 wolverian ah, it's explicitly mentioned in perldoc perldelta
20:12 * davidfetter has noticed a marked paucity of post-30 people in gentoo
20:12 wolverian That means that, if the string ".../" is found at the start of any path, it’s substituted with the directory of $^X. So, the relocation can be configured on a per-
20:12 wolverian directory basis, although the default with "-Duserelocatableinc" is that everything is relocated. The initial install is done to the original configured prefix.
20:12 wolverian sorry for the horrendous paste.
20:13 wolverian so it _is_ a placeholder
20:14 Infinoid riight.  so we're trying to use the bare value and it isn't working, because they are smarter than we are
20:14 Infinoid $Config{scriptdirexp} is looking nicer and nicer
20:14 wolverian isn't it nice, though, that they let you peek at the internal value, though? :)
20:14 wolverian s:2nd/, though//
20:15 nopaste "Infinoid" at 75.5.242.149 pasted "scriptdir -> scriptdirexp" (13 lines) at http://nopaste.snit.ch/12546
20:15 Infinoid wolverian: does that reduce your breakage any?
20:16 wolverian Determining whether perldoc is installed...Use of uninitialized value in concatenation (.) or string at config/auto/perldoc.pm line 39.
20:16 wolverian .............................no.
20:17 wolverian even though this prints it fine: perl -MConfig -E'say $Config{scriptdirexp}'
20:18 Infinoid ok, please add scriptdirexp to the list of variables to steal, in config/init/defaults.pm
20:18 Infinoid fortunately it looks like nothing else in parrot uses scriptdir
20:19 wolverian that gets past the perldoc check, yay
20:19 wolverian s,gets,gets Configure.pl,
20:20 wolverian next problem: make (dist)clean leaves behind these: languages/perl6/Makefile languages/perl6/src/utils/Makefile runtime/parrot/include/signal.pasm
20:21 wolverian I'm sure I should just submit these as bugs instead of complaining here, sigh
20:22 Infinoid sorry, I'm not ignoring you, I'm preparing this config tweak for commit
20:24 wolverian no worries
20:25 Infinoid might be interesting to go through %Config looking for other instances of ".../"... that perldelta entry looked an awful lot like it's gonna occur elsewhere
20:25 wolverian just don't want to stop discussion here with these issues
20:25 Infinoid try: make realclean
20:26 Infinoid hmm, that doesn't appear to remove languages/perl6/Makefile either.  oops
20:26 * Infinoid crosses his fingers and hopes he didn't just break older versions of perl
20:26 nopaste "wolverian" at 80.221.43.65 pasted ".../ in Config.pm" (16 lines) at http://nopaste.snit.ch/12547
20:28 Infinoid thanks
20:28 wolverian you're welcome
20:28 Infinoid looks like scriptdir was the only path-related variable we were reading in config/init/defaults.pm, so we might get lucky and not care about the rest
20:30 wolverian should make succeed even though the svn revision check failed?
20:30 wolverian because, it doesn't. :)
20:30 wolverian "src/oo.c:25:27: error: pmc/pmc_class.h: No such file or directory"
20:30 svnbotl r26513 | infinoid++ | trunk:
20:30 svnbotl : [config] perldoc check should use $Config{scriptdirexp}, not $Config{scriptdir}.
20:30 svnbotl : The "scriptdir" value from p5 is sometimes interpreted in strange ways, but
20:30 svnbotl : the "scriptdirexp" value is expanded at compile-time, so it's guaranteed to be
20:30 svnbotl : sane.
20:30 Infinoid msg kid51 please take a look at r26513 for me... It Works For Me, but I'm hoping I didn't break older versions of perl, and I'm hoping we won't run into this issue anywhere else.
20:31 wolverian hmm. make -j1 seems to fare better
20:31 * Infinoid stares at the lack of purl
20:31 Infinoid we are not make -j-safe, and I would love to fix that
20:31 wolverian ah, that's it, then. thanks.
20:33 wolverian make fails building revision.c, calling git-svn
20:34 wolverian which obviously doesn't work if it's not a git-svn clone..
20:34 Infinoid yep, that makes sense
20:34 Infinoid is the problem that you don't have git-svn installed, or that your git checkout doesn't have git-svn markings?
20:35 wolverian the latter. I just cloned from the repo I linked to earlier, since it's by far faster than running git-svn.
20:35 wolverian (if I want history, anyway)
20:35 Infinoid trying it here...
20:36 wolverian that is, this: http://repo.or.cz/w/parrot.git
20:37 Infinoid hmm.  I can't clone that
20:37 wolverian the actual git repo is: git://repo.or.cz/parrot.git
20:38 Infinoid oh, I'm a bonehead.  right-o.
20:40 purl joined #parrot
20:51 Infinoid msg kid51 please take a look at r26513 for me... It Works For Me, but I'm hoping I didn't break older versions of perl, and I'm hoping we won't run into this issue anywhere else.
20:51 purl Message for kid51 stored.
20:52 * Infinoid watches git-svn spin taking all the CPU
20:54 wolverian heh, yeah. I wonder what it's trying to do
20:54 wolverian there is no svn stuff in .git/config
20:55 Infinoid according to strace, it is running "git config -l <something>" over and over and over
20:55 Infinoid git-svn spins forever once during Configure.pl, and again during tools/build/revision_c.pl
20:56 wolverian it doesn't actually run forever for me during Configure.pl
20:56 wolverian just for a while :)
20:57 wolverian 30 seconds, perhaps
20:57 Infinoid ok, s/ <something>//
20:57 wolverian longer during revision_c.pl, perhaps forever.
20:57 Infinoid well, maybe I'm just impatient
20:57 * wolverian nods
20:57 Infinoid apparently git-svn thinks something is going to change in the output of "git config -l", if it keeps trying
20:59 wolverian hmm
20:59 * wolverian clones git
21:00 wolverian ouch, 30kB/s
21:00 wolverian this will take a while :)
21:00 wolverian I guess kernel.org needs a fatter pipe...
21:02 * davidfetter wonders whether it needs a phat sack to go with the phat pipe
21:04 Infinoid I think the phat sack is what they use to pay for the phat pipe
21:04 Infinoid but I'm not sure :)
21:05 wolverian this talk of sacks and pipes is making me uncomfortable, though I'm not quite sure why
21:05 * wolverian twiddles thumbs
21:07 * Infinoid discovers git-svn clone -r, and spares poor svn.perl.org
21:07 wolverian har
21:07 wolverian I'm sure it works with a git-svn clone .. or someone would have complained
21:08 Infinoid everyone who ever ran it without -r is probably still waiting and watching
21:08 wolverian haha
21:08 wolverian well, that's why I used the git mirror :]
21:09 wolverian oh, yay, git-svn is still a 4863 line perl script
21:09 wolverian yes, that's the exact linecount
21:09 Infinoid awesome
21:10 Infinoid is it possible to convince the maintainer of git://repo.or.cz/parrot.git to insert some git-svn config values into their repo?
21:10 wolverian probably
21:10 wolverian I don't know him though; his e-mail is on the gitweb page
21:11 Infinoid say what you like about the awesomeness of raw git, but it *is* very useful to us to be able to obtain the svn revision, instead of a git hash
21:11 Infinoid in this case, I guess the only way to do so is to look at the last line of the commit log
21:11 wolverian add a commithook on the svn server that adds the revision to REVISION? ;)
21:19 wolverian what's the git-svn invocation that parrot runs?
21:24 wolverian ack found it for me
21:29 wolverian I can't follow git-svn's logic, at least not without refactoring it into separate files and making some diagrams :)
21:35 wolverian it's clearly a bug in git-svn though
21:36 wolverian hm, it doesn't happen on an empty projet
21:36 wolverian s/projet/project/
21:36 wolverian i.e. git svn log --limit=1 doesn't spin
21:37 wolverian neither on git.git
21:39 wolverian I wonder if it's doing some kind of dumb loop and running git config once for each commit, or something
21:39 wolverian I'll let it run and see if it finishes
21:39 Infinoid could probably just parse the output of "git log -1" instead
21:40 wolverian looks like it
21:41 wolverian it'd be good to know what causes this behaviour and get it fixed in git-svn though
21:41 * wolverian scratches his head and resumes the hunt for the red october
21:41 Infinoid that movie rocks.
21:41 wolverian yes :)
21:41 wolverian aha! it finished!
21:41 Infinoid yeah, git-svn could be fixed, but a more general solution for parrot would also help
21:41 wolverian (git svn log --limit=1 did, that is)
21:42 wolverian I don't see the looping behaviour on the git.git repo
21:42 wolverian what's different about parrot's repo?
22:36 wolverian okay, now that I let make spin a while on the revision.c stuff, I get this: compilers/imcc/main.c:243: error: expected expression before ‘)’ token
22:37 wolverian funnily enough, that line is:  printf(" (r%d)", PARROT_REVISION);
22:37 wolverian :)
22:37 wolverian revision.c ended up with this (nopasting):
22:38 nopaste "wolverian" at 80.221.43.65 pasted "sad revision.c" (35 lines) at http://nopaste.snit.ch/12550
22:38 wolverian I suppose that's not a surprise though.. I'll just wait for the git log fix :)
22:43 skids joined #parrot
22:46 Infinoid working on that now
22:47 wolverian Infinoid++
22:50 Infinoid running git-svn has a side effect of creating .git/svn/ even if it doesn't exist.  which is a shame, because testing for the existence of .git/svn/ would be an easy way to choose whether to use raw git or not
22:51 Infinoid hrm.  "git log -1" works in both cases.  might as well use it in both cases.
22:51 Infinoid Determining Parrot's revision...................​....................r26513.
22:52 Infinoid \o/
22:59 Infinoid does git run on non-unix platforms?  do I have to worry about the portability of checking for the existence of a ".git" directory?
22:59 svnbotl r26514 | infinoid++ | trunk:
22:59 svnbotl : [configure]
22:59 svnbotl : * patch Parrot::Revision to use "git log -1" instead of "git-svn log --limit=1".
22:59 svnbotl :   This fixes the case where the user is building from a (non git-svn) git
22:59 svnbotl :   checkout from git://repo.or.cz/parrot.git - git-svn hangs for long periods of
22:59 svnbotl :   time (and eventually fails) when run on a non-git-svn checkout.
22:59 svnbotl : * wolverian++ for mentioning it.
22:59 svnbotl : * git-svn checkouts still work just fine... this solution covers both git cases.
22:59 svnbotl diff: http://parrotvm.org/svn/parrot/revision/?rev=26514
22:59 wolverian it run-ish on windows with mingw nowadays, soon to be integrated into the mainline code
23:00 Infinoid did they change the name of the .git directory?
23:00 wolverian I don't think so
23:00 Infinoid I want something that always exists for any git checkout
23:00 wolverian that wouldn't make any sense
23:00 Infinoid suppose I could just skip the directory check and rely the return value of git, like the other code in that file does
23:01 wolverian let me test, I happen to be on vista right now
23:01 wolverian (games-- # come on, support linux already)
23:01 Infinoid thanks
23:01 Infinoid as for that, there's always tuxgames
23:05 wolverian it's still .dir
23:05 wolverian er
23:05 wolverian .git
23:06 Infinoid great.  does the patch work?  (I can nopaste a copy, if it helps.)
23:07 wolverian still cloning.. sec
23:07 wolverian oh, wait
23:07 wolverian I suppose I should boot back to ubuntu to test it. :)
23:07 wolverian well, I guess I can test from vista too
23:07 * wolverian is too tired
23:07 Psyche^ joined #parrot
23:08 wolverian of course, windows brings its own interesting features..
23:08 Infinoid wolverian: tomorrow is fine, git-svn doesn't have many users :)
23:08 wolverian s/git-// # in the near future, hopefully ;)
23:09 wolverian meh, I don't have gcc on windows
23:09 wolverian does parrot build with mingw?
23:09 Infinoid yes
23:09 Infinoid strawberry perl has a nice bundle that works fine for me
23:11 wolverian oh, good point
23:12 wolverian the paths aren't set up though
23:12 wolverian ah, there it is
23:13 wolverian eh, I don't know how to use this stuff
23:13 wolverian I'll test in ubuntu tomorrow :)
23:13 wolverian gotta sleep now
23:14 wolverian thanks and cheers
23:16 Limbic_Region joined #parrot
23:27 h0rn left #parrot
23:52 jrt4 joined #parrot

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

Parrot | source cross referenced