Camelia, the Perl 6 bug

IRC log for #parrot, 2009-04-26

Parrot | source cross referenced

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

All times shown according to UTC.

Time Nick Message
00:00 dalek parrot: r38358 | bacek++ | branches/pmc_pct/compilers/pmc/src (2 files):
00:00 dalek parrot: Handle METHODs in body_part
00:00 dalek parrot: review: https://trac.parrot.org/parrot/changeset/38358/
00:09 AndyA joined #parrot
00:27 eternaleye joined #parrot
00:27 bacek Does IMCC support heredocs?
00:29 bacek Found it
00:55 * bacek just realised that I can implement PMC::* classes in NQP...
00:57 HG` joined #parrot
01:12 Coke Infinoid: (deprecation guide) - see "Deprecation" on the wiki.
01:12 Coke Coke: see later in backscroll where pmichaud mentions this.
02:06 amoc joined #parrot
02:10 dalek parrot: r38359 | bacek++ | branches/pmc_pct/compilers/pmc/t (3 files):
02:10 dalek parrot: Factor out common test function into common.pir
02:10 dalek parrot: review: https://trac.parrot.org/parrot/changeset/38359/
02:13 dalek parrot: r38360 | bacek++ | branches/pmc_pct (2 files):
02:13 dalek parrot: Inherit PMC::Compiler from PCT::HLLCompiler
02:13 dalek parrot: review: https://trac.parrot.org/parrot/changeset/38360/
02:13 dalek parrot: r38361 | bacek++ | branches/pmc_pct/compilers/nqp/src (2 files):
02:13 dalek parrot: [nqp] Add handling of self
02:13 dalek parrot: review: https://trac.parrot.org/parrot/changeset/38361/
02:16 bacek purl: msg pmichaud I added "self" to NQP in pmc_pct branch at r38361. Is it kosher?
02:16 purl Message for pmichaud stored.
02:26 dalek parrot: r38362 | bacek++ | branches/pmc_pct (5 files):
02:26 dalek parrot: Use NQP for implementing PMC::Compiler. First step.
02:26 dalek parrot: review: https://trac.parrot.org/parrot/changeset/38362/
02:26 s1n joined #parrot
02:35 janus joined #parrot
02:37 petdance joined #parrot
02:50 kid51 Infinoid:  ping
02:59 tetragon_ joined #parrot
03:00 dalek parrot: r38363 | jkeenan++ | trunk/src/interp:
03:00 dalek parrot: Set svn:ignore property on src/interp/ directory to ignore *.str files created during build.
03:00 dalek parrot: review: https://trac.parrot.org/parrot/changeset/38363/
03:01 Eevee joined #parrot
04:14 bacek ok. Now I know how not to write PMC compiler in PCT...
04:14 * bacek throwing away 6 hours of work.
05:01 szabgab joined #parrot
05:12 Theory joined #parrot
05:28 Eevee joined #parrot
05:40 Eevee joined #parrot
06:03 cotto bacek, do you have a general plan for writing the rest of the pmc compiler, or do you still need to experiment more?
06:03 dalek parrot: r38364 | allison++ | trunk/tools/dev/mk_language_shell.pl:
06:03 dalek parrot: [tools] Make it possible to run the language shell generator outside the
06:03 dalek parrot: parrot build tree. Change it so the default isn't adding the new
06:03 dalek parrot: language under "languages/..." in Parrot's build directory, since that's
06:04 dalek parrot: not the common case anymore.
06:04 dalek parrot: review: https://trac.parrot.org/parrot/changeset/38364/
06:05 Ademan joined #parrot
06:13 dalek parrot: r38365 | allison++ | trunk (2 files):
06:13 dalek parrot: [tools] Install the language shell generator.
06:13 dalek parrot: review: https://trac.parrot.org/parrot/changeset/38365/
07:47 iblechbot joined #parrot
07:55 flh joined #parrot
07:56 eternaleye joined #parrot
08:13 eternaleye joined #parrot
08:38 masak joined #parrot
09:01 fperrad joined #parrot
09:14 fperrad_ joined #parrot
09:15 bacek cotto: I'm still experimenting with PCT and NQP.
09:16 bacek There are way too many files involved in compiling single PMC...
09:17 HG` joined #parrot
09:20 HG`` joined #parrot
10:06 amoc joined #parrot
10:43 dalek parrot: r38366 | bacek++ | branches/pmc_pct/compilers/pmc/t/03-past.t:
10:43 dalek parrot: Stub for testing PAST
10:43 dalek parrot: review: https://trac.parrot.org/parrot/changeset/38366/
10:43 dalek parrot: r38367 | bacek++ | branches/pmc_pct/compilers/pmc/DOTPLAN.pod:
10:43 dalek parrot: Add implementation plan.
10:43 dalek parrot: review: https://trac.parrot.org/parrot/changeset/38367/
10:44 bacek purl: msg cotto  https://trac.parrot.org/parrot/changeset/38367/ - my current plan for implementing PMC compiler
10:44 purl Message for cotto stored.
10:44 bacek purl: msg cotto suggestions and patches are welcome :)
10:44 purl Message for cotto stored.
10:45 bacek afk #
10:45 HG` joined #parrot
11:26 rdice joined #parrot
11:48 amoc joined #parrot
11:56 cognominal joined #parrot
12:22 iblechbot joined #parrot
12:47 LylePerl When I find typos in the parrot docs, do I submit that as a normal parrot bug/patch?
12:47 moritz LylePerl: yes
12:47 PacoLinux joined #parrot
12:48 LylePerl to parrotbug at parrotcode.org
12:49 moritz no
12:49 moritz to trac
12:49 moritz trac?
12:49 purl somebody said trac was a web-based software project management and bug/issue tracking system emphasizing ease of use and low ceremony. It provides an interface to the Subversion revision control systems, integrated Wiki and convenient report facilities.  http://projects.edgewall.com/trac/ or Python, SQLite and ClearSilver or killing killtrac or a bug-tracking tool or at https://trac.parrot.org/parrot/ or slow or REALLY slow
12:49 moritz newticket?
12:49 purl i think newticket is https://trac.parrot.org/parrot/newticket
12:49 moritz that's the URL
12:49 moritz you need to get an account first
12:52 iblechbot joined #parrot
12:53 LylePerl maybe the page: http://rt.perl.org/perl6/ should be updated with that...
12:54 dalek parrot: r38368 | fperrad++ | trunk/t/codingstd/copyright.t:
12:54 dalek parrot: [codingstd] add check for PIR files
12:54 dalek parrot: review: https://trac.parrot.org/parrot/changeset/38368/
12:55 Infinoid Yes, it should, I think that address will create a ticket in the old RT system we're trying to migrate off of
12:55 LylePerl Is there a special way to do patch files? Like the git ones for Rakudo?
12:56 Infinoid "svn diff > whatever.patch"
12:56 LylePerl Thanks
12:56 LylePerl Infinoid: did you get the msg I left?
12:57 dalek parrot: r38369 | fperrad++ | trunk (151 files):
12:57 dalek parrot: [codingstd] add missing Copyright
12:57 dalek parrot: review: https://trac.parrot.org/parrot/changeset/38369/
12:58 Infinoid I did, thanks.  I'm just not sure why it works for me and not for you
12:58 LylePerl What version of strawberry you on?
12:59 Infinoid 5.10.0 (not sure of the strawberry rev)
13:00 LylePerl Hmm, I've no idea either :(
13:00 Infinoid although, I just looked at your log again and noticed that you're talking about rakudo realclean, not parrot realclean
13:00 LylePerl Yes, the parrot realclean works, it's the Rakudo one that doesn't
13:00 Infinoid I guess I've been misunderstanding you.  I had been testing the parrot realclean
13:01 LylePerl :)
13:02 * Infinoid tests perl6
13:03 kid51 joined #parrot
13:03 Infinoid kid51: pong
13:04 kid51 Hi.  I was trying to reach you last night, but it turned out that I had read a commit log incorrectly and actually needed to speak with someone else.
13:04 dalek parrot: r38370 | jkeenan++ | branches/auto_format_refactor:
13:04 dalek parrot: Creating branch to work on TT 563.
13:04 dalek parrot: review: https://trac.parrot.org/parrot/changeset/38370/
13:04 Infinoid ah, about the src/interp metadata I suppose
13:04 kid51 Yes.  I eventually figured out what needed to be done myself.
13:04 Infinoid Cool.  Happy Sunday.
13:05 kid51 A Sunday which here, at least, will *not* be cool ... it's supposed to go up to 90.
13:05 Infinoid wow.  supposed to get up to a nice and toasty 49F here
13:06 Infinoid LylePerl: Do you think it could be a problem with escaping backslashes in win32 paths?
13:07 Infinoid LylePerl: (it works fine on linux)
13:08 LylePerl Infinoid: I'm not sure. I've been catching up with £work£ since I submitted that bug.
13:08 Infinoid Ah.  I'll see what I can figure out here
13:09 LylePerl Just writing some 'learn parrot' stuff for a new site, then I'll poke about with it some more
13:10 * Infinoid will spend some time ogling Makefiles, but I bet this is just path escaping
13:11 LylePerl It's all done in that perl 5 module isn't it? I guess the problem is in there...
13:12 Infinoid Since parrot works and rakudo works, I think it must be that we're passing the wrong thing to it.
13:13 Infinoid Uh, rakudo *doesn't* work, I mean.
13:13 Infinoid Maybe we should add some smarts to the generation of the $(CLEANUPS) list.  Anyway, I should have more answers later this morning
13:28 LylePerl Ahhh
13:28 LylePerl I think it might be more obvious
13:29 LylePerl The ones that aren't working look like src\pmc\*.dump
13:30 LylePerl If that's treated like a regexp the * is being escaped
13:30 LylePerl So the solution would be to switch the paths (maybe) or use \\
13:32 dalek parrot: r38371 | jkeenan++ | branches/auto_format_refactor (4 files):
13:32 dalek parrot: Move two internal methods for determining min/max macros to auto::sizes.
13:32 dalek parrot: review: https://trac.parrot.org/parrot/changeset/38371/
13:34 Infinoid parrot uses the same path syntax and works fine
13:35 Infinoid when I cutpaste the rm_f line from rakudo's realclean output and run it directly from a command prompt, that works fine too
13:35 Infinoid If it's an escaping or wildcard issue, it isn't visible in the Makefile output.
13:35 Infinoid (And I'm fairly sure it won't be treated as a regexp)
13:36 Infinoid But at least I can reproduce it here
13:42 LylePerl It is escaping. Parrot uses \\* and Rakudo is using \*
13:43 Infinoid really?  I don't see that in the Makefile or in the make output.
13:43 LylePerl yep, adding the extra \ to the makefile fixes it :)
13:43 Infinoid see the CONFIGURE_GENERATED_FILES in parrot's Makefile, for example
13:44 LylePerl It's in the makefile, for example line 2814
13:44 LylePerl t\src\\*.manifest
13:44 LylePerl all of test-clean :
13:45 Infinoid Yeah, that's cute.  It's inconsistent though, GEN_PASM_INCLUDES doesn't have it
13:46 Infinoid realclean deletes CONFIGURE_GENERATED_FILES which contains GEN_PASM_INCLUDES
13:46 LylePerl It's only when the \ proceeds a *
13:46 Infinoid hmm
13:47 LylePerl test-clean : shows it best
13:47 Infinoid You're right, I've added those to the rakudo CLEANUPS variable and now it works
13:48 Infinoid I'm not really sure why, but I suppose that isn't the end of the world.
13:48 LylePerl :)
13:49 LylePerl I'll update the ticket, but I've no idea how to write a patch for the make file...
13:49 Infinoid it'd be patching whatever generates that makefile
13:49 Infinoid I'm working on that part.
13:49 LylePerl saying that, maybe I do
13:50 LylePerl $maketext =~ s{\\\*}{\\\\*}g;
13:51 Infinoid yeah, but I think the second clause needs 5, not 4
13:52 LylePerl Yeah that did it. Sorry, I only just realized the makefile was made by the perl 5 configure - doh
13:52 Infinoid might work either way.
13:52 LylePerl Yahoo! I submit the patch then :
13:53 Infinoid LylePerl++
13:54 dalek parrot: r38372 | jkeenan++ | trunk (6 files):
13:54 dalek parrot: Merge auto_format_refactor branch into trunk.  Move intval/floatval min/max code to auto::sizes.
13:54 dalek parrot: review: https://trac.parrot.org/parrot/changeset/38372/
13:54 LylePerl Thanks again Infinoid, your guideance patience is appreciated as always
13:54 LylePerl I'd been poking around in the perl module for ages if you hadn't pointed me onto the makefile
13:55 Infinoid Heh. That's simple pragmatism; making changes to ExtUtils::Command is a lot harder than making changes to rakudo
13:56 Infinoid and LylePerl++ for persisting
13:56 LylePerl Infinoid++
13:57 dalek parrot: r38373 | jkeenan++ | branches/auto_format_refactor:
13:57 dalek parrot: Branch has been merged into trunk and is no longer needed at HEAD.
13:57 purl i already had it that way, dalek.
13:57 dalek parrot: review: https://trac.parrot.org/parrot/changeset/38373/
14:08 tetragon joined #parrot
14:12 dalek parrot: r38374 | Infinoid++ | trunk/tools/dev/create_language.pl:
14:12 dalek parrot: [tools] RT #65006 fallout: Rakudo required a Configure.pl fix to escape wildcards on win32.
14:12 dalek parrot: Adjust our create_language.pl so newly created languages will get the same fix.
14:12 dalek parrot: review: https://trac.parrot.org/parrot/changeset/38374/
14:13 Infinoid What's the relation between create_language.pl and mk_language_shell.pl?  Neither seems to call the other.
14:14 Infinoid and they both appear to be receiving maintenance, judging from the log
14:19 dalek parrot: r38375 | fperrad++ | trunk (2 files):
14:19 dalek parrot: [codingstd] add missing Copyright
14:19 dalek parrot: quine_ord.pir has a permitted duplicate copyright
14:19 dalek parrot: review: https://trac.parrot.org/parrot/changeset/38375/
14:27 tokuhirom___ joined #parrot
14:43 cotto messages erae
14:48 LylePerl Just trying to get my terminology right...
14:49 LylePerl In PIR, if you have say "env = new 'Env'"
14:49 LylePerl What is 'Env', a package? Module? Class?
14:50 LylePerl Also, if you have ".include 'sysinfo.pasm'", would this mean using the sysinfo package/module/class...?
14:52 cotto LylePerl, you should say new ['Env']
14:52 cotto Env is the name of the PMC type.
14:52 LylePerl cotto: Oops, your right :)
14:53 LylePerl So that line would be using the Env PMC...
14:53 cotto In PIR, .include is just a macro to include the contents of a file.
14:54 cotto afk
14:54 LylePerl So it's just a module?
14:56 eternaleye joined #parrot
15:10 jan joined #parrot
15:17 masak LylePerl: yes, but without the namespace encapsulation, IIRC.
15:18 LylePerl hi masak
15:18 masak LylePerl: think of it more like a textual operation, literally putting the text of the included file in the middle of the including one.
15:18 masak LylePerl: hi :)
15:20 jonathan yes, .include literally does what it says. Act as if you'd textually written the stuff in the other file at that point.
15:21 jonathan ['Env' is the name of a PMC
15:21 jonathan er, ['Env']
15:21 dalek parrot: r38376 | pmichaud++ | trunk/tools/dev/create_language.pl:
15:21 dalek parrot: create_language.pl:  Fix problem in t/harness (TT #580, NotFound++)
15:21 dalek parrot: review: https://trac.parrot.org/parrot/changeset/38376/
15:21 jonathan source in src/pmc/env.pmc
15:22 LylePerl hmmm I'm getting "error:imcc:No such file or directory" when I try to include it. Guess there must be a parrot lib ENV I'm missing...
15:27 Infinoid .include is for pasm, PMCs are built in at the C level
15:27 jonathan Why are you tyring to do a .include?
15:27 Infinoid so if you're looking for an equivalent for "use", you don't need one for this particular feature.
15:28 LylePerl Trying ".include 'sysinfo.pasm'" to read the system information
15:29 LylePerl Just trying to figure out what sysinfo.t is doing different to get it working than if I just trying it with parrot on the cmd
15:30 flh joined #parrot
15:33 gaurav joined #parrot
15:35 Infinoid what's your pir look like?
15:36 Infinoid after running sysinfo.t, t/op/sysinfo_2.pir will be a good example
15:36 LylePerl that's the one I'm trying to run
15:36 Infinoid that fails for you?
15:37 LylePerl from cmd, if I do "parrot t/op/sysinfo_2.pir"
15:37 LylePerl I get that error
15:37 LylePerl But it works if I run perl sysinfo.t
15:38 Infinoid you might need to use backslashes
15:38 LylePerl oops, sorry, I did
15:38 LylePerl The parrot script is running just not finding the include...
15:40 Infinoid on winxp/mingw, I just did: "parrot t/op/sysinfo_2.pir"
15:40 Infinoid it output "4"
15:40 LylePerl what's your ENV?
15:40 Infinoid I don't remember how to dump that from a dos prompt.
15:41 LylePerl ahh
15:41 LylePerl yes that works for me, sorry
15:41 LylePerl I was running it from the actual folder
15:41 LylePerl cd t\op
15:41 Infinoid oh, "set" works.  Nothing parrot-specific in my ENV
15:41 Infinoid ah.
15:41 LylePerl parrot sysinfo_2.pir
15:42 LylePerl So what do I need to be able to run the script without my CWD being parrot/
15:42 LylePerl Is there a parrot version of PERL6LIB?
15:44 Infinoid if you were on unix, I'd say "make install"
15:44 Infinoid I don't know where that would end up for win32 though.
15:45 LylePerl It's going into c:\parrot
15:46 Infinoid you can also use the nice binaries provided by fperrad++, I guess
15:47 Infinoid (http://parrotwin32.wiki.sourceforge.net/)
15:47 LylePerl still getting that error
15:47 LylePerl Doesn't look like make install set any extra ENV
15:48 Infinoid it doesn't on unix, either.  I think the path "/usr/lib/parrot/<versionnumber>" is assumed on our side of the pond
15:48 LylePerl surly there is some kind of @INC for .include?
15:50 Infinoid .include is handled by the function "include_file" in compilers/imcc/imcc.l.  It doesn't look very smart
15:50 Infinoid it calls Parrot_locate_runtime_file() to resolve the path, but I can't seem to find where that is implemented.
15:52 Infinoid ah, src/library.c
15:53 * LylePerl feels his hair get blown back
15:53 LylePerl The c files are a bit over my head at the moment
15:54 LylePerl Hard enough learning parrot and Perl 6
15:54 LylePerl Although I have to admit I quite like parrot...
15:56 Infinoid check out PARROT_RUNTIME in http://docs.parrot.org/parrot/la​test/html/docs/running.pod.html
15:56 shorten Infinoid's url is at http://xrl.us/beqfxo
15:56 Infinoid msg Coke is docs.parrot.org updated for 1.1?
15:56 purl Message for coke stored.
16:04 Infinoid pmichaud: ping
16:05 kid51 joined #parrot
16:10 LylePerl that fixed it thanks :)
16:17 davidfetter joined #parrot
16:41 LylePerl Stupid question: how do i get purl to tell me my messages?
16:41 Infinoid /msg purl messages
16:42 Infinoid messages help?
16:42 purl To leave a message, say in channel or privmsg purl "msg <nickname> MESSAGE FOR J00".  To read your messages, privmsg purl "messages".  To erase your messages, privmsg purl "messages erase". or Delivery Not Guaranteed!
16:43 LylePerl ahhh, It's just your messages from the other day. I read them in the log anyway
16:44 Infinoid ok.  she will keep bugging you until you erase them
16:45 LylePerl privmsg purl messages erase
16:46 LylePerl second time lucky :)
16:47 Infinoid IRC has been around since forever.  the RFC is dated 1993.  and yet it hasn't gotten any easier since :)
16:47 LylePerl Still very new to me. Only learned /me the other day. Quite fun though
16:50 Infinoid it's a very useful tool
16:51 Infinoid speaking of which... looks like bacek has gotten socket support into rakudo, guess it's time to start using rakudo more
16:52 LylePerl I got into this to learn Rakudo/Perl 6, but so far I've ended up learning more parrot lol
16:53 Infinoid yeah, parrot's pretty huge :)
17:11 bsdz joined #parrot
18:14 rdice joined #parrot
18:53 Eevee joined #parrot
19:11 viklund joined #parrot
19:26 seyedx joined #parrot
19:35 msmatsko joined #parrot
20:00 HG` joined #parrot
20:07 eternaleye joined #parrot
20:09 dalek joined #parrot
20:26 HG` joined #parrot
20:35 seyedx joined #parrot
20:56 eternaleye_ joined #parrot
21:12 eternaleye joined #parrot
21:34 braceta joined #parrot
22:11 ilbot2 joined #parrot
22:11 Topic for #parrotis now Parrot 1.1.0 Released | http://parrot.org/ | 332 RTs left
22:40 Limbic_Region joined #parrot
23:04 contingencyplan joined #parrot
23:32 tetragon joined #parrot

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

Parrot | source cross referenced