Camelia, the Perl 6 bug

IRC log for #parrot, 2010-12-19

Parrot | source cross referenced

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

All times shown according to UTC.

Time Nick Message
00:06 Matt221 joined #parrot
00:06 Matt221 left #parrot
01:02 Kristaba joined #parrot
01:04 dalek parrot: 6acd507 | NotFound++ | / (2 files):
01:04 dalek parrot: fix NameSpece get_pmc_keyed with RSA key, fix a test that was passing for wrong reason, and add one more test
01:04 dalek parrot: review: https://github.com/parrot/parrot/commit/6acd50799d
01:06 whiteknight NotFound++
01:06 whiteknight more testing = more awesome
01:12 Matt221 joined #parrot
01:12 Matt221 left #parrot
01:13 whiteknight incoming
01:13 dalek parrot/embed_api3: 4a2e7af | Whiteknight++ | / (54 files):
01:13 dalek parrot/embed_api3: update to master from embed_api2. Add a new function src/packfile/object_serialization​.c:Parrot_pf_verify_image_string which performs a basic sanity check of an image string before thawing. This image moved from src/global_setup.c where it didn't belong
01:13 dalek parrot/embed_api3: review: https://github.com/parrot/parrot/commit/4a2e7af36b
01:13 whiteknight ...damnit
01:13 whiteknight i thought that was going to be much more impressive
01:18 dalek parrot/embed_api4: 4a2e7af | Whiteknight++ | / (54 files):
01:18 dalek parrot/embed_api4: update to master from embed_api2. Add a new function src/packfile/object_serialization​.c:Parrot_pf_verify_image_string which performs a basic sanity check of an image string before thawing. This image moved from src/global_setup.c where it didn't belong
01:18 dalek parrot/embed_api4: review: https://github.com/parrot/parrot/commit/4a2e7af36b
01:18 dalek parrot/embed_api4: 52192e1 | Whiteknight++ | / (54 files):
01:18 dalek parrot/embed_api4: Merge branch 'embed_api3' into embed_api4
01:18 dalek parrot/embed_api4: review: https://github.com/parrot/parrot/commit/52192e16d5
01:22 whiteknight okay, so updating embed_api to master was not nearly as messy as I thought it would be
01:22 cotto sorry to hear that
01:23 whiteknight yeah, now my whole night is free to work on other crap
01:23 cotto whiteknight, do you have a gci admin bit or is that only dukeleto
01:23 whiteknight what a drag
01:23 whiteknight dukeleto
01:23 whiteknight I was asking for one, but no dice
01:23 cotto Help me dukeleto.  You're my only hope.
01:24 whiteknight what do you need, cotto?
01:24 cotto gci task approved
01:24 whiteknight which task? Why can't you approve it?
01:24 whiteknight oh, the one with the .gitignore?
01:24 cotto yes
01:25 Kristaba whiteknight: Hi, I finally find the time to code...
01:25 whiteknight Kristaba: awesome. What do you want to hack on tonight?
01:25 Kristaba So, before proceeding further, could you look at my function to say me if it seems ok or not?
01:26 whiteknight okay
01:26 Kristaba http://pastebin.com/tf601eEW
01:26 Kristaba It seem to be a very tiny function, no?
01:27 whiteknight Kristaba: Okay, mostly good. I think name can be a Parrot_String, and that makes the function even smaller
01:27 Kristaba Is Parrot_String a alias to STRING?
01:31 whiteknight Kristaba: Parrot_String is STRING*
01:31 Kristaba Ok, thank you ;)
01:32 Kristaba Oh, a last question
01:33 Kristaba If it's a pointer, I need to enclosed it by ARGIN(), isn't it?
01:34 whiteknight you only need ARGIN if you see the *
01:34 whiteknight for Parrot_String, you don't need it
01:34 Kristaba ok
01:34 whiteknight plobsing: ping
01:39 * whiteknight is reading the code in src/packfile/api.c, and is slowly going cross-eyed
01:39 whiteknight the curse words must flow
01:43 whiteknight the fact that all the functions call Parrot_io_eprintf to report errors instead of throwing exceptions is upsetting
01:44 whiteknight pf_register_standard_funcs is stupid, and is a great argument for converting these things to PMCs
01:44 Yuki`N joined #parrot
01:44 Yuki`N I wonder what else there is to do.
01:45 whiteknight the fact that we differentiate between an "initial" packfile and all other packfiles, and that we need PackFile_new_dummy for those situations is retarded
01:45 whiteknight hello Yuki`N, what do you want to do?
01:45 Yuki`N Not quite sure.
01:45 whiteknight We have a few more tasks scheduled, and I can create more if needed
01:45 Yuki`N Maybe some more with the embedding API, or if you have some refactoring/cleanup that you need done.
01:52 kennym left #parrot
02:01 whiteknight Yuki`N: okay, let me take a look
02:02 bluescreen whiteknight what do you mean by submit smolder reports?
02:02 whiteknight actually, dukeleto is the only person who can approve tasks, so nothing I make tonight will be available
02:02 whiteknight bluescreen: "make smoke"
02:03 whiteknight that runs the test suite and posts a report to http://smolder.parrot.org/a​pp/projects/smoke_reports/1
02:03 bluescreen on the trunk ( or master) isn't it?
02:03 bluescreen and is there any tool for submitting those?
02:04 whiteknight bluescreen: yes, on master. you need some Perl prerequisites, but once you have those just type "make smoke" and it does everything for you
02:04 whiteknight try it now. If you don't have everything it will tell you what to install
02:05 bluescreen i can handle perl depedencies... :P
02:05 Yuki`N Pssh, chanops.
02:05 bluescreen but won't claim victory
02:10 Kristaba Strange...
02:10 Kristaba I can't build Parrot (using embed_api2 branch, of course) because GCC return an error "src/embed/pmc.c:186: error: ISO C90 forbids mixed declarations and code"
02:11 Yuki`N I blame whiteknight
02:11 Kristaba This line is a part of Parrot_api_pmc_invoke() function : PMC  * const old_call_obj = Parrot_pcc_get_signature(interp, CURRENT_CONTEXT(interp));
02:11 bluescreen yeah
02:11 bluescreen Kristaba I've a fix
02:11 bluescreen if you want to fix it yourself
02:11 bluescreen just remove the trailing ";" in the EMBED_CALLIN
02:13 Kristaba bluescreen: Thank you, it's a very strange issue O_o
02:14 bluescreen GCC understands a ";" as a line of code therefore any variable declaration before a line of code breaks C90 std
02:14 bluescreen very stupid
02:14 bluescreen probably we should submit a bug to gcc team
02:18 Kristaba And now an other problem with pbc_to_exe...
02:18 Kristaba "PackFile_unpack: This Parrot cannot read bytecode files with version 9.0."
02:19 whiteknight bluescreen: I've updated the embed_api stuff to current master. The new updated branch is embed_api4
02:20 whiteknight Kristaba: make realclean, configure, and make again
02:20 Kristaba Okay, thanks again
02:21 bluescreen is there any easy way to merge my commits to embed_api4?
02:21 bluescreen I've a couple commits with docs there
02:21 bluescreen but I don't know how to merge them easily in git
02:23 whiteknight just commit your changes to embed_api2 for now, we can merge them up later
02:24 bluescreen sure...git is still a big beast for me
02:25 bluescreen i guess I'm getting old
02:25 whiteknight don't worry about it. I don't even know what would be the best way for you to move commits at this point
02:26 whiteknight I should have asked before I updated
02:26 whiteknight I was expecting it to be harder, I was planning on doing a test run first
02:28 bluescreen then i guess dukeleto is the expert here
02:33 whiteknight commit your changes to embed_api2. Then we can merge the new changes into embed_api4
02:33 whiteknight so it's all good
02:35 bluescreen I've put pmc.c and strings.c into the MANIFEST.. just when I thought everything was done!!!!
02:43 dalek tracwiki: v179 | whiteknight++ | WikiStart
02:43 dalek tracwiki: +tasklist page for Packfiles
02:43 dalek tracwiki: http://trac.parrot.org/parrot/wiki/W​ikiStart?version=179&action=diff
02:44 Yuki`N whiteknight, git rebase!
02:44 whiteknight yeah, I cold do that too
02:45 kid51 joined #parrot
02:45 Yuki`N dukeleto is mia, I take it?
02:46 cotto if by mia you mean vacation, yes
02:47 kid51 whiteknight:  IIRC dukeleto is not the only person who can approve tasks.
02:47 cotto kid51, who else can?
02:47 kid51 Someone asked me to approve a task last night and I was able to do it.
02:47 kid51 I think if you signed up to be a mentor, you can.
02:47 kid51 I certainly had no particular connection to the task I approved.
02:48 kid51 The GCI student provided me with a link (melange?) and I clicked thru
02:48 kid51 So, what tasks need approving
02:48 kid51 ?
02:48 cotto http://socghop.appspot.com/gci/tas​k/suggest_task/google/gci2010/parr​ot_perl_foundations/t129270216789
02:51 kid51 Hmm ... where is the Approve button?
02:52 kid51 cotto You are listed as the mentor on this one.
02:52 whiteknight kid51: yes, he's the only one
02:52 whiteknight kid51: we are go to merge that quickcover branch. The sooner the better I think
02:52 cotto I guess dukeleto needs to approve it then.
02:52 whiteknight that way we get plenty of time to test before the release
02:53 cotto +1
02:53 kid51 I thought for certain I had approved a task last night.
02:56 kid51 So, cotto, when you go to that link, you cannot find an Approved button either?
02:56 cotto kid51, right
02:59 bluescreen whiteknight: putting ARGIN, ARGIN_NULLOK to those missing signatures. One question the functions Parrot_api_pmc_set_* ( string, float, int), should the be ARGIN_NULLOK?
02:59 whiteknight bluescreen: if we allow handling a NULL, yes
03:00 whiteknight if they are NULLOK, we should convert NULL to PMCNULL before passing them to VTABLEs
03:03 bluescreen yeah.. but will vtable methods support NULLs ?
03:05 whiteknight probably not. That's why we use PMCNULL
03:05 whiteknight PMCNULL is safe to use, NULL is not
03:05 whiteknight I have to go to bed now. Goodnight
03:05 whiteknight left #parrot
03:06 kid51 cotto:  I guess I was wrong about my having the ability to approve tasks.
03:06 kid51 Is there a student who wants to claim that task?
03:09 Yuki`N They're not made public until they're approved, so there's no way of knowing if anyone wants to claim it.
03:14 Kapace_ Yuki`N: i think he means has a student requested a task like that
03:14 kid51 Yes, this link implies that only the "organization administrator" can approve and publish a task:  http://socghop.appspot.com/document/show​/gci_program/google/gci2010/faqs#status
03:16 dalek tracwiki: v1 | whiteknight++ | PackfileTasklist
03:16 dalek tracwiki: Initial braindump of a first-round cleanup tasklist for this subsystem.
03:16 dalek tracwiki: http://trac.parrot.org/parrot/wiki/Pack​fileTasklist?version=1&action=diff
03:17 cotto whiteknight++
03:18 cotto kid51, no.  I just thought it'd be a proper application of laziness to make it a gci task.  I'm not sure if it was easier than doing it myself but it'll be a fairly simple task.
03:25 Kristaba I'm trying to write an embed api test for my find_method() function but I don't find any defined PMC with a method (not a VTABLE method) to use, and I don't understand how I can add a method in C code trough the api
03:26 kid51 Well, AAMOF, I've been dealing with 'make cover' issues for the last week!
03:26 kid51 (As the next commit will show!)
03:27 Kristaba Can someone help me, or explain me if I'm wrong?
03:29 kid51 I need some git help
03:29 kid51 I said: git merge --no-ff tt1893_quickcover
03:30 kid51 I got a conflict in one file.
03:30 kid51 I edited the file to resolve the conflict.
03:30 kid51 If this were still Subversion, I would say "svn resolved <file>" to clean up the conflict. I would then be ready to commit.
03:30 kid51 But here in git, I get:  fatal: cannot do a partial commit during a merge.
03:31 kid51 What do i do?
03:35 dalek parrot: 425088a | jkeenan++ | / (7 files):
03:35 dalek parrot: Merge branch 'tt1893_quickcover'
03:35 dalek parrot: review: https://github.com/parrot/parrot/commit/425088ab04
03:35 kid51 Hmm, it appears I simply say: git commit
03:37 Yuki`N kid51, well, git add then commit
03:39 kid51 Yuki`N:  Yes, I did git add -- but then the next step had to be git commit, not another try at git merge
03:39 Yuki`N Ah.
03:46 Kristaba Nobody has any idea for my problem?
03:49 kid51 Kristaba:  I suspect whiteknight could answer your question ... but he went to bed 20 minutes before you asked it :-(
03:53 Kristaba kid51: Yes, you're right, and since nobody here can help me I'll go bed too
03:54 Kristaba About 5h a.m. in France, so I think it's a good idea ;)
03:54 dalek parrot: aeb54a2 | jkeenan++ | MANIFEST:
03:54 dalek parrot: Update MANIFEST.
03:54 dalek parrot: review: https://github.com/parrot/parrot/commit/aeb54a206d
03:55 Kristaba Good night Parrot devs
03:55 kid51 Kristaba: You can post your question to parrot-dev and someone will help you tomorrow
03:55 Kristaba left #parrot
04:08 dalek parrot: be7ecc1 | jkeenan++ | .gitignore:
04:08 dalek parrot: Add .gcov, .gcda, .gcno (files generated during make quickcover/cover) to .gitignore.
04:08 dalek parrot: review: https://github.com/parrot/parrot/commit/be7ecc1ac2
04:08 kid51 cotto: I took care of that .gitignore task.
04:10 cognominal joined #parrot
04:22 plobsing joined #parrot
04:35 cotto kid51, ok.
04:36 plobsing ∿∿
04:36 Yuki`N Sine wave what.
04:37 cotto That looks sineful.
04:54 bluescreen thanks kid51++ for keep sending the build reports, hopefully my next commit will fix those
04:58 kid51 left #parrot
05:04 plobsing left #parrot
05:32 rurban_ joined #parrot
05:34 dalek parrot/lorito: 042dcef | cotto++ | CREDITS:
05:34 dalek parrot/lorito: add kapace to CREDITS
05:34 dalek parrot/lorito: review: https://github.com/parrot/parrot/commit/042dcefde7
05:34 dalek parrot: 16cdac2 | cotto++ | .gitignore:
05:34 dalek parrot: add a few more coverage test files to .gitignore
05:34 dalek parrot: review: https://github.com/parrot/parrot/commit/16cdac2dca
05:34 rurban left #parrot
05:35 cotto definitely time to add the current git branch to my bash prompt
05:35 rurban_ is now known as rurban
05:56 gg411 joined #parrot
06:18 dalek parrot/embed_api2: cc0610a | bluescreen10++ | / (17 files):
06:18 dalek parrot/embed_api2: Fixed codigstd tests
06:18 dalek parrot/embed_api2: review: https://github.com/parrot/parrot/commit/cc0610ab4e
06:18 dalek parrot/embed_api2: 633c302 | bluescreen10++ | / (4 files):
06:18 dalek parrot/embed_api2: Merged with remote
06:18 dalek parrot/embed_api2: review: https://github.com/parrot/parrot/commit/633c302516
06:21 dd070 joined #parrot
06:22 dd070 hey guys
06:23 nwellnhof left #parrot
06:24 redicaps left #parrot
06:36 gg411 left #parrot
06:39 Kapace cotto, just wondering what you mean by "add to your bash prompt"...
06:44 cotto cotto@feather:/usr/src/parrot/parrot-git-master\ @master 1 $
07:14 cotto melange--
07:14 cotto ActionNeeded does not mean "you don't actually need to do anything"
07:15 cotto not even if you're at Google
07:21 Zaur joined #parrot
07:33 Kapace 33
07:40 Yuki`N left #parrot
08:18 fperrad joined #parrot
09:01 theory left #parrot
09:01 PacoLinux left #parrot
09:29 rfw left #parrot
09:37 PacoLinux_ joined #parrot
09:37 PacoLinux_ is now known as PacoLinux
10:03 Zaur left #parrot
10:12 dd070 left #parrot
11:14 kennym joined #parrot
12:47 whiteknight joined #parrot
12:50 whiteknight good morning, #parrot
12:57 cognominal left #parrot
13:10 kj joined #parrot
13:13 dalek parrot/embed_api4: cc0610a | bluescreen10++ | / (17 files):
13:13 dalek parrot/embed_api4: Fixed codigstd tests
13:13 dalek parrot/embed_api4: review: https://github.com/parrot/parrot/commit/cc0610ab4e
13:13 dalek parrot/embed_api4: 633c302 | bluescreen10++ | / (4 files):
13:13 dalek parrot/embed_api4: Merged with remote
13:13 dalek parrot/embed_api4: review: https://github.com/parrot/parrot/commit/633c302516
13:13 dalek parrot/embed_api4: 8968f2f | Whiteknight++ | / (17 files):
13:13 dalek parrot/embed_api4: fix MANIFEST conflict
13:14 dalek parrot/embed_api4: review: https://github.com/parrot/parrot/commit/8968f2fa58
13:18 Zaur joined #parrot
13:30 cognominal joined #parrot
13:30 kid51 joined #parrot
13:32 rurban_ joined #parrot
13:33 kid51 good morning #parrot
13:34 rurban left #parrot
13:34 rurban_ is now known as rurban
13:35 dalek parrot/embed_api4: 4bdf6fa | Whiteknight++ | src/packfile/object_serialization.c:
13:35 dalek parrot/embed_api4: add ASSERT_ARGS to Parrot_pf_verify_image_string
13:35 dalek parrot/embed_api4: review: https://github.com/parrot/parrot/commit/4bdf6fa340
13:36 kid51 whiteknight: After you left channel last night, someone had a question I could not answer but I think you could
13:37 tadzik kid51: ragnarok is the end of the world in vikings' mythology
13:38 kid51 tadzik: It's amazing that I got this far in life without knowing that ;-)
13:38 kid51 How is it different from gotterdamerung?
13:38 tadzik kid51: never heard of it
13:39 tadzik The title is a translation into German of the Old Norse phrase Ragnarök
13:39 tadzik there we go
13:39 kid51 http://en.wikipedia.org/wik​i/G%C3%B6tterd%C3%A4mmerung
13:40 tadzik looks like something I'd like to listen too
13:40 tadzik oh, still haven't post my talk review to the ML
13:49 tadzik posted
13:54 kid51 Thanks
13:54 kid51 And now, YAGQ:
13:56 kid51 In Subversion, when I would look at a branch and ask "What did the developer change in this branch from the point where the branch was forked off trunk?", I would first say "svn log . --stop-on-copy", then use the oldest revision number as the starting point for an 'svn diff'.
13:56 kid51 What's the best way of doing that in git?
13:57 kid51 Particularly in the absence of (a) sequential revision numbers and (b) a commit message where the developer clearly indicates he's starting a new branch?
13:58 tadzik hmm. Easy once you know when he started
13:58 kid51 Concrete example:
13:58 kid51 I want to review the nwellnhof/compiler_flags branch.
13:58 tadzik git diff mybranch..master is a part of a problem
13:58 kid51 I first became aware of this branch about Dec 06.
13:58 kid51 So my initial impulse would be to look for a log message around that date.
13:59 tadzik git checkout nwellnhof/compiler_flags && git log?
13:59 kid51 However, upon inspection, I see a commit from Oct 02 with this message:  "[configure] Don't use compiler and linker flags from Perl"
13:59 kid51 tadzik:  That's what I have done.
14:00 tadzik I see
14:00 kid51 I know that, for various reasons, developers like to update their branches with recent changes to master.  (is this what they call rebasing?)
14:00 tadzik a branch in git is just a file with a revision it was started from, so it should be fairly easy to find that out
14:01 kid51 But that adds a lot of noise if I'm looking for changes that are distinct to that branch
14:02 tadzik that's unavoidable I'm afraid
14:09 whiteknight tadzik: I can add your blog to planet Parrot, but i couldn't find an RSS feed that's only for Parrot-related items
14:10 whiteknight tadzik: I can add your main feed, or maybe you can find me a parrot-only feed?
14:11 tadzik whiteknight: let me see, Planet Perl 6 uses a category-only feed too
14:11 Kristaba joined #parrot
14:12 tadzik http://ttjjss.wordpress.com/category/parrot/feed/
14:12 tadzik that'd be it
14:14 tadzik kid51: there is --no-merges for git-log
14:16 whiteknight tadzik: thanks! I couldn't find the link but I figured one existed
14:16 contingencyplan left #parrot
14:17 Kristaba whiteknight: Hey, I need some help again
14:17 whiteknight Kristaba: sure. What do you need?
14:17 whiteknight I'm always happy to help
14:17 Kristaba I wrote a PIR code to use to test my find_method() function, but I don't understand how to compile and execute a PIR code in C, using the new api
14:18 Kristaba (and I have no idea of test that using only C code, in this case :/)
14:18 whiteknight tadzik: What name do you want the feed listed under, "tadzik"?
14:19 whiteknight Kristaba: oh, okay. That is tricky. Instead of compiling PIR to find a method, you could try to find a built-in method instead
14:21 whiteknight String has a bunch methods. String.is_integer is a good one to play with
14:22 kj left #parrot
14:23 Kristaba Perfect, it's exactly the kind of method I looked for ;)
14:24 whiteknight A test with a PIR method does sound very cool, but I think it's a little too big for a test right now
14:25 Kristaba Yes, I understand, no problem :)
14:25 whiteknight tadzik: Added, I think
14:26 ambs joined #parrot
14:29 tadzik whiteknight: tadzik is ok for me. afk for now
14:29 whiteknight ok
14:30 whiteknight Kristaba: Just let me know when you're ready for a review
14:31 nopaste "kid51" at 192.168.1.3 pasted "git problem: how to read logs to study a branch from its branch point" (26 lines) at http://nopaste.snit.ch/27214
14:36 macroz joined #parrot
14:36 whiteknight kid51: git log origin/master..nwellnhof/compiler_flags
14:36 whiteknight I think
14:38 kid51 whiteknight:  Okay, so that shows me the log of commits which are exclusive to the compiler_flags branch.
14:38 whiteknight yes, isn't that what you wanted?
14:38 kid51 But what I really want is a diff.  The log was only a stepping-stone.
14:39 kid51 Specifically, a diff that includes the changes committed in the oldest commit shown there.
14:41 kid51 If I say:  git diff -r d2c2cc40..      will that *include* the changes in that commit -- or only the changes *since* that commit?
14:44 whiteknight kid51: git diff origin/master..nwellnhof/compiler_flags
14:46 kid51 whiteknight:  That shows me the difference between the heads of the two trees, but what I really want (I think), is a diff where on the left-hand side we have master at the point at which compiler_flags was forked
14:47 whiteknight kid51: Get the SHA of the point where the branch was branched, and use that as the first argument to ..
14:50 dukeleto ~~
14:50 dukeleto kid51: there is something called "git merge-base"
14:51 dukeleto kid51: you probably want that
14:51 dukeleto kid51: but there is also something called ... which is a relative to ..
14:52 kid51 whiteknight:  How do I get that SHA?
14:53 whiteknight kid51: I dont know. I would probably look through the network diagram on github to find it
14:53 whiteknight https://github.com/parrot/parrot/network
14:53 dukeleto kid51: git rev-parse
14:54 whiteknight Kristaba: do you know C#?
14:54 dukeleto kid51: http://book.git-scm.com/4_git_treeishes.html may help a bit
14:55 dukeleto I can't find the docs for ... right now. Frustrating.
14:56 Kristaba whiteknight: No, I never programmed in C# for a lot of reason, why?
14:57 whiteknight Kristaba: because one of the projects I am working on with the embed_api is a C# wrapper for Parrot
14:57 whiteknight if you wanted to work on that, I could make some GCI tasks for i
14:57 whiteknight it
14:59 dukeleto kid51: http://progit.org/book/ch6-1.html
14:59 kid51 dukeleto:  Will look at those in a little while. afk
15:00 dukeleto "The last major range-selection syntax is the triple-dot syntax, which specifies all the commits that are reachable by either of two references but not by both of them."
15:01 Kristaba Oh, thank you, but I think that after this one I'll claim one or two task from Apertium project, but if nobody do this in few days, why not
15:03 whiteknight Kristaba: okay
15:07 s1n left #parrot
15:08 Kristaba But now I'm looking for how to get a PMC signature object from my args >_<'
15:09 Kristaba I looked at pcc.c, but I don't find a lot of information about the sub signature when a PMC is used
15:11 whiteknight Kristaba: You have to specify the PMC signature
15:12 whiteknight for to_int, the signature is "PiI->P"
15:13 Kristaba The signature PMC is the only the string?
15:13 Kristaba But in this case, how to pass arguments and get returns value using Parrot_api_pmc_invoke(Parrot_PMC interp_pmc, Parrot_PMC sub, Parrot_PMC signature) ?
15:13 whiteknight the signature PMC is a CallContext
15:14 whiteknight CallContext VTABLE_set_string_native sets the signature
15:14 whiteknight then you set the arguments, cc[0] = foo, cc[1] = bar
15:14 whiteknight The API doesn't really have a way to get the return value, yet
15:17 whiteknight hmm, give me a minute
15:18 Kristaba Ok, and how to add the invocant object to this CallContext? :/
15:19 whiteknight Kristaba: use String.replace. That method doesn't have a return value to worry about
15:19 whiteknight the signature string is "PiI->P"
15:20 whiteknight the first argument is the invocant, so set that in the CallSignature with Parrot_api_pmc_set_keyed_int(interpmc, 0, string)
15:20 whiteknight actually, the signature string is "PiSS->"
15:20 whiteknight the second argument is the string to find
15:20 whiteknight the third argument is the string to replace
15:21 whiteknight Then you can use Parrot_api_pmc_get_string to get the new value
15:22 Kristaba It's very clear, thank you for these explanations
15:22 whiteknight okay
15:23 whiteknight the API needs too many things, and they all depend on each other
15:26 Kristaba Yes, I guess it's a difficult moment for explain something about the new api to a student
15:31 whiteknight no, the students are doing great. The hard part is making tests when we don't have all the functions we need yet
15:31 whiteknight writing functions is easy. Writing tests for them is hard
15:36 Zaur could someone help with building Parrot on windows, i get error when trying run make
15:38 whiteknight Zaur: I can try. I don't have windows here though
15:38 whiteknight what's your problem?
15:39 Zaur Configure.pl successfully finished, after that i run mingw32-make and get error
15:39 whiteknight what error?
15:39 Zaur config/gen/platform/win32/pid.c: In function 'Parrot_getpid':
15:39 Zaur config/gen/platform/win32/pid.c:31:5: warning: null argument where non-null requ
15:39 Zaur ired (argument 1)
15:39 Zaur config/gen/platform/win32/sysmem.c: In function 'Parrot_sysmem_amount':
15:39 Zaur config/gen/platform/win32/sysmem.c:57:5: error: 'MEMORYSTATUSEX' undeclared (fir
15:39 Zaur config/gen/platform/win32/sysmem.c:60:5: warning: implicit declaration of functi
15:39 Zaur on 'GlobalMemoryStatusEx'
15:39 Zaur config/gen/platform/win32/sysmem.c:60:5: warning: nested extern declaration of '
15:39 Zaur GlobalMemoryStatusEx'
15:39 Zaur config/gen/platform/win32/sysmem.c:63:1: warning: control reaches end of non-voi
15:39 Zaur d function
15:39 Zaur mingw32-make: *** [src/platform.o] Error 1
15:40 Psyche^ joined #parrot
15:40 whiteknight hmm...weird
15:40 Patterner left #parrot
15:40 Psyche^ is now known as Patterner
15:42 whiteknight Zaur: what version of windows? What compiler? What version of perl are you using?
15:44 Zaur Windows 7 Ultimate 32 bit, compiler mingw-gcc 4.5.0 perl 5.12.2 (activeperl)
15:46 Kristaba It works \o/
15:47 Kristaba whiteknight: I push my git repo and then I add a pull request on parrot/parrot
15:47 whiteknight Kristaba: I don't think you can do a pull request on a branch
15:47 whiteknight push your changes, and I will pull them when you are ready
15:48 whiteknight Zaur: There are problems using ActivePerl with mingw. I don't know why
15:48 whiteknight if you use ActivePerl, you probably want to use MSVC
15:48 whiteknight the header files and macros change for some reason
15:49 Zaur Whiteknight ok, i will test with msvc
15:50 whiteknight Zaur: I usually build with ActivePerl and MSVC, so I think that should work
15:50 whiteknight Configure.pl takes some settings from Perl for the compiler. So ActivePerl is built with MSVC, so that's what the settings will be
15:51 whiteknight Strawberry perl is built with mingw, so those two work together
15:52 Kristaba whiteknight: https://github.com/Kristaba/​parrot/tree/gci_find_method
15:53 dalek parrot/gci_api_find_method: 63d7ef8 | (L�o Grange)++ | / (3 files):
15:53 whiteknight pulled
15:53 dalek parrot/gci_api_find_method: Add Parrot_api_pmc_find_method() function and improve t/src/embed/pmc.t to test it
15:53 dalek parrot/gci_api_find_method: review: https://github.com/parrot/parrot/commit/63d7ef8d06
15:53 whiteknight thanks
15:54 kid51 left #parrot
15:54 Kristaba Sincerely, writing this kind of test is very interesting, so thanks to you ;)
15:54 whiteknight You're doing a great job with it
15:55 whiteknight I need to write more tasks so you have more interesting things to choose from
15:55 Kristaba Great :)
15:57 whiteknight Kristaba: what kinds of things do you like to do most? I can make tasks for tose
15:57 whiteknight those
16:00 Kristaba a difficult question ^^
16:00 whiteknight okay, I'll try to make a nice variety
16:01 Kristaba Ok, and if I have a great idea of task to do I tell you about
16:04 whiteknight ok
16:04 Zaur Whieteknight , which version of vc should I use?
16:08 whiteknight Zaur: I don't know. I use VisualStudio 2010, but 2005 and 2008 should work too
16:08 whiteknight I don't know about anything older
16:21 whiteknight Kristaba++
16:21 dalek parrot/embed_api4: 63d7ef8 | (L�o Grange)++ | / (3 files):
16:21 dalek parrot/embed_api4: Add Parrot_api_pmc_find_method() function and improve t/src/embed/pmc.t to test it
16:21 dalek parrot/embed_api4: review: https://github.com/parrot/parrot/commit/63d7ef8d06
16:21 dalek parrot/embed_api4: 459fc64 | Whiteknight++ | / (3 files):
16:21 dalek parrot/embed_api4: fix merge problems
16:21 dalek parrot/embed_api4: review: https://github.com/parrot/parrot/commit/459fc64ba4
16:21 dalek parrot/embed_api4: 80975b3 | Whiteknight++ | / (3 files):
16:21 dalek parrot/embed_api4: Parrot_api_pmc_[get|set]_keyed got deleted on accident. Re-add them and tests pass again
16:21 dalek parrot/embed_api4: review: https://github.com/parrot/parrot/commit/80975b33ee
16:25 macroz left #parrot
16:26 macroz joined #parrot
16:26 macroz left #parrot
16:26 macroz joined #parrot
16:41 Matt221 joined #parrot
16:45 plobsing joined #parrot
16:46 Matt221 left #parrot
16:54 Zaur whiteknight now i compile with vc2008 but receive this
16:54 Zaur Creating library libparrot.lib and object libparrot.exp
16:54 Zaur env.obj : error LNK2001: unresolved external symbol __environ
16:54 Zaur libparrot.dll : fatal error LNK1120: 1 unresolved externals
16:54 Zaur NMAKE : fatal error U1077: 'C:\msvs9\VC\BIN\link.EXE' : return code '0x460'
16:54 Zaur Stop.
16:54 nwellnhof joined #parrot
17:00 kid51 joined #parrot
17:01 nwellnhof kid51: have you seen my reply to #1044?
17:11 kid51 nwellnhof:  Thanks.  Would this also have worked? ...
17:11 kid51 git show d2c2cc40f16a4aa5f7dd979808b282fb78664f02^   followed by
17:12 kid51 git diff -r e2ee0dab05c..nwellnhof/compiler_flags
17:13 kid51 It appears that would produce the same diff as your suggestion: git diff master...nwellnhof/compiler_flags
17:15 nwellnhof kid51: It works for now, but as soon as I merge master into nwellnhof/compiler_flags, you will see all the merged commits with your git diff command.
17:16 nwellnhof what's the -r option for, btw?
17:16 kid51 I thought that was needed for 'revision'
17:17 kid51 I guess it's not needed
17:18 kid51 What's special about the 3 dot comparison?
17:18 kid51 ...
17:20 nwellnhof git diff a...b produces a diff from the common ancestor of a and b to b.
17:22 nopaste Someone at 192.168.1.3 pasted "git diff [--options] <commit>...<commit> [--] [<path>...]" (5 lines) at http://nopaste.snit.ch/27215
17:36 theory joined #parrot
17:36 Zaur nwellnhof is it possible to splite rights for writing in branches?
18:01 kid51 left #parrot
18:01 Matt221 joined #parrot
18:06 Matt221 left #parrot
18:07 Zaur left #parrot
18:36 dd070 joined #parrot
18:46 nwellnhof Zaur: github doesn't support that, afaik
18:50 Kulag left #parrot
18:51 Kulag joined #parrot
18:51 bluescreen left #parrot
18:52 bluescreen joined #parrot
19:02 macroz left #parrot
19:05 wolverian hey all. I'm trying to update the mac homebrew parrot recipe to 2.10.1, but I'm getting a problem where parrot_config ldflasg (and some other keys) have a path like "/private/tmp/homebrew-parrot-2.10.1-.." in them. this causes e.g. rakudo to not run, instead dying with a library not found error.
19:05 wolverian any hints how to go about fixing that kind of a thing? I'm a total noob at c and linking and such.
19:15 rfw joined #parrot
19:15 nwellnhof left #parrot
19:23 wolverian okay, the existing parrot 2.9.1 recipe has this bug too, so I'm filing this as a homebrew issue.
19:24 Patterner left #parrot
19:28 hercynium joined #parrot
19:38 Matt221 joined #parrot
19:38 Matt221 left #parrot
19:49 contingencyplan joined #parrot
20:00 dd070 which is fastest way to download parrot ?
20:00 dd070 shoudl i checkout from git and build or there is gzip somewhere
20:05 PacoLinux left #parrot
20:06 jhelwig left #parrot
20:12 Patterner joined #parrot
20:34 dd070 left #parrot
20:37 Matt221 joined #parrot
20:59 whiteknight dd070: git is probably the fastest,
21:00 whiteknight once you have the repo, you can build master, or you can checkout a tag
21:17 Matt221 left #parrot
21:17 nwellnhof joined #parrot
21:32 rurban_ joined #parrot
21:34 rurban left #parrot
21:34 rurban_ is now known as rurban
21:53 fperrad left #parrot
22:00 GeJ Bonjour everyone.
22:11 bacek_at_work joined #parrot
22:13 aloha joined #parrot
22:14 Yuki`N joined #parrot
22:21 ambs left #parrot
22:24 hercynium left #parrot
22:30 Yuki`N did dukeleto get back yet?
22:49 Kristaba cotto, cotto_work: Hey, I thought do a 'quick' documentation task tonight, as this one : http://www.google-melange.com/gci/task/show/goog​le/gci2010/parrot_perl_foundations/t129141853072
22:51 Kristaba If I do this, which branch should I use between embed_api2 and embed_api4?
22:51 TonyC left #parrot
22:51 TonyC joined #parrot
23:04 Kristaba Oh, sorry, the GCI mentor for this one is whiteknight
23:10 jhelwig joined #parrot
23:10 Kristaba God... All API functions are documented >_<'
23:19 Khisanth left #parrot
23:31 Khisanth joined #parrot
23:32 whiteknight Kristaba: yeah, another contributor documented them all
23:33 whiteknight Kristaba: If you want to do that task, go through and make a few improvements to the documentation and I'll approve it
23:34 whiteknight oh cool, aloha is back
23:39 kid51 joined #parrot
23:47 Yuki`N whiteknight, so that list you linked on the trac wiki yesterday is basically what the tasks that await approval are?
23:47 Kristaba whiteknight: I don't see a lot of possible improvements to do ;)
23:49 whiteknight Yuki`N: what list?
23:49 dalek parrot: 61988c6 | jkeenan++ | lib/Parrot/Configure/Trace.pm:
23:49 dalek parrot: Correct POD formatting errors.
23:49 dalek parrot: review: https://github.com/parrot/parrot/commit/61988c65ee
23:49 Kristaba So, have you an other task about the API (such as writing tests), or something that allow me to learn a bit the PIR?
23:50 whiteknight Kristaba: I can make some tasks, but only dukeleto can make them visible to you
23:50 whiteknight I don't know if he is around
23:50 Yuki`N whiteknight, umm
23:51 Kristaba And yesterday you tell me about a C# binding or something like, I think
23:51 Yuki`N http://trac.parrot.org/par​rot/wiki/PackfileTasklist
23:52 Kristaba Ok, no problem, if I have no GCI task tonight I'll hack my projects ;)
23:57 cotto Kristaba, cotto and cotto_work will both notice when you say "cotto" ;)

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

Parrot | source cross referenced