Perl 6 - the future is here, just unevenly distributed

IRC log for #perl6, 2017-05-17

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 noganex joined #perl6
00:02 lucs How does 'has $foo' (simple sigil) compare to 'has $.foo' or 'has $!foo'?
00:03 timotimo it means one of the two
00:03 timotimo m: class A { has $a; method foo { say $a } }; A.new.foo
00:03 camelia rakudo-moar 84502d: OUTPUT: «(Any)␤»
00:04 timotimo m: class A { has $a; method foo { say $a } }; A.new.a
00:04 camelia rakudo-moar 84502d: OUTPUT: «No such method 'a' for invocant of type 'A'␤  in block <unit> at <tmp> line 1␤␤»
00:04 timotimo looks like it's the same as $!a
00:05 * lucs looks back at the code where he accidentally did the 'has $foo'...
00:05 timotimo i'd recommend perl6critic to mark that up
00:06 timotimo not that we actually have that just yet
00:06 lucs :)
00:16 mcmillhj joined #perl6
00:26 lookatme joined #perl6
00:27 lookatme morning! o\ o| o/
00:31 skids o/
00:41 lookatme joined #perl6
01:09 Actualeyes joined #perl6
01:19 Cabanossi joined #perl6
01:34 cdg joined #perl6
01:39 Geth ¦ ecosystem: 608ab339e2 | (Nick Logan)++ (committed using GitHub Web editor) | META.list
01:39 Geth ¦ ecosystem: Add Zef::CPANReporter
01:39 Geth ¦ ecosystem:
01:39 Geth ¦ ecosystem: Submit test reports to the cpan testers
01:39 Geth ¦ ecosystem: https://github.com/garu/Zef-Reporter
01:39 Geth ¦ ecosystem: review: https://github.com/perl6/ecosystem/commit/608ab339e2
01:48 ilbot3 joined #perl6
01:48 Topic for #perl6 is now »ö« Welcome to Perl 6! | https://perl6.org/ | evalbot usage: 'p6: say 3;' or rakudo:,  or /msg camelia p6: ... | irclog: http://irc.perl6.org or http://colabti.org/irclogger/irclogger_logs/perl6 | UTF-8 is our friend!
02:10 noganex_ joined #perl6
02:16 mcmillhj joined #perl6
02:16 mcmillhj_ joined #perl6
02:20 kybr joined #perl6
03:05 Cabanossi joined #perl6
03:30 Cabanossi joined #perl6
04:10 labster joined #perl6
04:10 labster joined #perl6
04:17 mcmillhj joined #perl6
04:26 Geth Swapped META.info → META6.json in 1 dists in https://github.com/perl6/ecosystem/commit/73dc8ecd4d
04:36 Actualeyes joined #perl6
04:41 curan joined #perl6
05:06 xiaomiao joined #perl6
05:06 parv joined #perl6
05:16 lowbro joined #perl6
05:16 lowbro joined #perl6
05:30 sad243re joined #perl6
05:30 sad243re left #perl6
05:33 xtreak joined #perl6
05:34 ufobat joined #perl6
05:42 domidumont joined #perl6
05:46 Cabanossi joined #perl6
06:04 wamba joined #perl6
06:04 ambs joined #perl6
06:07 mrdside joined #perl6
06:08 CIAvash joined #perl6
06:10 k-man joined #perl6
06:13 fatguy joined #perl6
06:15 mrdside Hi there! Can somebody explain why this grammar - https://gist.github.com/mrDSide/0af89805d88471b85f750365bca9c227 matchss only first line from this file - https://gist.github.com/mrDSide/9c18e9e0c8d6c71004f80204c7d46c79 and only before this text "Descr='src\RemoteCallListenerImpl.cpp(3390): 95c658d1-d3d"
06:16 ugexe can you post both of those files in the same gist (you can post multiple files in a single gist) as well as an additional file that shows the output with Grammar::Tracer ?
06:17 mrdside http://i96.fastpic.ru/big/2017/0517/ad/97fe2fbd7ec7bf7ff96ba89ef2ebf2ad.png
06:17 mcmillhj joined #perl6
06:18 * ugexe sees a n and windows cmd.exe
06:20 mrdside https://gist.github.com/mrDSide/0af89805d88471b85f750365bca9c227
06:22 domidumont joined #perl6
06:22 ugexe you probably need to account for newline
06:22 ugexe maybe token TOP { ^^ .. $$ }
06:25 mrdside <ugexe> why <descr> mathes only to "... -d3d"?
06:25 ugexe huh
06:25 mrdside <ugexe> whith your TOP the same has result
06:26 mrdside not the same, but nothing
06:28 ugexe in any case you need to account for newlines or something
06:29 mrdside ok, https://gist.github.com/mrDSide/0af89805d88471b85f750365bca9c227
06:29 mrdside works same
06:30 mrdside it is a bug?
06:30 domidumont joined #perl6
06:31 ugexe i dunno, can you explain why its a bug?
06:34 Ven joined #perl6
06:35 mrdside i think it should find as long string as possible
06:46 mrdside ugexe, ".+" works same
06:47 mrdside in CyGwin same result
06:49 mrdside even "(.|\n|\s)+" works long but matches the same result
06:55 xtreak joined #perl6
07:00 margeas joined #perl6
07:00 simcop2387 joined #perl6
07:01 Cabanossi joined #perl6
07:07 xtreak joined #perl6
07:08 jap6h )
07:12 mrdside joined #perl6
07:12 pmurias_ joined #perl6
07:12 pmurias joined #perl6
07:15 mrdside how can i isolate \n and \r\n?
07:17 mrdside i mean to read lines containing \n with breakdown \r\n?
07:18 lookatme .open(nl-in => '\r\n') ?
07:19 mr-foobar joined #perl6
07:20 lookatme https://docs.perl6.org/routine/open#Newline_options  You mean this ?
07:20 mrdside in Grammars
07:20 lookatme Oh
07:20 mrdside https://gist.github.com/mrDSide/0af89805d88471b85f750365bca9c227
07:21 lookatme I see
07:24 lookatme Maybe you can tried "\n" "\r\n" ?
07:35 darutoko joined #perl6
07:41 AlexDaniel joined #perl6
07:45 dakkar joined #perl6
07:48 zakharyas joined #perl6
07:52 zakharyas joined #perl6
08:06 jonas2 joined #perl6
08:15 domidumont1 joined #perl6
08:17 mcmillhj joined #perl6
08:23 grondilu joined #perl6
08:32 robertle joined #perl6
08:40 bjz joined #perl6
08:49 cpage__ joined #perl6
08:51 bjz joined #perl6
08:54 rindolf joined #perl6
08:58 cpage__ joined #perl6
08:59 xtreak joined #perl6
09:05 xtreak joined #perl6
09:11 wamba joined #perl6
09:12 xtreak joined #perl6
09:17 mcmillhj_ joined #perl6
09:17 mcmillhj joined #perl6
09:42 xtreak joined #perl6
09:54 Actualeyes left #perl6
09:55 robertle joined #perl6
10:07 xtreak joined #perl6
10:09 Geth ¦ ecosystem: 4cbf9a76ef | (Marcel Timmerman)++ (committed using GitHub Web editor) | META.list
10:09 Geth ¦ ecosystem: missed meta filename update
10:09 Geth ¦ ecosystem:
10:09 Geth ¦ ecosystem: rename META.info into META6.json in BSON
10:09 Geth ¦ ecosystem: review: https://github.com/perl6/ecosystem/commit/4cbf9a76ef
10:29 astj joined #perl6
10:29 as_ joined #perl6
10:30 as_ rakudo: say $*THREAD; Thread.start({say $*THREAD});
10:30 camelia rakudo-moar 84502d: OUTPUT: «Thread #1 (Initial thread)␤Thread #3␤»
10:30 as_ Where is thread #2?
10:30 Cabanossi joined #perl6
10:37 nine as_: that's most probably a thread used internally by MoarVM. E.g. for async IO
10:37 jnthn Potentially either VM internal or started/torn down earlier during startup
10:37 jnthn I'd not read anything much into the IDs
10:38 nine My old rule of thumb: never ever apply semantics to IDs. All they need to be is unique.
10:38 as_ No, nothing much into but just curious :)
10:42 lowbro joined #perl6
10:42 lowbro joined #perl6
10:52 tokomer joined #perl6
10:58 xtreak joined #perl6
11:04 mr-foobar joined #perl6
11:11 rindolf joined #perl6
11:20 mr-foobar joined #perl6
11:22 astj joined #perl6
11:23 curt_ joined #perl6
11:29 rindolf joined #perl6
11:30 astj joined #perl6
11:52 cpage_ joined #perl6
12:00 raschipi joined #perl6
12:01 Cabanossi joined #perl6
12:10 xtreak joined #perl6
12:24 Rawriful joined #perl6
12:27 domidumont joined #perl6
12:31 Geth ¦ specs: edb5c57af6 | (Zoffix Znet)++ (committed using GitHub Web editor) | v6d.pod
12:31 Geth ¦ specs: Propose removal of Str.lines: $count param
12:31 Geth ¦ specs: review: https://github.com/perl6/specs/commit/edb5c57af6
12:32 bjz joined #perl6
12:41 yht joined #perl6
12:41 pmurias joined #perl6
12:45 mcmillhj joined #perl6
12:45 mcmillhj_ joined #perl6
12:46 Cabanossi joined #perl6
12:46 [Coke] oooh, damian is going to be at the swiss perl workshop this year!
12:48 [Coke] 'make xtest' failing again in doc
12:51 wamba joined #perl6
12:56 Geth ¦ doc: 7ef469cca3 | (Zoffix Znet)++ (committed using GitHub Web editor) | doc/Type/Any.pod6
12:56 Geth ¦ doc: Fix compilation issue in new duckmap examples
12:56 Geth ¦ doc: review: https://github.com/perl6/doc/commit/7ef469cca3
12:57 Geth ¦ doc: 7a0843b175 | (Zoffix Znet)++ (committed using GitHub Web editor) | doc/Language/list.pod6
12:57 Geth ¦ doc: Do not test example showcasing syntax error
12:57 Geth ¦ doc: review: https://github.com/perl6/doc/commit/7a0843b175
13:00 Geth ¦ doc: 2f8f417037 | (Zoffix Znet)++ (committed using GitHub Web editor) | doc/Type/Any.pod6
13:00 Geth ¦ doc: Add extra space around &by param
13:00 Geth ¦ doc:
13:00 Geth ¦ doc: To make it more obvious it's a positional param, as some reportedly[^1]
13:00 Geth ¦ doc: try to use it as a named arg.
13:00 Geth ¦ doc:
13:00 Geth ¦ doc: [1] https://rt.perl.org/Ticket/Display.html?id=130517#ticket-history
13:00 Geth ¦ doc: review: https://github.com/perl6/doc/commit/2f8f417037
13:00 [Coke] -1 on adding that extra space.
13:01 pmurias hmm, how is nqp::opendir/nqp::nextfiledir behaving on windows? does it return '.', '..'?
13:01 bjz_ joined #perl6
13:01 pmurias I'm implementing it on the js backend and not sure if I should return the '.', '..' (node.js is not giving me that)
13:03 Geth ¦ doc: 67ab9c1a0b | (Zoffix Znet)++ (committed using GitHub Web editor) | doc/Type/Any.pod6
13:03 Geth ¦ doc: Actually point out &by is a positional arg in prose
13:03 Geth ¦ doc:
13:03 Geth ¦ doc: Fixes RT#130517: https://rt.perl.org/Ticket/Display.html?id=130517
13:03 Geth ¦ doc: review: https://github.com/perl6/doc/commit/67ab9c1a0b
13:03 synopsebot6 Link:  https://rt.perl.org/rt3/Public/Bug/Display.html?id=130517
13:03 cdg joined #perl6
13:09 Geth ¦ doc: 84562697db | (Zoffix Znet)++ | doc/Type/Any.pod6
13:09 Geth ¦ doc: Revert "Add extra space around &by param"
13:09 Geth ¦ doc:
13:09 Geth ¦ doc: Per: https://irclog.perlgeek.de/perl6/2017-05-17#i_14595356
13:09 Geth ¦ doc:
13:09 Geth ¦ doc: The original issue is more thoroughly addressed by change to prose:
13:09 Geth ¦ doc: https://github.com/perl6/doc/commit/67ab9c1a0b
13:09 Geth ¦ doc: review: https://github.com/perl6/doc/commit/84562697db
13:23 Geth ¦ doc: 2719b53e66 | (Zoffix Znet)++ (committed using GitHub Web editor) | doc/Language/testing.pod6
13:23 Geth ¦ doc: Clarify is-deeply bug-by-design affects only Seq:D
13:23 Geth ¦ doc:
13:23 Geth ¦ doc: For Seq type objects it used to crash, but now fixed[^1] and
13:23 Geth ¦ doc: tested[2], to pass them through non-buggy path in is-deeply.
13:23 Geth ¦ doc:
13:23 Geth ¦ doc: [1] https://github.com/rakudo/rakudo/commit/f3f99b3ac4
13:23 Geth ¦ doc: [2] https://github.com/perl6/roast/commit/3ea879737b
13:23 Geth ¦ doc: review: https://github.com/perl6/doc/commit/2719b53e66
13:32 rindolf joined #perl6
13:42 skids joined #perl6
13:43 araraloren joined #perl6
13:46 Cabanossi joined #perl6
13:54 lucasb joined #perl6
14:08 astj_ joined #perl6
14:14 mr-foobar joined #perl6
14:16 shadowpaste joined #perl6
14:16 Geth ¦ doc: 09250ba945 | (Zoffix Znet)++ (committed using GitHub Web editor) | doc/Language/testing.pod6
14:16 Geth ¦ doc: Idomatic-ize example
14:16 Geth ¦ doc:
14:16 Geth ¦ doc: We don't post-increment hash keys to count things in Perl 6.
14:16 Geth ¦ doc: review: https://github.com/perl6/doc/commit/09250ba945
14:18 wamba joined #perl6
14:26 FROGGS joined #perl6
14:35 khw joined #perl6
14:36 Geth ¦ doc: 6cdbe86624 | (Zoffix Znet)++ (committed using GitHub Web editor) | doc/Language/testing.pod6
14:36 Geth ¦ doc: Use a more elaborate with different types
14:36 Geth ¦ doc:
14:36 Geth ¦ doc: to showcase how is-deeply tests all of it
14:36 Geth ¦ doc: review: https://github.com/perl6/doc/commit/6cdbe86624
14:41 raschipi m: "😛🤔".reverse.put
14:41 camelia rakudo-moar f3f99b: OUTPUT: «😛🤔␤»
14:42 raschipi flip
14:45 domidumont joined #perl6
14:46 Geth ¦ doc: 6ff19e6120 | (Zoffix Znet)++ (committed using GitHub Web editor) | doc/Language/testing.pod6
14:46 Geth ¦ doc: Use shiny regex classes in example
14:46 Geth ¦ doc:
14:46 Geth ¦ doc: Totally forgot we have these. (also fix a bug in letters regex)
14:46 Geth ¦ doc: review: https://github.com/perl6/doc/commit/6ff19e6120
14:46 dj_goku joined #perl6
14:46 dj_goku joined #perl6
15:06 tbrowder hi #perl6
15:07 tbrowder i've been away for a while but see reports of lots happening in the ecosystem
15:08 tbrowder are we almost ready to move away from the current procedures?
15:11 timotimo you mean away from modules.perl6.org and onto cpan?
15:14 tbrowder yes
15:17 tbrowder i have several modules in work and am working on some tools to ease integration with the current ecosystem. i don't want to keep working in that direction if we're about to see a major change in procedures.
15:24 jdv79 the plan, for a year or two now, has been to move off github and onto cpan
15:24 curt_ https://github.com/ugexe/zef#cpan
15:24 jdv79 curious how far along we are myself
15:27 pmurias didn't the recent Toolchain Summit make a lot of progress towards moving to cpan?
15:32 ugexe yes you can upload distributions to cpan through PAUSE (or using App::Mi6 + CPAN::Uploader::Tiny), and you can enable searching cpan with --cpan
15:32 ugexe enable searching cpan with zef --cpan^
15:34 ugexe tbrowder: so something you might consider is then keeping your versioned distributions on cpan, but using github master + ecosystem to provide the absolute latest code
15:37 ugexe last I knew Inline::Perl5, Acme::Meow, and Text::CSV were the only author uploaded modules on cpan as of yet
15:37 marcovorg joined #perl6
15:37 ugexe https://gist.github.com/ugexe/0e77eaba67c893e5a18042a59f20c164
15:39 ugexe tbrowder: but anyway - you can have your modules on both cpan and the perl6 ecosystem if you want
15:41 jdv79 so, uploading to cpan has been working for over a year
15:41 ugexe once a fair number of authors (some number more than 3 anyway) have uploaded their own perl6 dists to cpan then it will be enabled by default in zef
15:41 ugexe jdv79: yeah but now you don't have to do the Perl6 folder thing
15:41 jdv79 oh?
15:42 ugexe a META6.json can mark a distribution as perl6 in pause now
15:43 ugexe which then does the Perl6/ folder thing for you when you upload
15:43 jdv79 oh neat
15:44 tbrowder so how should we mod the META6.json file for the dual life?
15:45 ugexe tbrowder: if you upload your distribution to cpan the source-url will be added for you automatically by my indexer
15:45 ugexe it won't edit the actual file cpan has, but it does in the big ol json index of cpan that zef searches
15:45 wamba joined #perl6
15:46 ugexe additionally nine has a PR to pause that will do this *for the source-url in the distribution itself*
15:47 ugexe so you don't have to mod anything
15:47 ugexe everything should *just work*, and if it doesn't let me know
15:49 perlpilot ugexe: did anyone at the summit discuss mods to metacpan.org for showing Perl 6 modules?
15:50 perlpilot (I'm mostly just curious how people who would use CPAN can find Perl 6 modules in the same way they would Perl 5 modules)
15:50 jdv79 so wouldn't it be nicer to just kick the upload if a source-url is not correct or if anything about the dist is incorrect?
15:51 jdv79 i did the out of date metacpan mods.  is someone working on another set?
15:52 jdv79 if not i have part of the work to get them up to date i could do
15:52 bjz joined #perl6
15:53 jdv79 the old idea was there will be 2 seperate metacpan instances.  i'm not sure if that is the current thinking after the summit.
15:53 mcmillhj joined #perl6
15:53 mcmillhj_ joined #perl6
15:54 ugexe we didn't get a chance to discuss metacpan with anyone, although I did get to point people to jdvs working fork and show that there is a working implementation (that zef can also use fwiw)
15:54 cpage__ joined #perl6
15:55 jdv79 nice
15:55 ugexe jdv79: the source-url should be set by pause/cpan because you might not know what the source-url is until you upload
15:55 jdv79 is the mi6 thing redundant to zef?
15:55 ugexe (technically you could know because it follows a pattern, but still)
15:55 ugexe App::Mi6 is an authoring tool
15:56 jdv79 isn't source-url field moot since to get the meta6.json file you had to fetch teh dist or somwhere very close to it in url
15:57 jdv79 i thought that field was originally a panda thing to point to gh from the eco
15:57 raschipi I suggest the name "yondercpan" for the P6 tool.
15:57 ugexe for instance: metacpan uses download-url
15:57 perlpilot I thought the META6.json file was in the tarball they uploaded to PAUSE.
15:57 jdv79 also, if and when we do signed dists that's not gonnna fly
15:58 ugexe source-url and where the meta6.json is found do not have to be related
15:58 zakharyas joined #perl6
15:58 ugexe all cpan json is currently at https://github.com/ugexe/Perl6-ecosystems/blob/master/cpan.json
15:58 jdv79 the dist should probably just be validated and kicked
15:58 jdv79 ah, that's your file.  i had forgotten.
15:59 ugexe if you want to sign it then you would probably have to set the source-url yourself
16:00 raschipi Pause should sign it.
16:00 ugexe it could
16:00 raschipi Like kernel.org does for linux.
16:00 Cabanossi joined #perl6
16:03 wamba joined #perl6
16:05 jdv79 i guess.  modifying a dist on upload just seems dirty.
16:05 jdv79 whatever works at this point i guess
16:09 ugexe jdv79: maybe the PR only changes the source-url in the .meta file that gets extracted alongside the .tar.gz
16:09 ugexe nine ^ ?
16:11 raschipi What about Pause submitting a PR to the source-url provided so that if it's accepted it doesn't need to change it every time?
16:12 TimToady joined #perl6
16:17 BenGoldberg joined #perl6
16:23 ugexe there is no reason a dist has to be git based
16:23 pmurias what is supposed to be stored in the source-url?
16:24 raschipi I know, but having it in case it is would be nice.
16:24 ugexe source-url tells a module installer where to fetch a distribution from. so whatever "ecosystem" should be handling this
16:25 pmurias what do we need source-url from?
16:25 ugexe people have to manually set it for the ecosystem-api.p6c.org/projects.json ecosystem because it has no way of knowing itself (although it certainly could guess pretty easily)
16:25 ugexe if you are uploading to cpan you don't need to set the source-url
16:26 ugexe for the p6c ecosystem you set it to whatever you want it to download (maybe its even a .tar.gz url to cpan)
16:26 araraloren Any format uri which cam fetch module source code, right ?
16:26 ugexe e.g. source-url is not part of META spec, its a recommendation manager / content storage  field
16:27 pmurias so is there a need for it to be inside dists on CPAN or in module repos?
16:27 ugexe araraloren: yes - it is expected that your package manager will understand the uri
16:28 tbrowder ok, i will try out the mixed system with a new module soon.
16:28 ugexe pmurias: it would be nice, but it doesn't have to be. it only needs to be in the *index* of meta data, not in the actual downloaded meta data extracted from the .tar.gz
16:30 araraloren pmurias, No, actually even you can write plugin for zef to deal your uri format
16:32 pmurias ugexe: are module author aware what source-url is supposed to be or do they just cargo cult the github repo there
16:34 dj_goku joined #perl6
16:35 wamba joined #perl6
16:38 AlexDaniel joined #perl6
16:38 beginner joined #perl6
16:39 beginner is there active object design pattern in perl6?
16:42 raschipi beginner: https://github.com/jnthn/oo-actors ?
16:44 beginner yes
16:50 lichtkind joined #perl6
16:54 beginner raschipi : but its mentioned as a partial version
16:55 raschipi jnthn: What's missing on that module?
17:13 kyclark joined #perl6
17:28 jnthn raschipi: The whole parent/child error escalation thing
17:41 robertle joined #perl6
17:43 espadrine joined #perl6
17:46 zapwai joined #perl6
17:57 tbrowder ugexe: say i just keep master branch in ecosys and releases in cpan. what will zef install for "zef install My::Module"?
17:58 tbrowder the master or the latest release on cpan?
18:00 labster joined #perl6
18:10 BenGoldberg joined #perl6
18:11 raschipi tbrowder: to get from CPAN you need --cpan for now.
18:12 tbrowder hm,
18:12 tbrowder thanks
18:16 ugexe well it depends, it'll take whichever is the highest version as stated in meta6.json - if its the same then it would take whichever it sees first (at the moment this is p6c ecosystem but only because its first in the config and doesn't search concurrently yet)
18:21 setty1 joined #perl6
18:22 dj_goku joined #perl6
18:22 dj_goku joined #perl6
18:28 MilkmanDan joined #perl6
18:46 Cabanossi joined #perl6
18:47 kurahaupo joined #perl6
18:48 araujo joined #perl6
18:49 nine ugexe, jdv79: my PAUSE PR only changes the source-url in the _extracted_ .meta file. The tar ball remains untouched
18:49 domidumont joined #perl6
18:50 nine Note though that PAUSE will repack your tar ball if the files in there are world writeable. Which is why META6.json detection was so easy to integrate. The tar ball inspection code was already there.
18:50 nadim joined #perl6
18:54 nine tbrowder: ^^
19:03 kurahaupo joined #perl6
19:08 imcsk8 joined #perl6
19:11 lichtkind joined #perl6
19:16 labster joined #perl6
19:17 AndyDee joined #perl6
19:19 tbrowder so does zef still need --cpan to look there?
19:22 hahainternet so the example i gave yesterday with 'token whatever { :i <@listoftokens> }' becomes a problem when you try and enable backtracking
19:22 hahainternet i'm assuming that what's happening is that the token with a bunch of possibilities is always matching the first possible, so backtracking doesn't match alternatives
19:23 hahainternet i assume the solution would be what i was considering yesterday, programmatically adding a bunch of tokens from the list rather than declaring a single token that's any list member
19:23 hahainternet does this seem correct/dumb/reasonable/absurd etc?
19:30 nine tbrowder: yes. FAIK it's ugexe's plan to make that the default this weekend.
19:34 tbrowder great!
19:36 avuserow ]
19:39 wamba joined #perl6
19:44 yqt joined #perl6
19:44 Zoffix joined #perl6
19:47 TEttinger joined #perl6
19:47 Zoffix nine: ugexe: is the uploader running again then or will PSIXDIST experiment's dists will be excluded? Otherwise if --cpan is the default lots of people will be getting anicent versions of modules
19:47 TEttinger joined #perl6
19:47 wamba joined #perl6
19:49 Zoffix Feels like the second option is more prefereable, I've just downloaded http://www.cpan.org/authors/id/P/PS/PSIXDISTS/Perl6/Pastebin-Gist-0.000.001.tar.gz is it's pretty messy... Has 2 META file, both with authority "zoffixznet", but one lists original version 1.001001, but the other lists the faked out version 0.001001
19:49 Zoffix 0.000.001 rather
19:50 Zoffix And that's the only version is see listed in https://github.com/ugexe/Perl6-ecosystems/blob/master/cpan.json
19:50 Zoffix Meanwhile, the real latest version is 1.001003, with several bugs fixed: https://github.com/zoffixznet/perl6-Pastebin-Gist/blob/master/META6.json#L5
19:51 * Zoffix is a bit annoyed with PSIXDISTS 'cause that shit stays on backpan forever...
19:52 ugexe zef --debug --cpan install Pastebin::Gist # installs version 1.001003 for me
19:53 ugexe you have to do `zef --debug --cpan --/p6c --/cached install Pastebin::Gist` to get the crusty old version
19:55 Zoffix ah cool
19:55 ugexe and the PSIXDISTS experiment is why we were able to put the final pieces in place so quickly at PTS (because zef already had a large cpan repo of multiple versions it could be programmed to find in advance)
19:56 Zoffix m: say 0.000.001 before *
19:56 camelia rakudo-moar f3f99b: OUTPUT: «5===SORRY!5=== Error while compiling <tmp>␤Malformed postfix call␤at <tmp>:1␤------> 3say 0.000.7⏏001 before *␤»
19:56 ugexe although we can simply stop indexing those dists when we have more than 3 dists
19:56 Zoffix m: say v0.000.001 before *
19:56 camelia rakudo-moar f3f99b: OUTPUT: «{ ... }␤»
19:56 ugexe remove them entirely even
19:56 Zoffix m: say v0.000.001 before v*
19:56 camelia rakudo-moar f3f99b: OUTPUT: «5===SORRY!5=== Error while compiling <tmp>␤Missing required term after infix␤at <tmp>:1␤------> 3say v0.000.001 before v*7⏏5<EOL>␤    expecting any of:␤        prefix␤        term␤»
19:56 Zoffix ugh
19:56 ugexe cpan doesn't have any version *
19:57 Zoffix ugexe, yes but if I make my module's version *, which will get installed?
19:57 mcmillhj joined #perl6
19:57 mcmillhj_ joined #perl6
19:58 ugexe we have to stop making modules version *
20:05 Zoffix In fact, PSIXDISTS breaks the license of all my modules in several points: it modified from orinal without specifying how it differs, and since modified version still bears the original name it interferes with installation of Standard Version were I to choose to use * as version
20:06 geekosaur not this again. why do people think it;s just fine to accept any random version of an api (or module version that inevitably will express an API)?
20:06 geekosaur this is one of those "you claim to accept any version? fine, my api launches nethack"
20:07 perlpilot geekosaur: we always give people enough rope to hang themselves?
20:07 Zoffix haha :)
20:10 Zoffix +1 on blacklisting * as version in Meta file
20:11 dj_goku joined #perl6
20:11 dj_goku joined #perl6
20:12 [Coke] +1
20:13 cdg joined #perl6
20:14 Zoffix (to add tone info for my above comment about licenses: I'm merely making an observation and I'm thankful of all the work done to move P6 to cpan)
20:19 moritz we shouldn't ban * as version until we make it really easy to create and publish releases of modules
20:19 moritz with the current system of pushing stuff to github, you have to remember to change a version number for each commit, or you end up with multiple different versions with the same version number, which totally defeats the point of version numbers in the first place
20:20 moritz or does that tooling exist, and I've simply missed it so far?
20:23 Zoffix moritz, except * doesn't meam "latest and greatest" but "but if you got any version installed, you're good"... so basically upgrading requires a --force and I'm guessing when --cpan becomes enabled by default, the ancient 0.000.001 PSIXDIST versions will be fetched instead of *
20:24 Zoffix m: say v0.000.001 after Version.new(*)
20:24 camelia rakudo-moar f3f99b: OUTPUT: «True␤»
20:25 Zoffix yeah, looka like it'd be considered newer
20:25 Zoffix Which makes sense, otherwise you use '*' once and you're screwed forever
20:27 itaipu joined #perl6
20:28 Zoffix star: use JSON::Fast; LWP::Simple.new.get('http://ecosystem-api.p6c.org/projects.json').&amp;from-json.grep({quietly .version eq '*'}).elems.say
20:28 camelia star-m 2016.10: OUTPUT: «WARNINGS for <tmp>:␤Useless use of "eq" in expression ".version eq '*'" in sink context (line 1)␤Could not find symbol '&Simple'␤  in block <unit> at <tmp> line 1␤␤Actually thrown at:␤  in block <unit> at <tmp> line 1␤␤»
20:28 Zoffix huh
20:29 Zoffix star: use JSON::Fast; use LWP::Simple; LWP::Simple.new.get('http://ecosystem-api.p6c.org/projects.json').&amp;from-json.grep({(.version//'') eq '*'}).elems.say
20:29 camelia star-m 2016.10: OUTPUT: «No such method 'version' for invocant of type 'Hash'␤  in block <unit> at <tmp> line 1␤␤»
20:29 Zoffix star: use JSON::Fast; use LWP::Simple; LWP::Simple.new.get('http://ecosystem-api.p6c.org/projects.json').&amp;from-json.grep({(.<version>//'') eq '*'}).elems.say
20:29 camelia star-m 2016.10: OUTPUT: «183␤»
20:29 Zoffix yikes
20:32 BenGoldberg joined #perl6
20:32 Zoffix left #perl6
20:43 trnh joined #perl6
20:46 Cabanossi joined #perl6
20:50 AlexDaniel joined #perl6
21:09 bjz joined #perl6
21:17 dj_goku joined #perl6
21:17 dj_goku joined #perl6
21:28 dj_goku joined #perl6
21:28 dj_goku joined #perl6
21:36 beginner joined #perl6
21:38 dj_goku joined #perl6
21:48 dj_goku joined #perl6
21:48 dj_goku joined #perl6
21:57 dj_goku joined #perl6
22:03 ugexe I dont think cpan indexed * dists
22:03 ugexe I havent really checked though... just something I think I remember
22:03 ugexe er, I dont think PSIXDISTS uploaded dists with version * rather
22:04 labster joined #perl6
22:05 ugexe moritz: App::Mi6 can handle all the authoring stuff to get a new version to cpan I believe
22:05 ugexe skaji implemented at pts
22:09 cpage_ joined #perl6
22:12 ugexe Zoffix: i can just remove all the PSIXDISTS from the index if its a problem
22:24 SCHAPiE joined #perl6
22:24 Zoffix joined #perl6
22:25 Zoffix I think the only potential problem are the 'version: "*"' dists.. and.. let's check
22:25 AlexDaniel joined #perl6
22:25 Zoffix star: use JSON::Fast; use LWP::Simple; say LWP::Simple.new.get('http://ecosystem-api.p6c.org/projects.json').&amp;amp;from-json.grep({(.<version>//'') eq '*'})».<name>.head: 10
22:25 camelia star-m 2016.10: OUTPUT: «5===SORRY!5=== Error while compiling <tmp>␤Undeclared routine:␤    amp used at line 1. Did you mean 'map'?␤␤»
22:26 Zoffix star: use JSON::Fast; use LWP::Simple; say LWP::Simple.new.get('http://ecosystem-api.p6c.org/projects.json').&amp;from-json.grep({(.<version>//'') eq '*'})».<name>.head: 10
22:26 camelia star-m 2016.10: OUTPUT: «(JSON::Tiny Testing mandelbrot IO::Prompter Math::Polynomial Math::Vector Math::ContinuedFractions Math::ChebyshevPolynomial Math::OddFunctions Config::INI)␤»
22:26 Zoffix &amp? oh heh. the log side appears to double-encode stuff that looks like a link
22:29 Zoffix ugexe: yeah, the "*" are indexed, but the version is presereved in the metadata, so I think all that needs to be done is to grep out anything with version *, like this one: https://github.com/ugexe/Perl6-ecosystems/blob/master/cpan.json#L2769-L2783
22:30 Cabanossi joined #perl6
22:33 Zoffix .asl tadzik when are were you looking to merge the /problems/ branch on mp6o? I forsee we'll want to start adding CPAN integration to the site in some form or another and it would be nice to have your changes already in master I think. Merge :)
22:34 Zoffix ASL tadzik!
22:34 Zoffix .ask tadzik when are were you looking to merge the /problems/ branch on mp6o? I forsee we'll want to start adding CPAN integration to the site in some form or another and it would be nice to have your changes already in master I think. Merge :)
22:34 yoleaux Zoffix: I'll pass your message to tadzik.
22:34 tadzik Zoffix: yay :)
22:34 yoleaux 22:34Z <Zoffix> tadzik: when are were you looking to merge the /problems/ branch on mp6o? I forsee we'll want to start adding CPAN integration to the site in some form or another and it would be nice to have your changes already in master I think. Merge :)
22:38 labster joined #perl6
22:38 dct joined #perl6
22:39 skids joined #perl6
23:00 wamba joined #perl6
23:06 mcmillhj joined #perl6
23:06 mcmillhj_ joined #perl6
23:06 Voldenet joined #perl6
23:06 Voldenet joined #perl6
23:13 AlexDaniel do we have any module for generating sha hashes?
23:13 BenGoldberg Of course we do.
23:14 BenGoldberg What a silly question!
23:14 * BenGoldberg thinks there's even an example on RosettaCode.
23:14 AlexDaniel which is …?
23:16 timotimo i've got Digest::SHA1::Native in use somewhere
23:16 AlexDaniel well, not SHA1 please
23:17 timotimo aha
23:18 BenGoldberg SHA1 was broken a few months ago, wasn't it?
23:18 AlexDaniel I know I can just run out, but :|
23:18 AlexDaniel BenGoldberg: it was clearly broken even before that
23:18 AlexDaniel just without any examples demonstrating it :)
23:18 timotimo you can generate two things that have the same hash now
23:19 Zoffix buggable: eco sha
23:19 buggable Zoffix, Found 7 results: Digest::PSHA1, JSON::Unmarshal, Pastebin::Shadowcat, LibraryCheck, JSON::Marshal. See https://modules.perl6.org/#q=sha
23:19 Zoffix heh
23:19 BenGoldberg There's libdigest-perl6 p6-digest-sha256, https://rosettacode.org/wiki/SHA-256#Perl_6
23:20 Zoffix yup https://modules.perl6.org/#q=sha
23:20 Zoffix left #perl6
23:21 ugexe m: use nqp; say nqp::sha1("foo"); # cheat
23:21 camelia rakudo-moar f3f99b: OUTPUT: «0BEEC7B5EA3F0FDBC95D0DD47F3C5BC275DA8A33␤»
23:22 mcmillhj joined #perl6
23:22 AlexDaniel m: use nqp; say nqp::sha256("foo"); # cheat
23:22 camelia rakudo-moar f3f99b: OUTPUT: «===SORRY!===␤No registered operation handler for 'sha256'␤»
23:22 AlexDaniel :P
23:22 AlexDaniel wait, what is this? https://github.com/grondilu/libdigest-perl6
23:22 mcmillhj_ joined #perl6
23:22 AlexDaniel I can't see it in the module directory
23:23 BenGoldberg It's pure perl6, not a library binding, so it will be slow.
23:23 AlexDaniel I see it, but that's ok
23:23 AlexDaniel AH
23:23 AlexDaniel it's called just “Digest”
23:23 AlexDaniel ok
23:24 * AlexDaniel is blind
23:25 sammers hi #perl6
23:25 AlexDaniel t/sha.t .....1/2# expected: 'fbc1a9f858ea9e177916964bd88c3d37b91a1e84412765e29950777f265c4b75'
23:25 AlexDaniel #      got: 'd7d04233b3a8427b7798817eae45cb70c7c24cfcc6740c2b44fb7aa823662036'
23:25 AlexDaniel
23:25 AlexDaniel awesome
23:27 AlexDaniel .seen FROGGS
23:27 yoleaux I saw FROGGS 17 Jan 2017 21:11Z in #perl6: <FROGGS> dataf3l: to this: http://hg.dyncall.org/pub/dyncall/dyncall/file/011b5e3a8548/dyncall/dyncall_callf.c#l91
23:28 AlexDaniel .tell grondilu Some sha tests are failing when installing Digest, perhaps worth taking a look
23:28 yoleaux AlexDaniel: I'll pass your message to grondilu.
23:28 darkfeathers9 joined #perl6
23:40 sammers thanks to whoever implemented samemark
23:41 AlexDaniel I agree
23:42 mcmillhj joined #perl6
23:42 mcmillhj_ joined #perl6
23:45 Chillance joined #perl6
23:45 dj_goku joined #perl6

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

Perl 6 | Reference Documentation | Rakudo