»ö« Welcome to Perl 6! | perl6.org/ | evalbot usage: 'p6: say 3;' or rakudo:, or /msg camelia p6: ... | irclog: irc.perl6.org or colabti.org/irclogger/irclogger_logs/perl6 | UTF-8 is our friend!
Set by moritz on 22 December 2015.
00:08 Cabanossi left 00:09 Cabanossi joined 00:10 timeless joined 00:20 cpage_ joined 00:25 yqt left 00:47 astj joined 00:55 kurahaupo_ joined 00:56 kurahaupo left 01:21 Cabanossi left 01:24 Cabanossi joined 01:31 isBEKaml left, cpage_ left 01:45 ilbot3 left 01:49 ilbot3 joined, ChanServ sets mode: +v ilbot3 02:07 Cabanossi left 02:09 Cabanossi joined 02:10 aindilis left 02:18 mcmillhj joined 02:21 eliasr left 02:23 mcmillhj left 02:37 poohman joined 02:47 noganex joined 02:50 noganex_ left 02:56 cibs_ is now known as cibs 03:00 pierre_ joined 03:06 mcmillhj joined 03:10 mcmillhj left 03:12 poohman left 03:18 mcmillhj joined 03:22 Cabanossi left 03:24 Cabanossi joined 03:34 dwarring left 03:36 Cabanossi left
Geth Swapped META.info → META6.json in 1 dists in github.com/perl6/ecosystem/commit/9db0764a6a 03:37
03:38 Cabanossi joined, skids left 03:41 pierre_ left 03:45 aindilis joined 03:50 aborazmeh joined, aborazmeh left, aborazmeh joined, khw left 03:52 tharkun_ left, tharkun_ joined, tharkun_ is now known as tharkun 03:58 pierre_ joined
pierre_ Hi all, quick question, how can i verifiy the version of a module, in my perl6 code? 03:58
Module metas are in Perl6::Metamodel::ModuleHOW 03:59
but i did not find anything about that class in the docs
04:04 kurahaupo_ left 04:07 Cabanossi left 04:08 Cabanossi joined 04:13 zapwai left 04:19 wamba joined
pierre_ It seems that one of the bug i reported a long time ago is fixed 04:21
rt.perl.org/Ticket/Display.html?id=127959
04:24 mcmillhj left 04:28 pierre_ left 04:31 xtreak joined 04:39 xtreak left 04:40 mcmillhj joined 04:43 xtreak joined 04:45 mcmillhj left 04:46 KDr2_c joined 04:54 cpage_ joined 05:14 imcsk8 left 05:21 Cabanossi left, imcsk8 joined 05:23 Cabanossi joined 05:36 lowbro joined, lowbro left, lowbro joined 05:39 ufobat___ joined 05:58 pierre_ joined 06:17 alyptik joined 06:22 aborazmeh left 06:24 go|dfish joined 06:25 parv joined 06:39 domidumont joined
u-ou is there a good tutorial on effective use of roles? 06:40
06:44 domidumont left 06:45 domidumont joined 06:57 wamba left 06:58 jsimonet joined
moritz u-ou: I'm not aware of one 07:02
if you find one, please let me know :-) 07:03
u-ou ok :p
moritz pierre_: I think you can use TheModule:ver<0.1>; or something like that
07:12 TimToady left, darutoko joined 07:16 rindolf joined, astj left 07:21 Cabanossi left 07:22 astj joined 07:23 Cabanossi joined 07:25 mcmillhj joined
Geth ecosystem: d735bea0b5 | (Martin Barth)++ (committed using GitHub Web editor) | META.list
XML::XPath: meta -> meta6
07:27
07:28 ufobat___ is now known as ufobat, ufobat left, ufobat joined 07:34 mcmillhj left
Geth Swapped META.info → META6.json in 1 dists in github.com/perl6/ecosystem/commit/2f3e47a9fa 07:39
07:39 zengargoyle left 07:42 domidumont left 07:43 domidumont joined 07:44 salva joined 07:50 TimToady joined
sammers hi all 07:50
07:51 pierre_ left
u-ou hi 07:52
07:56 mcmillhj joined 07:59 pierre_ joined 08:01 mcmillhj left 08:02 wamba joined
pierre_ moritz: yes, i can force inclusion of one version, but i wanted to include a module and then check what version it is 08:03
i ended up checking with zef 08:04
zef info Some::Module
08:09 cpage__ joined 08:11 cpage left, cpage__ is now known as cpage 08:21 xtreak left 08:22 Cabanossi left 08:23 Cabanossi joined, xtreak joined
samcv stage 3 (or 4?), going to do the rest of the licenses by hand. have my robot print out to a file its 3 best guesses along with percent match, then i can choose the right one myself 08:27
08:27 zakharyas joined
tyil nice 08:29
samcv 8 threads is a good number 08:30
ok done. cool. so 120
tyil samcv: I looked into nightly .deb builds for rakudo, can either use fpm or just write a small script for the specific task 08:33
can run either cronjobbed on one of my servers
08:33 TEttinger left
tyil might make an apt repo to make it even easier to use in travis 08:33
ufobat hi ) 08:35
tyil hi 08:36
Geth Swapped META.info → META6.json in 4 dists in github.com/perl6/ecosystem/commit/ace0b26929 08:39
08:39 xtreak left 08:40 xtreak joined
samcv nice it even picks out GPL-3.0+ vs GPL-3.0 08:42
for ones that are any later version. though i'm double checking that with ctrl +f to make double sure
08:44 xtreak left
samcv can put a plus after any license identifier, if it contains a clause that allows you to use newer versions if you choose. i guess in old SPDX revisions GPL-3.0+ was its own identifier, but obviously they decided that was silly, and let you apply it to any license identifier 08:48
08:50 eliasr joined 08:55 xtreak joined
samcv wow no wonder the best match was 00.04 % for this license... 08:57
raw.githubusercontent.com/Juerd/p6...er/LICENSE
text just says: Pick your favourite OSI approved license :)
u-ou :| 08:58
samcv not sure what to put for license identifier
tyil I wonder what legal license that is under
samcv: just pick one
samcv uh. grep all the OSI approved liceese and then use OR semantics
GPL-3.0 OR ARtistic-2.0 OR GPL-2.0 OR ......
hahah.
u-ou maybe contact them
samcv tell them uhm
tyil "can you pick a license already" 08:59
samcv yeah 09:00
just copy and paste exact text in a github issue :) 09:01
09:01 geekosaur left
samcv though it would be crazy if they put OR semantics and did all like 40 OSI approved ones 09:01
would be valid to the spec afaik
09:02 ufobat left
tyil if thats what they want, let them do it 09:02
might wanna advice them in the issue not to do it, though
samcv lol
tyil then you at least tried
samcv cause it's insane
but you COULD do it.
tyil you could also fork it by 9BST and just re-release it only under gpl 09:03
samcv goddamit
X|
:V
tyil !fw :V
no fw bot? :< 09:04
samcv yeah my bot's not in here
tyil oh
what a mediocre channel :'D
samcv there's plenty of other bots though
huggable, hug tyil
huggable hugs tyil
tyil tfw
been ages since I had a hug :(
now youre just tryna make me depressed 09:05
09:07 Cabanossi left 09:08 Cabanossi joined 09:09 jjack_ joined 09:10 jjack_ left
samcv > use JSON::Fast; my %hash = from-json qx{curl 'raw.githubusercontent.com/sindreso...ll.json'}; %hash.keys.grep({%hash{$_}<osiApproved> eq 'True'}).join(' OR ') 09:12
well i did it
tyil :p
samcv gist.github.com/samcv/9649c99e1ada...4715a102b0 09:13
all OSI-approved
I should post that in the issue :) just for fun
tyil link to issue 09:14
samcv i haven't made it yet
tyil wow
samcv i wish i could write emails in markdown 09:21
tyil, here's the issue github.com/Juerd/p6-mqtt/issues/3
El_Che samcv: there is html if you like to be unpopular in tech mids :) 09:22
samcv yes i know but
grondilu samcv: what prevents you from using markdown in emails?
samcv it not rendering as markdown in my email client or others clients 09:23
grondilu markdown is designed to look good even without any rendering
samcv oh hey would have been way faster to DL if i hadn't dl'd the json with the full license text for every single spdx licesne lol. github.com/sindresorhus/spdx-licen.../spdx.json this one is much shorter
09:28 xtreak left
samcv m: 'GPL-1.0+ OR Artistic-1.0-Perl WITH Madeup-exception'.split(' OR ').perl.say 09:28
camelia ("GPL-1.0+", "Artistic-1.0-Perl WITH Madeup-exception").Seq
samcv nice that it's easy to just split it and get all the licenses, and still works even if they have excptions
09:29 wamba left, andrzejku left 09:40 andrzejku joined 09:42 andrzejku left 09:43 andrzejku joined
tyil samcv: you can write emails in markdown 09:45
its just a plaintext format after all
wether the email client renders it nicely is another question 09:46
added a +1 to the issue 09:48
09:50 bjz joined 09:54 zengargoyle joined
samcv nice 09:56
El_Che tyil: it's not just text, but formatter. Any "advanced" feature you use (e.g. url, list, etc) will look weird 09:58
tyil hmm?
El_Che This is [an example](example.com/ "Title") inline link. 10:00
tyil yes?
El_Che that is extremely weird for someone that does not parses markdown in his head
as in "regular people" :)
tyil where is this suddenly coming from tho
I'm aware how markdown works and looks like
10:00 wamba joined 10:01 andrzejku left
El_Che tyil: ignore me, I probably misunderstood 10:01
grondilu links are not the best indeed, but it's not too bad. Using tinyurl can also improve things
10:02 duncan_dmg joined
tyil tinyurl is using cloudflare tho 10:02
grondilu any similar service then
10:09 labster left 10:14 astj left 10:18 pierre_ left
parv seems to me El_Che tried to explain the problem with markdown-in-email. for which i am thankful. 10:18
10:28 xtreak joined 10:33 xtreak left, andrzejku joined 10:34 astj joined 10:35 pierre_ joined
parv time to go ... 10:36
10:37 xtreak joined, parv left 10:43 astj left 10:46 pierre_ left 11:04 xtreak left 11:10 ufobat joined 11:16 xtreak joined 11:20 Cabanossi left 11:23 Cabanossi joined 11:28 wamba left 11:42 kurahaupo joined 11:47 xtreak left 11:51 sena_kun joined, kurahaupo left
Juerd samcv: The license allows you to pick your favorite. I don't see why I should pick your favorite when you can do this yourself :) 11:58
As for tagging, if you wish to fully encode the LICENSE file, it would either require its own tag, or something to keep it up to date. The latter might not be worth the effort 12:00
tyil Juerd: you can pick the big list on the issue if you want 12:02
12:03 kurahaupo joined
tyil its just that there's no license field in your META yet, hence the opened issue 12:03
Juerd I'm considering picking a limited set for the tags 12:04
It doesn't necessarily have to encode all options, does it?
12:06 bjz left
tyil if you want to release it under all those licenses you should have them all in the license field in your META 12:06
I believe the standard nowadays is META6.json for that file as well, btw
Juerd Yes, I saw a PR for renaming the file 12:07
12:07 bjz_ joined
Juerd This will have to wait until I'm with the Android phone that has my 2nd factor for logging in on github :) 12:07
That's also why I'm commenting here, instead of at the issue 12:08
tyil no hurry, its not the end of the world if its not updated within a day :p
12:09 raiph left
Juerd :) 12:09
12:10 raiph joined 12:21 darutoko left 12:23 raschipi joined 12:24 pierre_ joined 12:35 esh joined 12:36 wamba joined, esh left 12:42 raiph left, raiph joined 12:47 raiph left 12:48 raiph joined 12:50 wamba left 12:53 raiph left, raiph joined
awwaiid Ulti: different person I assume, I don't recall doing any linting. I thought you tab-completed wrong :) 12:53
12:57 mcmillhj joined
[Coke] mst: anyone with your irc superpowers on the irc.perl.org server? 12:58
12:59 raiph left 13:00 raiph joined
tyil tfw on irc.perl.org, but no superpowers :( 13:01
13:05 AlexDaniel joined 13:15 raiph left 13:16 raiph joined 13:19 ufobat left 13:30 cdg joined 13:36 pierre_ left 13:37 Cabanossi left 13:38 salva left, Cabanossi joined 13:46 raiph left 13:48 raiph joined
perigrin [Coke]: I have them ... but I wasn't awake when the last spammer went through 13:48
13:51 skids joined 13:52 bjz_ left, raschipi left 13:53 bjz joined 13:56 yqt joined 13:57 esh joined 14:04 raiph left 14:05 raiph joined 14:21 esh left 14:23 poohman joined
poohman hello people, what is the minimum memory requirement to run moarvm 14:24
?
14:26 wamba joined
timotimo running moarvm is rather cheap 14:26
jnthn To run what on MoarVM? :)
timotimo you can compile and run an empty program with nqp in 1.4 megabytes of ram
wait 14:27
jnthn 1.4? How'd you get that? :)
timotimo it's actually 14 megs
jnthn yeah, was gonna say :)
timotimo my eyes kind of failed to count the number of digits there
poohman I was trying to build perl6 in sailfishos directly on the device and got a bus error
timotimo bus error? did you compile moarvm with the right target architecture?
it could be an illegal instruction it executed
if you want to build perl6 it'll take like 1.5 gigs of ram 14:28
jnthn What CPU does the device have?
poohman arm
need to check the specifics
timotimo the exact revision is also interesting, i.e. what you'd get for "flags" in cat /proc/cpuinfo
jnthn Bus error is often things like unaligned access 14:29
timotimo oh, that's another possibility, yeah
you might get a better output when you look at "dmesg"
jnthn Though I know we've built on PPC and ARM on the past, which are both fussier on those things than x86/x64
timotimo aye
poohman there was a similar thread showing a problem when building it in raspberry pi 14:30
ilmari I audited the code for unaligned access (using UBSAN) a while back
timotimo if the moarvm binary was compiled on the sailfish os device itself, that ought to give you all the right things
ilmari it might have regressecd, though
jnthn But yeah, building Rakudo in a memory-constrained environment will be the tricky part; the CORE.setting step is hungry
poohman 2 gigs memory in the phone
don't know how much I had free 14:31
timotimo i wonder if the uncurse work will enable us to make the core setting use noticably less ram 14:32
poohman it happened after the build of moarvm I think
timotimo the core setting compilation
ilmari you may have to fiddle with build/probe.pm to adjust the unaligned access detection
poohman give me an hour - can give the exact error and when it happened
timotimo that'll be helpful, i imagine 14:33
jnthn Bus Error feels like a slightly odd way for out of memory to be communicated; often it's Killed (by some OOM killer) an explicit out of memory error; MoarVM's various malloc calls are all guarded against NULL return.
So I'm suspecting it may be something else (even if there is a memory issue too)
14:36 bjz_ joined 14:37 bjz left
Geth Swapped META.info → META6.json in 2 dists in github.com/perl6/ecosystem/commit/ad5bcb72e2 14:41
14:42 poohman2 joined 14:46 poohman left 14:51 Cabanossi left
poohman2 ATTENTION: no --prefix supplied, building and installing to /home/nemo/source/rakudo/install 14:52
14:53 bjz_ left, Cabanossi joined 14:54 duncan_dmg left 14:55 bjz joined
poohman2 then it says make ***[gen/moar/stage1/nqpmo.moarvm] Bus error 14:55
14:59 lowbro left 15:00 khw joined 15:05 andrzejku left 15:07 Sgeo__ joined 15:09 Sgeo_ left 15:20 bjz left 15:21 pmurias joined
pmurias why when searching for 'try' docs.perl6.org shows 'infix gt' first? 15:22
sena_kun pmurias, fuzzing matching. Our docs search engine needs a lot of love. 15:23
timotimo poohman2: is that a call to Configure.pl that's giving you that? 15:28
if so, does it have a --gen-moar or something?
15:38 raschipi joined 15:41 Sgeo_ joined 15:43 Sgeo__ left
sena_kun m: say grammar { regex TOP { <name> <praise> }; regex name {"I am " $<name>=(.+?) \.}; regex praise { " $<name> is good." } }.parse: "I am Jack. Jack is good." 15:48
camelia Use of Nil in string context
in regex praise at <tmp> line 1
Use of Nil in string context
in regex praise at <tmp> line 1
Nil
sena_kun this grammar is impossible and bad-designed, obviously, should I put everything that uses my named capture in a single regex? 15:49
15:49 AlexDaniel left
jnthn That or pass it to <praise> as a parameter 15:49
sena_kun jnthn, how can I pass it as a parameter? 15:50
15:50 geraud joined
jnthn m: say grammar { regex TOP { <name> <praise($<name>)> }; regex name {"I am " $<name>=(.+?) \.}; regex praise($name) { " $name is good." } }.parse: "I am Jack. Jack is good." 15:50
camelia Use of Nil in string context
in regex praise at <tmp> line 1
Use of Nil in string context
in regex praise at <tmp> line 1
Nil
jnthn m: say grammar { regex TOP { <name> {} <praise($<name>)> }; regex name {"I am " $<name>=(.+?) \.}; regex praise($name) { " $name is good." } }.parse: "I am Jack. Jack is good."
camelia Nil
jnthn m: say grammar { regex TOP { <name> {} <praise($<name>)> }; regex name {"I am " $<name>=(.+?) \.}; regex praise($name) { "$name is good." } }.parse: "I am Jack. Jack is good." 15:51
camelia Nil
jnthn Hmmm
m: say grammar { regex TOP { <name> {} <praise($<name>)> }; regex name {"I am " $<name>=(.+?) \.}; regex praise($name) { { say ~$name } "$name is good." } }.parse: "I am Jack. Jack is good."
camelia I am Jack.
I am Jack. Jack is good.
Nil
jnthn o.O 15:52
15:52 esh joined
jnthn m: say grammar { regex TOP { <name> {} <praise(~$<name>)> }; regex name {"I am " $<name>=(.+?) \.}; regex praise($name) { { say $name } "$name is good." } }.parse: "I am Jack. Jack is good." 15:52
camelia I am Jack.
I am Jack. Jack is good.
Nil
jnthn Ohhh! 15:53
m: say grammar { regex TOP { <name> {} <praise($<name><name>)> }; regex name {"I am " $<name>=(.+?) \.}; regex praise($name) { "$name is good." } }.parse: "I am Jack. Jack is good."
camelia Nil
jnthn m: say grammar { regex TOP { <name> {} <praise($<name><name>)> }; regex name {"I am " $<name>=(.+?) \.}; regex praise($name) { { say $name } "$name is good." } }.parse: "I am Jack. Jack is good." 15:54
camelia 「Jack」
「Jack. Jack is good」
Nil
15:54 esh left
jnthn Odd, so why's it not match... 15:54
m: say grammar { regex TOP { <name> {} <praise($<name><name>)> }; regex name {"I am " $<name>=(.+?) \.}; regex praise($name) { { say "$name is good." } "$name is good." } }.parse: "I am Jack. Jack is good." 15:55
camelia Jack is good.
Jack. Jack is good is good.
Nil
jnthn Oh, because nothing eats the space between the sentences :-)
m: say grammar { regex TOP { <name> {} <praise($<name><name>)> }; regex name {"I am " $<name>=(.+?) \.}; regex praise($name) { " $name is good." } }.parse: "I am Jack. Jack is good."
camelia 「I am Jack. Jack is good.」
name => 「I am Jack.」
name => 「Jack」
praise => 「 Jack is good.」
jnthn There we go 15:56
sena_kun ah, thanks a lot
jnthn m: say grammar { regex TOP { <name> {} <praise($<name>)> }; regex name {"I am " <( $<name>=(.+?) )> \.}; regex praise($name) { " $name is good." } }.parse: "I am Jack. Jack is good."
camelia 「I am Jack. Jack is good.」
name => 「Jack」
name => 「Jack」
praise => 「 Jack is good.」
jnthn That's a bit cleaner
Depending on whether it doesn't fail to capture other stuff you need 15:57
sena_kun well, I am bad with regex/rule/token differentiation(docs say about rule/token difference only), so I am trying to get the working result by trial-and-error method now. :) 15:58
15:59 esh joined
sena_kun what does `{}` after `<name>` means in this context? 15:59
*mean
timotimo it will force named captures to have their value appear in them
jnthn Aye, which in turn is because we only produce or update $/ in a certain set of syntactic cases 16:00
16:00 geekosaur joined
sena_kun ah, okay, let's try to integrate it with my code... 16:00
16:00 geekosaur left
jnthn Have fun :) 16:01
jnthn wanders off to cook
ugexe or create a rule for every possible name and use regex TOP { <name> {} <::($<name>)> } !
sena_kun this black magic is a bit too strong for me now 16:02
16:03 esh left 16:04 domidumont left 16:05 geekosaur joined
ugexe let the darkness consume you 16:08
16:11 eliasr left 16:12 kurahaupo left, kurahaupo joined 16:13 kurahaupo left, kurahaupo joined 16:17 kurahaupo left, kurahaupo joined, setty1 joined 16:29 rogbro joined
TreyHarris emacs users: right now to create a .t or extensiosless file, if I'm starting in shell I "echo 'use v6.c;' > t/00-whatever.t; emacsclient -n !$", if I'm starting in emacs I just visit the file (which starts cperl-mode for .t and fundamental-mode for extensionless empty files), stick the "use v6.c;" in, save, and revert-buffer to have it re-autodetect and switch to perl6-mode. Aside from the obvious of making an 16:31
alias and/or emacs macro or elisp function, is there a cleverer way to create new Perl 6 files opening in perl6-mode?
sena_kun TreyHarris, if you don't work with perl, you can set perl6-mode to be automatically enabled for any .t files, is it not an option, I guess? 16:34
TreyHarris sena_kun: no, I work with Perl 5 too, more than Perl 6 if I'm on a job since I haven't gotten any of my work sites to let me use it yet :-) 16:35
sena_kun TreyHarris, well, then I cannot help you. Of course, you can record a macro(like "open a file with some name + .t, then write use v6 inside") and convert it to elisp then. some polishing work(for a custom filename, for example) should be done though. 16:37
16:38 winnie_ joined
TreyHarris sena_kun: yes. there are a lot of templating and skeleton tools for Emacs, but the one I use (YAS--yet another snippet) is only made for inserting into existing files, not file creation. 16:39
16:39 cpage_ left, poohman joined 16:40 cpage_ joined, domidumont joined, poohman2 left
sena_kun TreyHarris, you can use elmacro package to record something and quickly convert it to elisp for a further work, I guess. 16:41
rogbro Error when trying to use mi6. When using the command "$ mi6 new A::B", I get the following error message "===SORRY!=== Error while compiling /home/pascal/.rakudobrew/moar-nom/install/share/perl6/site/resources/19DFC05B99EC4E218A1A8D9A1B966919724DE593
Two terms in a row
at /home/pascal/.rakudobrew/moar-nom/install/share/perl6/site/resources/19DFC05B99EC4E218A1A8D9A1B966919724DE593:1
------> @⏏ perl6 %~dpn0 %*
expecting any of:
infix
infix stopper
statement end
statement modifier
statement modifier loop". Any idea where it can come from ?
TreyHarris rogbro: yes, I commented in mi6 github with a workaround, check issues.
I can dig the link up if you give me a moment 16:42
rogbro: github.com/skaji/mi6/issues/14 16:43
But the issue's been closed, so did you install mi6 last week but only try to use it now?
16:44 rogbro left
TreyHarris n/m then :-) 16:45
16:46 poohman left, rogbro joined
TreyHarris rogbro: did you see my answer, or were you split? 16:49
rogbro TreyHarris, oops sorry did not see it 16:50
TreyHarris rogbro: github.com/skaji/mi6/issues/14 16:51
But the issue's been closed, so did you install mi6 last week but only try to use it now?
that workaround should fix it though. (Assuming you're not actually running on Windows, that is...) 16:52
16:52 winnie_ left
geekosaur (but if they were on Windows then it would have worked) 16:54
16:55 geekosaur left, geekosaur joined, esh joined 16:56 esh left 17:00 esh joined 17:01 rogbro_ joined, esh left 17:03 rogbro left 17:05 esh joined
TreyHarris geekosaur: *should* have. I don't know PowerShell (though I'm starting to think learning it is my best hope for trying to understand Windows at all) so wouldn't know a valid thing from its rendering in Forth. 17:05
rogbro_ TreyHarris: I tried to uninstall and reinstall, but the issue is the same. zef still installs mi6.bat, which seems not consistent with what is on github. I had to clean manually .zef/store and reinstall. And now it works. Thank you ! 17:11
17:12 rogbro_ is now known as rogbro
TreyHarris rogbro: yw. perhaps skaji hasn't rebuilt the package yet. 17:13
17:14 esh left
TreyHarris sena_kun and any other emacsers who may be curious: I asked on #emacs and consensus was the best solution was to write an interactive thet opens a buffer with perl6-mode explicitly named (easy) and then use auto-insert-mode to hook a function that, when perl6-mode is opened on an empty file, inserts the use v6 or shebang+use v6 as necessary 17:15
17:15 ChoHag left 17:16 esh joined
raschipi Powershell isn't at the same level as bash, it does the same as a scriting language combined with a remote configuration management system. 17:16
rogbro quit
17:16 rogbro left
TreyHarris I was unaware of auto-insert-mode, so this was one of those, "oh, that exists, okay, problem solved" things that so common with VMS 17:17
lol
I meant Emacs
that is a REALLY funny Freudian slip if you're old enough to get it
raschipi: right, which is why I hink it would teach me about Windows in a way that learning bash doesn't really teach you about Unix 17:18
s/hink/think/
raschipi You'll have to also learn .net 17:19
TreyHarris hides 17:20
raschipi Sometimes the way to do something in Powershell is to write a C# applet and then call it from Powershell.
cmdlet they call them, I think, not applet
TreyHarris Well, I've had to learn C# because it's the easiest way a.t.m. to do VR programming. But I've managed to avoid .net thus far. 17:21
(C# actually isn't a bad language. It's better than C++11 for sure--I haven't re-learned C++ since then.) 17:22
17:23 esh left
raschipi I agree it's not a bad language, it just doesn't target any of the environments I'm interested in. 17:23
timotimo are you sure there's no powershell for linux? :) 17:24
raschipi Well, it's tied to .net anyway. And .net isn't integrated into linux yet. 17:25
17:26 lauct_ joined
raschipi Everything that's useful in powershell for windows wasn't rewritten for linux yet. 17:26
timotimo mhm
TreyHarris github.com/Pash-Project/Pash
17:27 esh joined
TreyHarris reimplementation of PowerShell for Mono, may or may not still be in active development looks like. 17:27
17:27 KDr2_c left 17:28 lauct left, lauct_ is now known as lauct 17:34 rindolf left 17:36 Cabanossi left 17:37 wamba left 17:38 rindolf joined, Cabanossi joined 17:42 ChoHag joined 17:47 AlexDaniel joined 17:49 aindilis left 17:50 aindilis joined 17:51 poohman joined 17:52 poohman2 joined 17:55 poohman left 18:07 cdg left 18:11 dct joined 18:12 ChoHag_ joined, ChoHag left 18:15 kurahaupo_ joined, kurahaupo left 18:17 mcmillhj left 18:21 dct left 18:27 mcmillhj joined
DrForr Pushed a very very *VERY* rough cut of Six::Zilla (perl6-Six-Zilla) to github. 18:32
18:35 Cabanossi left
DrForr El_Che: Around? 18:37
18:37 setty1 left 18:38 Cabanossi joined
El_Che yes 18:38
18:39 setty1 joined
DrForr --> over there (privmsg) 18:40
18:41 [particle] left
alphah m: class N {has $.name; has $.location}; class U {has %.h = <x 1 y 2 z 3>; has N @.n}; 18:42
camelia ( no output )
alphah how to initialize @.n with instances of N, from %.h values (name, location) 18:43
18:43 [particle] joined
DrForr That just looks like the Z operator? 18:44
timotimo not more like %.h.kv? 18:45
with the opposite of .flat? :)
DrForr Oh, correct, I'm an idiot.
18:46 zakharyas left
alphah Not fully understood but I'm testing this now to get better idea 18:47
timotimo you can refer to other attributes in the initializers for your attributes, no? 18:48
DrForr m: %x=<x 1 y 2>; say "$k,$v" for %x.kv -> $k,$v;
camelia 5===SORRY!5=== Error while compiling <tmp>
Variable '%x' is not declared
at <tmp>:1
------> 3<BOL>7⏏5%x=<x 1 y 2>; say "$k,$v" for %x.kv -> $
DrForr m: my %x=<x 1 y 2>; say "$k,$v" for %x.kv -> $k,$v;
camelia 5===SORRY!5=== Error while compiling <tmp>
Variable '$k' is not declared
at <tmp>:1
------> 3my %x=<x 1 y 2>; say "7⏏5$k,$v" for %x.kv -> $k,$v;
DrForr Something cose...
alphah timotimo: yes 18:49
timotimo right, you also want to pick the kv apart and put it back as name and location
alphah got it, trying that now
timotimo i have something 18:50
class N { has $.name; has $.location }; class U { has %.h = <x 1 y 2 z 3>; has @.n = %!h.kv.map({ N.new(:name($^name.Str), :location($^location.Str)) }) }; U.new().perl.say
m: class N { has $.name; has $.location }; class U { has %.h = <x 1 y 2 z 3>; has @.n = %!h.kv.map({ N.new(:name($^name.Str), :location($^location.Str)) }) }; U.new().perl.say
camelia U.new(h => {:x(IntStr.new(1, "1")), :y(IntStr.new(2, "2")), :z(IntStr.new(3, "3"))}, n => [N.new(name => "1", location => "x"), N.new(name => "3", location => "z"), N.new(name => "2", location => "y")])
alphah timotimo: Thats exactly what I needed, Thanks you!! 18:54
timotimo :)
don't forget that if you have a submethod BUILD in your class, it'll override all the = foo in your class 18:55
but you can have a submethod TWEAK instead which doesn't have that problem
samcv good noon
tweak is convenient
alphah hmm, did not know that, luckily I dont have submethid BUILD (yet)
roger that
timotimo samcv: convenient and so ridiculously easy to implement!
sena_kun samcv, o/
samcv from a language creatosr perspective or for users? or both? 18:56
timotimo implementor's perspective
the patch that put it in was copy-paste of a few lines of code
samcv nice
18:59 nadim joined
nadim evening P6, delayed flight means some time to write some code, ahhhhh well, a simple question, if I have %h = < a b c d > but I also want an element like 'an e' in it, IE witha space in a string,how to do it? I know I can flatten the list and add an element but something even cleaner. 19:01
timotimo you can use " " inside << >> 19:02
m: say <<foo bar baz "an e" loop>>.perl.say
camelia ("foo", "bar", "baz", "an e", "loop")
True
geekosaur right, you basically can't do it with the < > syntax, it's a shorthand and not an especially flexible one 19:03
timotimo m: say <foo bar baz an\ e loop>.perl 19:04
camelia ("foo", "bar", "baz", "an\\", "e", "loop")
timotimo also not this way
nadim timotimo++ I saw it somewhere, thus my question, but there is so mucih goody in P6 one needs to stop doing anything else to learn everything about it (and you guys keep adding stuff!)
timotimo :) 19:05
sena_kun samcv, hi! I am going to bed now, so a bit of, eeeh, how should I say it. Overall result, maybe. I have thought about ecosystem testing automitisation a bit. Something I had on mind is a script that can consume logs +/- some previous state and parse it into some intermediate representation of all modules(name, is-ok, missed dependency, etc), export it to github issue format(or something like that), also diffs between old state(if it is
present) and current will be cool too. Now I am parsing the log with a grammar, it takes about 2 minutes on my slow machine to parse it all, though the grammar is still incomplete. Looking forward for a cooperation on this weekend. :)
samcv heh
latest install log is here hack.p6c.org/~samcv/install_log_liv...4-2017.txt i'm naming them based on dates now. :) which is quite helpful 19:06
3.1MB :X
but. if you prefer. i could make the log a json file
with one log for each module attempted to be installed
or some other type of thing
19:07 xinming_ left
samcv hmm. or maybe a json with fail/pass for each of the modules.i might be able to do that. 19:07
probably more useful initially 19:08
19:09 xinming joined
sena_kun samcv, well, it would be very helpful, because now I need to split the file manually by PASS/FAIL marks. It is just one line of code, though. 19:09
samcv what format of info would you like to include? maybe date and time of the test?
sena_kun { name: x, log: x, flag: ok|nok } is a minimum I would consider useful, perhaps. I don't have anything particular on my mind, but I have some hands that write (bad) perl 6 code, that's all. 19:10
samcv ok i think i'll have the log saved to a file, and be a reference to a specific file 19:11
so i don't slow down the build by regenning json
zengargoyle what's a way to do this that is back compatible with v6.c? : my Buf $b = do { my $f = 'empty.dat'.IO.open: :bin; $f.slurp }; 19:12
that works in current rakudo but not v6.c, and the thing that worked in v6.c doesn't work in current rakudo. 19:13
sena_kun well, then just .tell me about any results/design decisions so I could begin to work early after sleeping. thanks.
DrForr samcv: I should probably mention that I just put up a very bare-bones outline of a p6 version of Dist::Zilla up on my GH account as drforr/perl6-Six-Zilla.git it probably doesn't even compile, so treat it as working notes instead of application if you want to read through it. 19:14
19:14 mr-foobar left, labster joined
DrForr www.oreilly.com/ideas - ORA is looking for "programming recipes" in different languages, if someone has a good idea for one send it to [email@hidden.address] and I'll forward it to ORA so we can get some coverage. 19:17
zengargoyle ponders ... my Buf $b = do { use v6.c; my $f = 'empty.dat'.IO.open; $f.read($f.s) }; ... 19:18
samcv zengargoyle, what are you trying to do. just slurp a file and get a Buf? 19:19
19:20 kurahaupo_ left
timotimo don't forget to also close your file handle 19:20
19:20 kurahaupo joined
zengargoyle samcv: pretty much. i think the IO changes going on are making the old way no longer work and the new way isn't present in the old. 19:21
timotimo: yeah, think i read that somewhere. 19:22
this if from Text-Fortune and is a blob of bytes that later gets unpacked. 19:23
timotimo what, we can't slurp(:bin)? 19:25
zengargoyle currently the $f.s throws a no such method .s on IO::Handle and $f.slurp throws no such method .slurp on IO.Handle (under v6c)
timotimo so try slurp($filename, :bin)?
zengargoyle t/01_empty.t ... Method 'slurp' not found for invocant of class 'IO::Handle'
in block <unit> at t/01_empty.t line 7
timotimo i think that has worked since a long time
zengargoyle no under v6.c :P 19:26
19:26 sena_kun left
zengargoyle thinks that's why id did the $f.read($f.s) way. 19:26
timotimo huh, damn 19:27
zengargoyle it's only in testing code, so i can probably work around it somehow. or bump revisions and have older version for v6.c and new version for current... but that seems painful. 19:29
it may be that thing i think i glossed over in the IO work related updates about IO::Handle vs IO::Path or some such. maybe the .s function has just moved out of Handle to Path or something. 19:33
timotimo i'm surprised you can't just .read(0) to get all data in the file 19:34
but that could also give you default_read_amount
19:36 kurahaupo_ joined 19:38 kurahaupo left
stmuk_ pl6anet.org/drop/rakudo-star-2017.04-RC1.tar.gz 19:45
19:49 kurahaupo joined
TreyHarris timotimo: v6.c IO::Handle has slurp-rest, no slurp 19:50
19:50 Cabanossi left 19:51 kurahaupo_ left
timotimo right 19:52
19:53 Cabanossi joined
zengargoyle this works on both so far: my Buf $b = do { my $f = 'empty.dat'.IO; my $s = $f.s; $f.open(:bin).read($s); }; 19:53
i.e. no .s from an open handle.
zengargoyle at least tests work under current rakudo and v6.c now :P 19:54
19:57 geekosaur left, kurahaupo_ joined 19:58 geekosaur joined 20:00 kurahaupo left
alphah :m class N { has $.name; has $.location }; class U { has %.h = <x 1 y 2 z 3>; has @.n = %!h.kv.map({ N.new(:name($^name.Str), :location(class N { has $.name; has $.location }; class U { has %.h = <x 1 y 2 z 3>; has @.n = %!h.kv.map({ N.new(:name($^name.Str), :location($^location.Str)) }) }; U.new().perl.say 20:04
m: class N { has $.name; has $.location }; class U { has %.h = <x 1 y 2 z 3>; has @.n = %!h.kv.map({ N.new(:name($^name.Str), :location(class N { has $.name; has $.location }; class U { has %.h = <x 1 y 2 z 3>; has @.n = %!h.kv.map({ N.new(:name($^name.Str), :location($^location.Str)) }) }; U.new().perl.say
camelia 5===SORRY!5=== Error while compiling <tmp>
Unable to parse expression in parenthesized expression; couldn't find final ')'
at <tmp>:1
------> 3($^location.Str)) }) }; U.new().perl.say7⏏5<EOL>
expecting any of:
statement e…
rindolf zengargoyle: hi! do gargoyles have the buddha nature?
alphah m: class N { has $.name; has $.location }; class U { has %.h = <x 1 y 2 z 3>; has @.n = %!h.kv.map({ N.new(:name($^name.Str), :location($^location.Str)) }) };m: class N { has $.name; has $.location }; class U { has %.h = <x 1 y 2 z 3>; has @.n = %!h.kv.map({ N.new(:name($^name.Str), :location($^location.Str)) }) };say U.new.h.kv.map({ :name($^name.Str), :location($^location.Str) }); 20:06
camelia 5===SORRY!5=== Error while compiling <tmp>
Redeclaration of symbol 'N'
at <tmp>:1
------> 3ocation($^location.Str)) }) };m: class N7⏏5 { has $.name; has $.location }; class U
expecting any of:
generic role
zengargoyle rindolf: 無 20:07
rindolf zengargoyle: what does that glyph mean? 20:08
zengargoyle drats. 無 [む] /(n) (1) nothing/naught/nought/nil/zero/(pref) (2) un-/non-/
alphah m: class N { has $.name; has $.location }; class U { has %.h = <x 1 y 2 z 3>; has @.n = %!h.kv.map({ N.new(:name($^name.Str), :location($^location.Str)) }) };say U.new.h.kv.map({ :name($^name.Str), :location($^location.Str) }); say U.new.h.kv.map({ :name($^name.Str), :location($^location) }) 20:09
camelia ((name => 1 location => x) (name => 3 location => z) (name => 2 location => y))
((name => 1 location => x) (name => 3 location => z) (name => 2 location => y))
alphah timotimo: do you happen to know why output is reversed, should not it be name => x, location => 1, instead of name =>1 ,.... ? 20:10
zengargoyle sorry, typical zen answer. pronounced like a cow's 'moo'.
timotimo m: say "name" before "location"
camelia False
20:10 cdg joined
timotimo m: say "name" lt "location" 20:10
camelia False
timotimo it's because $^foo and $^bar get ordered lexicoraphically 20:11
20:11 kurahaupo_ left
zengargoyle actually the zengargolyle came more from a college tendency to perch on high places and just glare out over the crowd during parties and such. :) 20:11
timotimo uh oh, DBIish is broken 20:12
because NativeHelpers::Blob doesn't test
oh no
20:12 kurahaupo joined
timotimo that's just my local modifications being bogus 20:12
alphah timotimo: alright, Thanks. 20:13
20:15 mcmillhj left
timotimo alphah: maybe it makes more sense to have %.h.pairs.map({ N.new(location => .key, name => .value }) or some variant of this 20:17
20:22 raschipi left
alphah timotimo++, sounds good, I was just reading more about hash methods and map syntax. will definitely try this. 20:25
20:26 mcmillhj joined 20:28 cdg left, cdg joined
samcv woooo \o/ ok i think i got the automated module installing producing useful things 20:36
20:36 domidumont left
samcv it puts the log files into a folder so you can see the logs for each module. and also makes a json file about the status of the modules 20:36
preview: gist.github.com/samcv/99b3c978a809...b24612b10a 20:37
looks like the date key isn't working . but the other ones are working fine
20:38 nadim left 20:42 kurahaupo_ joined 20:43 gfldex joined 20:44 kurahaupo left 20:45 kurahaupo joined
samcv m: try { require JSON::Fast <&to-json>; CATCH { Rakudo::Internals::JSON.to-json('foo').say }} 20:48
camelia "foo"
Could not find JSON::Fast at line 0 in:
/home/camelia/.perl6
/home/camelia/rakudo-m-inst-1/share/perl6/site
/home/camelia/rakudo-m-inst-1/share/perl6/vendor
/home/camelia/rakudo-m-inst-1/share/perl6
CompUnit::Reposit
samcv hmm how can i get this working?
m: try { require JSON::Fast <&to-json>; CATCH { &to-json = &Rakudo::Internals::JSON.to-json; to-json('foo').say }} 20:49
camelia No such method 'to-json' for invocant of type 'Any'
in block at <tmp> line 1
in block <unit> at <tmp> line 1
samcv m: try { require JSON::Fast <&to-json>; CATCH { &to-json = &(Rakudo::Internals::JSON.to-json); to-json('foo').say }}
camelia Cannot resolve caller to-json(...); none of these signatures match:
(Version:D $v, :$indent = 0, :$first = 0)
(Real:D $d, :$indent = 0, :$first = 0)
(Bool:D $d, :$indent = 0, :$first = 0)
(Str:D $d, :$indent = 0, :$first = 0)
samcv m: try { require JSON::Fast <&to-json>; CATCH { &to-json = &(Rakudo::Internals::JSON.to-json); }}
camelia Cannot resolve caller to-json(...); none of these signatures match:
(Version:D $v, :$indent = 0, :$first = 0)
(Real:D $d, :$indent = 0, :$first = 0)
(Bool:D $d, :$indent = 0, :$first = 0)
(Str:D $d, :$indent = 0, :$first = 0)
samcv m: try { require JSON::Fast <&to-json>; CATCH { &to-json = sub{ Rakudo::Internals::JSON.to-json($^a); }} 20:51
camelia 5===SORRY!5=== Error while compiling <tmp>
Missing block
at <tmp>:1
------> 3Rakudo::Internals::JSON.to-json($^a); }}7⏏5<EOL>
samcv m: try { require JSON::Fast <&to-json>; CATCH { &to-json = sub{ Rakudo::Internals::JSON.to-json($^a); }}}
camelia Could not find JSON::Fast at line 0 in:
/home/camelia/.perl6
/home/camelia/rakudo-m-inst-2/share/perl6/site
/home/camelia/rakudo-m-inst-2/share/perl6/vendor
/home/camelia/rakudo-m-inst-2/share/perl6
CompUnit::Repository::Abs
AlexDaniel m: $x = try require JSON::Fasta; say $x
camelia 5===SORRY!5=== Error while compiling <tmp>
Variable '$x' is not declared
at <tmp>:1
------> 3<BOL>7⏏5$x = try require JSON::Fasta; say $x
yoleaux 11:09Z <Zoffix> AlexDaniel: how to bisect without RESTRICTED mode? I need to bisect $ = run($*EXECUTABLE, "-e", "get", :in).in.close
11:11Z <Zoffix> AlexDaniel: and this one too: $ = run($*EXECUTABLE, :in).in.close
11:19Z <Zoffix> AlexDaniel: Never mind; timotimo++ sorted me out
AlexDaniel m: my $x = try require JSON::Fasta; say $x
camelia (Any)
samcv need to make a little sub which acts like to-json, and can use whatever it has installed, because no guarentees when testing modules 20:52
though i'll try and install to-json or others towards the front probably
AlexDaniel samcv: well, there's some documentation on docs.perl6.org/syntax/require 20:54
samcv yes
i looked
20:54 skids left 20:55 skids joined 20:57 skids left
samcv ok i think i almost got it 21:01
21:03 TEttinger joined
samcv AlexDaniel, gist.github.com/samcv/c251784f7686...95cea3b855 magicccc 21:04
ran into trouble when i tried to &json = blah rakudo internal thing 21:05
but this works great
AlexDaniel samcv: did you mean $json //= sub … ?
ah no
nevermind
samcv yeah that breaks things
not sure why. but
gives weird errors. either with/without json::fast installed. luckily this works both ways 21:06
21:06 Zoffix joined
Zoffix zengargoyle: my Buf $b = 'empty.dat'.IO.slurp: :bin 21:07
21:07 espadrine joined
samcv argh i still want there to be .grep(:v) 21:07
i mean i think we have that option. but it doesn't do what `grep -v` on linux does... 21:08
which is include anything NOT matching
how do we not have an option like that
Zoffix m: (try require JSON::Fast <&to-json>) === Nil and &to-json = sub { Rakudo::Internals::JSON.to-json($^a); }; dd to-json 42
camelia "42"
Zoffix star: (try require JSON::Fast <&to-json>) === Nil and &to-json = sub { Rakudo::Internals::JSON.to-json($^a); }; dd to-json 42
camelia "42"
Zoffix zengargoyle: and though not needed here, IO::Handle.s is available via IO::Handle.path.s on both pre- and past IOwesomeness. Note that not all IO::Handles are path based so assuming you always have a good .path is fragile 21:09
zengargoyle: and IO::Handle still has .slurp-rest. In 6.d its use will deprecation-warn tho 21:11
[Coke]: there's www.irc.perl.org that has a staff page: www.irc.perl.org/staff.html 21:13
[Coke] Zoffix: someone in channel had rights, they were just offline at the time. Thanks. 21:14
21:14 alimon left
Zoffix cool 21:15
\o
21:15 Zoffix left 21:16 labster left 21:18 jdv79 joined 21:20 mcmillhj left 21:28 xinming left 21:29 xinming joined 21:30 geekosaur left 21:31 geekosaur joined
samcv ok now i'm uh. confused 21:33
so somebody has a "Two clause Freebsd license" which. spdx says is basically the bsd-2clause except the wording mentions freebsd only
but this says it's freebsd 2 clause but freebsd is not copyright holders
raw.githubusercontent.com/dnmfarre...er/LICENSE
21:34 mcmillhj joined
samcv tbh i think one person had a freebsd license but all the wording said it was held by freebsd. so i choose BSD-2-Clause-FreeBSD. but this is BSD-2-Clause but it says it's FreeBsd, which is just the 2 clause but with freebsd. ahh why people do this 21:36
21:37 kurahaupo_ left
samcv last line here: github.com/ahalbert/perl6-itertool...er/LICENSE 21:37
21:38 kurahaupo_ joined
samcv i mean if the license is BSD-2C 21:39
BSD-2-Clause but it says freebsd 2 clause. with full exact wording of bsd-2-claus. it's bsd two clause right...
the one i linked above is clearly *actually* freebsd 2 clause 21:40
unlike this other one that says it is but isn't
21:41 dct joined, labster joined, mcmillhj left 21:51 Cabanossi left
samcv oh yay madcapjake released new language-perl6fe, and this one installs language-perl6 (new package) then disables the old one 21:52
so now everybody will be using the new package
AlexDaniel \o/ 21:53
samcv they pushed version 2.0 though! how can i have a lower version than the old package!
i must bump to version 3 immediately!
21:53 Cabanossi joined
AlexDaniel or version 10 21:53
samcv yes
AlexDaniel to keep up with the browsers
samcv also idk why i never bumped to version 2
enough changes to warrant it 21:54
though luckily atom.io/packages/search?q=perl6 when you see it, it says forgotten ediition (deprecated) so hopefully that'll help people out
AlexDaniel forgotten edition XD 21:55
samcv XD
i'm curious if i can rename my scope to the same as the builtin perl6 module and if so if it'll override it 21:56
probably. i remember setting it back because some other module broken without the name set to Perl 6 FE 21:57
maybe it was the Script module or something
unintentionally my change also 'nags' the user until they remove language-perl6fe 21:58
cause the notification that appears when it disables language-perl6fe, shows up whenever you start it (as long as it's disabled)
but i guess that's okay. simple enough for them to remove it. and the message tells them the old package was disabled so pretty easy for them to know they can remove it then 21:59
21:59 rindolf left
samcv awesome :) live json of installing all modules now hack.p6c.org/~samcv/ecosystem-tests...21.52.json 22:00
woo
should be much easier to do things with the data now. and logs for each module in a folder hack.p6c.org/~samcv/ecosystem-tests...-28_21.52/
22:05 ChoHag_ left 22:08 mcmillhj joined
sammers hi perl6, good morning from Japan 22:11
22:11 bjz joined 22:12 dct left 22:13 skids joined, mcmillhj left, dlowe_ joined 22:16 dlowe_ left 22:19 devmikey joined
TreyHarris How can I grep rakudo for cases where explicit 'use v6.c' matters (whether by generating a deprecation warning, enabling features or changing behavior)? 22:20
samcv TreyHarris, that was removed since v6.c is the first stable release 22:21
and 6.d isn't out yet 22:22
22:22 pmurias left
samcv so i don't think use v6.c does anything. though somebody step in if i'm wrong... use v6.d.PREVIEW does do something though 22:22
jnthn Yeah, v6.d.PREVIEW gets you changed await and react semantics 22:24
22:24 mcmillhj joined
jnthn And lets you demand a Rakudo that's at least as modern as when 6.d.PREVIEW was introduced :) 22:24
TreyHarris samcv: that's actually what caused me to ask...there are two cases of that in src/Perl6/Grammar.nqp, but they're quite different. if that's just the way it is, and version checking is always going to be a complex expression, that's fine. I just wondered if there might be some telltale marker I was missing
though I guess bisectable6 is a better way to answer any question like that I might actually have than looking for code markers (and it seems that bisectable6 will engage in a private conversation if you don't want to spam the channel). 22:28
22:29 mcmillhj left
TreyHarris m: use v6.d.PREVIEW; $*W.gist.say 22:29
camelia Dynamic variable $*W not found
in block <unit> at <tmp> line 1

Actually thrown at:
in block <unit> at <tmp> line 1
timotimo m: use v6.d.PREVIEW; BEGIN $*W.gist.say 22:30
camelia 5===SORRY!5=== Error while compiling <tmp>
An exception occurred while evaluating a BEGIN
at <tmp>:1
Exception details:
No such method 'gist' for invocant of type 'Perl6::World'
in code at <tmp> line 1
TreyHarris timotimo: d'oh! thanks, I was quite confuzzled there for a moment. no gist I can understand, just not existing was worrying me :-) 22:33
timotimo yeah, $*W is a compile-time concept 22:34
samcv github changed the parser for .md 22:35
you have to put links before where you use them now
instead of at the end
22:36 wamba joined, ChoHag joined
TreyHarris samcv: i.e., footnote-style no longer works? urk, that's going to break every single image I've ever placed in a Markdown doc on GitHub 22:37
samcv yeah.
it broken mine
the entire readme github.com/perl6/atom-language-per.../README.md
every image and link
TreyHarris I don't use that style for hlinks, but images I _always_ do. 22:38
I hope it's a bug
samcv it still renders fine in atom at least. so people looking at the page in atom it shows up fine
well it's been there for a week
22:38 kaylined joined 22:39 kaylined left
TreyHarris I wonder what that does to org and pod and other formats, I think GitHub translates them all to markdown before rendering 22:39
22:40 mcmillhj joined
timotimo why, github? :( 22:41
samcv what do people think about this github.com/slobo/Perl6-X11-Xlib-Raw/pull/5 22:42
they have some stuff from Xorg header files. which is MIT but their project is Artistic 2.0
22:44 Sgeo joined, Sgeo_ left
TreyHarris samcv: isn't that essentially the oracle-google java dispute? 22:44
22:44 mcmillhj left
AlexDaniel TreyHarris: you can always join #whateverable or #zofbot to abuse bots 22:44
samcv i don't think so
google didn't take headers just the api 22:45
22:45 lauct_ joined 22:46 lauct left, lauct_ is now known as lauct
TreyHarris how do you take api in C w/o taking headers? 22:46
samcv the function names are the same 22:47
acts the same
oh i see what you mean. i mean copying verbatim is deffirent than a reimplementation
TreyHarris I'm saying, a comment-stripping code-tidier of a cleanroom implementation would be indistinguishable from a comment-stripping codie-tidier output of the original 22:48
samcv then it's not copyrightable
as long as the api is open
err sorry that's what i mean
TreyHarris then they can license it Artistic-2.0. And the Xorg API is certainly open. 22:49
IANAL, etc.
if oracle ultimately wins this might be questionable, but if they ultimately win huge swaths of the FOSS world will be jenga'd 22:50
timotimo the good thing about jenga is you put on top what you pull out
alphah m: my $m = "perl6" ~~ /\d/ && say $/.Str 22:51
camelia 6
alphah sorry to bother yu again guys, do I have to explicitly get the matched pattern via && say $/.Str,, (thats what I found in docs), or there is shorter way?
samcv ok good SPDX has `AND` 22:52
TreyHarris "shorter"? or more convenient/readable, like with named captures?
samcv i guessed it did but read the spec just to be sure
alphah <TreyHarris: more convinient and readable
TreyHarris samcv: AND means dual-licensing of the whole, though, not "parts are licensed X and parts are licensed Y", no?
samcv no. that's OR
Artistic-1.0-Perl OR GPL-1.0+ << you choose which license you use 22:53
and means it contains things under both that you don't get to choose which to follow. stuff non-dual licensed
22:54 cdg left
TreyHarris m: my $m = "perl6" ~~ / $<version>=\d / && $<version>.say 22:55
camelia 「6」
TreyHarris alphah: ^^ like that?
22:56 buggable_ joined, ChanServ sets mode: +v buggable_, buggable left, buggable_ left, buggable joined, ChanServ sets mode: +v buggable
alphah I'm actually asking if I can get the matched string without next step after &&. not sure of ots possible tho\ 22:57
jnthn m: my $m = ~("perl6" ~~ / \d /); dd $m 22:59
camelia Str $m = "6"
alphah m: my $m = "perl6" ~~ / $<version>=\d /.Str # something like that for example
camelia Regex object coerced to string (please use .gist or .perl to do that)
in block <unit> at <tmp> line 1
jnthn m: my $m = ~"perl6".match(/ \d /); dd $m # alternative
camelia Str $m = "6"
AlexDaniel m: my $m = ("perl6" ~~ / $<version>=\d /)<version>; say $m
camelia 「6」
jnthn m: my $m = [~] "perl6" ~~ / \d /; dd $m # if you hate parens ;) 23:00
camelia Str $m = "6"
alphah you are awesome guys :), many ways to do one things! 23:01
samcv TreyHarris, but AND or OR, if you whitelist Artistic-1.0 but blacklist GPL-1.0, you are allowed to use something under Artistic-1.0 and gpl dual license, but if it's AND then you have to folow both 23:02
AlexDaniel m: my $m; "perl6" ~~ / (\d) {$m = ~$0}/; say $m
camelia 6
AlexDaniel (↑ looks ugly, but kinda works)
alphah all works, but this one is shortest: my $m = ~("perl6" ~~ / \d /); opting for it :) 23:05
23:18 AlexDaniel left 23:20 pecastro left 23:22 pecastro joined, geekosaur left 23:24 geekosaur joined 23:35 devmikey left
samcv whew. just caught a bug. 23:41
if they have an empty license file, it detected it as like. some license that was the shortest :P 23:42
though there's a reason these were the 'rejects' where the computer couldn't decide. i forget what % match it said
really happy how this is working out: hack.p6c.org/~samcv/ecosystem-tests...21.52.json 23:45
i should set it on cron on the hack.p6c.org server so it generates it every day
still running. i should be able to figure out how long it takes comparing the last date in the timestamp of the json whenever it completes
45.853659% modules with licenses now :) almost 50.001% 23:52
be back in a bit
.tell sena_kun new format for the module tests. json overview, and in a folder of the same name seperate log files for each module's installation run hack.p6c.org/~samcv/ecosystem-tests/ 23:54
yoleaux samcv: I'll pass your message to sena_kun.