Perl 6 - the future is here, just unevenly distributed

IRC log for #perl6-toolchain, 2016-04-25

| Channels | #perl6-toolchain index | Today | | Search | Google Search | Plain-Text | summary

All times shown according to UTC.

Time Nick Message
00:35 lizmat joined #perl6-toolchain
01:00 lizmat joined #perl6-toolchain
05:07 cognominal joined #perl6-toolchain
06:09 domidumont joined #perl6-toolchain
06:15 domidumont joined #perl6-toolchain
06:44 nine_ ::Installation v1 format also uses \0 for delimiting
06:49 MadcapJake nine_: any idea why my test code is just freezing? Any way to test? the gdb bt doesn't seem to really tell me what's going on
06:50 MadcapJake perl6-debug-m doesn't get past `>>> LOADING example.pl6`
06:54 nine_ MadcapJake: you can get a Perl 6 backtrace from gdb by entering: call MVM_dump_backtrace(tc)
06:54 MadcapJake sweet thanks for the tip!
06:54 nine_ You may have to "up" a couple of times if MoarVM is currently inside system libraries
06:54 MadcapJake up? like enter that in the gdb prompt?
06:54 nine_ yes
06:55 MadcapJake ok (gdb n00b here)
06:55 nine_ to go up a stack frame until you are in a MoarVM function and tc is visible
06:56 nine_ Also "thread apply all bt" can give you a hint as "bt" only shows the currently active thread
06:58 MadcapJake looks like I'm creating an infinite repo-chain loop :P
06:59 MadcapJake but if that was the case, my say statements would be logged to the console and they aren't
06:59 nine_ use note instead of say
07:00 nine_ Does it precompile in your example?
07:00 MadcapJake nope it doesn't make it that far
07:28 MadcapJake ok hanging solved now more errors to work through! thanks again! Now I *really* need to go to bed :)
07:28 nine_ You're welcome :)
07:51 lizmat joined #perl6-toolchain
11:10 leont_ joined #perl6-toolchain
12:40 perlpilot joined #perl6-toolchain
13:10 ribasushi joined #perl6-toolchain
14:07 leont_ joined #perl6-toolchain
14:34 cognominal joined #perl6-toolchain
14:57 domidumont joined #perl6-toolchain
15:02 MadcapJake Now it dies in short-id2class saying "No CompUnit::Repository known by 'gx'"
15:05 MadcapJake short-id2class tries ::($short-id) but then if it's an available type it takes the short-id and puts it in the internal hash of short-ids.
15:05 MadcapJake So is my short-id method supposed to return the class or a string?
15:09 ugexe you have to hard code the short names right now
15:11 ugexe ah im wrong, im thinking of the repo's name like site/home
15:13 MadcapJake I think short-id2class needs to be exposed as a method
15:13 ugexe you have to call `BEGIN { short-id2class('gx') = 'CompUnit::Repository::GX'; }` I think
15:13 MadcapJake will that work? it's not exported
15:13 ugexe oh yeah, i think i had this problem too
15:13 ugexe it *used* to work
15:14 ugexe but now yeah, you have to copy that subroutine
15:14 MadcapJake what do you mean by that?
15:15 ugexe i meant having your own copy of short-id2class in your CUR, but looking at it now I see that won't work well because of the state
15:15 leont_ joined #perl6-toolchain
15:16 ugexe you could patch it to be an our sub and access via CompUnit::Repostory::short-id2class(...) perhaps
15:16 ugexe https://github.com/rakudo/rakudo/blob/10378163b007267f80e488477d9b6bd305104880/src/core/CompUnit/RepositoryRegistry.pm#L210
15:17 MadcapJake yeah that's probably what needs to be done
16:11 nine_ The plan is that Rakudo automatically loads installed Repository implementations instead of having a hard coded list
16:13 MadcapJake how would that work?
16:14 MadcapJake nine_: also, can short-id2class be changed to an `our` sub until that work is completed?
16:15 ugexe you just have a location (or CUR) specifically for CURs so that they can be discovered instead of the CUR having to register themselves (short-id2class)
16:18 MadcapJake ahh
16:18 MadcapJake ugexe: I tried installing CUR::GX using zef and your install-to argument:
16:18 MadcapJake "zef --install-to="/home/jrusso/github/rakudo/install/share/perl6/site" install /home/jrusso/github/CompUnit-Repository-GX/"
16:18 MadcapJake and I get this error: "Method 'IO' not found for invocant of class 'Any'"
16:18 ugexe --install-to=site
16:19 ugexe try that
16:19 MadcapJake but I want to make sure it uses my rakudo install and not rakudobrew's
16:20 ugexe hmm, maybe --install-to='inst#$path'
16:21 MadcapJake same error
16:21 nine_ MadcapJake: then make sure it uses your rakudo install's perl6
16:22 MadcapJake how?
16:22 ugexe /path/to/perl6/to/use/perl6 /path/to/zef/bin/zef install $path-or-name ?
16:23 ugexe i just tried the custom install location test in xt/ and it passed at least
16:25 ugexe (zef doesn't have to be installed, so you can invoke the `git clone` directory of it with whatever perl6 you want)
16:32 MadcapJake ugexe: thanks. installing failed (got an unboxing error) but using the uninstalled script with rakudo works (fish shell functions makes this relatively painless)
16:43 MadcapJake I submitted a PR with that patch to short-id2class
16:59 Kassandry joined #perl6-toolchain
18:51 hankache joined #perl6-toolchain
22:23 lizmat joined #perl6-toolchain
22:47 MadcapJake ugexe, nine_: I found something that seems to work: https://github.com/MadcapJake/gx-perl6/blob/master/lib/CompUnit/Repository/GX.pm6#L11
22:47 MadcapJake Still not fully working but the errors are becoming more and more promising! :)
23:27 cognominal joined #perl6-toolchain
23:55 cognominal joined #perl6-toolchain

| Channels | #perl6-toolchain index | Today | | Search | Google Search | Plain-Text | summary