Perl 6 - the future is here, just unevenly distributed

IRC log for #perl6-toolchain, 2017-07-22

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

All times shown according to UTC.

Time Nick Message
00:13 b2gills joined #perl6-toolchain
01:49 ilbot3 joined #perl6-toolchain
01:49 Topic for #perl6-toolchain is now Fire is step THREE! | https://github.com/perl6/toolchain-bikeshed | Channel logs: http://irclog.perlgeek.de/perl6-toolchain/today | useful prior art: https://metacpan.org/pod/CPAN::Meta::Spec
03:28 japhb JSON::Class won't install for me with a fresh build of everything, apparently because it installs JSON::Marshal:ver('0.012') as a dependency, but then doesn't see that as a match when JSON::Class wants JSON::Marshal:ver<0.0.7..*> .
03:29 japhb (I'm using zef at HEAD)
03:31 ugexe japhb: https://github.com/ugexe/zef/issues/157
03:31 ugexe now that I know its showing up i'll try to get around to resolving it
03:32 ugexe but that dependency should be written as :ver<0.0.7+>
03:33 japhb What about rakudo 247fc6499d ?  Does that make a difference to what the fixed :ver should look like?
03:33 ugexe i dont see JSON::Class requiring a specific version of JSON::Marshall
03:34 ugexe oh i see what you're saying, i read it wrong
03:35 ugexe well, maybe not. where is JSON::Marshal:ver<0.0.7..*> at?
03:36 japhb Yeah, just did `zef look JSON::Class; less lib/JSON/Class.pm` -- sure enough, line 77: use JSON::Marshal:ver(v0.0.7..*);
03:36 ugexe well *thats* ok
03:36 japhb So zef is reporting the request as a string, when it was really specified as a range
03:36 japhb And yet it didn't match the version specified by JSON::Marshal.
03:36 ugexe zef doesn't look inside modules, only inside the meta data
03:38 japhb JSON-Class/META6.json only specifies a dependency on JSON::Marshal, with no version at all, so it must be precomp complaining about line 77, no?
03:39 ugexe for me its dying on JSON::Fast:ver<0.4..*>
03:42 japhb ugexe: as a side effect of my rebuild-the-world script, JSON::Fast is already installed when it attempts to install JSON::Class.
03:42 ugexe the only place I can find 0.4..* is in pod
03:42 ugexe https://github.com/jonathanstowe/JSON-Marshal/blob/b57839c688f59be610cbb3cec9f964d663a5b3ce/lib/JSON/Marshal.pm#L62
03:43 ugexe oh nm, thats =end pod :x
03:43 japhb That's not in the Pod.
03:43 japhb Yeah, jonathanstowe likes to put docs at top-of-file
03:43 ugexe that shuld be v0.4+ or 0.4 .. *
03:44 japhb That's going to be a gotcha, methinks
03:46 ugexe its a version literal, so you dont get to start a range with it without a space
03:47 ugexe e.g. v0.4 is not the same as 0.4
03:47 japhb Ah, and the parser tries to grab more '.' with higher precedence than recognizing a range.
03:48 japhb (I would have suspected otherwise, since '..' wouldn't normally occur inside a range, no?
03:48 japhb er, inside a version literal
03:48 ugexe the fact that it worked before is pretty bad though
03:49 ugexe today I  made a PR that changed selectin from Version.new($some-version) ~~ $some-string to a proper Version.new($some-version) ~~ Version.new($some-string)
03:50 japhb Was that 247fc6499d ?
03:50 ugexe yes
03:51 * japhb wonders how many ecosystem modules are going to fail to install because they only accidentally worked before.
03:52 ugexe I guess we'll see. I could revert, but I'm not sure thats a good idea because while it allows it to compile its *not* matching the way anyone would expect
03:53 japhb Can we detect that particular problem in e.g. Zoffix's smoke of the ecosystem?
03:54 ugexe somehow yeah... there is an exception type for unsatisfied dependency
03:55 ugexe and rakudo allows you to give it a JSON exception handler, so that could be specialized for the task
03:56 japhb Ah, interesting
03:58 ugexe m: say Version.new(v0.4..*).perl # for brevity
03:58 camelia rakudo-moar d151d8: OUTPUT: «v0.4.*␤»
03:59 japhb Collapses .. to ., interesting
03:59 ugexe probably splits on . and rejects empty parts
04:00 ugexe m: say Version.new(v0.4..*).parts
04:00 camelia rakudo-moar d151d8: OUTPUT: «(0 4 *)␤»
04:01 japhb Yeah, looks like it
04:19 ugexe sent PRs for both modules
04:46 japhb thx
06:56 domidumont joined #perl6-toolchain
07:03 domidumont joined #perl6-toolchain
11:38 lizmat joined #perl6-toolchain
12:30 lizmat joined #perl6-toolchain
12:31 lizmat_ joined #perl6-toolchain
13:53 lizmat joined #perl6-toolchain
14:09 lizmat joined #perl6-toolchain
14:14 domidumont joined #perl6-toolchain
16:12 lizmat joined #perl6-toolchain
16:53 lizmat joined #perl6-toolchain
18:50 ilbot3 joined #perl6-toolchain
18:50 Topic for #perl6-toolchain is now Fire is step THREE! | https://github.com/perl6/toolchain-bikeshed | Channel logs: http://irclog.perlgeek.de/perl6-toolchain/today | useful prior art: https://metacpan.org/pod/CPAN::Meta::Spec
19:29 lizmat joined #perl6-toolchain
22:30 lizmat joined #perl6-toolchain
23:00 lizmat joined #perl6-toolchain

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