Camelia, the Perl 6 bug

IRC log for #parrot, 2008-03-28

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 Coke ewilhelm: "this gives us all the command line tools you need, as well as xcode, if you want the gui). it also does if it you don't want the gui. =-)
00:00 Coke wknight8111: don't use find_global. It's deprecated.
00:03 wknight8111 yeah, i've already gotten rid of it. For future reference, what should I use in it's place?
00:03 slightlyoff joined #parrot
00:06 Tene find_no_globals()
00:06 pmichaud get_hll_global
00:06 pmichaud or get_global
00:06 pmichaud $P0 = get_hll_global ['Other';'Namespace'], 'foo'
00:06 pmichaud $P0()
00:06 wknight8111 okay, thanks
00:07 pmichaud get_hll_global reads from a namespace relative to the (hll) root
00:07 pmichaud get_global reads relative to the current namespace
00:07 wknight8111 ok, that makes sense
00:09 lidi20 joined #parrot
00:14 * jonathan finally gets around to scribbling a Rakudo blog post
00:15 pmichaud oooh, ya beat me to it :-)
00:16 Coke seen ambs?
00:16 purl ambs was last seen on #parrot 5 days and 7 hours ago, saying: now I just need to get rid of that complain to the undefined function 'link'  [Mar 22 09:46:55 2008]
00:16 jonathan pmichaud: I'm sure you'll write a more general/comprehensive one.
00:16 Coke also "get_root_global", iIRC.
00:16 jonathan http://use.perl.org/~Jonath​anWorthington/journal/35993
00:17 jonathan Only talked about pairs and subset.
00:17 Psyche^ joined #parrot
00:17 GeJ joined #parrot
00:20 Coke seen chromatic? seen allison?
00:20 Coke seen chromatic?
00:20 purl chromatic was last seen on #parrot 22 hours and 17 minutes ago, saying: Works for me.
00:20 Coke seen seen allison?
00:20 Coke seen allison?
00:20 purl allison was last seen on #parrot 16 days and 4 hours ago, saying: jonathan: yes, it's there now  [Mar 11 12:56:49 2008]
00:20 Coke (argh)
00:20 Tene seen Coke?
00:20 purl Coke was last seen on #parrot 13 seconds ago, saying: (argh)
00:21 Coke *smack*
00:30 * jonathan posts it on rakudo.org too
00:39 Coke ETOOMANYBLOGS
00:39 * Coke needs a blog aggregator that is smart enough to weed out duplicate posts.
00:39 Coke (across feeds)
00:39 * Coke <3's amazon, briefly.
00:42 * lathos reads the meeting minutes, finds out he has work to do.
00:43 Coke *whip crack*
00:43 * Coke offers lathos a free cookie.
00:45 jonathan Yeah, I wish there were one place to post it too.
00:45 jonathan Anyway, sleep...got flight to Uk tomorrow for wedding.
00:47 wknight8111 what would cause a "null PMC in invoke()" error in my compiler before the TOP rule has even started?
00:49 jrt4 joined #parrot
00:49 lathos You spelt something wrong?
00:50 Coke did you do a find_global and try to invoke something without checking to make sure you found it?
00:51 wknight8111 no, i dont use "find_global" anywhere
00:52 wknight8111 I have a debug statement as the very first thing in my TOP rule, and that never triggers.
00:52 wknight8111 so no action rules are getting called
00:55 wknight8111 I should have put this under version control so I could revert back before this
00:55 Coke not specifially find_global, but some kind of lookup.
00:55 Coke "how are you invoking TOP?"
00:56 Coke did you just use the language shell maker?
00:57 wknight8111 yeah exactly. language shell maker. I call 'command_line'(args) without problem, i get to the interactive shell no problem
01:00 wknight8111 when I do a .namespace declaration, does that go till the end of the current file, or does it carry over through .include statements?
01:02 wknight8111 I mean, I assume it doesnt carry over
01:07 wknight8111 okay, i figured it out. a misplaced ".namespace" directive in one of my builtins files
01:14 * Coke smacks whoever asked about the exit exception: it's in the compiler faq! =-)
01:14 Coke wknight8111: it does carry over.
01:15 Coke .include is as if you typed all that in the original file.
01:17 wknight8111 thanks coke, that's helpful information!
01:17 ewilhelm Coke: are there any soc mentors with pugs chops?
01:17 Coke ewilhelm: I don't know.
01:17 Coke ... did larry volunteer?
01:18 ewilhelm grep suggests not
01:18 Coke ack!
01:18 Coke grep?
01:18 purl i think grep is like groups, except not or Globally search for Regular Expression and Print
01:18 Coke no, grep is <reply>ACK!
01:18 purl okay, Coke.
01:18 ewilhelm my people.tsv is the mentors file
01:21 Theory joined #parrot
01:52 drbean joined #parrot
01:55 Ademan_ joined #parrot
01:56 wknight8111 grep
01:56 wknight8111 ...i was expecting the bot to say something...
01:56 Tene purl: grep
01:56 purl ACK!
01:56 Tene grep?
01:56 purl ACK!
01:57 wknight8111 show-off
01:58 Infinoid heh
01:58 Infinoid ack --thbbbbt
01:58 ewilhelm my ack ignores direct filename arguments if it doesn't recognize the extension though
01:58 Tene ewilhelm: update to latest
01:59 Coke svn-latest
01:59 ewilhelm fooey
01:59 Coke or you can wait for 2.0 which is RSN.
02:01 * ewilhelm sets palm reminder for RSN
02:29 cotto_home joined #parrot
03:41 b2gills left #parrot
03:51 dalek r26586 | infinoid++ | trunk:
03:51 dalek : [CREDITS] Why aren't a.k.a.'s more common in CREDITS?  There's only 1.  And now there's 2.
03:51 dalek diff: http://www.parrotvm.org/svn​/parrot/revision?rev=26586
03:51 Infinoid diakopter: \o/
04:03 cotto_home Infinoid, you can add an aka for me as cotto if you want
04:05 cotto_home (and one for chromatic, but I don't think anyone knows his real name)
04:07 cotto_home jk about chromatic
04:16 AndyA joined #parrot
04:49 Infinoid his real name isn't chromatic? :)
04:50 Infinoid cotto_home: I have to admit, that checkin was actually an evil plan of mine to check dalek's new "svnlog" plugin
04:51 cotto_home sneaky
04:51 cotto_home I didn't notice that it wasn't svnbotl.  It'll be nice to have a smarter svn bot.
04:52 Infinoid I just hope it keeps working
05:07 Ademan joined #parrot
07:34 nopaste joined #parrot
07:34 iblechbot joined #parrot
08:32 dalek r26587 | fperrad++ | trunk:
08:32 dalek : [Lua] PAST-pm deprecation
08:32 dalek : - test_lex uses PCT/PAST
08:32 dalek diff: http://www.parrotvm.org/svn​/parrot/revision?rev=26587
09:30 wknight8111 joined #parrot
09:38 skv joined #parrot
10:09 kj joined #parrot
10:15 dalek r26588 | fperrad++ | trunk:
10:15 dalek : [Lua]
10:15 dalek : - fix POD
10:15 dalek diff: http://www.parrotvm.org/svn​/parrot/revision?rev=26588
10:36 TonyC joined #parrot
10:57 ruoso joined #parrot
11:47 dalek joined #parrot
11:56 dalek test of self-flood prevention
11:56 dalek test of self-flood prevention
11:56 dalek test of self-flood prevention
11:56 dalek test of self-flood prevention
11:56 dalek test of self-flood prevention
11:56 dalek test of self-flood prevention
11:56 dalek test of self-flood prevention
11:56 diakopter oh good, it works for separate messages
12:15 Coke oh, dalek still knows the branch. excellent.
12:23 particle joined #parrot
12:31 wknight8111 joined #parrot
12:31 Coke particl1: hio
12:32 particle hey there
12:32 particle harumph, my nicks switched
12:42 pmichaud particl1:  good morning!
12:42 purl morning jackass
12:43 kj purl's not too nice today...
12:43 pmichaud purl often seems to be that way towards my comments... for example
12:43 purl pmichaud: huh?
12:43 pmichaud hello, all
12:43 pmichaud morning, all
12:43 pmichaud oh, I guess they're gone :-)
12:43 pmichaud good.
12:43 * pmichaud spits at purl.
12:45 Infinoid good morning pmichaud :)
12:47 kid51 joined #parrot
12:49 iblechbot joined #parrot
13:03 lidden joined #parrot
13:09 skids joined #parrot
13:33 gryphon joined #parrot
13:41 * Coke wonders if he ever opened a ticket about the smoke.
13:42 kid51 Any smoke in particular?
13:44 Coke go here: http://smoke.parrotcode.org/smoke/ :: look at the last visible text on the screen.
13:45 Coke (the coda is in the wrong spot. removing it breaks the coda test, putting somewhere else might fail the coda test. (not sure.)
13:45 Coke (if so, the coda test should probably be smarter.)
13:45 kid51 Yup, that's been there for a long time.  I have an RT open which calls for revamping the smoke reports, but it didn't include that particular.
13:47 Coke ah. moving it just before the __DATA__ block is fine, codingstd test still passes.
13:48 Coke ... whoops, wrong coda test, moment...
13:51 dalek r26589 | coke++ | trunk:
13:51 dalek : [codingstd]
13:51 dalek : Move the perl coda out of the DATA segment: in there, it's visible
13:51 dalek : on the server in the HTML. This file continues to pass the codingstd test.
13:51 dalek diff: http://www.parrotvm.org/svn​/parrot/revision?rev=26589
13:51 Coke dalek, you on a hair trigger there?
13:52 diakopter dalek polls the rss every 30 seconds
13:53 Coke /Users/coke/research/parrot/t​ools/util/gen_release_info.pl is missing the perl coda, if someone wishes for a quick win.
13:54 diakopter oooo I think dalek is actually throttling its posts
13:54 * diakopter high-fives Infinoid
13:58 Coke hearing no takers, I'll add the coda.
13:58 diakopter Coke: I would've, but I don't have a commitbit.
13:59 diakopter course, I haven't asked for one.
14:02 rdice joined #parrot
14:03 Infinoid looking good so far
14:06 dalek r26590 | coke++ | trunk:
14:06 dalek : [codingstd]
14:06 dalek : remove unused 'use'
14:06 dalek diff: http://www.parrotvm.org/svn​/parrot/revision?rev=26590
14:07 dalek r26591 | coke++ | trunk:
14:07 dalek : [codingstd]
14:07 dalek : - add the perl coda to one file that didn't have it...
14:07 dalek : - ignore the perl6 files in nqp when running critic tests...
14:07 dalek : - perlcritic now passes all tests. Adding back to the default set of
14:07 dalek :   codingstd tests.
14:07 dalek diff: http://www.parrotvm.org/svn​/parrot/revision?rev=26591
14:08 Infinoid Coke++ # was wondering why perlcritic wasn't in that set already
14:08 diakopter one disadvantage of the new system is that it doesn't force SVN::Web to precache the diff page.  So the first (few) person(s) to hit it experience a few-second delay.
14:10 Infinoid you could always fork off a "fetch" process right after writing the log to the channel
14:11 Infinoid or right before, if you wanted to guarantee a clean precache
14:11 Infinoid hmm.  "guarantee" is too strong a word.  but if you don't fork, it could idle out like svnbotl did
14:12 rdice joined #parrot
14:13 pmichaud how long does it take to do the precaching?
14:13 pmichaud maybe fork off a precache, wait five seconds, then write log to chan
14:14 Infinoid probably depends greatly on the size of the diff
14:14 pmichaud we don't need *immediate* notification of changes.  :-)
14:15 Infinoid think I'd prefer to make SVN::Web smarter so that it doesn't generate the same data multiple times in parallel
14:18 dalek r26592 | coke++ | trunk:
14:18 dalek : [codingstd]
14:18 dalek : Only generate diag output about this test if we're actually going
14:18 dalek : to run the test.
14:18 dalek diff: http://www.parrotvm.org/svn​/parrot/revision?rev=26592
14:18 Infinoid if threads::shared stuff is valid in mod_perl, that should be pretty easy to do
14:19 Infinoid diakopter: that should reduce the overhead, right?
14:22 Infinoid hmm.  different problem, but still useful.
14:42 turrepurre joined #parrot
14:55 kj joined #parrot
15:01 Theory joined #parrot
15:04 peeps[work] joined #parrot
15:07 dalek r26593 | coke++ | trunk:
15:07 dalek : [codingstd]
15:07 dalek : Relax one of the not-yet passing perlcritic rules slightly
15:07 dalek diff: http://www.parrotvm.org/svn​/parrot/revision?rev=26593
16:06 Theory joined #parrot
17:04 IllvilJa joined #parrot
17:06 kid51 joined #parrot
17:17 kid51 Coke:  ping
17:17 Coke pong
17:17 kid51 Last night we had a Parrot/Rakudo build fest at Toronto.pm.  I have lots of data to report.
17:18 kid51 Some of it is build/test logs on OSes that we haven't seen before.
17:18 Coke sweet.
17:18 kid51 Some of it is failures on OSes that we see all the time, together with some diagnoses.
17:19 Coke You gonna open some tickets to track progress and/or hit the list?
17:19 kid51 Particularly for tracking by OS, I was thinking of opening them up as RTs rather than simply as posts to the list.
17:19 Coke certainly for the failures, ya.
17:20 Coke (there is an "what os did this happen on" setting as well.
17:20 kid51 I think I'll open up one ticket, intended to be open-ended, which simply says "Secure user feedback on build-install."  Then have other more specific tickets refer to that one.
17:21 kid51 So the successful builds will close right away -- but we'll have a tag for that OS.  The ones that failed will be bug reports.  Okay?
17:28 Coke ... it's verbose, but fine.
17:30 Coke thanks!
17:45 wknight8111 If i'm interested in requesting a commit-bit, I have to fill out a CLA first, correct?
17:46 Coke it's a prereq to getting a bit, not to asking about it. =-)
17:46 Coke I would say anyone that gets accepted into SOC is probably going to get one (and branch to do their work in.)
17:56 dalek r26594 | pmichaud++ | trunk:
17:56 dalek : [tge]:
17:56 dalek : * Convert TGE to use Perl6Grammar and Perl6Regex instead of
17:56 dalek :   deprecated pgc/P6Regex (RT#48028).
17:56 dalek diff: http://www.parrotvm.org/svn​/parrot/revision?rev=26594
18:14 dalek r26595 | pmichaud++ | trunk:
18:14 dalek : [json]:
18:14 dalek : * Convert JSON to use Perl6Regex and Perl6Grammar instead of the
18:14 dalek :   deprecated P6Regex and pgc tools (RT#48028).
18:14 dalek diff: http://www.parrotvm.org/svn​/parrot/revision?rev=26595
18:15 Coke seen js?
18:15 purl I haven't seen 'js', Coke.  There are too many close matches to list.
18:15 Coke seen kj?
18:15 purl kj was last seen on #parrot 5 hours and 32 minutes ago, saying: purl's not too nice today...
18:28 contingencyplan joined #parrot
18:32 chromatic joined #parrot
18:32 chromatic pmichaud, ping
18:35 pmichaud chromatic: pong
18:36 chromatic I'm updating Pheme to use P6Regex; any advice?
18:36 pmichaud the biggest thing is to remember that non-word characters all require quoting
18:36 chromatic Or Perl6Grammar, whichever it is.
18:36 chromatic How about the quote token?
18:36 pmichaud normally it's commas, quotes, and hyphens that get overlooked
18:37 pmichaud checking
18:37 pmichaud it needs to be backwhacked
18:37 pmichaud token quote { \' }
18:37 pmichaud and the semi in token ws
18:37 pmichaud should be quoted or backwhacked
18:38 pmichaud the only other item is that any old-non-capturing rules  <?ws>  become <.ws> in the new syntax
18:38 chromatic Ah, I missed the semicolon.
18:38 chromatic Everything else I had.
18:38 pmichaud I don't see much else in the pheme grammar that needs convering
18:38 chromatic Scheme wins one.
18:39 pmichaud in the makefile, just change pgc.pir to use runtime/parrot/library/PGE/Perl6Grammar.pbc and it'll compile to the Perl6Regex syntax
18:39 chromatic Already done.
18:39 pmichaud that should be about it, then :-)
18:40 chromatic Thanks!
18:40 dalek r26596 | chromatic++ | trunk:
18:40 dalek : [Pheme] Converted grammar from pgc to Perl6Grammar.
18:40 dalek diff: http://www.parrotvm.org/svn​/parrot/revision?rev=26596
18:40 Psyche^ joined #parrot
18:41 contingencyplan joined #parrot
18:45 cognominal is there a parrot libray that does the equivalent of a perl6/unix unlink(). or system() as a cop out?
18:50 dalek r26597 | pmichaud++ | trunk:
18:50 dalek : [nqp]:
18:50 dalek : * Add some useful operators such as ++, --, &lt;, &lt;=, &gt;, &gt;=.
18:50 dalek : * Patch courtesy Klass-Jan Stol &lt;parrotcode@gmail.com&gt;  (kjs++)
18:50 dalek : * (some Pm modifications to patch before applying)
18:50 dalek diff: http://www.parrotvm.org/svn​/parrot/revision?rev=26597
18:53 Infinoid diakopter: might want to remove html escapes from the log message...
18:56 pmichaud s/remove/unescape/
18:56 diakopter Infinoid: I bet that's an option in XML::RAI
18:59 slightlyoff joined #parrot
18:59 diakopter maybe not
19:00 Infinoid I don't see one in XML::RSS::Parser (its backend) either
19:01 diakopter HTML::Entities it is, then :]
19:03 Infinoid you sound like you know what you're doing
19:04 diakopter :P
19:07 dalek joined #parrot
19:12 jonathan Ooh, we haz new SVN bot?
19:12 diakopter it's a teency bit smarter
19:13 wknight8111 I HAS A NEW_SVNBOT  </lolcode>
19:14 wknight8111 actually, i don't have one, but it isn't valid lolcode to say that YOU HAS one
19:15 diakopter well hmm.  why isn't it getting 26598
19:15 Tene Although perhaps it should be!
19:15 Infinoid heh
19:15 Infinoid "YOU HAS" == export
19:15 dalek r26599 | jonathan++ | trunk:
19:15 dalek : [rakudo] Start sticking in some bits of file I/O. open, which returns the new IO object, and has methods .print, .say and .close. prefix:= added too, but looks like Parrot IO iterator maybe isn't done yet. It's a start, anyway.
19:15 dalek diff: http://www.parrotvm.org/svn​/parrot/revision?rev=26599
19:16 jonathan diakopter: It looks like it missed my previous patch.
19:16 jonathan WHERE'S MY KARMA?! :'(
19:16 Infinoid jonathan++
19:16 diakopter jonathan++
19:16 cotto_work jonathan++
19:16 jonathan Phew!
19:16 Infinoid karma plus interest :)
19:16 purl plus interest :) has neutral karma
19:16 Infinoid karma jonathan
19:16 purl jonathan has karma of 444
19:16 wknight8111 karma wknight8111
19:16 purl wknight8111 has karma of 7
19:17 wknight8111 yay! positive integer!
19:17 cotto_work karma cotto
19:17 purl cotto has karma of 1
19:17 cotto_work karma cotto_home
19:17 purl cotto_home has karma of 1
19:17 cotto_work karma cotto_work
19:17 purl cotto_work has neutral karma
19:17 diakopter I must've killed it right after it logged the grabbing of 26598, but before it posted it to the channel
19:17 Infinoid probably.
19:17 purl Really? Probably? Are you Certain it's not certain? Are you sure it's unsure? I think you need to look harder.
19:17 Infinoid purl: you sound like a volunteer
19:17 purl Infinoid: i'm not following you...
19:17 Infinoid purl: then lead!
19:17 purl Infinoid: sorry...
19:18 jonathan That's a palindromically pleasing number.
19:18 jonathan I'd best not check in anything else.
19:18 cotto_work or check in 10 things at once
19:19 Infinoid svnbotl got confused by lots of checkins at once, but dalek won't :)
19:19 jonathan Cool. :-)
19:20 jonathan Ah well, that at least gets the start of some I/O support for Rakudo.
19:20 Infinoid awesome
19:20 Infinoid jonathan++ # to annoy him into making 9 more checkins
19:22 jonathan Well, got a wedding tomorrow and seeing friends tonight and on Sunday, so probably not any this weekend.
19:22 jonathan I'm hackathoning next weekend though. :-)
19:23 jonathan OK, gotta go, happy hacking.
19:23 Infinoid seeya!
19:25 Tene Okay, anyone feel like talking to me about this getattribute thing?
19:26 chromatic What about it?
19:28 Coke pmichaud++ chromatic++ # ripping more stuff out.
19:28 cognominal jonathan++
19:29 Tene Nevermind, that does work as I expected.
19:29 wknight8111 I wish I could hackathon all weekend. real life is the pits
19:32 cognominal how do I generate a .pbc from a .p6 file?  the -o seems ununplemented. And getting a pbc from a pir file generated by  --state=pir gets me "No such called depth"
19:32 Coke cognominal: ../../parrot perl6.pbc --target=pir foo.p6 | ../../parrot -o foo.pbc -
19:32 Coke untested. =-)
19:35 Coke Do we have any IMCC hackers about?
19:36 Coke wondering if we can a patch for 48024 so we can see how close we're getting. Most of the usages of that syntax have been ripped out.
19:39 cognominal ok , one must gives the -o foo.pbc before the  foo.pir. makes sense.
19:40 cotto_work seen allison
19:40 purl allison was last seen on #parrot 17 days ago, saying: jonathan: yes, it's there now  [Mar 11 12:56:49 2008]
19:43 chromatic Coke, I can't find anything specific to IMCC which parses them specially.
19:43 chromatic I think they're macros.
19:44 dalek r26600 | coke++ | trunk:
19:44 dalek : [json]
19:44 dalek : RT #52200
19:44 dalek : Use the more natural rule name 'value' instead of 'thing',
19:44 dalek : now that it works.
19:44 dalek diff: http://www.parrotvm.org/svn​/parrot/revision?rev=26600
19:50 Coke ... Doh.
19:51 Coke that ticket really means "remove the new_p_i" opcode.
19:51 Coke and new_p_i_p, presumably.
19:52 chromatic But something in IMCC parses it.
19:53 Coke the .Integer ? yah, but I can remove the opcodes separately.
19:53 Coke (trying that now.)
19:55 Coke only one thing in the build depended on it (src/pic.c), struck that...
19:58 dalek r26601 | tene++ | trunk:
19:58 dalek : Fix lolcode for functions that don't have parameters.
19:58 dalek diff: http://www.parrotvm.org/svn​/parrot/revision?rev=26601
19:58 Tene Okay, wtf, did I stop working on lolcode before I actually finished what I was trying to do?
19:58 Tene Could what was there have ever actually worked?
19:59 Tene Still doesn't actually work for functions that *do* have parameters.
19:59 Coke pretty sure it did at one point yes. I blame the merge back of the pmc stuff.
19:59 Coke at one point, at least most tests passed...
19:59 Coke but it's probably quicker to fix them to figure out when they broken. :|
20:00 iblechbot joined #parrot
20:01 Coke #   Failed test 'no trailing whitespace'
20:01 Coke #   at t/codingstd/trailing_space.t line 50.
20:01 Coke # Trailing space or tab char found in the following files:
20:01 Coke # /home/coke/sandbox/parrot/langu​ages/perl6/src/builtins/io.pir 110
20:01 nopaste "coke" at 72.228.52.192 pasted "test results of removing new_p_i and new_p_i_p .." (11 lines) at http://nopaste.snit.ch/12590
20:02 chromatic That's not bad at all.
20:04 Tene I wrote a >100-line messy pir routine without any comments?
20:05 * Coke fixes one of those.
20:06 dalek r26602 | coke++ | trunk:
20:06 dalek : new_p_i is [DEPRECATED], remove it.
20:06 dalek :
20:06 dalek diff: http://www.parrotvm.org/svn​/parrot/revision?rev=26602
20:06 Coke dalek, you can ignore trailing blank lines, you know.
20:07 Infinoid if that's our biggest complaint for a plugin that's less than 24 hours old, we're doing well :)
20:07 Coke Infinoid++ # ok, sheesh. =-)
20:08 Coke chromatic: looks like t/pmc/pmc.t can just remove all the tests that use new_p_i, since they're testing behavior of *that* opcode.
20:08 Coke (but I won't commit that just yet.)
20:12 chromatic Yeah, that's about the last one to commit.
20:13 Coke hurm. I assume find_type_i_p is also deprecated by this.
20:14 Coke is that a reasonable assumption?
20:17 chromatic Aha, found it in IMCC.
20:21 chromatic Coke, play with that patch and you'll find some targets for optimizations.
20:22 dalek r26603 | coke++ | trunk:
20:22 dalek : new_p_i is [DEPRECATED], remove it.
20:22 purl i already had it that way, dalek.
20:22 dalek diff: http://www.parrotvm.org/svn​/parrot/revision?rev=26603
20:22 * Infinoid blinks
20:23 * Coke feeds the bot, even with commits.
20:23 cotto_work botsnakc
20:23 cotto_work botsnack
20:23 purl :)
20:23 Coke which patch, the one from a few days ago? yah.
20:23 Coke chromatic: http://www.coleda.com/tmp/remove_new_int.diff
20:25 Coke chromatic: ah, *that* patch. danke.
20:26 chromatic The nice part is that it removes code from IMCC.
20:26 chromatic The sad part is that it doesn't remove more.
20:26 Coke make
20:26 Coke ww
20:27 Coke applying that to my work in progress...
20:27 Tene Okay, the big problem was that I apparently reorganized the grammar a bit in an older commit and never fixed the actions to match.
20:37 Coke chromatic: Excellent, yes, this will let me do some major cleanups.
20:39 sjansen joined #parrot
20:40 dalek r26604 | tene++ | trunk:
20:40 dalek : Fix the last test failure.
20:40 dalek : Add tests for functions that have parameters.
20:40 dalek diff: http://www.parrotvm.org/svn​/parrot/revision?rev=26604
20:40 Tene ... oh, right, I have to do extra things when I add a new file.
20:41 Tene I'll remember that eventually.
20:42 dalek r26605 | tene++ | trunk:
20:42 dalek : Fix MANIFEST.  I'll remember this someday.
20:42 dalek diff: http://www.parrotvm.org/svn​/parrot/revision?rev=26605
20:45 Coke anyone know what the right way to do:     .const .Sub temp = "_default_combiner"
20:46 Coke is, without ".Sub" ?
20:46 Tene pdd19 includes the line:
20:46 Tene .const .Sub $P0 = "_sub_label"
20:47 Coke yes, but .Sub is going away, so... =-)
20:47 Tene '.const .sub foo = "_..."' appears in many places in the tree.
20:48 Tene What does it do now anyway?
20:51 Tene Okay, looks like I've got another hour left before this exam is over, and I've closed the lolcode ticket.
20:51 Coke give that man another ticket!
20:56 Coke ... or did you want a kewpie doll this time?
20:58 Tene Heh.
20:58 Tene obtw, my laptop screen died again.  I can't get it to come back up by plugging in an external monitor anymore.
20:59 dalek r26606 | coke++ | trunk:
20:59 dalek : [codingstd] avoid trailing whitespace
20:59 dalek diff: http://www.parrotvm.org/svn​/parrot/revision?rev=26606
21:02 Tene "coke's laptop repairs"--
21:06 Coke chromatic: there, cleaned up the ones that come first in the build process before the first .const .Sub. =-)
21:06 dalek r26607 | coke++ | trunk:
21:06 dalek : use of type ids (e.g. ".Integer") is [DEPRECATED]
21:06 dalek : Avoid using them in some PIR modules.
21:06 dalek diff: http://www.parrotvm.org/svn​/parrot/revision?rev=26607
21:06 chromatic Does .const 'Sub' not work?
21:09 Coke error:imcc:syntax error, unexpected STRINGC, expecting INTV or FLOATV or STRINGV or PMCV (''Sub'')
21:10 chromatic Hm.
21:10 GeJ_ joined #parrot
21:10 chromatic I'll poke at that shortly.
21:10 turrepurre_ joined #parrot
21:11 Coke sehr gut.
21:12 Coke I am wondering why we're using that, rather than just a runtime find_
21:12 chromatic Maybe it gets optimized into the bytecode.
21:14 szbalint_ joined #parrot
21:14 Psyche^ joined #parrot
21:14 jq- joined #parrot
21:24 daxelrod joined #parrot
21:24 Coke well, if we have to convert them to runtime lookups to remove the .Foo, c'est le vie.
21:24 chromatic I'm not sure what they're doing.
21:24 Coke ok. i think I have all the .Foo stuff in library removed modulo .const .Sub, commit to following pending a test run.... but later. next is compilers/
21:25 ruz joined #parrot
21:29 Coke (i'm using make in the patched version to find the stumbling blocks, copying the edited files over to a pristine parrot, and then testing from there, and just commenting out any use of .const .Sub to get the thing to build in original working copy.)
21:31 chromatic ... nothing but net.
21:31 Coke more of a "does that seem like a reasonable approach." ^_^
21:32 chromatic I'd generate and apply a patch instead of copying files, but six of one...
21:32 japhb joined #parrot
21:33 nopaste joined #parrot
21:34 dalek r26608 | coke++ | trunk:
21:34 dalek : use of type ids (e.g. ".Integer") is [DEPRECATED]
21:34 purl i already had it that way, dalek.
21:34 dalek : Avoid using them in some PIR modules: especially when checking for Undef,
21:34 dalek : better to use the opcode than the explicit type check.
21:34 dalek : (also fix one grammar-o in a comment)
21:34 dalek diff: http://www.parrotvm.org/svn​/parrot/revision?rev=26608
21:34 Coke -> later
21:36 TonyC joined #parrot
21:36 wknight8111 can we use .include (or something similar) in grammar and NQP files?
21:36 chromatic As inline PIR perhaps.
21:36 chromatic I don't believe PGE or NQP support that yet.
21:37 wknight8111 okay, that's what I thought
21:37 wknight8111 thanks
21:44 Tene ... oh, that isdecl() change I made to lolcode is probably wrong.
21:44 Tene I need to remember to test that when I get home.
21:46 MagNET joined #parrot
21:46 Tene Yep, wrong.
21:49 Tene The two easy choices I can see are "empty redeclaration stomps on the old value" and "declaration without assignment is an error"
21:50 Tene I'm unsure how to get the "empty redeclaration doesn't stomp on the old value" behavior currently tested for while still allowing declaration without assignment.
21:56 japhb NCI/extending question: How can C code (called as NCI from PIR, *not* an op) get the current interpreter?  Yes, I could have the PIR code do '$P1 = getinterp; myfunc($P1, real_args ...)' everywhere, but that seems ugly -- especially as getinterp returns a PMC-wrapped interp, so all of the C functions need to unwrap it.
21:56 chromatic Unless you pass the interpreter as an argument, you can't.
21:57 chromatic (without performing evil magic I won't guarantee will work)
21:57 japhb chromatic: er, why not?
21:57 chromatic You'll have to root around in the call stack to find a likely pointer.
21:57 japhb Since the C code is called synchronously from PIR, the interp is guaranteed to be the same (no problem with current interp getting swapped out from under it)
21:58 japhb Is there really no current interp anymore?
21:58 chromatic "the same" as what?
21:58 chromatic Perhaps I'm misunderstanding your question.
21:58 chromatic 1) you have a C function which does not take the interpreter or anything which contains the interpreter as an argument
21:58 chromatic 2) you invoke that C function through NCI
21:58 davidfetter joined #parrot
21:59 chromatic 3) within that function, you want a pointer to the interpreter which invoked that C function through NCI
21:59 chromatic Is that the question?
21:59 japhb yes
21:59 chromatic That's the same question as "How do I use the equivalent of Tcl's upvar in C?"
22:00 japhb Like I said, manually passing the current interpreter from PIR through NCI will certainly work, it's just ugly.
22:00 chromatic It's not uglier than the alternative, sadly.
22:00 japhb ah
22:00 japhb well, OK then, thanks
22:00 chromatic You're welcome!
22:01 chromatic I mean, I can imagine ways to do it, but none of them are robust and some of them are at least very platform specific.
22:20 Infinoid sounds like the sort of thing TLS was invented for, but that doesn't make TLS any less ugly
22:29 chromatic It's just a global variable by any other name.
22:38 Infinoid eh... it's a different kind of scope.  I got to learn all about it when working on some threaded p5 xs stuff, and I still have scars from that.
22:41 Infinoid a C library being called from one parrot interpreter, which has wired a callback into another parrot interpreter, would break gloriously with TLS-stored interpreters
22:50 lathos joined #parrot
22:58 skids joined #parrot
23:12 mmcleric joined #parrot
23:30 sirstan joined #parrot
23:43 pmichaud (.Sub versus find_):   the reason for using const .Sub is because it's the only way to get the address of an :anon subroutine at compile time.  If a subroutine is marked :anon, then you can't do a runtime lookup
23:44 pmichaud s/address/PMC
23:50 tetragon joined #parrot
23:54 Limbic_Region joined #parrot
23:54 Theory joined #parrot
23:59 mmcleric joined #parrot

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

Parrot | source cross referenced