Camelia, the Perl 6 bug

IRC log for #parrot, 2011-10-23

Parrot | source cross referenced

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

All times shown according to UTC.

Time Nick Message
00:41 jsut joined #parrot
00:45 zpmorgan joined #parrot
01:17 logie joined #parrot
01:18 Coke joined #parrot
01:25 Coke joined #parrot
01:31 Coke joined #parrot
01:38 Coke joined #parrot
01:45 Coke joined #parrot
01:52 Coke joined #parrot
02:02 Coke joined #parrot
02:42 benabik joined #parrot
02:57 logie joined #parrot
03:01 zpmorgan joined #parrot
04:29 dalek rakudo/nom: 1937529 | Coke++ | t/spectest.data:
04:29 dalek rakudo/nom: run fudged tests
04:29 dalek rakudo/nom: review: https://github.com/rakudo/rakudo/commit/1937529da8
04:55 mudkip joined #parrot
05:07 dalek parrot: 9793a8e | petdance++ | src/pmc/undef.pmc:
05:07 dalek parrot: const a local var
05:07 dalek parrot: review: https://github.com/parrot/parrot/commit/9793a8edb8
05:17 Coke joined #parrot
05:24 dalek parrot: 9fe5c06 | petdance++ | src/pmc/imageiosize.pmc:
05:24 dalek parrot: consting local args and function parms
05:24 dalek parrot: review: https://github.com/parrot/parrot/commit/9fe5c06414
05:40 dalek parrot: 017b6c1 | petdance++ | src/pmc/pointer.pmc:
05:40 dalek parrot: marked interps as unused
05:40 dalek parrot: review: https://github.com/parrot/parrot/commit/017b6c17e8
05:52 logie joined #parrot
06:01 dalek parrot: ca4268d | petdance++ | src/pmc/default.pmc:
06:01 dalek parrot: marking unused vars UNUSED()
06:01 dalek parrot: review: https://github.com/parrot/parrot/commit/ca4268db11
06:15 dalek parrot: ecbc26a | petdance++ | src/dynpmc/dynlexpad.pmc:
06:15 dalek parrot: marking unused vars UNUSED()
06:15 dalek parrot: review: https://github.com/parrot/parrot/commit/ecbc26a29c
06:15 dalek parrot: 7805c4f | petdance++ | src/pmc/default.pmc:
06:15 dalek parrot: re-headerized
06:15 dalek parrot: review: https://github.com/parrot/parrot/commit/7805c4f28c
06:16 Coke joined #parrot
06:21 * cotto is at the gsoc mentor summit with dukeleto++ getting some research for m0 finished
06:48 Coke joined #parrot
07:20 SHODAN joined #parrot
08:02 preflex_ joined #parrot
08:49 nbrown joined #parrot
09:16 PacoLinux joined #parrot
09:36 alvis joined #parrot
09:46 mj41_nb joined #parrot
09:47 mj41 joined #parrot
10:43 dalek parrot: 7a6d1d9 | fperrad++ | tools/dev/mk_inno_language.pl:
10:43 dalek parrot: [win32/inno] rakudo / add some new files
10:43 dalek parrot: review: https://github.com/parrot/parrot/commit/7a6d1d9843
10:44 fperrad joined #parrot
10:54 contingencyplan joined #parrot
11:31 SHODAN joined #parrot
11:35 whiteknight joined #parrot
11:38 Psyche^ joined #parrot
12:15 ambs joined #parrot
12:36 AzureStone joined #parrot
12:50 mj41 joined #parrot
13:23 jsut_ joined #parrot
13:51 dalek rakudo: d7f45ff | moritz++ | src/core/Cool.pm:
13:51 dalek rakudo: Cool.eval
13:51 dalek rakudo: review: https://github.com/rakudo/rakudo/commit/d7f45ff8cf
13:54 dalek rakudo/nom: ca26563 | jnthn++ | src/core/Mu.pm:
13:54 dalek rakudo/nom: Fix various dispatchers.
13:54 dalek rakudo/nom: review: https://github.com/rakudo/rakudo/commit/ca26563fe7
14:56 mj41 joined #parrot
15:21 bluescreen joined #parrot
15:24 Coke joined #parrot
15:38 dalek nqp: 5ed5bc0 | jnthn++ | src/PAST/NQP.pir:
15:38 dalek nqp: Fill out nqp op space a little more.
15:38 dalek nqp: review: https://github.com/perl6/nqp/commit/5ed5bc0664
15:41 dalek rakudo/nom: 977b33b | jnthn++ | tools/build/NQP_REVISION:
15:41 dalek rakudo/nom: Bump NQP revision.
15:41 dalek rakudo/nom: review: https://github.com/rakudo/rakudo/commit/977b33b11f
15:41 dalek rakudo/nom: 7ac6d1e | jnthn++ | src/core/Buf.pm:
15:41 dalek rakudo/nom: Improve performance of Buf creation and listification.
15:41 dalek rakudo/nom: review: https://github.com/rakudo/rakudo/commit/7ac6d1ea6d
16:02 ligne joined #parrot
16:16 dalek rakudo/nom: fc3d314 | jnthn++ | src/core/Buf.pm:
16:16 dalek rakudo/nom: Eliminate unrequired slurpiness.
16:16 dalek rakudo/nom: review: https://github.com/rakudo/rakudo/commit/fc3d31425d
16:16 dalek rakudo/nom: f7995a5 | jnthn++ | src/core/metaops.pm:
16:16 dalek rakudo/nom: Optimize reduction meta-op by avoiding inferior runloop for boolification - just do what .Bool does anyway.
16:17 dalek rakudo/nom: review: https://github.com/rakudo/rakudo/commit/f7995a5538
16:17 dalek rakudo/nom: f7d3d5d | jnthn++ | src/core/List.pm:
16:17 dalek rakudo/nom: Optimize push a little.
16:17 dalek rakudo/nom: review: https://github.com/rakudo/rakudo/commit/f7d3d5d3bc
16:17 dalek rakudo/nom: 81ce668 | jnthn++ | src/core/Buf.pm:
16:17 dalek rakudo/nom: Don't use .push in Buf.list when we already know exactly what index we're going to use.
16:17 dalek rakudo/nom: review: https://github.com/rakudo/rakudo/commit/81ce668bea
16:18 ambs joined #parrot
16:25 Coke joined #parrot
16:55 soh_cah_toa joined #parrot
17:01 dalek nqp: d7cec32 | jnthn++ | src/6model/reprs/P6opaque.c:
17:01 dalek nqp: Ensure we don't try to change the type of a type object.
17:01 dalek nqp: review: https://github.com/perl6/nqp/commit/d7cec329ed
17:01 dalek nqp: bbe37f3 | jnthn++ | src/6model/reprs/P6opaque.c:
17:01 dalek nqp: Ensure that when a type object is cloned, we don't lose the type object flag.
17:01 dalek nqp: review: https://github.com/perl6/nqp/commit/bbe37f36a9
17:01 dalek nqp: 7bc5fcd | jnthn++ | src/ops/nqp.ops:
17:01 dalek nqp: Add a missing write barrier.
17:01 dalek nqp: review: https://github.com/perl6/nqp/commit/7bc5fcdaae
17:06 dalek rakudo/nom: ecc293a | jnthn++ | src/ (2 files):
17:06 dalek rakudo/nom: Add write barriers in a couple of places they are potentially needed.
17:06 dalek rakudo/nom: review: https://github.com/rakudo/rakudo/commit/ecc293ae8d
17:06 dalek rakudo/nom: ee65d38 | jnthn++ | tools/build/NQP_REVISION:
17:06 dalek rakudo/nom: Bump NQP_REVISION to get fix for the mixin to type object segfault issue.
17:06 dalek rakudo/nom: review: https://github.com/rakudo/rakudo/commit/ee65d38f3d
17:20 plobsing joined #parrot
17:40 zpmorgan joined #parrot
18:00 sorear dukeleto: your irc  client is going crazy on freenode
18:08 soh_cah_toa i'm having problems installing winxed (from plumage and from source). it builds fine but when i run `parrot setup.pir test` or run winxed on any file i get:
18:08 soh_cah_toa winxed: error while loading shared libraries: libparrot.so.3.6.0: cannot open shared object file: No such file or directory
18:08 benabik !!
18:08 soh_cah_toa btw, i have parrot 3.8.0 installed
18:08 soh_cah_toa no, 3.9.0
18:08 benabik Must have an old copy of the fakecutable around.
18:09 soh_cah_toa how do i do that?
18:09 benabik no idea?
18:10 soh_cah_toa oh wait, you're saying i might have an old fakecutable or i need to use an old fakecutable?
18:11 NotFound soh_cah_toa: What OS are you using?
18:12 soh_cah_toa NotFound: fedora 14
18:12 benabik soh_cah_toa: Saying you must have one around from when you had 3.6 installe.d
18:12 soh_cah_toa ah, ok
18:12 NotFound soh_cah_toa: Use ./winxed to be sure what executable are you running
18:15 soh_cah_toa there is no ./winxed after 'build' :\
18:21 NotFound soh_cah_toa: build is for installation, use good old 'make'
18:21 * soh_cah_toa tries
18:22 soh_cah_toa pbc_to_exe: error while loading shared libraries: libparrot.so.3.6.0: cannot open shared object file: No such file or directory
18:22 soh_cah_toa agh, i don't have 3.6.0!!!
18:22 benabik :-/
18:22 benabik Looks like you still have a lot of the executables around from 3.6 though.
18:23 soh_cah_toa i just `wipe`d them though. i'll double check
18:23 NotFound soh_cah_toa: use 'type winxed' and the shell will tell you what executable is choosing.
18:24 soh_cah_toa winxed is /usr/local/bin/winxed
18:24 soh_cah_toa hm, that's the old version
18:24 soh_cah_toa b/c i installed new one to ~/bin
18:25 soh_cah_toa that there is probably my problem
18:25 NotFound Delete it, or change your PATH
18:25 soh_cah_toa yeah ~/bin is in my $PATH but after /usr/local/bin
18:26 NotFound In order to use a non-installed winxed you must have the winxed directory in the PATH before the directory of the installed parrot.
18:26 soh_cah_toa i have parrot and winxed installed to same directory
18:27 benabik soh_cah_toa: http://verydemotivational.memebase​.com/2011/10/19/demotivational-pos​ters-well-theres-your-problem-11/
18:27 NotFound soh_cah_toa: if you compile and install, it will overwrite the one provided with parrot.
18:27 soh_cah_toa there, it works after removing /usr/local/bin/winxed
18:28 soh_cah_toa it work's w/ distutils but not make however
18:29 soh_cah_toa whatever, it works. now i can try installing rosella
18:30 NotFound soh_cah_toa: you don't need to install winxed to build rosella, the winxed snapshot provided with parrot in enough.
18:30 soh_cah_toa ok
18:31 soh_cah_toa speaking of winxed, i was thinking of rewriting plumage in winxed once i'm done w/ my featherspec work
18:31 soh_cah_toa NotFound: can you use inline pir in winxed?
18:32 NotFound soh_cah_toa: sort of. You can use most pir ops, but there is no way to write chunks of pir like in nqp.
18:32 soh_cah_toa hm :\
18:33 soh_cah_toa well, that might not be a problem b/c the inline pir i've used in plumage is b/c of the limitations in nqp
18:34 soh_cah_toa wasn't there someone who was using nci w/ winxed for their gsoc project? i'd like to see how they used it
18:34 soh_cah_toa bubaflub, i think
18:34 NotFound soh_cah_toa: probably not, I'll be glad to help in any problem you find.
18:34 soh_cah_toa sure, thanks
18:34 bubaflub soh_cah_toa: yup.  https://github.com/bubaflub/parrot-gmp
18:35 bubaflub soh_cah_toa: it might be slower than you'd like - i haven't done thorough benchmarks but for un-optimized Parrot it's a bit slow
18:35 soh_cah_toa bubaflub: great, thanks
18:35 benabik Unoptimized parrot is a bit slow in general.  That's what optimization is for.  ;-)
18:36 soh_cah_toa bubaflub: what's this raw.nci file for? i've never seen that before
18:36 bubaflub benabik: yup.  i'm working on getting some benchmarks together so we can see how everything stacks up against pure C
18:36 benabik bubaflub: Poorly.
18:36 NotFound Don't benchmark unoptimized parrot, that may induce some people to delete assertions and other checks, wich will be bad.
18:37 bubaflub benabik: yup
18:37 bubaflub NotFound: ok
18:37 bubaflub soh_cah_toa:
18:37 bubaflub whoops.
18:37 soh_cah_toa and thunk.nci too
18:37 bubaflub soh_cah_toa: the raw.nci file is a list of function signatures that is used by ncidef2pir.pl to generate PIR bindings for me
18:38 soh_cah_toa hm
18:38 bubaflub soh_cah_toa: thunk.nci is a file that is used by parrot_nci_thunk_gen to generate C code that is then compiled
18:38 bubaflub (you need to generate those thunks in the event that you don't have libffi installed and the thunks are standard ones)
18:39 bubaflub soh_cah_toa: docs/tutorial.md is incomplete but should describe some of these files and the build process
18:39 soh_cah_toa well, rewriting in winxed is a little farther down the road so i'll worry about groking all this nci stuff then
18:40 bubaflub soh_cah_toa: ok.  lemme know if you need help with that.
18:40 bubaflub soh_cah_toa: by the way, what do you need NCI for?
18:41 soh_cah_toa bubaflub: for using libzip as part of the packaging process in plumage
18:41 bubaflub soh_cah_toa: would it be helpful to have general libzip bindings outside of plumage?
18:42 soh_cah_toa bubaflub: i suppose
18:50 soh_cah_toa how do i load a library w/ winxed? i forget. isn't it $load('rosella.pbc')
18:52 NotFound soh_cah_toa: the loadlib builtin
18:55 NotFound soh_cah_toa: see for example examples/Mysql.winxed in the winxed directory
18:56 soh_cah_toa NotFound: not for loading a shared library, a parrot library like Rosella
18:58 NotFound soh_cah_toa: ah, then the $load directive or the load_bytecode builtin.
18:58 soh_cah_toa ok, what's the difference?
18:59 NotFound $load generates a .load pir directive.
18:59 NotFound load_bytecode, the opcode
19:00 soh_cah_toa so using $foo generates the .foo directive?
19:00 NotFound No, there are just a few directives.
19:00 soh_cah_toa ok
19:01 NotFound BTW should be $load 'rosella.pbc'; without parens
19:01 soh_cah_toa yeah
19:02 nopaste "soh_cah_toa" at 192.168.1.3 pasted "Winxed loadlib()" (12 lines) at http://nopaste.snit.ch/89846
19:02 soh_cah_toa what is that ^ about?
19:02 NotFound Directives must be out of functions.
19:03 soh_cah_toa WARNING: class Rosella.FileSystem.Directory not found at compile time
19:04 NotFound soh_cah_toa: you should declare external classes used to avoid that warning. I think rosella provides a include file for that.
19:05 soh_cah_toa agh, this is so annoying >:(
19:06 NotFound Or you can use the parrot-alike new variant: new [ 'Rosella', 'FileSystem', 'Directory' ]
19:06 soh_cah_toa i hate that syntax, i'm gonna try and find that include file
19:08 NotFound I'm sorry, but that warning helps save time with typos.
19:18 Coke joined #parrot
19:20 nopaste "soh_cah_toa" at 192.168.1.3 pasted "Rosella is Annoying Me" (14 lines) at http://nopaste.snit.ch/89847
19:20 soh_cah_toa more annoyance ^
19:21 soh_cah_toa that's what http://whiteknight.github.com/Ro​sella/libraries/filesystem.html said to do
19:23 nopaste "soh_cah_toa" at 192.168.1.3 pasted "More Garbage" (19 lines) at http://nopaste.snit.ch/89848
19:23 NotFound Don't know what is that 'construct'
19:23 soh_cah_toa me neither but it's what that link said to do :\
19:24 soh_cah_toa using it in nqp is what i really need
19:25 benabik soh_cah_toa: There's no magic to NQP's .new  I think you'd have to do $dir := pir::new(Rosella::FileSystem::Directory) and $dir.Directory('foo')
19:25 soh_cah_toa ok
19:27 soh_cah_toa benabik++
19:27 soh_cah_toa looks like you solved the mystery
19:28 benabik The .Directory is because Rosella uses winxed's initializer style.
19:28 soh_cah_toa whatevs... :P
19:29 benabik NQP just relies on P6MetaObject providing a .new method which does… stuff.
19:30 NotFound When enough people gets annoyed by such things, maybe we can start talking about language-agnostic way to create and invoke constructors ;)
19:30 benabik yeah.
19:30 benabik And hopefully without the new opcode becoming variable size.
19:32 benabik Although I guess you could pass a CallContext into it or something…  Anyway, back to proposal writing.
19:32 Coke joined #parrot
19:42 contingencyplan joined #parrot
19:45 nopaste "soh_cah_toa" at 192.168.1.3 pasted "Rosella::FileSystem::Directory.walk()" (25 lines) at http://nopaste.snit.ch/89849
19:46 soh_cah_toa msg whiteknight when you got a second, i'm having some trouble using Rosella::FileSystem in nqp; particularly, the Directory.walk() method. this snippet of code doesn't seem to work: http://nopaste.snit.ch/89849
19:46 aloha OK. I'll deliver the message.
19:46 Coke joined #parrot
19:50 nbrown_ joined #parrot
19:57 Coke joined #parrot
20:31 dalek rakudo/macros: b1c555f | masak++ | src/Perl6/Actions.pm:
20:31 dalek rakudo/macros: make it possible to return from macros
20:31 dalek rakudo/macros:
20:31 dalek rakudo/macros: Kudos to moritz++ for discovering this use case.
20:31 dalek rakudo/macros: review: https://github.com/rakudo/rakudo/commit/b1c555fe89
21:04 perlite_ joined #parrot
21:14 whiteknight joined #parrot
21:25 dalek rakudo/nom: 18dea93 | jnthn++ | src/ (15 files):
21:25 dalek rakudo/nom: Add an nqp::p6decont and eliminate pir::perl6_decontainerize in the setting in favor of it.
21:25 dalek rakudo/nom: review: https://github.com/rakudo/rakudo/commit/18dea93802
21:38 soh_cah_toa whiteknight: hey
21:38 soh_cah_toa whiteknight: i need your help using rosella
21:39 logie joined #parrot
23:00 whiteknight hello soh_cah_toa
23:00 whiteknight what help do you need?
23:09 soh_cah_toa whiteknight: i sent you a msg. it's w/ Rosella::FileSystem::Directory.walk()
23:14 whiteknight soh_cah_toa: okay, there was a bug in Rosella. You're also using it wrong
23:14 whiteknight let me push the fix, then I'll nopaste the correct incantation
23:14 soh_cah_toa ok
23:15 dalek Rosella: 3f78e50 | Whiteknight++ | src/filesystem/Directory.winxed:
23:15 dalek Rosella: Fix for FileSystem.Directory.walk. soh_cah_toa++ for finding it
23:15 dalek Rosella: review: https://github.com/Whiteknig​ht/Rosella/commit/3f78e503e8
23:15 nopaste "Whiteknight" at 192.168.1.3 pasted "correct nqp code for soh_cah_toa++" (13 lines) at http://nopaste.snit.ch/89850
23:15 whiteknight done and done
23:20 soh_cah_toa too many positional arguments: 3 passed, 1 expected
23:21 mudkip joined #parrot
23:21 soh_cah_toa at line 11 which is: my @contents := $dir.walk();
23:22 whiteknight same thing?
23:22 whiteknight do you have an installed Rosella?
23:22 soh_cah_toa yeah
23:22 whiteknight the older version might be conflicting
23:22 soh_cah_toa oh yeah. duh. i pulled the changes but didn't install :(
23:23 whiteknight nice
23:25 soh_cah_toa yeah ok. that works
23:25 whiteknight nice
23:25 whiteknight I clearly don't have enough tests for that
23:26 soh_cah_toa is there a is_dir()-like function?
23:26 soh_cah_toa i'd like to walk() a tree and perform a different action whether it's a file or directory
23:26 whiteknight Rosella::FileSystem::is_dir, I think
23:26 whiteknight is_directory()
23:26 soh_cah_toa ok yeah, is_directory()
23:26 whiteknight and is_file()
23:30 cotto dukeleto++ and I are getting some PaFo business taken care of, thanks to particle++
23:30 cotto I hope this is the start of good things.
23:34 whiteknight I hope so too
23:34 whiteknight it would be nice to finally have access to that stuff
23:36 cotto has anyone managed to reproduce jnthn
23:36 cotto 's segfault bug?
23:36 whiteknight I haven't tried yet
23:36 cotto it worked fine for me, which could be good or bad
23:37 cotto (as in no sf)
23:55 whiteknight what platform is he on?

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

Parrot | source cross referenced