Perl 6 - the future is here, just unevenly distributed

IRC log for #perl6, 2017-04-25

Perl 6 | Reference Documentation | Rakudo

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

All times shown according to UTC.

Time Nick Message
00:00 Cabanossi joined #perl6
00:02 noganex joined #perl6
00:02 imcsk8 joined #perl6
00:11 BenGoldberg joined #perl6
00:16 u-ou $today.coffees[1].drink;
00:20 jdv79_ just got back from a beer trip in nl and be.
00:22 jdv79_ jetlagged
00:46 drrho_ joined #perl6
00:52 aborazmeh joined #perl6
00:52 aborazmeh joined #perl6
00:55 samcv u-ou, $today.coffees.elems
00:55 u-ou usually about 4
01:15 Cabanossi joined #perl6
01:19 AlexDaniel m: say 5...^10
01:19 camelia rakudo-moar f0414c: OUTPUT: «(5 6 7 8 9)␤»
01:19 AlexDaniel m: say 5^...10
01:19 camelia rakudo-moar f0414c: OUTPUT: «5^..0.1␤»
01:19 AlexDaniel hah
01:19 poohman joined #perl6
01:24 kurahaupo_ joined #perl6
01:36 japh_com joined #perl6
02:00 Cabanossi joined #perl6
02:19 cpage_ joined #perl6
02:30 Cabanossi joined #perl6
02:32 samcv ok so what is the best way to compare elements of two arrays
02:32 samcv that are almost identical but may have one or two words in different spots
02:32 samcv well elements, elements are words but. that's beside most of the point
02:33 samcv i simplified way wuold be to just count how many of each element exist, but order is important
02:34 samcv but i mostly want to know at what indexes one has additional elements compare dto the other or if the element is different
02:34 bjz joined #perl6
02:36 BenGoldberg samcv, Find a good string similarity algorithm, then change it to arrays of strings instead of arrays of chars.
02:36 samcv hm
02:36 samcv thanks
02:37 samcv technically i need to compare similarity of two documents by words
02:37 BenGoldberg Looking for plagarism?
02:37 samcv no checking licenses
02:37 samcv and yes i know tools exist for this
02:38 samcv though maybe i'm making a module right now and don't know it ;)
02:39 samcv spdx has a json of all the license text's. so i need to compare the documents not regarding whitespace or case
02:39 samcv but punctuation matters
02:39 geekosaur joined #perl6
02:40 * BenGoldberg wonders whether a plagiarism detector might actually be the right tool for the job ;)
02:41 samcv and people often put in random copyrgiht lines, sometimes at the end sometimes at the end or other text, so would be nice if it could tell you "oh this is the part that differs: 'copyright 2005 some persons name here and associates\nSome random other line here someone could add in"
02:41 samcv maybe
02:41 samcv but... it needs to be the right order of the words
02:41 samcv but that might work maybe. but it's critical that ALL the matching sections have the right order and not new words added in
02:41 BenGoldberg Normalizing whitespace and capitalization is the easiest part.
02:42 samcv whereas that's common in plagarism and they are plagarizing as much if they add one word extra or not
02:42 samcv yes of course
02:42 samcv do we have a plagarism detector module ;)
02:43 samcv BenGoldberg, i may take the approach of making a bag for every license. then taking my unknown license document and finding which bag is closest by the words it contains
02:43 samcv then it has the best match, and then checks it for ordering of words etc
02:44 japh_com is it possible to get a list of all of the classes/modules that are loaded in memory? something akin to ".^methods(:all)" but for all of the classes that are loaded... I'm assuming this has to be done at the NQP or maybe Metamodel level... Working on a debugger ui...
02:44 samcv but it's important to be able to tell the user running the program which lines differ and it's not like "This is not the license of my software project. Copyright foo bar"
02:44 samcv and it detects it as the project being that license. would be not good
02:44 samcv that would be nice japh_com let me know. there is some way maybe
02:46 BenGoldberg Maybe a Bayesian classifier?
02:46 samcv well. i mean i want to get back the words which are different between the two
02:46 samcv would that do that
02:47 samcv or you mean for comparing the bags
02:47 MasterDuke_ japh_com: have you looked at jnthn's heap profile analyzer?
02:47 kurahaupo_ samcv: sounds like the sort of thing that would be easily thwarted by a global search-and-replace with some synonyms
02:47 samcv what would kurahaupo_
02:47 samcv uh
02:47 samcv well.
02:47 samcv how does that defeat it i don't see
02:48 samcv if they alter the text of the license...
02:48 samcv also  there are guidlines for certain words which are equivilant like en_GB and en_US
02:49 japh_com @MasterDuke_ Great suggestion. Checking jonathan's heap profile analyzer code now :-)
02:49 BenGoldberg kurahaupo_, We're assuming that the people in whose code (or docs) these liscences are embeded aren't deliberately making it harder for readers to identify which license it is.
02:49 samcv if you scroll down here to section 8.
02:49 samcv https://spdx.org/spdx-license-list/matching-guidelines gives guidelines for words which are the same
02:49 cyphase joined #perl6
02:51 noganex_ joined #perl6
02:54 geekosaur well, there's supposed to be a way to introspect GLOBAL::, but it doesn't seem to work currently
02:54 geekosaur oh, I guess it's just stuff imported into the current scope
02:55 geekosaur m: say SETTING::.keys
02:55 camelia rakudo-moar f0414c: OUTPUT: «($=pod &symlink $_ $/ RESTRICTED-CLASS &restricted !UNIT_MARKER &UNLINK-PATH &SYMLINK-PATH &MAKE-DIR &CHANGE-DIRECTORY &rmdir $=finish EXPORT PIO &CHMOD-PATH &chmod $! Proc NativeCall &COPY-FILE &rename &open ::?PACKAGE GLOBALish &shell &pipe &link &RENA…»
03:07 poohman joined #perl6
03:10 japh_com joined #perl6
03:13 labster joined #perl6
03:15 Cabanossi joined #perl6
03:26 bjz joined #perl6
03:41 Cabanossi joined #perl6
03:47 kurahaupo_ joined #perl6
03:48 Actualeyes joined #perl6
04:02 wamba joined #perl6
04:03 * u-ou squeaks
04:11 Cabanossi joined #perl6
04:12 aborazmeh joined #perl6
04:12 aborazmeh joined #perl6
04:17 kyan joined #perl6
04:23 sjn m: say (1 ... ^5).perl # why does this "work"?
04:23 camelia rakudo-moar f0414c: OUTPUT: «(1, 0, 1, 2, 3, 4).Seq␤»
04:27 mst m: say (1, ^5).perl
04:27 camelia rakudo-moar f0414c: OUTPUT: «(1, ^5)␤»
04:27 mst ok, not that then
04:50 curan joined #perl6
05:00 bjz joined #perl6
05:24 xtreak joined #perl6
05:42 cgfbee joined #perl6
05:42 Cabanossi joined #perl6
05:49 ufobat___ joined #perl6
05:50 darutoko joined #perl6
05:54 moritz it's just 1, ^5
05:55 moritz m: say 1, ^5
05:55 camelia rakudo-moar f0414c: OUTPUT: «1^5␤»
05:55 moritz m: say flat 1, ^5
05:55 camelia rakudo-moar f0414c: OUTPUT: «(1 0 1 2 3 4)␤»
06:02 samcv geekosaur, do you think the set operators would be the easiest way to find the closest two bags to each other?
06:02 samcv let's say i have like 40 bags and need to sort them by most items in common
06:04 CIAvash joined #perl6
06:12 Cabanossi joined #perl6
06:23 wamba joined #perl6
06:24 timotimo m: say (1 ... [9, 9, 9]) # sjn
06:24 camelia rakudo-moar f0414c: OUTPUT: «(1 2 3 4 5 6 7 8 9 9 9)␤»
06:24 timotimo a bit late, but whatevs
06:25 timotimo now why it immediately stops after 1, i'm not sure
06:25 timotimo m: say (1 ... [0, 9, 9]).perl
06:25 camelia rakudo-moar f0414c: OUTPUT: «(1, 0, 9, 9).Seq␤»
06:26 TimToady joined #perl6
06:32 moritz because 0 < 1
06:32 moritz m: say 1 ... [4, 6, 8]
06:32 camelia rakudo-moar f0414c: OUTPUT: «(1 2 3 4 6 8)␤»
06:34 timotimo i was totally expecting it'd compare against the length of the list :P
06:36 samcv also wtf is going on. i insntall App::Mi6 and try running the bin. and it doesn't start because some resources file
06:36 samcv /home/samantha/perl6/share/perl6/site/resources/19DFC05B99EC4E218A1A8D9A1B966919724DE593 only contains `@ perl6 %~dpn0 %*`
06:36 timotimo yes
06:36 samcv if i clone the git, and zef install . all is fine
06:36 timotimo you see, it has a "mi6" and a "mi6.bat"
06:36 timotimo the mi6.bat contains only that exact line
06:36 samcv :\
06:37 samcv i do not use windows
06:37 timotimo i expect zef is stripping extensions for binary scripts
06:37 timotimo and just installs one after the other, thus overwriting mi6 with mi6.bat
06:37 timotimo the solution is to not have two files with the same basename in bin/
06:37 timotimo is there not yet an issue in the mi6 repo?
06:37 timotimo BBL
06:37 samcv it installs fine with zef install . though
06:37 samcv why difference?
06:38 samcv apparently doesn't work on windows either https://github.com/skaji/mi6/issues/6
06:38 samcv also no issue about this problem on linux
06:43 cpage_ joined #perl6
06:45 samcv well opened an issue
06:47 bjz joined #perl6
06:50 gdonald joined #perl6
06:55 astj_ joined #perl6
06:58 mr-foobar joined #perl6
07:04 timotimo yeesh, that's a year old
07:04 samcv well mi6 added license field support :P
07:04 samcv very quickly
07:13 cpage_ joined #perl6
07:15 astj joined #perl6
07:26 parv joined #perl6
07:37 baest_ joined #perl6
07:38 vendethiel- joined #perl6
07:38 r3m_ joined #perl6
07:40 jercos_ joined #perl6
07:40 BinGOs_ joined #perl6
07:41 eyck_ joined #perl6
07:41 xinming_ joined #perl6
07:41 neady joined #perl6
07:41 Celelibi joined #perl6
07:42 geekosaur joined #perl6
07:44 japh_com anyone concerned about the pod2html conversion problems on docs.perl6.org/perl6.xhtml ? for example: my $e = enum &lt;one two three>;
07:46 zakharyas joined #perl6
07:47 domidumont joined #perl6
07:50 dakkar joined #perl6
07:52 g4 joined #perl6
07:55 lizmat and another Perl 6 Weekly hits the Net: https://p6weekly.wordpress.com/2017/04/24/2017-17-interesting-times/
07:59 andrewalker joined #perl6
08:00 masak lizmat++
08:01 xtreak joined #perl6
08:02 domidumont joined #perl6
08:03 jonas1 joined #perl6
08:06 masak zoffix++ # https://perl6.party/post/The-Failure-Point-of-a-Release
08:06 pmurias joined #perl6
08:07 masak that's one of the best posts about release management I've ever read. very insightful
08:07 pmurias my int $?BITS := nqp::iseq_i(0x1ffffffff,8589934591) ?? 64 !! 32; # how is this NQP code supposed to work?
08:10 cgfbee joined #perl6
08:11 * masak feels like he should maybe reply to http://stackoverflow.com/questions/43561614/how-do-i-write-a-perl6-macro-to-enquote-text
08:11 astj joined #perl6
08:12 masak I don't have time right now, but I'll try to after $dayjob
08:12 ecocode joined #perl6
08:12 nadim_ lizmat++
08:14 masak IIUC, blippy (who asked the SO question) is aiming to get the program text out of the $expr AST argument being passed
08:14 masak his attempt at doing so amazes me a bit -- that's not something I'd've tried
08:15 masak I think something like $expr.Str ought to work -- assuming we want the standard stringification of ASTs to yield the program *code* itself, and not something more AST-y
08:17 nadim_ a few weeks ago this link was, I believe, in a P6 weekly, interesting read an nifty example of what lazy evaluation can be used for. But the main part was about attribute grammars. I find the idea interesting, grammar that can ct on objects rather than text. first things that comes to mind is XSD/DDT or even complex searches. Does P6 Grammar already support that or could easily be extended? is it altogether rubbish?
08:17 nadim_ https://wiki.haskell.org/The_Monad.Reader/Issue4/Why_Attribute_Grammars_Matter
08:23 wigner joined #perl6
08:27 masak nadim_: p6 grammars are (currently) fairly Str-centric
08:27 masak nadim_: there's been discussion about allowing them on Cat, but Cat is still (IIRC) wildly unimplemented
08:28 masak nadim_: I could see some uses on Buf, especially if it leads to a whole serialization/deserialization story
08:29 lizmat my thoughts on that are that if we would have a string representation of bytes, that would translate to NFG, we would be set I think
08:29 lizmat because grammars do NFG  :-)
08:30 BinGOs joined #perl6
08:31 lowbro joined #perl6
08:32 lowbro joined #perl6
08:36 masak lizmat: hm :)
08:37 masak lizmat: seemsme that if you'd regex on bytes, there'd certainly be some byte sequences best expressed as (say) UTF-8-encoded strings -- but the strength would be that not all of them would be
08:37 masak "Sometimes a byte is just a byte" -- Freud
08:37 masak ach, anyway. rough consensus and working code. I should just throw together a prototype of what I mean by byte matching :> see where it leads
08:39 wamba joined #perl6
08:42 mr-foobar joined #perl6
09:06 xtreak joined #perl6
09:11 timotimo i remember talk about regex on objects
09:11 Cabanossi joined #perl6
09:11 timotimo i'd love that in Perl6::Optimizer :)
09:12 timotimo it would be a bit like signature unpacking but more easily accomodating alterations inside of an object graph
09:15 cpage_ joined #perl6
09:22 pmurias in what test file should a test for 0xffffffff go in?
09:24 parvx joined #perl6
09:25 moritz as a literal?
09:26 pmurias yes, it's broken on 32bit rakudos
09:26 moritz maybe t7spec/S02-literals/radix.t or S02-literals/numeric.t
09:27 moritz s/7/\//
09:27 nadim_ timotimo: if we have that on regex I guess it wouldn't be far to have it in Grammars. Was the talk in a blog or in the ether?
09:30 timotimo i dont remember. it might have been in the specs actually
09:31 timotimo the main thing about this is that we compile some backtracking code for you
09:31 timotimo the step from regexes to grammars is tiny
09:31 timotimo though it might be "interesting" to come up with what match objects are going to look like
09:32 timotimo i.e. there will not be a sensible value dor from/toi bet
09:40 xtreak joined #perl6
09:41 Cabanossi joined #perl6
09:42 timotimo nadim, https://design.perl6.org/S05.html#Matching_against_non-strings
09:42 rindolf joined #perl6
09:43 cgfbee joined #perl6
09:44 rindolf joined #perl6
09:53 nadim_ timotimo++
10:02 Geth ¦ ecosystem: ea2efae775 | (Zoffix Znet)++ (committed using GitHub Web editor) | META.list
10:02 Geth ¦ ecosystem: META.info -> META6.json
10:02 Geth ¦ ecosystem: review: https://github.com/perl6/ecosystem/commit/ea2efae775
10:07 Geth ¦ ecosystem: b2b15ee727 | (Zoffix Znet)++ (committed using GitHub Web editor) | META.list
10:07 Geth ¦ ecosystem: META.info -> META6.json
10:07 Geth ¦ ecosystem:
10:07 Geth ¦ ecosystem: https://raw.githubusercontent.com/MattOates/Stats/master/META.info is currently
10:07 Geth ¦ ecosystem: busted due to naming it META.json. PR sent. Set to META6.json in list
10:07 Geth ¦ ecosystem: review: https://github.com/perl6/ecosystem/commit/b2b15ee727
10:09 xiaomiao mmh. releasing an update to rakudo that doesn't work with released versions of nqp is a little bit silly
10:09 xiaomiao could I please have an updated version of nqp packaged up? :)
10:11 Zoffix joined #perl6
10:11 Zoffix xiaomiao: in 3 weeks
10:11 xiaomiao Zoffix: that's a little bit confusing
10:11 Cabanossi joined #perl6
10:11 japhdc joined #perl6
10:12 Zoffix xiaomiao: it's a total clusterfuck from where I'm viewing it.
10:12 zakharyas joined #perl6
10:12 Zoffix xiaomiao: https://perl6.party/post/The-Failure-Point-of-a-Release
10:14 Zoffix xiaomiao: The 2017.04.2 release works with 2017.04 nqp and 2017.04 moarvm; it's just have the regex/grammar bug (mentioned in that post). At this point, we'd need to recut point releases of three different projects, using the unbeaten path, which has a good chance of resulting in even more issues, so we (I?) knocked it on the head and finished for 2017.04. Next release, 2017.05 will auto-resolve all the
10:14 Zoffix issues.
10:14 Zoffix xiaomiao: there's also a Rakudo Star release candidate you can use instead
10:15 Zoffix xiaomiao: http://pl6anet.org/drop/
10:15 Zoffix NeuralAnomaly: status
10:15 NeuralAnomaly Zoffix, [✘] Next release will be in 3 weeks and 4 days. Since last release, there are 14 new still-open tickets (12 unreviewed and 0 blockers) and 72 unreviewed commits. See http://perl6.fail/release/stats for details
10:15 xiaomiao Zoffix: I see. Mostly reasonable (bugs happen, bugfixes happen). But having a rakudo release that can't be built against released nqp is not very nice
10:16 xiaomiao (not complaining, just pointing out that you've accidentally made distro packagers a bit sad)
10:16 Zoffix xiaomiao: I understand that.
10:16 xiaomiao I think I'll just grab rakudo-2017.04.2 and pretend the issues don't exist
10:17 rindolf joined #perl6
10:17 Zoffix Sounds like a plan ;)
10:18 mxco86 joined #perl6
10:23 vytas joined #perl6
10:32 japhdc joined #perl6
10:32 xtreak joined #perl6
10:34 xtreak joined #perl6
10:37 Zoffix left #perl6
10:45 mr-foobar joined #perl6
11:04 zakharyas joined #perl6
11:29 xtreak joined #perl6
11:36 gdonald joined #perl6
11:41 Cabanossi joined #perl6
11:51 domidumont joined #perl6
11:51 nadim_ joined #perl6
12:02 japhdc joined #perl6
12:04 pat_js joined #perl6
12:20 itaipu joined #perl6
12:25 xtreak joined #perl6
12:36 winnie_ joined #perl6
12:36 winnie_ m: say "test"
12:36 camelia rakudo-moar f0414c: OUTPUT: «test␤»
12:40 perlpilot joined #perl6
12:42 geekosaur joined #perl6
12:45 drrho_ joined #perl6
12:50 Geth ¦ ecosystem: a3f75d687d | (Moritz Len)++ | META.list
12:50 Geth ¦ ecosystem: Track META name changes
12:50 Geth ¦ ecosystem: review: https://github.com/perl6/ecosystem/commit/a3f75d687d
12:56 mcmillhj joined #perl6
12:58 vytas joined #perl6
13:00 Geth ¦ ecosystem: 776fa56185 | (Zoffix Znet)++ (committed using GitHub Web editor) | META.list
13:00 Geth ¦ ecosystem: Use new meta name
13:00 Geth ¦ ecosystem: review: https://github.com/perl6/ecosystem/commit/776fa56185
13:01 dalek Net-ZMQ: bf473e7 | (Zoffix Znet)++ | META (2 files):
13:01 dalek Net-ZMQ: Use modern META filename
13:01 dalek Net-ZMQ:
13:01 dalek Net-ZMQ: The `META.info` is a legacy, pre-Christmas name. While it's still currently supported,
13:01 dalek Net-ZMQ: `META6.json` is the new name. And since a lot of people simply copy some module's
13:01 dalek Net-ZMQ: structure, the old name still proliferates, so we're trying to get rid of it for good
13:01 dalek Net-ZMQ: by sending PRs to any modules that use the old name, to switch to the modern name.
13:01 dalek Net-ZMQ: review: https://github.com/arnsholt/Net-ZMQ/commit/bf473e7f97
13:01 dalek Net-ZMQ: ef1d56e | timo++ | META (2 files):
13:01 dalek Net-ZMQ: Merge pull request #12 from zoffixznet/patch-1
13:01 dalek Net-ZMQ:
13:01 dalek Net-ZMQ: Use modern META filename
13:01 dalek Net-ZMQ: review: https://github.com/arnsholt/Net-ZMQ/commit/ef1d56eebf
13:14 bjz_ joined #perl6
13:21 mr-foobar joined #perl6
13:25 Possum joined #perl6
13:42 Cabanossi joined #perl6
13:53 skids joined #perl6
13:57 alimon joined #perl6
14:00 salva joined #perl6
14:00 cdg joined #perl6
14:05 zakharyas joined #perl6
14:14 kurahaupo joined #perl6
14:16 wamba joined #perl6
14:20 Geth ¦ Pod-To-HTML: cc4399ae61 | (Zoffix Znet)++ (committed using GitHub Web editor) | 2 files
14:20 Geth ¦ Pod-To-HTML: Use modern META filename
14:20 Geth ¦ Pod-To-HTML:
14:20 Geth ¦ Pod-To-HTML: The `META.info` is a legacy, pre-Christmas name. While it's still currently supported, `META6.json` is the new name. And since a lot of people simply copy some module's  structure, the old name still proliferates, so we're trying to get rid of it for good  by sending PRs to any modules that use the old name, to switch to the modern name.
14:20 Geth ¦ Pod-To-HTML: review: https://github.com/perl6/Pod-To-HTML/commit/cc4399ae61
14:21 rindolf joined #perl6
14:23 Geth ¦ doc: 45cd208ee0 | (Zoffix Znet)++ (committed using GitHub Web editor) | 2 files
14:23 Geth ¦ doc: Use modern META filename
14:23 Geth ¦ doc: review: https://github.com/perl6/doc/commit/45cd208ee0
14:23 Geth ¦ yaml-pm6: 3d70a2e81c | (Zoffix Znet)++ (committed using GitHub Web editor) | 2 files
14:23 Geth ¦ yaml-pm6: Use modern META filename
14:23 Geth ¦ yaml-pm6: review: https://github.com/perl6-community-modules/yaml-pm6/commit/3d70a2e81c
14:24 Geth ¦ testml-pm6: 210c2a6c75 | (Zoffix Znet)++ (committed using GitHub Web editor) | 2 files
14:24 Geth ¦ testml-pm6: Use modern META filename
14:24 Geth ¦ testml-pm6: review: https://github.com/perl6-community-modules/testml-pm6/commit/210c2a6c75
14:24 Possum joined #perl6
14:27 Cabanossi joined #perl6
14:34 Khisanth joined #perl6
14:36 alimon joined #perl6
14:36 perlpilot joined #perl6
14:37 El_Che Win 10 bash support on new release: https://github.com/nxadm/rakudo-pkg/releases/tag/2017.03_03
14:38 Geth ¦ ecosystem: 8f59111638 | (Zoffix Znet)++ | META.list
14:38 Geth ¦ ecosystem: [automated commit] META.info -> META6.json
14:38 Geth ¦ ecosystem:
14:38 Geth ¦ ecosystem: Changed 49 URLs
14:38 Geth ¦ ecosystem: review: https://github.com/perl6/ecosystem/commit/8f59111638
14:41 Exodist joined #perl6
14:51 Geth ¦ ecosystem: ac6f230c60 | (Zoffix Znet)++ | META.list
14:51 Geth ¦ ecosystem: [automated commit] META.info -> META6.json
14:51 Geth ¦ ecosystem:
14:51 Geth ¦ ecosystem: Changed 3 URLs
14:51 Geth ¦ ecosystem: review: https://github.com/perl6/ecosystem/commit/ac6f230c60
15:05 mst joined #perl6
15:10 wictory[m] joined #perl6
15:10 khw joined #perl6
15:15 nadim_ joined #perl6
15:29 zakharyas joined #perl6
15:29 dp[m] joined #perl6
15:29 tadzik joined #perl6
15:29 M-Illandan joined #perl6
15:29 Matthew[m] joined #perl6
15:29 unclechu joined #perl6
15:29 ilmari[m] joined #perl6
15:30 mienaikage joined #perl6
15:30 xui_nya[m] joined #perl6
15:30 CIAvash[m] joined #perl6
15:30 Geth ¦ ecosystem: 540879260f | (Zoffix Znet)++ | META.list
15:30 Geth ¦ ecosystem: [automated commit] META.info -> META6.json
15:30 Geth ¦ ecosystem:
15:30 Geth ¦ ecosystem: Changed 11 URLs
15:30 Geth ¦ ecosystem: review: https://github.com/perl6/ecosystem/commit/540879260f
15:31 inokenty joined #perl6
15:33 zakharyas joined #perl6
15:52 rindolf joined #perl6
15:58 le_perlie joined #perl6
16:01 iyra joined #perl6
16:02 Geth ¦ ecosystem: ad9e9e4094 | (Zoffix Znet)++ | META.list
16:02 Geth ¦ ecosystem: [automated commit] META.info→META6.json (4 URLs)
16:02 Geth ¦ ecosystem: review: https://github.com/perl6/ecosystem/commit/ad9e9e4094
16:11 Zoffix joined #perl6
16:13 Zoffix FWIW: the automate commits are done by a script that checks for updates every 30m. I've sent ~380 PRs to swap META.info to META6.json, I think ~60 were already merged, so ~320 are yet to come. I can make Geth ignore these commits, if they're too spammy.
16:14 timotimo could you turn these commit messages into a single line perhaps?
16:14 timotimo "11 URLs changed at https://github.com/perl6/ecosystem/commit/540879260f"
16:16 [Coke] "eh, it's fine"
16:16 [Coke] timotimo: last one was a single line.
16:16 timotimo it's actually three lines
16:16 sufrostico joined #perl6
16:17 [Coke] the last one is one line of commit message, with the usual pre-amble and post-amble of one line eaach.
16:17 timotimo :)
16:17 [Coke] the one before that is 3 lines of commit message.
16:17 [Coke] no reason to shrink it past that, IMO.
16:17 robertle joined #perl6
16:18 Zoffix OK then ":)
16:19 kurahaupo_ joined #perl6
16:26 Cabanossi joined #perl6
16:32 itaipu joined #perl6
16:32 mcmillhj joined #perl6
16:32 Geth ¦ ecosystem: 136ca2e210 | (Zoffix Znet)++ | META.list
16:32 Geth ¦ ecosystem: [automated commit] META.info→META6.json (2 URLs)
16:32 Geth ¦ ecosystem: review: https://github.com/perl6/ecosystem/commit/136ca2e210
16:35 jonas1 joined #perl6
16:40 geekosaur joined #perl6
16:45 cdg_ joined #perl6
16:47 Geth joined #perl6
16:47 Geth Swapped META.info → META6.json in 2 dists in https://github.com/perl6/ecosystem/commit/136ca2e210
16:47 Zoffix \o/
16:47 Zoffix Worked the first time :}
16:48 Zoffix Added "Commit filters" feature to geth
16:49 Geth ¦ ecosystem: 53792e4c9e | (Zoffix Znet)++ (committed using GitHub Web editor) | PULL_REQUEST_TEMPLATE.md
16:49 Geth ¦ ecosystem: Fix typo
16:49 Geth ¦ ecosystem: review: https://github.com/perl6/ecosystem/commit/53792e4c9e
16:50 Geth joined #perl6
16:50 mcmillhj joined #perl6
16:52 cdg joined #perl6
16:52 setty1 joined #perl6
16:54 setty1 joined #perl6
16:54 domidumont joined #perl6
16:54 timotimo neat
16:56 Geth ¦ ecosystem: bd5e6bd3f2 | (Nick Logan)++ (committed using GitHub Web editor) | META.list
16:56 Geth ¦ ecosystem: Update META.list
16:56 Geth ¦ ecosystem: review: https://github.com/perl6/ecosystem/commit/bd5e6bd3f2
16:57 timotimo oh, people are unaware of the automatic script
16:57 timotimo not really surprising, just interesting
16:58 mcmillhj joined #perl6
17:01 Geth joined #perl6
17:03 Geth Swapped META.info → META6.json in 1 dists in https://github.com/perl6/ecosystem/commit/2ec7a3e9b8
17:06 nadim_ joined #perl6
17:11 cdg joined #perl6
17:11 Ven joined #perl6
17:23 zakharyas joined #perl6
17:23 Zoffix left #perl6
17:26 mcmillhj joined #perl6
17:27 domidumont joined #perl6
17:29 Geth ¦ ecosystem: 2d7f6b1593 | (Zoffix Znet)++ (committed using GitHub Web editor) | README.md
17:29 Geth ¦ ecosystem: Add correct name of meta file to README
17:29 Geth ¦ ecosystem: review: https://github.com/perl6/ecosystem/commit/2d7f6b1593
17:38 setty1 joined #perl6
17:45 kurahaupo joined #perl6
17:45 mcmillhj joined #perl6
18:02 Ven joined #perl6
18:03 Geth joined #perl6
18:04 eliasr joined #perl6
18:10 perlpilot joined #perl6
18:11 mcmillhj joined #perl6
18:16 Geth Swapped META.info → META6.json in 1 dists in https://github.com/perl6/ecosystem/commit/538ddf2174
18:17 [Coke] off by one error
18:18 [Coke] .tell zoffix off by one error on your message in 538ddf2174
18:18 yoleaux [Coke]: I'll pass your message to zoffix.
18:29 Geth ¦ ecosystem: dd52a27f8c | (Zoffix Znet)++ | tools/meta.p6
18:29 Geth ¦ ecosystem: Add META.info -> META6.json swapping script
18:29 Geth ¦ ecosystem:
18:29 Geth ¦ ecosystem: If future generations would want to repurpose it or something
18:29 Geth ¦ ecosystem: review: https://github.com/perl6/ecosystem/commit/dd52a27f8c
18:30 cdg_ joined #perl6
18:32 Geth ¦ ecosystem: 5b2e139c80 | (Zoffix Znet)++ (committed using GitHub Web editor) | tools/meta.p6
18:32 Geth ¦ ecosystem: Fix bugglet
18:32 Geth ¦ ecosystem: review: https://github.com/perl6/ecosystem/commit/5b2e139c80
18:33 salva joined #perl6
18:37 Ven_ joined #perl6
18:43 iyra joined #perl6
18:44 gdonald joined #perl6
18:55 sufrostico joined #perl6
18:55 sufrostico joined #perl6
19:01 domidumont joined #perl6
19:06 labster joined #perl6
19:11 itaipu joined #perl6
19:17 bhm joined #perl6
19:24 samcv good * everyone
19:26 timotimo hey samcv
19:27 samcv so i have 40 bags and need to compare how similar some other Bag i have is to each of them
19:27 samcv fastest way?
19:27 samcv /easist
19:30 timotimo well, easiest is easy :)
19:30 moritz I guess you need nested loops, an in there, get the intersecction of a pair of bags
19:30 samcv ∩?
19:31 moritz two
19:31 samcv two what
19:31 moritz two nested loops
19:32 samcv by an 'in' did you mean intersection i.e. `∩`
19:32 kurahaupo_ joined #perl6
19:32 samcv m: say (1,2,2,3).Bag ∩ (1,2,2).Bag
19:32 camelia rakudo-moar d057ef: OUTPUT: «bag(1, 2(2))␤»
19:32 moritz ah, yes
19:32 samcv omg linenosie why you no support utf-8 ahhhh
19:33 moritz m: say (1, 2, 2, 3).bug
19:33 camelia rakudo-moar d057ef: OUTPUT: «No such method 'bug' for invocant of type 'List'␤  in block <unit> at <tmp> line 1␤␤»
19:33 moritz m: say (1, 2, 2, 3).Bag
19:33 camelia rakudo-moar d057ef: OUTPUT: «bag(1, 3, 2(2))␤»
19:33 moritz m: say (1, 2, 2, 3).Bag.sum
19:33 camelia rakudo-moar d057ef: OUTPUT: «Cannot resolve caller Numeric(Pair: ); none of these signatures match:␤    (Mu:U \v: *%_)␤  in block <unit> at <tmp> line 1␤␤»
19:33 moritz m: say (1, 2, 2, 3).Bag.values.sum
19:33 camelia rakudo-moar d057ef: OUTPUT: «4␤»
19:33 raiph joined #perl6
19:34 samcv ok. and then find the intersection probably divide it be the number of items in the verbatim license file
19:34 samcv and then find the one that has the most interaction
19:35 samcv because obv you'd get a way big intersection otherwise if you had an infinitely long document that wasn't the license
19:35 moritz m: sub s(\x) { x.values.sume }, simalarity(Bag \a, Bag \b) {2 * s(a ∩ b) / (s(a) + s(b) }; similarty((1, 2, 2, 3).Bag, (1, 3).Bag)
19:35 camelia rakudo-moar d057ef: OUTPUT: «5===SORRY!5=== Error while compiling <tmp>␤Unable to parse expression in argument list; couldn't find final ')' ␤at <tmp>:1␤------> 3 s(\x) { x.values.sume }, simalarity(Bag7⏏5 \a, Bag \b) {2 * s(a ∩ b) / (s(a) + s(b␤    expecting any…»
19:35 moritz m: sub s(\x) { x.values.sum }; simalarity(Bag \a, Bag \b) {2 * s(a ∩ b) / (s(a) + s(b) }; say similarty((1, 2, 2, 3).Bag, (1, 3).Bag)
19:35 camelia rakudo-moar d057ef: OUTPUT: «5===SORRY!5=== Error while compiling <tmp>␤Unable to parse expression in argument list; couldn't find final ')' ␤at <tmp>:1␤------> 3b s(\x) { x.values.sum }; simalarity(Bag7⏏5 \a, Bag \b) {2 * s(a ∩ b) / (s(a) + s(b␤    expecting any…»
19:35 samcv hmm cool
19:36 moritz m: sub s(\x) { x.values.sum }; sub similarity(Bag \a, Bag \b) {2 * s(a ∩ b) / (s(a) + s(b) }; say similarty((1, 2, 2, 3).Bag, (1, 3).Bag)
19:36 camelia rakudo-moar d057ef: OUTPUT: «5===SORRY!5=== Error while compiling <tmp>␤Unable to parse expression in parenthesized expression; couldn't find final ')' ␤at <tmp>:1␤------> 3a, Bag \b) {2 * s(a ∩ b) / (s(a) + s(b) 7⏏5}; say similarty((1, 2, 2, 3).Bag, (1, 3␤    ex…»
19:36 moritz m: sub s(\x) { x.values.sum }; sub similarity(Bag \a, Bag \b) {2 * s(a ∩ b) / (s(a) + s(b)) }; say similarty((1, 2, 2, 3).Bag, (1, 3).Bag)
19:36 camelia rakudo-moar d057ef: OUTPUT: «5===SORRY!5=== Error while compiling <tmp>␤Undeclared routine:␤    similarty used at line 1. Did you mean 'similarity'?␤␤»
19:36 moritz m: sub s(\x) { x.values.sum }; sub similarity(Bag \a, Bag \b) {2 * s(a ∩ b) / (s(a) + s(b)) }; say similarity((1, 2, 2, 3).Bag, (1, 3).Bag)
19:36 camelia rakudo-moar d057ef: OUTPUT: «0.666667␤»
19:36 moritz \o/
19:36 moritz took me only a few dozen attempts
19:37 tyil thats not too bad
19:43 robertle until (quite) a while ago, I could call a method in a different module, which would do "require ::Foo", and that made Foo available to the code calling into this module. this does not work anymore, which seems right as importing into the caller sounds wrong
19:43 robertle but is there a differnt way to do this? I am trying to do something like "Pluggable"...
19:44 timotimo right, you can't import "into the caller", you can only import into a "user", because then you can have a sub EXPORT
19:44 [Coke] it's now lexically scoped.
19:44 [Coke] (which might impact your use case)
19:45 robertle ok, that makes sense. but is there a way to get the old behavior back? otehrwise I can't see how to dynamically load plugins...
19:46 timotimo after you've required a module, you can stash it away in any datastructure you want
19:46 geekosaur the code is present but not in scope. you could access it by global name instead of names imported into the lexical namespace?
19:47 robertle I think what I am after is your "stash it" with an emphasis on the "it". currently i stash the require'd module name rather than the actual thing
19:47 robertle ceci nest pas une pipe
19:47 Geth Swapped META.info → META6.json in 6 dists in https://github.com/perl6/ecosystem/commit/a2be897f78
19:48 timotimo yeah, you ought to stash the module away, or chosen subs inside it or whatever
19:50 rindolf joined #perl6
19:51 robertle hmm, how do I get to the actual module from it's name?
19:52 timotimo you "require ::($name)" it, no?
19:52 timotimo m: my $name = "Test"; require ::($name); say ::($name).WHAT
19:52 camelia rakudo-moar d057ef: OUTPUT: «(Test)␤»
19:52 timotimo m: my $name = "Test"; require ::($name); say ::($name).WHO
19:52 camelia rakudo-moar d057ef: OUTPUT: «Test␤»
19:53 robertle right, that's what I do. and of course I could do a .new right after that, and store the result
19:53 timotimo well, you don't want to .new a module
19:53 robertle but that only works for modules that have a new, and has other problems
19:53 samcv moritz, thanks for that. should work pretty well for my uses :)
19:53 robertle I would rather store the module itself, and then pass that to someone else so that they can do .new on it without having to require it themselves
19:54 robertle like store the class rather than an instance of it
19:54 zakharyas joined #perl6
19:54 timotimo why would you ever .new on what require gives you?
19:54 timotimo i mean, if it has a "unit class" in it, then sure
19:54 ribasushi joined #perl6
19:55 samcv m: say "blah".isa(Str:D)
19:55 camelia rakudo-moar d057ef: OUTPUT: «False␤»
19:55 samcv this does not work
19:55 robertle exactly, it was just an example! so I want to dynamically load plugins. if the plugins are classes, then you could do .new on them. but they could just be modules, e.g. each with a sub do-sth() in them
19:56 robertle hmm, makes less and less sense the more I think about it
19:57 Cabanossi joined #perl6
19:57 robertle essentially I need a replacement for Module::Pluggable in perl5
19:57 kurahaupo joined #perl6
19:57 robertle until some time ago I could do this easily in perl6, but the (good) change to make require lexically scoped breaks that
19:58 robertle so I am looking for some work around it...
20:00 robertle if my plugins are always classes, then the plugin system can do require and then .new and store instances rather than the class. that's a bit oif a pity, but workable
20:00 robertle but for non-oo, regular modules I seem to be bust...
20:01 geekosaur there's a Package with that name though
20:01 robertle Pluggable? yeah, that is broken too...
20:06 alphah hello Perl6, I'm getting this error when trying to merge two hashes, (it happens when left side hash is empty)
20:06 alphah Lists on either side of non-dwimmy hyperop of  are not of the same length while recursing
20:06 alphah left: 2 elements, right: 1 elements
20:06 [Coke] m: my %stuff; { require Test ; %stuff<t> = Test } ; %stuff<t>.WHAT;
20:06 camelia rakudo-moar d057ef: ( no output )
20:06 [Coke] alphah: can you gist the code?
20:06 tyil samcv: ^
20:06 alphah I'm printing the hash before merging (That part in code is in TOP method for grammar action), here is in the output below:
20:07 tyil does Hash::Merge suffer from this?
20:07 samcv i don't think that's published to the eco yet tho?
20:07 tyil but before it is :'D
20:07 samcv yes alphah show us your code
20:08 samcv me and tyil gonna publish a hash merging module shortly
20:08 alphah Alright one moment, Will paste rest of info I have then show code
20:08 alphah ./bin/program.p6  dummy
20:08 [Coke] alphah: use a nopaste or gist service if it's more than a few lines.
20:08 tyil I'll wirte up a testcase either way
20:08 alphah cnf hash: ${:origin("/tmp"), :yolo}
20:08 alphah cmd hash: {}
20:09 tyil also, `nc termbin.com 9999 < file.pm6`
20:09 alphah cnf hash: ${:origin("/tmp"), :yolo}
20:09 alphah cmd hash: Nil
20:09 alphah Lists on either side of non-dwimmy hyperop of  are not of the same length while recursing
20:09 alphah left: 2 elements, right: 1 elements
20:09 alphah I dont get that error if I added cmd arg:
20:09 alphah alphah@slackwork$ ./bin/program.p6 yolo  dummy
20:09 alphah g cnf: ${:origin("nono"), :yolo}
20:09 alphah g cmd: {:yolo}
20:09 [Coke] alphah: please use a nopaste service.
20:10 alphah ok, one second
20:10 robertle [Coke]: awesome!
20:11 tyil samcv: seems like merging a hash into an empty hash is ok for us
20:11 samcv yeah prolly
20:11 [Coke] m: my %stuff; { require Test ; %stuff<t> = Test } ; %stuff<t>.WHAT.say # forgot the say
20:11 camelia rakudo-moar d057ef: OUTPUT: «(Test)␤»
20:11 samcv don't see why it wouldn't
20:11 [Coke] Assuming you can't keep your require in the scope it's needed in, that trick might help.
20:11 samcv alphah, does this description fit your needs? https://github.com/scriptkitties/p6-Hash-Merge
20:11 samcv and if so what is not covered here or does not work for you
20:12 samcv method name may change
20:13 alphah samacv looks exactly what I need, but need to test it first
20:13 samcv oh ok
20:13 samcv cool.
20:13 samcv also [Coke] what sholud i call the method so it won't conflict with any future merge method?
20:14 [Coke] samcv:  unless you pick some-long-name-that-will-very-likely-never-conflict, you can't know.
20:15 samcv mix lower and uppercase letters.... hehehe
20:15 [Coke] I would use the simplest thing that works for now, and if a new version of p6 appears with a merge method, you can make yours be conditional on version.
20:15 samcv %hash.MeRgE
20:18 alphah Coke: here is the whole file, the problem happen in method TOP. (Please ignore the naming I'm using)
20:18 alphah https://gist.github.com/anonymous/5393f31f2b6e60566f8ffaa4886625db
20:20 samcv oh no. zef is failing building on uhm
20:20 samcv idk why
20:20 samcv https://travis-ci.org/scriptkitties/p6-Hash-Merge/jobs/225752270
20:20 samcv failing on  2017.04.3-50-gd057efd and 2017.03 but not on nom? idk
20:20 tyil zef is not supposed to fail
20:21 samcv no
20:21 samcv it is not
20:21 samcv oh it's working on the newer travis build. maybe travis just derped
20:22 samcv crisis averted. TRAVVIISSSSS
20:22 pmurias m: my str $foo = 'Infinity on Linux but not on windows'; my num $n = $foo;say $n
20:22 camelia rakudo-moar d057ef: OUTPUT: «Inf␤»
20:22 pmurias ^^ can someone please check what the above does on Rakudo on windows?
20:22 samcv that. hm
20:23 samcv did not know we could turn strings into nums like that...
20:24 geekosaur that's what Cool does
20:25 samcv yes. didn't know it did that when asigning a string to a number like that. but i guess it makes sense sorta
20:25 samcv didn't know about Inf though
20:25 samcv or that you could have random text after a number and have it not freak out
20:25 samcv i never tried
20:26 pmurias geekosaur: it's a low level coercion that doesn't involve Cool
20:27 geekosaur that does sound like trouble tbh
20:27 pmurias it also seems to be operation system dependent, which sucks ultra hard
20:27 geekosaur http://calculist.blogspot.com/2006/02/nancy-typing.html
20:27 geekosaur use care converting random strings to numbers...
20:29 cdg joined #perl6
20:31 gdonald joined #perl6
20:31 ufobat___ joined #perl6
20:32 pmurias m: my str $nancy = "NaNcy"; my num $n = $nancy; say $n == $n;
20:32 camelia rakudo-moar d057ef: OUTPUT: «False␤»
20:32 dct joined #perl6
20:34 [Coke] alphah: and how do you trigger the error you were mentioning?
20:35 [Coke] do we have a "how to ask for help" link somewhere?
20:36 alphah I have the main program includes, have this line my %hash = LawCmd.create(@*ARGS.Str);    and run the program as "alphah@slackwork$ ./bin/program.p6  dummy"
20:36 alphah Coke:
20:37 alphah that will trigger the error, because %cmd arg hash will be empty, but running the program as  "alphah@slackwork$ ./bin/program.p6 yolo dummy", I dont get that error
20:37 [Coke] so you're not showing us the code?
20:37 [Coke] you're showing us some other code?
20:37 alphah Coke: I pasted the whole file
20:38 kurahaupo joined #perl6
20:38 alphah this is the other file that has this line of code:
20:38 [Coke] (if I run your code with "dummy" as an arg, nothing happens)
20:38 [Coke] you posted one file, then said you had another file.
20:39 [Coke] part of helping us help you is to make it easy to see what's going on with the existing code you have, or for you to golf that code to highlight the problem (remove extraneous code until only the problem you're dealing with is present in the code)
20:39 alphah sorry my mistake, thought I posteed the second,, really the second file doesn't have anything at all important, except creating the hash... posting it now
20:40 [Coke] ok. I'm heading out shortly, hopefully someone can help you out. Good luck.
20:41 alphah Alright, Thanks, here is the other file anyway https://gist.github.com/anonymous/8f7584cf60fbbead4f53d2d5dc39f8fd
20:42 alphah I'm ccreating account on gist so I can have the code easily available next time
20:43 [Coke] ok, that still doesn't compile, and also has a dependency on a file in /etc
20:43 [Coke] I tried to switch the use's to load the first file, but then get stuck on other errors.
20:45 alimon joined #perl6
20:45 [Coke] I would recommend golfing down your error. make a small 10 line program which highlights the issue you're having; hardcode whatever data you need to show the issue.
20:47 [Coke] (%physics<star> ««=«« $<star>.ast if $<star>; looks weird to me, fwiw)
20:48 alphah alright will do that, I was trying to do that, by printing the two hashes that got produced from the program (as these the only things <<=<< op deals with during merging),  Iposted them earlier but will make a small program that shows the issue
20:48 alphah Thank you for help
20:48 [Coke] might help the next person if you posted that output in a separate gist.
20:52 alphah Coke: https://gist.github.com/anonymous/b4b512d2af21e689c18f89aee8675fc7
20:53 alphah the program out put and the conf file
20:53 Ven joined #perl6
20:53 alphah , I would like to mention as well that, TOP regex breaks Grammar::Debugger Don't know why
20:57 espadrine joined #perl6
21:02 bjz joined #perl6
21:03 sufrostico joined #perl6
21:03 TEttinger joined #perl6
21:12 Cabanossi joined #perl6
21:14 Zoffix joined #perl6
21:14 Zoffix alphah: did you sort it out yet?
21:16 samcv moritz, cool :)
21:16 samcv Finding similarity
21:16 samcv (Artistic-2.0 => 0.997442 ClArtistic => 0.562578 Artistic-1.0-Perl => 0.538067 O
21:16 samcv seems to work pretty great
21:17 Zoffix m: say +StrDistance.new: :before<Artistic-2.0>, :after<ClArtistic>
21:17 camelia rakudo-moar ff4a03: OUTPUT: «6␤»
21:18 Zoffix m: say +StrDistance.new: :before<Artistic-2.0>, :after<Artistic-1.0-Perl>
21:18 camelia rakudo-moar ff4a03: OUTPUT: «6␤»
21:18 Zoffix heh
21:18 Zoffix m: say +StrDistance.new: :before<Artistic-2.0>, :after<Artistic-1.0-Perfsdfdsfsdfsdfsdfsdfsdl>
21:18 camelia rakudo-moar ff4a03: OUTPUT: «27␤»
21:18 alphah Zoffix: Not yet, I'm still having the error. Also what makes it difficult to track is I can't use Grammar::Debugger to follow step by step, it just ccrash if I enabled Grmmar::Debugger, (feels like writing sh*tty code)
21:19 Geth Swapped META.info → META6.json in 8 dists in https://github.com/perl6/ecosystem/commit/66b891e9fa
21:19 Zoffix alphah: well, how can I repro the issue? So far I have a bunch of gists, but they don't fit together well.
21:19 Zoffix alphah: stick --ll-exception flag to perl6; it'll tell you where the error is at
21:21 alphah Zoffix: I just created the account at Github and pushed the code there: https://github.com/alphah77/galaxy
21:22 Zoffix alphah: OK. And how do I make it error out?
21:23 alphah and error shows when run "./bin/galaxy.p6  dummy"  , also the conf file should be in "/etc/galaxy/laws"    ,,, (laws file also is in "bin" directory in the project
21:25 alphah works as expected without error in many other cases: for example "./bin/galaxy.p6 yolo dummy" . works fine.
21:25 Zoffix alphah: what does this supposed to do again? I don't know hyperops: %physics<galaxy> ««=«« $<galaxy-laws>.ast;
21:27 alphah that should merge the hash produced by .ast  $<galaxy-laws>.ast  to %physics<galaxy>  hash,,, overwriting duplicates keys, and save result in %physics<galaxy>
21:27 Geth ¦ ecosystem: Tyil++ created pull request #331: Add Hash::Merge
21:27 Geth ¦ ecosystem: review: https://github.com/perl6/ecosystem/pull/331
21:27 alphah and the error happens when $<galaxy-laws>.ast produces empty hash
21:28 Zoffix alphah: so why not avoid that error same way as in:    %physics<star> ««=«« $<star>.ast if $<star>
21:30 Zoffix m: my %h = foo => { bar => { ber => 42 } }; my %h2 = foo => { meow => { moo => 72 } }; %h ««=«« %h2; dd %h
21:30 camelia rakudo-moar ff4a03: OUTPUT: «Hash %h = {:foo(${:bar(${:ber(42)}), :meow(72)})}␤»
21:30 * Zoffix wouldn't call that merging...
21:30 alphah Zoffix: It's actually inside if statment, so I'm using the same conditional, the conditional is at line 145
21:31 Zoffix m: my %h = foo => { bar => { ber => 42 } }; my %h2 = foo => { meow => { moo => 72 } }; %h «=« %h2; dd %h
21:31 camelia rakudo-moar ff4a03: OUTPUT: «Hash %h = {:foo(${:bar(${:ber(42)}), :meow(72)})}␤»
21:31 Zoffix How come two «« are used?
21:32 Zoffix alphah: this is where the error points; I don't see an `if` statement up there: https://github.com/alphah77/galaxy/blob/master/lib/Physics.pm#L144
21:32 alphah lol, that was typo, I was using <<=<<  ,, thats probably confused me.. I just fixed it and tested again but give same issue
21:33 Zoffix Well, right that was just a side note. The original issue is there's no conditional for when $<galaxy-laws>.ast is empty
21:33 Zoffix Or rather Any
21:35 alphah you are right
21:35 aindilis joined #perl6
21:35 Zoffix And when I fix that it dies with "Laws are not consistent", which I'm guessing is normal
21:36 alphah Not that should not be the expected behavior, this erro means that Grammr LawCMD did not parse correctly, which it should have in this case
21:37 Zoffix Well, good luck :)
21:37 Zoffix I think this is the largest Perl 6 program I ever looked at so far :P
21:38 Geth ¦ ecosystem: 669fbcc805 | (Patrick Spek)++ (committed by Zoffix Znet) | META.list
21:38 Geth ¦ ecosystem: Add Hash::Merge (#331)
21:38 Geth ¦ ecosystem:
21:38 Geth ¦ ecosystem: See https://github.com/scriptkitties/p6-Hash-Merge/
21:38 Geth ¦ ecosystem: review: https://github.com/perl6/ecosystem/commit/669fbcc805
21:39 alphah lol, this is my very first program ever,, II know I made many stupid mistakes on it,, but it's just learning program
21:39 Zoffix tyil: FWIW, you can `git pull --rebase` to pull in changes from master without creating a new commit for the merge.
21:40 Zoffix alphah: that's pretty cool! My first program ever was much shorter and didn't do much useful things :)
21:40 Zoffix \o
21:40 Zoffix left #perl6
21:40 grondilu joined #perl6
21:40 grondilu joined #perl6
21:49 Geth Swapped META.info → META6.json in 5 dists in https://github.com/perl6/ecosystem/commit/77fbe95b4d
21:59 Actualeyes joined #perl6
22:03 kurahaupo_ joined #perl6
22:03 japhdc joined #perl6
22:11 AlexDaniel joined #perl6
22:20 Geth Swapped META.info → META6.json in 9 dists in https://github.com/perl6/ecosystem/commit/03fd5ec588
22:25 samcv ack my license checker is broken now. not sure why
22:26 samcv finding 74% similarity for artistic 2.0, and MIT finds 0.47 (when i checked the files and they're def those)
22:26 samcv so the percentages seem off
22:26 Cabanossi joined #perl6
22:27 samcv oh oopsie. forgot to normalize the text first!
22:27 samcv that would do it...
22:28 kurahaupo joined #perl6
22:31 dct joined #perl6
22:33 kurahaupo_ joined #perl6
22:36 samcv working great for Artistic-2.0. hm maybe i need to set an upper limit based on different words instead of on percent
22:36 samcv because MIT will show like 95% even if only like 5 words are different
22:37 samcv and artistic will have 99.7% in that case
22:37 samcv *artistic2
22:54 dct joined #perl6
22:56 Cabanossi joined #perl6
23:06 pochi joined #perl6
23:10 mcmillhj joined #perl6
23:20 Geth Swapped META.info → META6.json in 2 dists in https://github.com/perl6/ecosystem/commit/966bed1aff
23:21 ue joined #perl6
23:26 Cabanossi joined #perl6
23:27 zapwai joined #perl6
23:29 eyck joined #perl6
23:33 ue joined #perl6
23:40 ue joined #perl6
23:43 ue joined #perl6
23:47 mcmillhj joined #perl6
23:53 mcmillhj joined #perl6
23:57 geekosaur joined #perl6
23:57 samcv timotimo, what the hell is this 'at 1: can't parse objects starting in M yet (context: ETA.in)'
23:57 samcv in JSON::Fast...
23:57 samcv why not...
23:58 samcv hm. something weird is going on here. printing to screen works fine but json::pretty says it only got 9 charecters

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

Perl 6 | Reference Documentation | Rakudo