»ö« 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. |
|||
gfldex | m: my %h = :foo; sub bar (%h2 is readonly) { say %h; %h2 := {}; say %h }; bar %h; say %h | 00:02 | |
camelia | rakudo-moar 5a4963: OUTPUT«{foo => True}{foo => True}{foo => True}» | ||
00:06
addison joined
00:08
kurahaupo left
|
|||
gfldex | m: class A { method WHAT { Any } }; say A.new.WHAT | 00:08 | |
camelia | rakudo-moar 5a4963: OUTPUT«(A)» | ||
gfldex | i somehow feel that should warn | 00:09 | |
m: class A { method VAR { Any } }; say A.new.VAR | |||
camelia | rakudo-moar 5a4963: OUTPUT«A.new» | ||
00:10
kurahaupo joined
00:11
kurahaupo left,
kyclark joined
00:12
tlvb| left
00:13
kurahaupo joined
|
|||
[Coke] | .scroll end | 00:15 | |
00:15
kyclark left
|
|||
dalek | c: da20477 | (Wenzel P. P. Peppmeyer)++ | doc/Language/typesystem.pod: doc reserved method names |
00:16 | |
ZoffixLappy | m: class A { method WHO { "foo" };method WHY { "foo" }; method WHICH { "foo" }; }; say .WHO, .WHY, .WHICH given A.new | 00:20 | |
camelia | rakudo-moar 5a4963: OUTPUT«Afoofoo» | ||
00:21
abruanese joined
00:22
bjz left
00:27
labster joined
00:34
TakinOver joined
00:35
cdg left
|
|||
ZoffixLappy | huggable, Mu name :is: "M"ost "u"ndefined. Or philosophical: "The nothing from which everything proceeds" | 00:49 | |
huggable | ZoffixLappy, Added Mu name as "M"ost "u"ndefined. Or philosophical: "The nothing from which everything proceeds" | ||
ZoffixLappy | www.bit.do/Perl6SOG <-- Damian's code examples from today's talk | 00:58 | |
01:01
ZoffixLappy left
01:08
Actualeyes joined
01:17
kalkin- left,
kalkin-_ joined
01:18
kurahaupo left
01:23
yqt left
01:30
rgrinberg joined
|
|||
tbrowder | please considee PR github.com/perl6/roast/pull/131 | 01:43 | |
01:43
addison left
01:45
ilbot3 left
01:47
ilbot3 joined
01:48
bjz joined
|
|||
timotimo | tbrowder: i think you added a test without adding 1 to the plan in line 3 | 01:53 | |
01:54
jjido left
|
|||
tbrowder | you are correct | 01:57 | |
timotimo | i made that very mistake extremely often during my first months helping out | 01:59 | |
tbrowder | fixed | ||
thanks | |||
Xliff just realizes it's foolish for him to complain about rakudo being slow because he's running it in a 32bit VM | 02:04 | ||
*headdesk* | |||
timotimo | the jit can only help so much, though ... | 02:08 | |
02:08
Actualeyes left
|
|||
Xliff | Yeah. I think the project I'm working on would benefit from the extra 2 cores, 64bit and hyperthreading which the VM doesn't have access to. | 02:10 | |
02:11
noganex_ joined
|
|||
timotimo | 'k | 02:13 | |
timotimo goes to bed | |||
02:14
noganex left
|
|||
Xliff | night tt | 02:17 | |
02:17
MilkmanDan[Han] is now known as MilkmanDan
02:23
bhm joined
02:25
kid51 left
02:26
freezerburnV left
02:28
ssotka left
02:31
bjz left
02:37
aindilis joined
03:14
bjz joined
03:25
itaipu joined
03:36
ssotka joined
03:37
labster left
03:39
huggable left
03:40
huggable joined
03:52
itaipu left
04:03
sortiz left
04:08
Actualeyes joined
04:15
fhorck joined
|
|||
fhorck | question: i need some help with this script, it takes 1 CPU up to 99% and within a few minutes of running it is using 5GB of RAM. i suspect my infinite loop at the bottom is the culprit, but i can't figure out another idiom to keep execution within the react/whenever block: gist.github.com/anonymous/272ddad9...b0ea777bd5 | 04:17 | |
this is my 1st "real" perl6 script i've written (for work), so i still have a lot of new idioms to learn (or unlearn from perl5), but so far i am loving perl6 | 04:19 | ||
ShimmerFairy | fhorck: not that I know a single thing of concurrency in P6, but I'd be surprised if their wasn't some sort of method that would make waiting on something take just one line of code. (e.g. $thing.wait() or $thing.yield() or ...) | 04:22 | |
*there | |||
fhorck | i did scoure all of the perl6 roast S17-supply/*.t files for examples of how to use react/whenever with Proc::Async, but i didn't find any pattern or idiom like what i'm doing | 04:24 | |
jdv79 | does it work though? | 04:30 | |
04:30
khw left
|
|||
jdv79 | also whatsup with the weird color method names? | 04:31 | |
04:32
labster joined
|
|||
ShimmerFairy | jdv79: I guess github's highlighter highlights the methods that are typenames and also 'new' for whatever reason. | 04:34 | |
fhorck | it does work, i just can't keep it running in the background for very long. and i augmented Str to add ANSI colors :P | ||
ShimmerFairy | oh, that kind of color :P | 04:35 | |
fhorck: hopefully you'll provide that augment as a module ;) | |||
fhorck | i should, Term::ANSIColor doesn't support 256 colors | 04:36 | |
ShimmerFairy | fhorck: What if you wrote it as a while $loop-promise.status !~~ Planned { } ? What if you use a less intelligent matcher like !=== ? (or whichever is appropriate for enums) | 04:37 | |
04:41
labster left
04:53
brrt joined
04:55
kentnl joined
04:59
Cabanossi left
05:01
Cabanossi joined
05:23
skids left,
rgrinberg left,
bjz left
|
|||
dj_goku | so I wanted to write a really small NativeCall for getifaddrs() but not sure if I am going down the right path: gist.github.com/djgoku/2d12766f993...a01b8eb405 | 05:29 | |
05:31
nemo joined,
nemo is now known as Guest66635
05:32
bjz joined
05:37
labster joined
|
|||
brrt | not sure dj_goku.. it seems you're defining a recursive structure, which ought to be impossible | 05:55 | |
05:57
raiph joined
06:06
ambs joined
06:08
brrt left,
CIAvash joined
06:09
jjido joined
06:12
jjido left
06:17
bjz left
06:22
ssotka left
06:30
bjz joined
06:33
firstdayonthejob joined
06:39
mr-foobar left
06:40
firstdayonthejob left
|
|||
Roamer` | dj_goku, I haven't actually tried the code yet, but IMHO the first member of the structure (ifa_next) ought to be some kind of native pointer to the next one, shouldn't it? | 06:45 | |
but I'll try now... | |||
TEttinger | .u horns | 06:48 | |
yoleaux | U+1F608 SMILING FACE WITH HORNS [So] (😈) | ||
TEttinger | .u sign of the horns | ||
yoleaux | No characters found | ||
TEttinger | .u sign | ||
yoleaux | U+0023 NUMBER SIGN [Po] (#) | ||
U+0024 DOLLAR SIGN [Sc] ($) | |||
U+0025 PERCENT SIGN [Po] (%) | |||
TEttinger | hm | ||
.u horn | |||
yoleaux | U+01A0 LATIN CAPITAL LETTER O WITH HORN [Lu] (Ơ) | ||
U+01A1 LATIN SMALL LETTER O WITH HORN [Ll] (ơ) | |||
U+01AF LATIN CAPITAL LETTER U WITH HORN [Lu] (Ư) | |||
TEttinger | hm | ||
m: say "\c[SIGN OF THE HORNS]" | 06:50 | ||
camelia | rakudo-moar 5a4963: OUTPUT«🤘» | ||
TEttinger | odd | ||
m: say "\C[SIGN OF THE HORNS]" | |||
camelia | rakudo-moar 5a4963: OUTPUT«5===SORRY!5=== Error while compiling <tmp>Unrecognized backslash sequence: '\C'at <tmp>:1------> 3say "\7⏏5C[SIGN OF THE HORNS]" expecting any of: argument list double quotes term» | ||
TEttinger | m: say "\c[SIGN OF THE HORNS]\c[SIGN OF THE HORNS]" | ||
camelia | rakudo-moar 5a4963: OUTPUT«🤘🤘» | ||
TEttinger | that isn't showing up for me, odd | 06:51 | |
I get a ? | |||
it showed up at some point,and the cat faces and smiling with horns showed up | |||
m: say "\c[SMILING FACE WITH HORNS]" | |||
camelia | rakudo-moar 5a4963: OUTPUT«😈» | ||
06:57
bjz left,
sno left
06:58
_mg_ joined
07:13
wamba joined
07:25
NEveDko__ left
07:38
zakharyas joined
07:39
huggable left
07:40
darutoko joined,
huggable joined,
cpage_ joined
07:47
tlvb| joined
07:49
telex left
07:50
fhorck left,
telex joined
07:52
rindolf joined
07:57
sno joined
08:00
g4 joined,
g4 left,
g4 joined
08:05
dakkar joined
08:07
abraxxa joined
08:13
abraxxa left,
abraxxa joined
08:20
zakharyas left
08:24
cpage_ left
08:25
bjz joined
08:42
iH2O joined
08:46
RabidGravy joined
08:49
aindilis left
08:51
bjz left
09:02
labster left
|
|||
moritz | likely character missing from font(s) | 09:03 | |
09:12
iH2O left
09:21
cpage_ joined
09:29
araujo joined,
araujo left,
araujo joined
09:30
grondilu joined,
araujo left,
araujo joined
09:32
Roamer` left,
araujo left
09:33
araujo joined
09:37
rindolf left
09:38
bjz joined,
Actualeyes left
09:39
donaldh joined
09:41
vytas joined
09:53
donaldh left
09:54
zakharyas joined
|
|||
Ulti | Just built Rakudo and now get "Couldn't load Rakudo REPL.pm: MVMContext representation does not support elems" | 09:58 | |
09:59
mr-foobar joined
|
|||
psch | bisectable: use REPL; | 09:59 | |
grondilu | got the same error, but the REPL carries on | ||
psch | ...is that not enough for bisectable? :| | ||
huggable: bisectable | |||
huggable | psch, nothing found | ||
grondilu | oh wait: "Falling back to nqp REPL." | 10:00 | |
psch | /o\ | ||
bisectable: use REPL; say 1 | |||
oh duh | |||
bisect: use REPL; say 1 | |||
bisectable | psch: no build for such “bad” revision. Right now the build process is in action, please try again later or specify some older “bad” commit (e.g. bad=HEAD~40) | ||
psch | bisect: bad=HEAD~1 use REPL; say 1 | 10:01 | |
bisectable | psch: no build for such “bad” revision. Right now the build process is in action, please try again later or specify some older “bad” commit (e.g. bad=HEAD~40) | ||
psch just waits until it's finished building | |||
10:06
iH2O joined
10:13
CIAvash left
10:14
iH2O left
10:16
kurahaupo joined
10:20
jonas2 joined
|
|||
psch | bisect: use REPL; say 1 | 10:22 | |
bisectable | psch: exit code is 1 on both starting points, bisecting by using the output | ||
psch: (2015-12-25) github.com/rakudo/rakudo/commit/07fecb5 | |||
psch | well, that's probably wrong :S | ||
10:25
TEttinger left
10:34
donaldh joined
10:39
wamba left
10:44
kurahaupo left,
kurahaupo joined
10:45
iH2O joined
10:46
kurahaupo left,
abruanese left
|
|||
donaldh | Hi, is "build from source" still the best advice for Linux distros? | 10:55 | |
donaldh is wanting to provide instructions to script users | |||
moritz | donaldh: yes | 10:56 | |
10:56
TakinOver left,
gensym left
|
|||
donaldh | It looks like debian has a rakudo package | 10:57 | |
iH2O | has fedora a rakudo package? i just downloaded the latest version 3 days ago | ||
i havent checked yet | 10:58 | ||
oops the new mageia 6 version is available for download right today 29 June | 10:59 | ||
gotta to check | |||
conspiracy theory: i note that rakudo doesnt yet have the famous "goto", nor basic macros nor stream matching, so maybe the perl6 establishment wants perl6 to remain "cult" for a while longer | 11:02 | ||
just sayin... | |||
11:02
gensym joined
|
|||
iH2O | though its rather conspicuous... | 11:03 | |
jast | ./wi iH2O | ||
whoops | |||
no idea what happened there | |||
DrForr_ | It may have, but the last time I heard of anyone using rakudo star from a repository, it was so far out-of-date it couldn't handle "hello world". | ||
jast | repositories tend to be quite far behind in most distros, yeah | ||
except the ones that like the bleeding edge | |||
iH2O | u just outconspired me jast | 11:04 | |
DrForr_ | iH2O: Rakudo is missing features, yes, but macro syntax is still very much up in the air, and if you want to help out deciding what it could be, by all means join in and help. There's no "conspiracy", just work that hasn't been done yet. | 11:05 | |
jast | I did? neat | ||
iH2O | :-P | ||
psch | goto is definitely ticketed on RT | ||
well, i'm like 85% certain | 11:06 | ||
iH2O | we gotta to rehabilitate goto | ||
psch | patches welcome vOv | ||
masak | DrForr_: "couldn't handle 'hello world'" sounds... implausible. that must've worked even in old prototypes of Perl 6 from 2003 that went nowhere. | ||
iH2O | gotta get goto | ||
DrForr_ | No reason to invent Internet Conspiracies when a simple missing implementation is the case. | ||
masak: Well, to be fair I think it was something to do with classes, but really about that level of triviality. | 11:07 | ||
iH2O | anything worth mentioning needs its conspiracy theories these days, doc | ||
DrForr_ | No. | 11:08 | |
iH2O | O_O | ||
nine | .oO(no need to find a simple reason, when a conspiracy theory does the job) |
||
iH2O | well said, why dont you post more often nine? | ||
perl6 gotta to have its own culture, mysticism (which it already has), and ... conspiracy theories | 11:10 | ||
psch | what's our mysticism? | ||
jast | you wouldn't believe what Camelia gets up to when nobody is looking | ||
world domination and all that | |||
iH2O | with names around like apocalypse its rather obvious psych :) | 11:11 | |
:) :) | |||
Zoffix | Well, we have 666 modules in the ecosystem and 1 user away from having 666 subscribers on Reddit... COINCIDENSE? I think not. | ||
:) | |||
psch | oh, okay iH20 | ||
jast | subscribed on reddit | ||
Zoffix | And our ecosystem is powered by Mojolicious..... guess what it's latest version is.... 6.66! | ||
DrForr_ | A conspiracy theory does nothing but give people an excuse to let {nobody|somebody else} do the work. | 11:13 | |
psch | oooh, i need a conspiracy theory about why jvm module precomp doesn't work! | ||
Zoffix | Oh, wait, someone added 667th module—Shell::Capture—*phew* crisis averted. | 11:14 | |
iH2O | folks, stop outconspiracizing me | ||
nine | Zoffix: you do know that 667 is the actual evil number? Popularization of 666 is only a conspiracy trying to distract from 667... | 11:16 | |
11:16
Guest66635 is now known as nemo
|
|||
psch | off-by-ones everywhere /o\ | 11:16 | |
Zoffix | heh | 11:17 | |
DrForr_ | It *is* the Beast's next-door neighbor. | ||
iH2O | nine: 1st time i hear that | ||
DrForr_ | And it's actually 616 if you read the original text, 666 was a corrupted translation. | ||
gregf_ | *time to switch to catalyst* | 11:24 | |
11:24
rindolf joined
11:29
aries_liuxueyang joined
|
|||
Ulti | donaldh: debian has a reasonably recent package if you are on unstable or testing or whichever gets fairly bleed packages | 11:34 | |
Docker is not the worst idea if you are on a suitably futuristic Linux | 11:35 | ||
tbrowder | can someone give a short example of using the ast method on a match object? | 11:37 | |
DrForr_ | $x.parse("text").ast | 11:38 | |
psch | m: grammar G { token TOP { \d+ } }; class A { method TOP($/) { make $/ * 10 } }; say G.parse("1", :actions(A.new)).ast | ||
camelia | rakudo-moar 8ab6db: OUTPUT«10» | ||
11:39
huggable left
11:40
huggable joined
|
|||
tbrowder | thank you DrForr and psch | 11:40 | |
DrForr_ | I'd forgotten the :actions(...);... :( | 11:41 | |
psch | m: grammar G { token TOP { $<nums>=\d+ { make $<nums> * 10 } } }; G.parse("1").ast.say | ||
camelia | rakudo-moar 8ab6db: OUTPUT«10» | ||
psch | well, you don't *need* them | ||
m: grammar G { token TOP { $<nums>=\d+ { make $<nums> * 10 } } }; G.parse("1").say | 11:42 | ||
camelia | rakudo-moar 8ab6db: OUTPUT«「1」 nums => 「1」» | ||
donaldh | Ulti: thanks, though I'm not sure that the docker image is useful for anything other than the REPL or building a derived docker image that packages up a script. | ||
11:44
kid51 joined
|
|||
Ulti | well you can just execute scripts so I dont see why not | 11:45 | |
12:01
Roamer` joined
12:08
iH2O left
12:16
dalek left
12:17
dalek joined,
ChanServ sets mode: +v dalek
|
|||
dalek | c: 3029914 | (Zoffix Znet)++ | / (2 files): ::AssetPack is needed only when processing SASS |
12:18 | |
donaldh | Ulti: to run a script outside the container requires something like: docker run -ti -v `pwd`:`pwd` -w `pwd` rakudo-star perl6 ... | 12:27 | |
12:31
kid51 left
12:36
Sgeo_ left
12:50
mcmillhj joined
12:56
rgrinberg joined
12:57
wamba joined
|
|||
dalek | c: d290581 | (Zoffix Znet)++ | / (4 files): Improve footer styles Don't attempt to use fixed height footer, since content height can vary greatly, depending on the device. There's a way to muck around with table-* display properties for the entire page and sticky the variable-height footer to the bottom, but instead I chose to unsticky it. Related to #645 |
12:59 | |
c: 21e3150 | (Wenzel P. P. Peppmeyer)++ | doc/Type/Range.pod: improve examples |
13:02 | ||
c: 71b32c5 | (Wenzel P. P. Peppmeyer)++ | / (4 files): Merge branch 'master' of github.com/perl6/doc |
|||
Roamer` | OK, I seem to be missing something here, but how do I do a stat() on a file in Perl 6? I can get the mode things from IO.d, IO.f, etc, but how do I get the owner and group? | 13:03 | |
gfldex | m: class A { method WHAT { "ain't gonna happen" } }; say A.new."WHAT"() | 13:04 | |
camelia | rakudo-moar 90d407: OUTPUT«ain't gonna happen» | ||
jkramer | Is there any preference whether to use .pm6 or .pm for P6 modules? | 13:07 | |
dj_goku | Roamer`: that is one of my questions too. so maybe `has Pointer[int] $.ifa_next? my other question is how do I declare the sub for getifaddrs() is native? | ||
BrokenRobot | jkramer: both will work, but .pm6 is preferred | 13:08 | |
jkramer: it makesit easier for tools to know it's Perl 6 and not Perl 5 and module loader will also try .pm6 first so you'll save a few microseconds of runtime :) | |||
13:09
travis-ci joined
|
|||
travis-ci | Doc build failed. Wenzel P. P. Peppmeyer 'Merge branch 'master' of github.com/perl6/doc' | 13:09 | |
travis-ci.org/perl6/doc/builds/141072504 github.com/perl6/doc/compare/d2905...b32c570bb9 | |||
13:09
travis-ci left
|
|||
jkramer | BrokenRobot: Good, also my preferred version. I was just about to push my first module to github and looked at other ones, and .pm seems to be more popular | 13:09 | |
BrokenRobot | So is Windows and pop music :) Doesn't mean it's good | 13:10 | |
dalek | c: c4dbd5d | (Wenzel P. P. Peppmeyer)++ | doc/Language/typesystem.pod: add .WHO, .HOW and a way to work around reserved method names |
||
BrokenRobot | m: class A { method WHO { "blah" }; method HOW {"meow"} }; say .WHO, .HOW given A.new | 13:12 | |
camelia | rakudo-moar 90d407: OUTPUT«APerl6::Metamodel::ClassHOW.new» | ||
yanmc | is there another mechanism for including code from other files than the module system? | ||
BrokenRobot | yanmc: EVAL-FILE may be | 13:13 | |
dalek | c: b6eed52 | (Zoffix Znet)++ | / (2 files): Prevent secondary nav overflow on mobiles Related to #645 |
13:16 | |
13:19
skids joined,
travis-ci joined
|
|||
travis-ci | Doc build failed. Wenzel P. P. Peppmeyer 'add .WHO, .HOW and a way to work around reserved method names' | 13:19 | |
travis-ci.org/perl6/doc/builds/141074696 github.com/perl6/doc/compare/71b32...dbd5daab23 | |||
13:19
travis-ci left
13:23
travis-ci joined
|
|||
travis-ci | Doc build failed. Zoffix Znet 'Prevent secondary nav overflow on mobiles | 13:23 | |
travis-ci.org/perl6/doc/builds/141075736 github.com/perl6/doc/compare/c4dbd...eed525d454 | |||
13:23
travis-ci left
13:26
mr-foobar left
|
|||
dalek | c: 6a8604e | (Zoffix Znet)++ | / (2 files): Improve navigation styles on mobile Use more basic styling, since we don't know on how many lines the device renders the nav on. Related to #645 |
13:26 | |
13:30
mr-foobar joined
|
|||
dalek | c: d1a4741 | (Zoffix Znet)++ | doc/Type/Range.pod: Fix failing build |
13:30 | |
13:32
aries_liuxueyang left,
Actualeyes joined,
travis-ci joined
|
|||
travis-ci | Doc build failed. Zoffix Znet 'Improve navigation styles on mobile | 13:33 | |
travis-ci.org/perl6/doc/builds/141078164 github.com/perl6/doc/compare/b6eed...8604ea126c | |||
13:33
travis-ci left,
kid51 joined
13:35
cognominal left
|
|||
dalek | c: 625fdb7 | (Wenzel P. P. Peppmeyer)++ | doc/Language/list.pod: doc shaped Arrays |
13:38 | |
13:39
kurahaupo joined
13:43
travis-ci joined
|
|||
travis-ci | Doc build passed. Zoffix Znet 'Fix failing build' | 13:43 | |
travis-ci.org/perl6/doc/builds/141079184 github.com/perl6/doc/compare/6a860...a4741e4212 | |||
13:43
travis-ci left
13:50
kid51 left
13:51
travis-ci joined
|
|||
travis-ci | Doc build passed. Wenzel P. P. Peppmeyer 'doc shaped Arrays' | 13:51 | |
travis-ci.org/perl6/doc/builds/141081192 github.com/perl6/doc/compare/d1a47...5fdb72588e | |||
13:51
travis-ci left
13:53
brrt joined
13:54
donaldh left
|
|||
jkramer | How can I make parameter switches or whatever they're called like :skip-empty in split? I guess it's some kind of Bool $:skip-empty, but without explicitly passing :skip-empty(True)? | 13:56 | |
moritz | jkramer: they are called "named paramters" | 13:57 | |
jkramer: sub foo(:$skip-empty = False) { ... } # for example | |||
the defualt value is optional | |||
jkramer | Yeah, that part I know. I mean how can I make it so I can call my sub just with foo(:skip-empty) instead of foo(:skip-empty(True))? | 13:58 | |
psch | m: sub f(:$skip-empty) { if $skip-empty { say "skipping empty" } else { say "no skip" } }; f :skip-empty | ||
camelia | rakudo-moar 90d407: OUTPUT«skipping empty» | ||
13:59
donaldh joined
|
|||
skids | m: say (:skip-empty).perl | 13:59 | |
camelia | rakudo-moar 90d407: OUTPUT«:skip-empty» | ||
skids | m: say (:skip-empty).kv.perl | ||
camelia | rakudo-moar 90d407: OUTPUT«("skip-empty", Bool::True)» | ||
timotimo | :skip-empty is already syntax for :skip-empty(True) | 14:00 | |
jkramer | Ha ok, seems easy enough. So it's automatically a Bool and True if it's given and False/default value if not? | ||
timotimo | and :!skip-empty is syntax for False | ||
not False, undefined | |||
jkramer | Ok | ||
Thanks! | |||
14:00
canopus joined
|
|||
timotimo | well, that is the default value | 14:00 | |
skids | Unless the default is given as False | ||
timotimo | by default | ||
psch | m: say (:!foo).kv.perl | 14:01 | |
camelia | rakudo-moar 90d407: OUTPUT«("foo", Bool::False)» | ||
psch | m: sub f(:$a) { say $a.perl }; f :!a | ||
camelia | rakudo-moar 90d407: OUTPUT«Bool::False» | ||
skids | m: sub f(:$a) { say $a.perl }; f | ||
camelia | rakudo-moar 90d407: OUTPUT«Any» | ||
14:03
zakharyas left,
zakharyas joined
|
|||
skids thinks that part of the design worked out particularly nicely. | 14:03 | ||
psch | m: sub f(:$!) { }; say f | 14:04 | |
camelia | rakudo-moar 90d407: OUTPUT«Nil» | ||
psch | i still like that, the required anonymous named that doesn't have to be passed /o\ | ||
14:07
zakharyas left
|
|||
yanmc | echo '.precomp' >>.gitignore | 14:09 | |
14:09
kerframil joined
14:14
sammers joined
14:15
kid51 joined
|
|||
dalek | c: a493a4b | (Wenzel P. P. Peppmeyer)++ | doc/Language/typesystem.pod: add reserved method names to index |
14:16 | |
14:17
gabiruh joined
|
|||
yanmc | using : instead of ; | 14:20 | |
compiler is "Confused", not that useful, shouldn't it `expect' something? | 14:21 | ||
m: use v6.c: | |||
camelia | rakudo-moar 90d407: OUTPUT«5===SORRY!5=== Error while compiling <tmp>Confusedat <tmp>:1------> 3use v6.c7⏏5:» | ||
jkramer | Hooray, my first module: github.com/jkramer/p6-Text-Wrap | 14:23 | |
And it's actually one from the wanted list | |||
How do I get it listed on modules.perl6.org? | |||
Ah nvm, it says it right there on the page :) | 14:24 | ||
dj_goku | any NativeCall users in here? trying to make calls to getifaddrs() but not sure where I am going wrong: gist.github.com/djgoku/2d12766f993...a01b8eb405 | ||
awwaiid | dj_goku: what result do you get? | 14:29 | |
14:29
ptolemarch joined
|
|||
awwaiid | dj_goku: for ifa_name you should be able to use Str instead of CArray | 14:32 | |
wamba | m: say 1 [&( * + * -1 )] 2 [&( * + * -1 )] 3 | 14:33 | |
camelia | rakudo-moar 90d407: OUTPUT«4» | ||
awwaiid | and for for ifa_next seems like it should be Ifaddrs or maybe Pointer[Ifaddrs] | ||
wamba | m: say [&( * + * -1 )] 1, 2, 3 | 14:34 | |
camelia | rakudo-moar 90d407: OUTPUT«5===SORRY!5=== Error while compiling <tmp>Two terms in a rowat <tmp>:1------> 3say [&( * + * -1 )]7⏏5 1, 2, 3 expecting any of: infix infix stopper postfix statement end statement m…» | ||
awwaiid | wamba: it thinks its an array. I don't know what the first one is though :) | 14:36 | |
psch | well, the reduce form of an infix is usually [&...] | ||
gfldex | m: say (&( * + * -1 ))(1, 2) | 14:37 | |
camelia | rakudo-moar 90d407: OUTPUT«2» | ||
psch | no, without the & actually | ||
awwaiid | m: [&(* + *)].perl.say | ||
camelia | rakudo-moar 90d407: OUTPUT«[{ ... }]» | ||
wamba | m: say 1 [&( * + * -1 )] 2 [&( * + * -1 )] 3 | ||
camelia | rakudo-moar 90d407: OUTPUT«4» | ||
psch | m: say 1 + 2; say [+] 1, 2 | ||
camelia | rakudo-moar 90d407: OUTPUT«33» | ||
psch | but the infixified form of a prefix doesn't play along there i think | 14:38 | |
dalek | osystem: 59ad094 | (Jonas Kramer)++ | META.list: Add Text::Wrap to ecosystem See github.com/jkramer/p6-Text-Wrap |
||
osystem: 5ebff7a | Altai-man++ | META.list: Merge pull request #222 from jkramer/patch-1 Add Text::Wrap to ecosystem |
|||
psch | s/prefix/sub call/ | ||
wamba | i can use [&( * + * -1 )] as infix, and try use it in reduce operator | ||
psch | m: say &infix:<+>(1, 2); say 1 [&infix:<+>] 2 | ||
camelia | rakudo-moar 90d407: OUTPUT«33» | ||
14:38
brrt left
|
|||
psch | m: say [[&infix:<+>]] 1, 2 | 14:38 | |
camelia | rakudo-moar 90d407: OUTPUT«3» | ||
jkramer | \o/ | ||
psch | ah, so it's more about the weird kind of infix you're building there i suppose | ||
gfldex | that wont work because meta operators are build at compile time when first used. They require a proper operator inside the meta operator. | 14:39 | |
psch | m: my &foo = sub { $^a + $^b }; say [[&foo]] 1, 2 | ||
camelia | rakudo-moar 90d407: OUTPUT«3» | ||
wamba | m: say [[&( * + * -1 )]] 1, 2, 3 | ||
camelia | rakudo-moar 90d407: OUTPUT«5===SORRY!5=== Error while compiling <tmp>Two terms in a rowat <tmp>:1------> 3say [[&( * + * -1 )]]7⏏5 1, 2, 3 expecting any of: infix infix stopper postfix statement end statement…» | ||
dalek | rl6-most-wanted: ff0a15e | (Jonas Kramer)++ | most-wanted/modules.md: Added link to WIP Text::Wrap. |
||
rl6-most-wanted: ebf9bfe | Altai-man++ | most-wanted/modules.md: Merge pull request #33 from jkramer/patch-1 Added link to WIP Text::Wrap. |
|||
c: 2a000d2 | (Zoffix Znet)++ | assets/sass/style.scss: Remove dead CSS |
14:41 | ||
c: 4932a10 | (Zoffix Znet)++ | / (6 files): Make Tables of Contents Hide-able Closes #217 |
|||
psch | m: my &foo; if rand < .5 { &foo = sub { $^a + $^b } } else { &foo = sub { $^a - $^b } }; say [[&foo]] 1, 2, 3 | ||
camelia | rakudo-moar 90d407: OUTPUT«-4» | ||
psch | wamba: i'd probably declare the expr you want to reduce with in a Callable variable | ||
wamba: that'd probably also help readability in the long term :) | |||
14:42
kurahaupo left,
kurahaupo joined
|
|||
gfldex | m: my sub infix:<foofix>{ $^a + $^b -1 }; say [foofix] 1, 2, 3 | 14:42 | |
camelia | rakudo-moar 90d407: OUTPUT«4» | 14:43 | |
wamba | yes, of course but for one-liners, i would prefer using anonymous operator with reduce meta-operator | ||
gfldex | are there anonymous operators in Perl 6? | 14:44 | |
wamba | gfldex: this works | ||
m: say 1 [&( * + * -1 )] 2 [&( * + * -1 )] 3 | |||
camelia | rakudo-moar 90d407: OUTPUT«4» | ||
gfldex | m: dd [&( * + * -1 )] | 14:45 | |
camelia | rakudo-moar 90d407: OUTPUT«[{ ... }]» | ||
gfldex | that's just an Array with a block inside | 14:46 | |
psch | no it's not, it's the infix form of an anonymous block | ||
gfldex | m: constant a := [&( * + * -1 )]; a.WHAT.say; | ||
camelia | rakudo-moar 90d407: OUTPUT«(Array)» | ||
psch | m: dd [&say] | ||
camelia | rakudo-moar 90d407: OUTPUT«[sub say (| is raw) { #`(Sub|48548600) ... }]» | ||
psch | yeah, that doesn't tell you that it's parsed differently as an infix | ||
m: 1 [&say] 2 | 14:47 | ||
camelia | rakudo-moar 90d407: OUTPUT«12» | ||
14:47
kid51 left
|
|||
psch | s/block/Callable/ # i guess | 14:47 | |
github.com/rakudo/rakudo/blob/nom/....nqp#L3817 | 14:49 | ||
m: say '(' ~~ /<alpha>/ | |||
camelia | rakudo-moar 90d407: OUTPUT«Nil» | ||
gfldex | there are spec tests for &sub-name but not for other callables | 14:50 | |
psch | ah, nvm, the <variable> is the spot that breaks the WhateverCode i guess | ||
we could use them for the infix form at least i think | |||
not sure if the reduce form of the anon Callable infix form should be a thing, though | 14:51 | ||
dj_goku | awwaiid: I updated the gist with the results at the bottom | ||
14:51
TEttinger joined
|
|||
psch | Perl6::Grammar seems to explicitely not look for that, but that might not mean much | 14:51 | |
oh, though... | |||
dj_goku | awwaiid: I really don't even know if my sub call to getifaddrs() is correct. | 14:52 | |
psch | m: say {[[&:a]] 1, 2, 3}(a => &(* + * - 1)) | ||
camelia | rakudo-moar 90d407: OUTPUT«4» | ||
psch | m: say {[[&^a]] 1, 2, 3}(&(* + * - 1)) | ||
camelia | rakudo-moar 90d407: OUTPUT«4» | ||
psch | wamba: ^^^ that's your workaround i guess | ||
TimToady | that &() is kinda redundant | ||
psch | huh, yeah, it probably is | 14:53 | |
awwaiid | dj_goku: interesting. looks ok, and doesn't crash at least. But I guess you're expecting ifa_name to get populated but the (Str) output indicate it is null | ||
14:55
wingfold joined
|
|||
wamba | psch: thank you, | 14:55 | |
14:56
kurahaupo left
|
|||
dj_goku | awwaiid: I have c code that works by using getifaddrs(). I thought this would be a simple thing to get my feet wet with NativeCall. | 14:57 | |
14:57
raiph left,
gcole_ joined
14:58
kurahaupo joined,
wingfold left
15:00
wamba left
|
|||
dalek | osystem: cba68b7 | Altai-man++ | META.list: Add Text::Tabs to ecosystem. |
15:02 | |
rl6-most-wanted: 900bfe6 | Altai-man++ | most-wanted/modules.md: Split Text::Wrap and Text::Tabs modules, add Text::Tabs implementation into the list. |
15:05 | ||
gregf_ | m: say [&(* + *).^name, ->$x,$y { $x + $y }.^name].join("-") | 15:08 | |
camelia | rakudo-moar 90d407: OUTPUT«WhateverCode-Block» | ||
15:10
zakharyas joined
15:13
donaldh left
15:14
pmurias joined
15:16
donaldh joined
|
|||
awwaiid | dj_goku: and similar C code you'd see the ifa_name set to something, ya? | 15:19 | |
15:19
ssotka joined
|
|||
awwaiid | hmm | 15:19 | |
dj_goku: I wonder if it needs to be sub getifaddrs(Ifaddrs $arg is rw) is native('info') { * } | 15:20 | ||
the 'is rw' will turn it into a pointer | |||
dj_goku | awwaiid: I updated the gist, it now has c code at the very bottom. | 15:26 | |
awwaiid: tried with is 'rw' didn't seem to make a difference | |||
15:27
kurahaupo left
|
|||
dj_goku | but yes ifa_name is set to something | 15:27 | |
awwaiid | dj_goku: hm. so 'say $ifaddrs.ifa_name' still prints out (Str), eh? . Well I think the 'is rw' is probably better, but I don't know what to do next | 15:28 | |
dj_goku: I see you have "has Pointer[void]$.ifa_next;" -- does "has Pointer[Ifaddrs] $.ifa_next" or "has Ifaddrs $.ifa_next is rw" help maybe? | 15:30 | ||
15:31
canopus left,
canopus joined
|
|||
dj_goku | oh oh oh | 15:32 | |
has Ifaddrs $.ifa_next fixed it, but I swear I had that last night | |||
awwaiid | dj_goku: or maybe no Pointer / is rw at all, it might do it automatically | ||
dalek | rl6-most-wanted: 198137a | (Zoffix Znet)++ | most-wanted/modules.md: Remove WIPs that are already in the ecosystem Closes github.com/perl6/ecosystem/issues/136 |
15:33 | |
awwaiid | so it works now? maybe last night you were missing the 'is rw' on the sub getifaddrs | ||
BrokenRobot | Please don't add/keep WIPs in Most Wanted after they're listed in the ecosystem. When that happens they're already findable by any potential authors, so there's no need to bloat the Most Wanted list with them. | 15:34 | |
TimToady | m: (once say 42) for 1..10 # wonder if we've seen this bug before... | ||
camelia | ( no output ) | ||
dalek | rl6-most-wanted: 14289ea | (Zoffix Znet)++ | most-wanted/modules.md: Document the purpose of WIP tags |
15:36 | |
15:36
zakharyas left
15:37
g4 left
15:39
huggable left
15:40
huggable joined
|
|||
grondilu | oh I see nice colors in my Configure.pl output. Not sure if this is new or due to my new system | 15:41 | |
grondilu recently installed a new Debian-test VM | 15:42 | ||
15:43
notbenh_ joined
15:46
kmwallio joined,
bdmatatu joined
|
|||
d^_^b | awwaiid: this is dj_goku too. i dont know ill have to double check tonight. a data structure came back then my home net ssh dropped | 15:48 | |
tbrowder | please consider PR github.com/perl6/roast/pull/132 | 15:51 | |
BrokenRobot | tbrowder: skip needs the number of tests to skip (defaults to 1). And you need to update the plan too. Also, on line 153, the table was changed to r0c0 r0c1, but the test still tests for the old values (also the r0c0 doesn't have a hyphen the bug is about; not sure if that's on purpose) | 15:56 | |
Oh, Never mind the last comment. i get it now :) | 15:57 | ||
daxim | what's the equivalent of `cpanm --look Foo; perl Makefile.PL; make test` with panda? I just want to run the tests without installing | ||
psch | daxim: panda look; prove -e 'perl6 -I lib' t/* # or thereabouts | 15:58 | |
i'm not 100% sure prove takes -e for that | |||
15:58
abraxxa left
|
|||
psch | well, and it also doesn't guarantee that you run any install-ish code there, but i think you usually don't need to, and if you do the modules README probably has something to say about that..? | 15:59 | |
BrokenRobot | tbrowder: so line 189 should be skip 'desc', 10; and plan should be changed to... um... plan 50; | ||
daxim | thank you | ||
awwaiid | d^_^b: cool :) | 16:00 | |
BrokenRobot | zef look Foo | ||
.oO( trying to IRC over a ssh connection over a reaaaaly laggy network is a nightmare :( ) |
16:01 | ||
ilmari | BrokenRobot: try mosh | ||
tbrowder | BrokenRobot: check it now | 16:03 | |
BrokenRobot | ilmari: neat thanks. | ||
dj_goku | awwaiid: so I can get all the interfaces! need to build out a socketaddr struct | ||
awwaiid | dj_goku: awesome! | 16:04 | |
16:05
khw joined
|
|||
BrokenRobot | tbrowder: I'm not sure if GitHub is glitching, but I'm not seeing the change to skip() (needs 10 added to skip 10 tests) and plan changed (I believe the new plan is 50 tests, not 40) | 16:06 | |
16:07
pmurias left
|
|||
BrokenRobot | tbrowder: oh, sorry plan 51; and the skip on line 158 needs a count now too, it should be 3 | 16:10 | |
With 100% course average for Calculus and Vectors, I sure suck at doing basic math :P | |||
tbrowder | okay, check it now | ||
16:12
molaf joined
|
|||
BrokenRobot | tbrowder++ merged. Thanks. | 16:13 | |
tbrowder | yr welcome!! | ||
notice my first use of a hyper operator for the last table test (Texas style), p6 is great! | 16:15 | ||
16:18
zakharyas joined
16:24
yqt joined,
rkr joined
|
|||
dalek | c: 9256c86 | (Wenzel P. P. Peppmeyer)++ | doc/Language/operators.pod: doc [&sub-name] form for meta ops |
16:25 | |
BrokenRobot | m: [&say] ^3 | 16:29 | |
camelia | rakudo-moar 90d407: OUTPUT«WARNINGS for <tmp>:Useless use of "^" in expression "[&say] ^3" in sink context (line 1)» | ||
BrokenRobot | m: sub plus { $^a + $^b }; say [&plus] 1, 2, 3; | ||
camelia | rakudo-moar 90d407: OUTPUT«5===SORRY!5=== Error while compiling <tmp>Two terms in a rowat <tmp>:1------> 3sub plus { $^a + $^b }; say [&plus]7⏏5 1, 2, 3; expecting any of: infix infix stopper postfix statement end …» | ||
psch | BrokenRobot: one more [] for the reduce form | ||
BrokenRobot | aH, NEEAT | 16:30 | |
psch | m: [[&say]] ^3 | ||
camelia | rakudo-moar 90d407: OUTPUT«01True2» | ||
psch | perfectly reasonable results too :) | ||
16:32
addison joined
|
|||
dalek | c: 12b7637 | (Wenzel P. P. Peppmeyer)++ | doc/Language/operators.pod: reduction meta ops need another [] layer for sub refs |
16:35 | |
16:38
vendethiel- joined
16:39
vendethiel left
16:40
dakkar left
16:42
wingfold joined
16:47
zakharyas left
16:48
vendethiel- left
|
|||
gregf_ | m: sub plus { $^a + $^b }; say [[&plus]] 1, 2, 3 | 16:55 | |
camelia | rakudo-moar 90d407: OUTPUT«6» | ||
16:55
ChoHag joined
16:57
rkr left
17:03
donaldh left,
addison left
17:07
ChoHag left
|
|||
dalek | c: d7fe27a | (Wenzel P. P. Peppmeyer)++ | doc/Language/functions.pod: doc infix form for subs |
17:09 | |
17:12
kyclark joined
|
|||
kyclark | Are there docs on POD in Perl 6? I assume there are differences from Perl 5. | 17:13 | |
17:17
firstdayonthejob joined
|
|||
zostay | kyclark: that would be an excellent document for someone to write ;) | 17:18 | |
afaik, this is the most authoritative there is: design.perl6.org/S26.html | |||
moritz | raw.githubusercontent.com/perl6/sp...tation.pod is the design document for Perl 6 Pod | ||
its HTML rendering seems to be broken at the moment :( | |||
zostay | irony | ||
17:20
sno left
17:24
cognominal joined
|
|||
dj_goku | awwaiid: trying to figure out a few perl 6 bits though. I'll likely share my knowledge! | 17:24 | |
awwaiid | dj_goku++ # sharesies | 17:25 | |
17:28
Bosak joined
17:30
Bosak left
17:33
cognominal left
17:34
cognominal joined
17:40
araujo_ joined
17:43
araujo left
|
|||
nine | ugexe: ping | 17:44 | |
17:46
yqt left
17:54
_dolmen_ joined
17:58
girafe joined
18:02
domidumont joined
18:03
_dolmen_ left
18:07
sno joined
18:08
ChoHag joined
18:09
Actualeyes left
18:10
kyclark left
18:22
spider-mario joined
18:25
sufrostico left
18:28
kyclark joined
|
|||
dalek | c: 36e4471 | (Zoffix Znet)++ | / (3 files): Improve typography |
18:33 | |
18:34
brrt joined
|
|||
kyclark | How can I use IO::Spec::catdir? Calling "catdir" or "IO::spec::catdir" gets me "Could not find symbol '&catdir'" | 18:36 | |
18:36
yqt joined
|
|||
nine | kyclark: $*SPEC.catdir | 18:37 | |
dalek | c: 5a57aee | (Zoffix Znet)++ | / (2 files): Improve footer styles |
||
18:39
labster joined
|
|||
ugexe | nine: here | 18:39 | |
also forgot to commit this: github.com/rakudo/rakudo/compare/n...xe:patch-7 | 18:40 | ||
18:40
kerframil left
|
|||
hoelzro | jjjjjjj | 18:43 | |
sorry | |||
nine | ugexe: Ah, I wanted to ask you about github.com/rakudo/rakudo/commit/17...d8c34a9877 | ||
hoelzro | my SSH session keeps locking up! | ||
timotimo | you know about return | 18:45 | |
er | |||
and then ~. ? | |||
ugexe | nine: it appears to make sense, but I can't test yet | 18:46 | |
kyclark | Thanks, nine. How could I find out more about that? I.e., how would one know to use $*SPEC? | ||
18:47
sufrostico joined,
addison joined
18:48
fhorck joined
|
|||
timotimo | it's hard to tell people about return + ~. when that's how you kill your ssh session locally :D | 18:50 | |
moritz | Zoffix: fwiw your last commit in the perl6/mu repo broke the rendering of pod6 design docs | 18:51 | |
Zoffix: it does "pod2html @*ARGS.shift", but pod2html doesn't expect a file name | |||
I'd have to look it up, but I suspect it wants an actualy POD tree | 18:52 | ||
BrokenRobot | kyclark: it'll contain the OS-specific IO::Spec:: opbject | ||
m: $*SPEC.^name.say | |||
camelia | rakudo-moar f43e3e: OUTPUT«IO::Spec::Unix» | ||
BrokenRobot looks at what the latest commit to mu was... | |||
nine | BrokenRobot: I understood kyclark's question to be more about documentation | 18:53 | |
kyclark | Right, just wondering where to find my tools that I use all the time. | ||
nine | kyclark: sorry, I'm not much of a Perl 6 user. Others are for sure more familiar with our docs | ||
hoelzro | timotimo: yeah, that's what I did | ||
18:53
sufrostico left
|
|||
nine | ugexe: so what's the missing patch for? | 18:54 | |
BrokenRobot | kyclark: sorry, I meant you can look up the appropriate type in the docs: docs.perl6.org/type/IO::Spec::Unix or maybe docs.perl6.org/type/IO::Spec | ||
18:55
sufrostico joined
|
|||
kyclark | Ah! I see "On object of this type is available via the variable $*SPEC if the perl is running on a Unix-like platform." | 18:55 | |
ugexe | nine: for when you do `perl6 -e '$*REPO.whatever-cur.install(Distribution::Path($*CWD))` and the project in $*CWD doesn't have a bin or resources directory | ||
18:56
wamba joined
|
|||
kyclark | I'm loving load of Perl 6, but that seems like an odd design decision. It's odd that I can't "use IO::Spec 'catdir'" or something like that. Seems like voodoo to use this $*SPEC object/class/whatever. | 18:57 | |
dalek | : 21d6bd7 | (Zoffix Znet)++ | util/update-design.perl6.org.sh: Fix incorrect pod2html call The function expects POD not a filename. |
||
BrokenRobot | moritz: that should fix it. | ||
kyclark: you're not the only one :) | |||
(who thinks that way) | 18:58 | ||
moritz | BrokenRobot: I don't think so | ||
BrokenRobot: now you give pod2html a string, but it still expects a Pod *tree* | |||
18:59
brrt left
|
|||
BrokenRobot | Oh, sorry. I should've looked at what it generated in the browser: temp.perl6.party/test.html | 18:59 | |
And I did think there were an awful many HTML escapes :P | 19:00 | ||
nine | ugexe: can you please submit a pull request? I'll hit merge as soon as I see it | ||
BrokenRobot | m: sub catdir { $*SPEC.catdir: @_ }; say catdir <foo bar ber> | ||
camelia | rakudo-moar f43e3e: OUTPUT«foo/bar/ber» | ||
dalek | : 9c9b68b | moritz++ | util/update-design.perl6.org.sh: Extract POD tree; unbreaks S26 build. |
19:01 | |
ugexe | oh i thought i sent one, must be in the wrong branch | ||
moritz | BrokenRobot: I've pushed an incredibly hacky workaround | ||
BrokenRobot | kyclark: ^ that's not too off from use blah blah :) And I wouldn't be surprised if there's a module exporting that already in the ecosystem | ||
moritz | htmlify.p6 in the doc repo has a slightly less ugly way to get the POD tree | ||
ugexe | nine: github.com/rakudo/rakudo/pull/806 | 19:02 | |
19:02
cosimo left,
samb1 left,
KotH left
|
|||
nine | ugexe: thanks, merged | 19:02 | |
19:04
konobi joined,
lnx joined
|
|||
BrokenRobot | Cool. It works I guess. I think a proper fix would be to make Pod::To::HTML take a CSS file in a better way | 19:04 | |
ugexe | nine: cool, thanks for getting all those other details taken care of | ||
19:04
cosimo joined,
KotH joined,
konobi is now known as Guest71116
|
|||
nine | ugexe: you're welcome :) | 19:05 | |
moritz | design.perl6.org/S26.html is back to live | 19:07 | |
and the cool thing is that the complete build only took 13s | |||
it used to be that parsing S26.pod alone took at least a minute, probably several minutes | 19:08 | ||
19:08
skids left
|
|||
BrokenRobot | Too bad the historical messages thing is not there | 19:08 | |
Which was the point of that mu stuff | |||
Is it using an older Pod::To::HTML version? The one before the :css-file-blah option was added? | 19:09 | ||
Hm,mm | 19:10 | ||
moritz | no | ||
I think I forgot parens around the EVAL | |||
BrokenRobot | I was just thinking that. | ||
m: sub foo ($, :$css ){ say $css }; foo EVAL "42", :css | 19:11 | ||
camelia | rakudo-moar f49a50: OUTPUT«(Any)» | ||
nemo | say. what's the state of CPAN in perl6? are you guys converting? is it semi-automated? | ||
dalek | : bafe575 | moritz++ | util/update-design.perl6.org.sh: re-include historical message in S26 HTML output |
||
BrokenRobot | nemo: AFAIK there currently no available volunteers to do the work. | 19:12 | |
moritz | nemo: we use the original cpan through Inline::Perl5 | ||
nemo | gosh that sounds familiar | ||
oh. huh. 'k | |||
BrokenRobot | Oh | ||
nemo: nemo lagh | |||
nemo | he's kidding? | 19:13 | |
seemed plausible. embed perl5 interpreter, shuttle data | |||
BrokenRobot | nemo: I thought you were asking about our CPAN6 module infrastructure that'll replace the current github system | ||
nemo | BrokenRobot: nope. just that major perl5 strength is CPAN has almost anything I could need whenever I need it | 19:14 | |
BrokenRobot | nemo: no, I got lag and wasn't sure what data I was sending sorry.. He's not kidding most of CPAN is usable with Inline::Perl5. We don't need to embed an interpreter, as we can use the Perl 5 C lib via native call | ||
nemo | ah.. | ||
BrokenRobot | I'm actually in the middle of an article showing my use of Mojolicious web framework via Inline::Perl5 for an app | ||
19:15
samb1 joined
|
|||
BrokenRobot | It's pretty exciting to write get '/' => *.stash: foo => 'bar'; to create a mojolcious route, since it's so much simpler code than the original :D | 19:16 | |
19:21
domidumont left,
cognominal left
19:22
skids joined
19:23
rindolf left
|
|||
moritz | some of the Mojolicious APIs could really benefit from proper named arguments | 19:23 | |
(that are distinct from positional arguments at the Perl level) | |||
19:24
kyclark left
19:27
rindolf joined
|
|||
DrForr_ | gist.github.com/drforr/bd929fea53e...c690314f11 - Fragment of a class I'm working on. I assume there's a more portable way to get the parse tree, but I don't see it. | 19:27 | |
(well, match before AST, because I"m worried that may strip vital information.) | 19:28 | ||
19:28
darutoko left
|
|||
DrForr_ | I.E. I can't very well go reformatting code post-optimization... | 19:29 | |
19:39
huggable left
19:40
huggable joined
19:42
raiph joined
19:43
vendethiel joined
19:44
jack_rabbit left
19:58
bazzaar joined
|
|||
bazzaar | \o | 19:58 | |
DrForr_ | o_m/ | 20:00 | |
bazzaar | m: class A { method invocant { say "{ self }" } }; my $a = A.new; $a.invocant; | ||
camelia | rakudo-moar f49a50: OUTPUT«A<78625248>» | ||
bazzaar | m: class A { method invocant { say "{ self }" } }; A.invocant; | 20:01 | |
camelia | rakudo-moar f49a50: OUTPUT«Use of uninitialized value of type A in string contextAny of .^name, .perl, .gist, or .say can stringify undefined things, if needed. in method invocant at <tmp> line 1» | ||
20:02
fhorck left
|
|||
bazzaar | Does this illustrate the difference between calling a method on the object versus calling a method on the class? | 20:02 | |
skids | DrForr_: supposedly there is %*LANG | ||
hoelzro | bazzaar: which difference would that be? | 20:03 | |
20:03
ZoffixMobile joined
20:04
fhorck joined
|
|||
bazzaar | hoelzro: in that self is undefined when the method is called on the class | 20:04 | |
ZoffixMobile | bazzaar: yeah, self in the class call is the type object | ||
DrForr_ | skids: There is, I use that in Slang::Roman but I'm not sure that got me where I needed to be, though I'll look again. | ||
hoelzro | well, self points to the class, which is undefined | 20:05 | |
ZoffixMobile | bazzaar, it | ||
skids | Weirdly, I have used it successfully in slangs as well, but... | ||
hoelzro | in both situations, self refers to the thing on the LHS of the '.' operator | ||
ZoffixMobile | bazzaar, you can use :D and :U type simleys on the invocant in method signature to differentiate the calls | ||
skids | m: %*LANG.perl.say | ||
camelia | rakudo-moar f49a50: OUTPUT«Failure.new(exception => X::Dynamic::NotFound.new(name => "\%*LANG"), backtrace => Backtrace.new)» | ||
DrForr_ | I think the issue was the type it gave me,but I know more of what I'm looking for now. | 20:06 | |
m:nqp::bindkey(%*LANG,'MAIN',Any); | 20:08 | ||
20:08
ZoffixMobile left
|
|||
DrForr_ | m: nqp::bindkey(%*LANG,'MAIN',Any); | 20:08 | |
camelia | rakudo-moar f49a50: OUTPUT«5===SORRY!5=== Error while compiling <tmp>Could not find nqp::bindkey, did you forget 'use nqp;' ?at <tmp>:1------> 3nqp::bindkey(%*LANG,'MAIN',Any)7⏏5;» | ||
DrForr_ | m: use nqp; nqp::bindkey(%*LANG,'MAIN',Any); | 20:09 | |
camelia | rakudo-moar f49a50: OUTPUT«This type (Failure) does not support associative operations in block <unit> at <tmp> line 1» | ||
bazzaar | hoelzro: thanks | ||
BooK | so in this code (which I didn't write alone), github.com/book/p6-Git-Version/blo...Version.pm I have both a unit module Git::Version, and below a class Git::Version | ||
skids | Yeah I don't know why my slang module is even working now. | ||
bazzaar | Zoffix: thanks, I will investigate the smileys | ||
20:10
kyclark joined
|
|||
BooK | what's the difference? a module is a namespace ? for functions? | 20:10 | |
there's also a Git::Version.Version::new() call at the end of the code, which puzzles me a little | |||
I assume it means, call the Version::new code but create a Git::Version object (which is a subclass) | 20:11 | ||
DrForr_ | Oh, right, to do what I wanted I'd have to wrap the grammar's methods but that option would only work for a subclass and the grammar was finalized in NQP or something like that... | 20:12 | |
20:19
pmurias joined
|
|||
pmurias | BrokenRobot: Inline::Perl5 *embeds* the Perl 5 interpreter | 20:19 | |
nemo: embedding the Perl 5 interpreter is the only way to use CPAN in Perl 6 | 20:21 | ||
20:21
bazzaar left
20:22
kyclark left
|
|||
pmurias | nemo: there was a project to implement Perl 5 on top of MoarVM (and other VMs Perl 6 runs on), but in addition to Perl 5 being fairly tricky to implement loads of CPAN uses XS | 20:22 | |
dogbert17 | .seen sexy-coder-girl | 20:23 | |
yoleaux | I saw sexy-coder-girl 16 Jun 2016 00:29Z in #perl6: <sexy-coder-girl> :) | ||
timotimo | yeah, we can fake up Perl 5 well enough, albeit with a lot of work | ||
but XS ... no way | |||
dalek | osystem/bbkr-tinyid: 351c46a | (Pawel Pabian)++ | META.list: Added TinyID: Shorten and obfuscate IDs |
||
20:24
kyclark joined
|
|||
timotimo | bbkr: i'd be quite happy if the commit message contained a github link directly for your module | 20:24 | |
that's how i used to build the "new modules this week" section in my p6weekly | 20:25 | ||
though lizmat has done the last umpteen thousand of those | |||
bbkr | sure, i'll change it | ||
timotimo | thanks \o/ | ||
dogbert17 | there's a bit of a problem with docs.perl6.org atm | 20:26 | |
go to e.g. docs.perl6.org/type/Mu and click on the method 'isa', are you taken to the doc for that routine? | 20:27 | ||
for me the link changes from showing the name of the method to '[hide]' | 20:28 | ||
Xliff | \o | 20:29 | |
dogbert17 | o/ Xliff | ||
Xliff | Can submethod DESTROY be specified by a role? | ||
20:30
bdmatatu left,
ZoffixMobile joined
|
|||
dalek | osystem/bbkr-tinyid: 0424898 | (Pawel Pabian)++ | META.list: Added TinyID: Shorten and obfuscate IDs See github.com/bbkr/TinyID |
20:30 | |
bbkr | changed | ||
20:30
ptolemarch left
|
|||
ZoffixMobile | dogbert17, I'll fix it when I get home | 20:30 | |
dogbert17, what browser are you using? | 20:31 | ||
dogbert17 | ZoffixMobile: no problem :) FF | ||
20:31
kaare_ left
|
|||
dogbert17 | ZoffixMobile: tried it with IE 11 as well, same result | 20:32 | |
ZoffixMobile | k, I know they issue | ||
20:33
kyclark left
|
|||
dalek | c: 5f1061c | (Zoffix Znet)++ | html/js/main.js: Fix TOC toggle |
20:34 | |
ZoffixMobile | That fixes it (prolly) | ||
dogbert17 | ZoffixMobile: are you home now :-) | ||
ZoffixMobile | No, at the bus stop :) | 20:35 | |
dogbert17 | I like the collapsible TOC, it's nifty | ||
20:38
jjido joined
20:40
Bodger1234 joined
20:42
kyclark joined
20:47
girafe left
20:50
Ven_ joined
|
|||
dalek | c: 081c910 | (Jan-Olof Hendig)++ | doc/Type/Thread.pod: Added docs for Thread.Str |
20:56 | |
21:00
kyclark left
21:01
mcmillhj left
21:03
ZoffixMobile left
21:06
jjido left,
kyclark joined
21:08
sufrostico left,
skids left
21:11
_dolmen_ joined
21:13
jjido joined
21:15
sufrostico joined
|
|||
dalek | rl6-most-wanted: 91ce80f | (David Warring)++ | most-wanted/modules.md: OpenSSL AES no longer WIP AES 256/192/128 are now all supported |
21:16 | |
rl6-most-wanted: 4f1e099 | (David Warring)++ | most-wanted/modules.md: Erm delete OpenSSL / AES - it's done |
21:18 | ||
21:18
firstdayonthejob left
21:19
kyclark left
21:21
firstdayonthejob joined
21:24
kyclark joined,
fhorck left
21:33
sufrostico left,
_mg__ joined
21:34
_mg_ left,
_mg__ is now known as _mg_,
sufrostico joined
21:49
khw left
|
|||
dalek | osystem: 0424898 | (Pawel Pabian)++ | META.list: Added TinyID: Shorten and obfuscate IDs See github.com/bbkr/TinyID |
21:49 | |
osystem: 343a21b | RabidGravy++ | META.list: Merge pull request #224 from perl6/bbkr-tinyid Added TinyID: Shorten and obfuscate IDs |
|||
21:49
setty2 joined
21:50
jjido left
21:56
RabidGravy left
21:59
jjido joined
22:05
Sgeo_ joined,
kid51 joined
22:08
Ven_ left
22:10
spider-mario left
22:15
grondilu left
22:16
vendethiel left
22:18
rindolf left
22:21
jjido left
22:24
skids joined
22:29
jjido joined
22:32
rgrinberg left
22:33
setty2 left
22:36
pierrot left
22:37
pierrot joined
22:39
jjido left
22:40
cdg joined
22:43
TakinOver joined
22:45
_dolmen_ left
22:47
firstdayonthejob left
22:48
jjido joined
22:54
kurahaupo joined
23:07
addison left
23:08
jjido left
|
|||
dalek | c: be425a9 | coke++ | CONTRIBUTING.md: Fix #651 Add some descriptions for labels |
23:10 | |
23:11
jjido joined,
kerframil joined
23:12
jjido left
23:13
addison joined,
jjido joined
23:14
pmurias left
23:19
kyclark left
23:21
Zoffix left
23:25
kyclark joined
23:27
jrandm left
23:29
jrandm joined
23:31
kyclark left
23:32
jjido left
23:33
jjido joined
|
|||
Xliff | m: my $a = Nil; say $a.defined; | 23:35 | |
camelia | rakudo-moar 750c4e: OUTPUT«False» | ||
23:39
huggable left
23:40
huggable joined
23:41
grassass left
23:45
jjido left
23:46
wamba left
23:52
remmie left
23:53
jjido joined
23:54
remmie joined,
grassass joined
|
|||
gfldex | m: my %h = a => 1; dd %h; %h = Nil; | 23:57 | |
camelia | rakudo-moar 75b37e: OUTPUT«Hash %h = {:a(1)}Odd number of elements found where hash initializer expected in block <unit> at <tmp> line 1» | ||
23:57
rgrinberg joined
23:58
Zoffix joined
|
|||
gfldex | m: my %h = a => 1; dd %h; my Hash $h = { a => 2 }; dd $h; $h = Nil; dd $h; | 23:58 | |
camelia | rakudo-moar 75b37e: OUTPUT«Hash %h = {:a(1)}Hash $h = ${:a(2)}Hash $h = Hash» |