Perl 6 - the future is here, just unevenly distributed

IRC log for #perl6-toolchain, 2016-07-20

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

All times shown according to UTC.

Time Nick Message
01:48 ilbot3 joined #perl6-toolchain
01:48 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:15 TimToady joined #perl6-toolchain
06:48 domidumont joined #perl6-toolchain
06:53 domidumont joined #perl6-toolchain
08:51 tadzik joined #perl6-toolchain
14:21 ribasushi joined #perl6-toolchain
14:24 ugexe i think part of the confusion may be the repo format. the files don't need to go into separate directories because everything gets rooted with its entire relative path part against the Distribution (a root), and further rooted against a higher authority of a CUR (and so on). so Distribution + CUR already represent a flattened merkle tree
14:27 ugexe well i guess its not that easy, because resources creates sha1 ids on the name-path and not the original relative path and modules on the name instead of the path as well. but that could be worked around with another lookup table
14:35 ugexe so %files would be a kv of every single file installed (original path => mangled path) and an additional %links that is for name-path => path conversion { "Module::Name" => "lib/Module/Name.pm6", "library/p5helper" => "library/libp5helper.so" }
14:36 ugexe %files{%links<library/p5helper>} # So indirect lookup ends up like this
14:43 ugexe and by creating file-ids by the relative file path only (instead of names) you don't end up with the same file 10 times when your meta provides is like { "TAP" : "lib/TAP.pm6", "TAP::Harness" : "lib/TAP.pm6", "TAP::XXX" : "lib/TAP.pm6" }
14:44 ugexe not sure how to adjust the fast module name lookup sha1 stuff for that though without having to open the meta file
14:55 ugexe ah yes i did a similar implementation before when i cleaned up CURI.install. Putting all the `provides` in %files https://gist.github.com/ugexe/c5a74134164bcaabd756#file-installation-pm6-L23
16:38 domidumont joined #perl6-toolchain
16:55 ribasushi joined #perl6-toolchain
17:30 FROGGS joined #perl6-toolchain
18:11 domidumont joined #perl6-toolchain
22:01 stmuk_ joined #perl6-toolchain
23:13 TimToady joined #perl6-toolchain

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