Parrot 3.9.0 "Archaeopteryx" | parrot.org | Log: irclog.perlgeek.de/parrot | #parrotsketch meeting Tuesday 19:30 UTC
Set by moderator on 19 October 2011.
00:41 jsut joined 00:45 zpmorgan joined 01:17 logie joined 01:18 Coke joined 01:25 Coke joined 01:31 Coke joined 01:38 Coke joined 01:45 Coke joined 01:52 Coke joined 02:02 Coke joined 02:42 benabik joined 02:57 logie joined 03:01 zpmorgan joined
dalek kudo/nom: 1937529 | Coke++ | t/spectest.data:
run fudged tests
04:29
04:55 mudkip joined
dalek rrot: 9793a8e | petdance++ | src/pmc/undef.pmc:
const a local var
05:07
05:17 Coke joined
dalek rrot: 9fe5c06 | petdance++ | src/pmc/imageiosize.pmc:
consting local args and function parms
05:24
rrot: 017b6c1 | petdance++ | src/pmc/pointer.pmc:
marked interps as unused
05:40
05:52 logie joined
dalek rrot: ca4268d | petdance++ | src/pmc/default.pmc:
marking unused vars UNUSED()
06:01
rrot: ecbc26a | petdance++ | src/dynpmc/dynlexpad.pmc:
marking unused vars UNUSED()
06:15
rrot: 7805c4f | petdance++ | src/pmc/default.pmc:
re-headerized
06:16 Coke joined
cotto is at the gsoc mentor summit with dukeleto++ getting some research for m0 finished 06:21
06:48 Coke joined 07:20 SHODAN joined 08:02 preflex_ joined 08:49 nbrown joined 09:16 PacoLinux joined 09:36 alvis joined 09:46 mj41_nb joined 09:47 mj41 joined
dalek rrot: 7a6d1d9 | fperrad++ | tools/dev/mk_inno_language.pl:
[win32/inno] rakudo / add some new files
10:43
10:44 fperrad joined 10:54 contingencyplan joined 11:31 SHODAN joined 11:35 whiteknight joined 11:38 Psyche^ joined 12:15 ambs joined 12:36 AzureStone joined 12:50 mj41 joined 13:23 jsut_ joined
dalek kudo: d7f45ff | moritz++ | src/core/Cool.pm:
Cool.eval
13:51
kudo/nom: ca26563 | jnthn++ | src/core/Mu.pm:
Fix various dispatchers.
13:54
14:56 mj41 joined 15:21 bluescreen joined 15:24 Coke joined
dalek p: 5ed5bc0 | jnthn++ | src/PAST/NQP.pir:
Fill out nqp op space a little more.
15:38
kudo/nom: 977b33b | jnthn++ | tools/build/NQP_REVISION:
Bump NQP revision.
15:41
kudo/nom: 7ac6d1e | jnthn++ | src/core/Buf.pm:
Improve performance of Buf creation and listification.
16:02 ligne joined
dalek kudo/nom: fc3d314 | jnthn++ | src/core/Buf.pm:
Eliminate unrequired slurpiness.
16:16
kudo/nom: f7995a5 | jnthn++ | src/core/metaops.pm:
Optimize reduction meta-op by avoiding inferior runloop for boolification - just do what .Bool does anyway.
kudo/nom: f7d3d5d | jnthn++ | src/core/List.pm:
Optimize push a little.
kudo/nom: 81ce668 | jnthn++ | src/core/Buf.pm:
Don't use .push in Buf.list when we already know exactly what index we're going to use.
16:18 ambs joined 16:25 Coke joined 16:55 soh_cah_toa joined
dalek p: d7cec32 | jnthn++ | src/6model/reprs/P6opaque.c:
Ensure we don't try to change the type of a type object.
17:01
p: bbe37f3 | jnthn++ | src/6model/reprs/P6opaque.c:
Ensure that when a type object is cloned, we don't lose the type object flag.
p: 7bc5fcd | jnthn++ | src/ops/nqp.ops:
Add a missing write barrier.
kudo/nom: ecc293a | jnthn++ | src/ (2 files):
Add write barriers in a couple of places they are potentially needed.
17:06
kudo/nom: ee65d38 | jnthn++ | tools/build/NQP_REVISION:
Bump NQP_REVISION to get fix for the mixin to type object segfault issue.
17:20 plobsing joined 17:40 zpmorgan joined
sorear dukeleto: your irc client is going crazy on freenode 18:00
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
winxed: error while loading shared libraries: libparrot.so.3.6.0: cannot open shared object file: No such file or directory
benabik !!
soh_cah_toa btw, i have parrot 3.8.0 installed
no, 3.9.0
benabik Must have an old copy of the fakecutable around.
soh_cah_toa how do i do that? 18:09
benabik no idea?
soh_cah_toa oh wait, you're saying i might have an old fakecutable or i need to use an old fakecutable? 18:10
NotFound soh_cah_toa: What OS are you using? 18:11
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
soh_cah_toa ah, ok
NotFound soh_cah_toa: Use ./winxed to be sure what executable are you running
soh_cah_toa there is no ./winxed after 'build' :\\ 18:15
NotFound soh_cah_toa: build is for installation, use good old 'make' 18:21
soh_cah_toa tries
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
agh, i don't have 3.6.0!!!
benabik :-/
Looks like you still have a lot of the executables around from 3.6 though.
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.
soh_cah_toa winxed is /usr/local/bin/winxed 18:24
hm, that's the old version
b/c i installed new one to ~/bin
that there is probably my problem 18:25
NotFound Delete it, or change your PATH
soh_cah_toa yeah ~/bin is in my $PATH but after /usr/local/bin
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
benabik soh_cah_toa: verydemotivational.memebase.com/201...roblem-11/ 18:27
NotFound soh_cah_toa: if you compile and install, it will overwrite the one provided with parrot.
soh_cah_toa there, it works after removing /usr/local/bin/winxed
it work's w/ distutils but not make however 18:28
whatever, it works. now i can try installing rosella 18:29
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
speaking of winxed, i was thinking of rewriting plumage in winxed once i'm done w/ my featherspec work 18:31
NotFound: can you use inline pir in winxed?
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 :\\
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:33
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
bubaflub, i think
NotFound soh_cah_toa: probably not, I'll be glad to help in any problem you find.
soh_cah_toa sure, thanks
bubaflub soh_cah_toa: yup. github.com/bubaflub/parrot-gmp
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
benabik Unoptimized parrot is a bit slow in general. That's what optimization is for. ;-)
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
benabik bubaflub: Poorly.
NotFound Don't benchmark unoptimized parrot, that may induce some people to delete assertions and other checks, wich will be bad.
bubaflub benabik: yup 18:37
NotFound: ok
soh_cah_toa:
whoops.
soh_cah_toa and thunk.nci too
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
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
(you need to generate those thunks in the event that you don't have libffi installed and the thunks are standard ones)
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
bubaflub soh_cah_toa: ok. lemme know if you need help with that. 18:40
soh_cah_toa: by the way, what do you need NCI for?
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?
soh_cah_toa bubaflub: i suppose 18:42
how do i load a library w/ winxed? i forget. isn't it $load('rosella.pbc') 18:50
NotFound soh_cah_toa: the loadlib builtin 18:52
soh_cah_toa: see for example examples/Mysql.winxed in the winxed directory 18:55
soh_cah_toa NotFound: not for loading a shared library, a parrot library like Rosella 18:56
NotFound soh_cah_toa: ah, then the $load directive or the load_bytecode builtin. 18:58
soh_cah_toa ok, what's the difference?
NotFound $load generates a .load pir directive. 18:59
load_bytecode, the opcode
soh_cah_toa so using $foo generates the .foo directive? 19:00
NotFound No, there are just a few directives.
soh_cah_toa ok
NotFound BTW should be $load 'rosella.pbc'; without parens 19:01
soh_cah_toa yeah
nopaste "soh_cah_toa" at 192.168.1.3 pasted "Winxed loadlib()" (12 lines) at nopaste.snit.ch/89846 19:02
soh_cah_toa what is that ^ about?
NotFound Directives must be out of functions.
soh_cah_toa WARNING: class Rosella.FileSystem.Directory not found at compile time 19:03
NotFound soh_cah_toa: you should declare external classes used to avoid that warning. I think rosella provides a include file for that. 19:04
soh_cah_toa agh, this is so annoying >:( 19:05
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
NotFound I'm sorry, but that warning helps save time with typos. 19:08
19:18 Coke joined
nopaste "soh_cah_toa" at 192.168.1.3 pasted "Rosella is Annoying Me" (14 lines) at nopaste.snit.ch/89847 19:20
soh_cah_toa more annoyance ^
that's what whiteknight.github.com/Rosella/libr...ystem.html said to do 19:21
nopaste "soh_cah_toa" at 192.168.1.3 pasted "More Garbage" (19 lines) at nopaste.snit.ch/89848 19:23
NotFound Don't know what is that 'construct'
soh_cah_toa me neither but it's what that link said to do :\\
using it in nqp is what i really need 19:24
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
benabik++ 19:27
looks like you solved the mystery
benabik The .Directory is because Rosella uses winxed's initializer style. 19:28
soh_cah_toa whatevs... :P
benabik NQP just relies on P6MetaObject providing a .new method which does… stuff. 19:29
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.
And hopefully without the new opcode becoming variable size.
Although I guess you could pass a CallContext into it or something… Anyway, back to proposal writing. 19:32
19:32 Coke joined 19:42 contingencyplan joined
nopaste "soh_cah_toa" at 192.168.1.3 pasted "Rosella::FileSystem::Directory.walk()" (25 lines) at nopaste.snit.ch/89849 19:45
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: nopaste.snit.ch/89849 19:46
aloha OK. I'll deliver the message.
19:46 Coke joined 19:50 nbrown_ joined 19:57 Coke joined
dalek kudo/macros: b1c555f | masak++ | src/Perl6/Actions.pm:
make it possible to return from macros

Kudos to moritz++ for discovering this use case.
20:31
21:04 perlite_ joined 21:14 whiteknight joined
dalek kudo/nom: 18dea93 | jnthn++ | src/ (15 files):
Add an nqp::p6decont and eliminate pir::perl6_decontainerize in the setting in favor of it.
21:25
soh_cah_toa whiteknight: hey 21:38
whiteknight: i need your help using rosella
21:39 logie joined
whiteknight hello soh_cah_toa 23:00
what help do you need?
soh_cah_toa whiteknight: i sent you a msg. it's w/ Rosella::FileSystem::Directory.walk() 23:09
whiteknight soh_cah_toa: okay, there was a bug in Rosella. You're also using it wrong 23:14
let me push the fix, then I'll nopaste the correct incantation
soh_cah_toa ok
dalek sella: 3f78e50 | Whiteknight++ | src/filesystem/Directory.winxed:
Fix for FileSystem.Directory.walk. soh_cah_toa++ for finding it
23:15
nopaste "Whiteknight" at 192.168.1.3 pasted "correct nqp code for soh_cah_toa++" (13 lines) at nopaste.snit.ch/89850
whiteknight done and done
soh_cah_toa too many positional arguments: 3 passed, 1 expected 23:20
23:21 mudkip joined
soh_cah_toa at line 11 which is: my @contents := $dir.walk(); 23:21
whiteknight same thing? 23:22
do you have an installed Rosella?
soh_cah_toa yeah
whiteknight the older version might be conflicting
soh_cah_toa oh yeah. duh. i pulled the changes but didn't install :(
whiteknight nice 23:23
soh_cah_toa yeah ok. that works 23:25
whiteknight nice
I clearly don't have enough tests for that
soh_cah_toa is there a is_dir()-like function? 23:26
i'd like to walk() a tree and perform a different action whether it's a file or directory
whiteknight Rosella::FileSystem::is_dir, I think
is_directory()
soh_cah_toa ok yeah, is_directory()
whiteknight and is_file()
cotto dukeleto++ and I are getting some PaFo business taken care of, thanks to particle++ 23:30
I hope this is the start of good things.
whiteknight I hope so too 23:34
it would be nice to finally have access to that stuff
cotto has anyone managed to reproduce jnthn 23:36
's segfault bug?
whiteknight I haven't tried yet
cotto it worked fine for me, which could be good or bad
(as in no sf) 23:37
whiteknight what platform is he on? 23:55