»ö« 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:03 Exodist left, Exodist joined 00:07 wamba left 00:11 AlexDaniel left 00:14 colomon joined 00:15 lizmat joined 00:20 colomon left 00:24 colomon joined 00:25 ChoHag left 00:33 lookatme joined
lookatme morning o/ 00:34
yoleaux 12 May 2017 13:45Z <Zoffix> lookatme: we do actually have an HTML parser; DOM::Tiny: modules.perl6.org/dist/DOM::Tiny
00:34 Cabanossi left 00:36 pierre joined 00:37 Cabanossi joined 00:47 colomon_ joined 00:48 colomon left, colomon_ is now known as colomon 00:52 kurahaupo left 00:58 curt_ left 01:02 Actualeyes joined 01:11 Actualeyes left 01:17 pierre left 01:38 Actualeyes joined 01:45 ilbot3 left
SmokeMachine Hi there! Is there any way to get a sub code? 01:46
01:46 pierre joined
lookatme sub code ? 01:47
you mean source code ?
01:48 ilbot3 joined, ChanServ sets mode: +v ilbot3
SmokeMachine Yes... 01:48
The source code of the sub
m: sub a {say 42}; say &a.perl 01:49
camelia sub a () { #`(Sub|50406888) ... }
SmokeMachine I mean something like that, but not with the ... but the actual code... 01:50
MasterDuke_ SmokeMachine: there currently is no way for regular subs/methods/etc
you can get the source to tokens/rules/regexes though
lookatme Why you tried get source code?
SmokeMachine MasterDuke_: is there any plan to make it possible?
MasterDuke_ timotimo and jnthn were talking about this recently, i don't rememeber the conclusion though 01:51
SmokeMachine lookatme: I'm trying to share functions between different computers...
lookatme SmokeMachine, oh, why you make a service run function ? 01:52
MasterDuke_ SmokeMachine: i think nadim was talking with them about it (in the past 2-3 weeks), you could try searching the logs
lookatme s/why/how/
SmokeMachine MasterDuke_: thanks! I'll look for that on log!
lookatme ...why not make a service run function 01:53
SmokeMachine (I was away to long...)
lookatme: I'm trying that for 2 different projects...
lookatme That's like a RPC service 01:54
SmokeMachine lookatme: first to use as a remote promise lib
lookatme: and the second one is a datomic like database... 01:55
lookatme I think it's not safe run code in your server 01:57
SmokeMachine lookatme: what do you mean? 01:58
lookatme I mean run any code send on server it's not safe, 02:00
maybe some risky operator would be execute
02:01 pierre left 02:03 Cabanossi left
lookatme Today Perl 6 not have a module like Perl 5's module **Safe** provide a isolated environment 02:03
SmokeMachine lookatme: I'm only studying... 02:05
lookatme: but are you concerned about what of the 2 projects?
02:05 Cabanossi joined 02:06 pierre joined
lookatme SmokeMachine, no, Study should be freedom, try everything you want~~ 02:07
02:07 poohman joined
lookatme SmokeMachine, you can try something like this `sub f() { return $?FILE.IO.lines()[$?LINE .. something]; };` 02:11
SmokeMachine MasterDuke_: were you talking about this? irclog.perlgeek.de/perl6/2017-04-21#i_14465803 02:12
lookatme I think so 02:13
02:13 noganex joined
lookatme m: my rule blah { "hello there" }; say &blah.perl; 02:14
camelia rule blah { "hello there" }
MasterDuke_ SmokeMachine: yeah, that looks familiar. i think timotimo and jnthn had another related conversation (maybe in #perl6-dev?), but i could just be imagining it
SmokeMachine m: my rule bla {method a{"test"}}; say bla.perl 02:15
camelia Too few positionals passed; expected 1 argument but got 0
in regex bla at <tmp> line 1
in block <unit> at <tmp> line 1
SmokeMachine m: my rule bla {method a{"test"}}; say &bla.perl
camelia rule bla {method a{"test"}}
02:16 labster joined, noganex_ left
SmokeMachine m: method a{say 42}; role R{}; &R.^add_method("a", &a}; say &R.perl 02:17
camelia 5===SORRY!5===
Unable to parse expression in argument list; couldn't find final ')'
at <tmp>:1
------> 3ay 42}; role R{}; &R.^add_method("a", &a7⏏5}; say &R.perl
Other potential difficulties:
Useless declaration of a has-scoped m…
SmokeMachine m: method a{say 42}; role R{}; &R.^add_method("a", &a); say &R.perl 02:18
camelia 5===SORRY!5===
Illegally post-declared type:
R used at line 1
Undeclared routine:
a used at line 1

Other potential difficulties:
Useless declaration of a has-scoped method in mainline (did you mean 'my method a'?)
at …
02:19 japhdc joined
BenGoldberg m: method a{say 42}; role R{}; R.^add_method("a", &a); say &R.perl 02:20
camelia 5===SORRY!5===
Illegally post-declared type:
R used at line 1
Undeclared routine:
a used at line 1

Other potential difficulties:
Useless declaration of a has-scoped method in mainline (did you mean 'my method a'?)
at …
02:20 jap6h joined
BenGoldberg m: role R { }; R.^add_method("a", method a (R:) {say 42}); say &R.perl 02:21
camelia 5===SORRY!5===
Illegally post-declared type:
R used at line 1

Other potential difficulties:
Useless declaration of a has-scoped method in mainline (did you mean 'my method a'?)
at <tmp>:1
------> 3role R { }; R.^add_me…
BenGoldberg m: role R { };
camelia ( no output )
BenGoldberg m: role R { }; say R;
camelia (R)
BenGoldberg m: role R { }; say R.add_method( "a", sub { 42 } );
camelia No such method 'add_method' for invocant of type 'R'
in block <unit> at <tmp> line 1
BenGoldberg m: role R { }; say R.^add_method( "a", sub { 42 } );
camelia No such method 'add_method' for invocant of type 'Perl6::Metamodel::ParametricRoleGroupHOW'
in block <unit> at <tmp> line 1
lookatme m: sub a{say 42}; class R { }; R.^add_method("a", &a); say R.perl 02:22
camelia R
BenGoldberg Well of course *that* will work.
m: role R { method a { say 42 } }; R.a; 02:23
camelia 42
02:23 labster left 02:24 labster joined
BenGoldberg m: role R { }; R.WHAT.say; 02:24
camelia (R)
02:24 labster left
BenGoldberg m: role R { }; R.HOW.say; 02:24
camelia Perl6::Metamodel::ParametricRoleGroupHOW.new
BenGoldberg m: role R { }; R.HOW.^methods.say;
camelia No such method 'gist' for invocant of type 'NQPRoutine'
in block <unit> at <tmp> line 1
SmokeMachine m: role R {  }; &R.WHAT.say;
camelia 5===SORRY!5=== Error while compiling <tmp>
Illegally post-declared type:
R used at line 1
BenGoldberg R is not a subroutine, stop sticking & in front of it :P 02:25
SmokeMachine Makes sense...
BenGoldberg m: role R { }; .perl.say for R.HOW.^methods;
camelia No such method 'perl' for invocant of type 'NQPRoutine'
in block <unit> at <tmp> line 1
BenGoldberg m: role R { }; .?perl.?say for R.HOW.^methods;
camelia No such method 'dispatch:<.?>' for invocant of type 'NQPRoutine'
in block <unit> at <tmp> line 1
BenGoldberg m: role R { }; .?name.?say for R.HOW.^methods;
camelia No such method 'dispatch:<.?>' for invocant of type 'NQPRoutine'
in block <unit> at <tmp> line 1
BenGoldberg m: role R { }; .name.?say for R.HOW.^methods;
camelia archetypes
new
set_selector_creator
new_type
parameterize
!produce_parameterization
add_possibility
specialize
update_role_typecheck_list
role_typecheck_list
type_check
candidates
lookup
methods
attributes
roles
ver
auth…
SmokeMachine Couldn't Code have an attribute code with the source code? 02:27
lookatme When you call method on role, it'll pun a same name class
I think
SmokeMachine, you can store them and run them with EVAL 02:28
02:28 sjn left
SmokeMachine lookatme: how would I get it? 02:28
lookatme m: sub get_code() { "say 'RUN !!'; "; }; EVAL(get_code()); 02:29
camelia 5===SORRY!5=== Error while compiling <tmp>
EVAL is a very dangerous function!!! (use the MONKEY-SEE-NO-EVAL pragma to override this error,
but only if you're VERY sure your data contains no injection attacks)
at <tmp>:1
------> 3 { "say 'RUN…
SmokeMachine Do you mean write a string with the code?
lookatme m: use MONKEY-SEE-NO-EVAL; sub get_code() { "say 'RUN !!'; "; }; EVAL(get_code());
camelia RUN !!
lookatme yeah
That's a way you can store you code in attribute, and get it then send it to remote server 02:30
02:34 jap6h left 02:37 sjn joined 02:39 pierre left, labster joined
lookatme SmokeMachine, have you tried it ? 02:44
SmokeMachine lookatme: yes, I know that works... but that's not how I'd like to do that... 02:45
lookatme SmokeMachine, oh :) 02:48
SmokeMachine lookatme: but thank you!
lookatme Em, you are welcome 02:50
02:52 pierre joined
SmokeMachine I'll try to play with the routine declarator on the grammar... 02:53
02:53 japhdotcom joined
SmokeMachine Thank you all! 02:54
BenGoldberg m: role { }.HOW.^find_method("archetypes").WHAT.name
camelia Cannot look up attributes in a NQPRoutine type object
in any name at gen/moar/stage2/NQPCORE.setting line 388
in block <unit> at <tmp> line 1
02:56 japhdc left
lookatme SmokeMachine, 02:56
I don't think that's a method ..
m: my rule g { method a { } }; say "method a { }" ~~ /<g>/; 02:57
camelia Use of Nil in string context
in block <unit> at <tmp> line 1
「method a 」
g => 「method a 」
lookatme m: my rule g { method a { } }; say "method a" ~~ /<g>/;
camelia 「method a」
g => 「method a」
SmokeMachine lookatme: sorry, what do you mean?
lookatme m: my rule g { method a { say "THIS JUST SOME CODE RUN HERE"; } }; say "method a" ~~ /<g>/;
camelia THIS JUST SOME CODE RUN HERE
「method a」
g => 「method a」
02:58
02:58 vendethiel left
lookatme That's a regex, not method or routine define/declare 02:58
`{ }` after regex is a inner Block 02:59
SmokeMachine lookatme: sorry, I didn't get it
lookatme SmokeMachine, May be I didn't get you, sorry never mind 03:00
03:01 vendethiel joined
SmokeMachine lookatme: were you saying that routine_declarator isn't a method? 03:02
03:03 poohman left
lookatme Yeah, in rule, it's not 03:03
03:03 poohman joined
lookatme rule/token/regex 03:04
Of course you can define you method in grammar, but not in regex/token/rule
SmokeMachine Yes, I know... I'm thinking of playing with that to, while parsing the sub, save its code somewhere...
lookatme Oh, that a good idea 03:05
s/that/that's/
03:08 poohman left, poohman joined 03:14 khw joined 03:32 Cabanossi left 03:34 Cabanossi joined 03:47 labster left 03:52 aborazmeh joined, aborazmeh left, aborazmeh joined 03:53 araujo left 03:54 khw left
perlawhirl bisectable6: say bag(1,3) (^) bag(1,1,2,3,3,3) 03:54
bisectable6 perlawhirl, Bisecting by output (old=2015.12 new=95e49dc) because on both starting points the exit code is 0
perlawhirl, bisect log: gist.github.com/bc2aa1e3e5c2582ffc...398d37f654 03:55
perlawhirl, (2016-12-04) github.com/rakudo/rakudo/commit/a5...1050dfee9f
04:03 raiph left 04:04 raiph joined 04:11 parv joined 04:17 pierre left 04:18 lookatme_ joined 04:22 lookatme left 04:27 lookatme_ left, lookatme_ joined 04:31 Cabanossi left 04:32 Cabanossi joined 04:36 lookatme_ left 04:41 curan joined 04:54 japhdotcom left 04:55 japhdotcom joined, labster joined, labster left, labster joined 04:59 wamba joined 05:05 japhdc joined 05:06 aborazmeh left, BenGoldberg left 05:07 japhdotcom left 05:11 poohman left, jap6h joined 05:13 pierre joined 05:20 CIAvash joined 05:23 o9o9 joined
o9o9 hi 05:23
05:25 domidumont joined, skids left 05:29 domidumont left 05:30 domidumont joined, o9o9 left 05:37 fatguy left 05:42 AndyDee left, chee left 05:43 domidumont left, chee joined 05:44 jap6h left, jap6h joined 05:45 parv left 05:50 jap6h left, jap6h joined 05:57 [ptc] joined 05:58 cpage_ joined 06:01 lizmat left, domidumont joined 06:02 astj left, lookatme joined 06:03 astj joined, espadrine joined
lookatme -_- 06:03
06:03 astj left 06:04 astj joined 06:07 astj left, astj joined 06:13 vendethiel- joined 06:14 vendethiel left 06:17 Cabanossi left 06:19 Cabanossi joined, tokomer left 06:26 raiph left 06:27 raiph joined 06:33 pierre left 06:39 darutoko joined, xtreak joined 06:40 japhdc left 06:42 lowbro joined 06:54 nadim_ joined 07:13 fatguy joined 07:16 ChoHag joined 07:23 rindolf joined 07:24 lizmat joined 07:31 ChoHag left 07:33 ChoHag joined 07:36 zakharyas joined 07:39 nadim_ left 07:40 xtreak left 07:43 espadrine left 07:46 rindolf left 07:48 domidumont left 07:49 domidumont joined 07:51 nadim_ joined 07:52 domidumont left, domidumont joined, movl joined, lookatme left 07:53 lookatme joined
lookatme clear 07:53
07:53 rindolf joined 07:57 masak_ is now known as masak 07:59 parv joined 08:00 xtreak joined 08:01 TEttinger is now known as [AD][AD][AD] 08:02 [AD][AD][AD] is now known as TEttinger 08:05 wamba left, domidumont left 08:08 dolmen_ joined
lizmat perlawhirl: fwiw, I think (^) has more issues, specifically wrt Mixes 08:10
oops, I meant (-) I think 08:11
08:12 mxco86 joined 08:13 dolmen_ left, dolmen_ joined 08:16 vetmaster left 08:27 xtreak left, robertle joined 08:28 xtreak joined 08:31 margeas joined 08:32 dolmen_ left, xtreak left 08:35 raiph left, raiph joined 08:37 nadim_ left 08:38 kyan left 08:39 domidumont joined
lizmat perlawhirl: think I found the problem 08:40
08:40 ChoHag left 08:45 melezhik joined 08:48 jonas2 joined 08:49 rindolf left 08:53 domidumont left
sammers hello 08:59
09:02 domidumont joined
lookatme sammers, o/ 09:02
09:09 domidumont left
Geth DBIish: akzhan++ created pull request #92:
Use Zef to install dependencies.
09:09
09:10 TEttinger left 09:11 CIAvash left
sammers how are you tonight? today? 09:12
lizmat PSA: Perl 6 Weekly may get a little delay today as I will be travelling by car most of the day 09:13
09:13 rindolf joined
lizmat decommute& 09:13
09:13 lizmat left
lookatme today. 09:18
It's afternoon now
09:22 wamba joined 09:25 xtreak joined 09:33 lowbro left 09:35 xtreak left
lookatme Now, home from work ~ bye 09:36
09:36 lookatme left 09:38 xtreak joined 09:39 domidumont joined 09:40 domidumont left 09:43 domidumont joined
sjn good *, #perl6 09:45
Quick q: is there a way to call a method if you only have it's name (Str)? 09:46
09:46 Cabanossi left, raiph left
masak m: class C { method foo { say "OH HAI" } }; my $method-name = "foo"; C.new."$method-name"() 09:46
camelia OH HAI
masak sjn: ^
sjn: syntax (quotes and required parentheses) is such that you're not meant to do this *by mistake* 09:47
sjn ah, quote the name
09:47 Cabanossi joined
sjn right 09:47
thanks
masak (because strings are always a little bit injection-y) 09:48
09:48 wamba left
sjn hm. 09:48
masak actually, I'm a little bit surprised that the EVAL hysterians aren't all over this one, too :P
what if we've read in the string from the UI or something? dangerous.
masak .oO( MONKEY-SEE-NO-DYNAMIC-METHOD-MAN-THIS-JOKE-IS-STRETCHED-THIN-NOW ) 09:49
masak should qvetch less and write more code :P 09:50
sjn Hm. I seem to botch this...
masak "kvetch"? probably.
09:51 nadim_ joined
sjn m: for VM.^methods -> $m { say "$m -> " ~ $m() } 09:51
camelia Submethod object coerced to string (please use .gist or .perl to do that)
in block at <tmp> line 1
Too few positionals passed; expected 1 argument but got 0
in block <unit> at <tmp> line 1
09:52 poohman joined
sjn m: for VM.^methods -> $m { say VM."$m"() } 09:52
camelia Submethod object coerced to string (please use .gist or .perl to do that)
in block at <tmp> line 1
Cannot look up attributes in a VM type object
in block <unit> at <tmp> line 1
09:52 poohman left
masak sjn: those are method objects you're iterating over 09:54
m: for VM.^methods -> $m { say $m.name }
camelia BUILD
platform-library-name
osname
Str
gist
config
prefix
precomp-ext
precomp-target
name
auth
version
signature
desc
masak m: for VM.^methods -> $m { say VM."$m.name"() } 09:55
camelia Submethod object coerced to string (please use .gist or .perl to do that)
in block at <tmp> line 1
No such method 'BUILD.name' for invocant of type 'VM'
in block <unit> at <tmp> line 1
masak m: for VM.^methods -> $m { say VM."$m.name()"() }
camelia Cannot look up attributes in a VM type object
in block <unit> at <tmp> line 1
masak that works, but the error is kind of internal
sjn yeah, I noticed that too (after asking here). that's why I tried just the $m() 09:56
09:56 poohman joined
sjn so, what *is* the best way to to iterate over all methods in a class? 09:58
(even Submethods)
jnthn .^methods will include submethods too 10:06
Geth ecosystem: daf6ea4d44 | (Zoffix Znet)++ (committed using GitHub Web editor) | META.list
Add `Die` to ecosystem

  "Perl 5 like die routine for note + exit":
  github.com/zoffixznet/perl6-Die
10:08 poohman left 10:15 astj left, astj joined, astj left 10:16 astj joined, xtreak left 10:28 lowbro joined 10:29 lowbro left, lowbro joined
Geth doc: e309dddaf6 | (Zoffix Znet)++ | doc/Type/IO.pod6
[io grant] Finish up &note

  - Include candidates
  - Include method form
  - Get rid of elaborate prose and non-relevant portions of example
10:29
10:33 parv left 10:34 rindolf left
nine OMG I've finally started a blog: niner.name/blog/ 10:37
masak \o/ 10:43
10:45 notbenh left 10:46 notbenh joined 10:48 rindolf joined
Geth doc/doc-handled-is-lvalue: 0d54f02090 | (Carl Mäsak)++ (committed using GitHub Web editor) | doc/Type/Failure.pod6
Document that Failure.handled is an lvalue

Something I learned today as part of code review. Thought it might be useful in the documentation.
10:55
doc: masak++ created pull request #1307:
Document that Failure.handled is an lvalue
10:56
10:57 xtreak joined
masak "Ever since I started writing that I've made it my mission to connect the Perl 5 and Perl 6 worlds, which over the long years of Perl 6's development have become more and more separated." -- niner.name/blog/ -- nine++ 11:03
"There was neither the slightest hesitation nor worry." -- squee 11:04
seems PTS was quite the event 11:05
11:06 xtreak left
nine masak: seems like I somehow got across what I feel about it :) 11:06
masak I feel enthused too now 11:07
this was well worth starting a blog over :>
11:13 labster left 11:15 g4 left 11:23 astj left 11:24 renormalist left 11:25 renormalist joined, renormalist left, renormalist joined 11:26 domidumont1 joined, domidumont left 11:28 bjz joined, astj joined 11:30 wamba joined 11:32 Cabanossi left 11:33 Cabanossi joined
Geth DBIish: 77146951da | (Akzhan Abdulin)++ | .travis.yml
Use Zef to install dependencies.

Panda is not supported now.
11:36
DBIish: fd7ee262fa | (Akzhan Abdulin)++ | 2 files
Allow panda dependency manager as fallback for older Rakudo.
DBIish: 75fffaf4a5 | loren++ (committed using GitHub Web editor) | 2 files
Merge pull request #92 from akzhan/master

Use Zef to install dependencies.
11:36 araraloren joined
araraloren night. 11:38
yoleaux 14 May 2017 19:22Z <timotimo> araraloren: fantastic! i didn't realize you could have tables in triangle shape or similar! that's really cool and probably sets your module apart from all others
timotimo yo
araraloren o/ 11:40
timotimo i wonder how complex and powerful you'd be willing to make your table module
araraloren timotimo, thanks for your advice about that module
timotimo i've made one in the past that allowed for some borders to be double and some to be single lined
let me see if i can find a screenshot
masak m: { say 1; leave; say 2 }; say 3 11:41
camelia 1
leave not yet implemented. Sorry.
in block <unit> at <tmp> line 1
araraloren timotimo, in my module, style can be customized
masak I wonder if we'll implement `leave` or if we'll unspec it...
araraloren check out this example: github.com/araraloren/perl6-termin...e-style.p6 11:42
11:42 astj left 11:43 astj joined
timotimo araraloren: t.h8.lv/random_box.png 11:44
masak: i'd like to have leave
araraloren timotimo, oh, that's wonderful, I didn't think about irregular shape 11:46
In my module, I just generate all cell, and then you can edit the table by some interface 11:48
11:48 xtreak joined
araraloren I want add this in next version, thanks for your idea. 11:50
timotimo cool 11:51
i can give you the code that makes my example go, but it's python
github.com/timo/zasim/blob/master/...le.py#L259 - i think this is the one
araraloren Em, I know a little about python 11:52
masak timotimo: me too. 11:53
11:53 xtreak left
masak timotimo: or rather, given that blocks exist and are a kind of a lighter-weight routines, I'd like to have leave. :) 11:53
masak dares someone to merge github.com/perl6/doc/pull/1307 :)
11:54 domidumont1 left
moritz_ why not? 11:57
Geth doc: acf4040024 | (Carl Mäsak)++ (committed by Moritz Lenz) | doc/Type/Failure.pod6
Document that Failure.handled is an lvalue

Something I learned today as part of code review. Thought it might be useful in the documentation.
masak moritz++
11:57 MasterDuke_ left
nine Ah, moritz beat me to it :) 11:58
timotimo it almost got double-merged 11:59
12:00 domidumont joined
masak .oO( twice-merged be thou, villain! ) 12:00
12:02 domidumont left, domidumont joined
Geth doc: 81900cb743 | (Zoffix Znet)++ | doc/Type/IO/Path.pod6
[io grant] Finish off IO::Path.parent

  - Add more examples
  - Add note about symlinked dirs
12:13
12:15 domidumont left 12:17 Cabanossi left, Cabanossi joined
moritz_ m: say :36<evil>.roots(2) 12:20
camelia (833.084029375188+0i -833.084029375188+1.0202336899951e-13i)
moritz_ 833 is the root of all evil!
12:32 domidumont joined 12:35 xtreak joined, xtreak left 12:36 wamba left, domidumont1 joined, xtreak joined 12:39 domidumont left 12:41 mcmillhj_ joined
[Coke] yawns. 12:44
haxmeist1r wake up! 12:47
lol
12:47 xtreak left 12:48 haxmeist1r is now known as haxmeister
moritz_ wake up!!! www.youtube.com/watch?v=CSvFpBOe8eY 12:48
timotimo www.youtube.com/watch?v=NB3DJqgFr04
haxmeister inspired some guys at my Linux user group about perl6 :)
yoleaux 12 May 2017 13:34Z <Zoffix> haxmeister: I found this HTML parsing module work just fine: modules.perl6.org/dist/DOM::Tiny And WWW is just a user agent, not a parser
haxmeister thank you yoleaux 12:49
yoleaux: I seen a message here yesterday regarding that module.. hopefully I'll get a chance to try it out this week 12:50
12:50 ChoHag joined
perlawhirl haxmeister: yoleaux is a msg bot... Zoffix asked yoleaux to tell you that message next time you were active here 12:50
haxmeister couple guys in our LUG were blown away when they read about grammars in perl6 and the new regex 12:51
perlawhirl: oh ok..lol.. well it worked :-)
perlawhirl don't worry... I myself talked thanked yolaux one of the first times i was here :D
.tell lizmat Thank you for fixing the Baggy op... I didn't even get around to asking! 12:53
yoleaux perlawhirl: I'll pass your message to lizmat.
haxmeister .tell zoffix thanks for finding me an HTML parser to work with :-)
yoleaux haxmeister: I'll pass your message to zoffix.
haxmeister zef doesn't find DOM::Tiny 12:56
12:59 eyck left 13:05 fatguy left 13:06 mxco86 left, wamba joined 13:07 mxco86 joined
haxmeister oh found it 13:09
case senstive.. DOM::Tiny
13:14 Actualeyes left 13:16 pmurias joined
pmurias hmm, it this a known bug: at CodeRef.cuid4656.setInfo.self (eval at eval (/home/pmurias/nqp/src/vm/js/nqp-runtime/core.js:465:19), <anonymous>:1600:37) 13:17
sorry
paste.debian.net/932522/ - it seems multi methods get damaged if called at BEGIN time 13:18
13:19 astj left, cdg joined 13:20 itaylor57 left 13:21 itaylor57 joined 13:22 astj joined, astj left, astj joined 13:27 raschipi joined, curan left, xtreak joined 13:29 Cabanossi left 13:30 ChoHag left 13:33 Cabanossi joined, skids joined 13:35 nadim_ left 13:36 nadim_ joined 13:37 wamba left, Actualeyes joined
Geth doc: 22204d54ba | (Zoffix Znet)++ | 2 files
Remove semicolons on method defs
13:38
doc: 00c2f8c5af | (Zoffix Znet)++ | 2 files
s/preceeded/preceded/
13:39
doc: 5d18ba7e32 | (Zoffix Znet)++ | doc/Type/Str.pod6
s/occurances/occurences/
13:40
13:42 Resol left
Geth doc: f9c3ae7179 | (Zoffix Znet)++ | 2 files
Fix all the spelling errors
13:49
13:53 st_elmo joined
Geth doc: 59cbc382bb | (Zoffix Znet)++ | doc/Type/IO/Path.pod6
[io grant] Finish off IO::Path.parts

  - It now returns a Map, not a Hash
  - :directory key is no longer there
  - use Win32 path to showcase :volume
  - Fix incorrect s/path/basename/ key name
Rakudo impl: github.com/rakudo/rakudo/commit/9021a48665
   github.com/rakudo/rakudo/commit/6ed14ef6fc
Tests: github.com/perl6/roast/commit/fb61306aaa
13:54
14:16 wamba joined 14:21 bjz left 14:24 mcmillhj left, mcmillhj_ is now known as mcmillhj 14:27 tefe joined 14:28 nadim_ left, nadim_ joined, tefe left 14:29 xtreak left 14:31 xtreak joined 14:32 ChoHag joined 14:34 cosimo_ left, xtreak left 14:41 alimon joined 14:43 eyck joined 14:59 cdg left 15:01 nadim_ left 15:14 araraloren left 15:15 Celelibi_ is now known as Celelibi 15:19 bioexpress joined
haxmeister is trying to learn how to get at the data in this fancy DOM structure 15:19
timotimo there's also a html parser that creates a XML::Document
bioexpress Hello, does Perl6 has something, that can tell me the number of available cpu cores? 15:20
haxmeister bioexpress: you on linux? 15:21
perlpilot bioexpress: Linux::Cpuinfo perhaps
bioexpress On linux I could use nproc
perlpilot bioexpress: yeah, I'd probably just do that too :) 15:22
15:22 araraloren joined
haxmeister but the perl module is a pure perl solution and requires no system call :) 15:22
robertle not sure it is exposed, but there must be something within perl6, how would it set the size of the default thread pool otherwise?
timotimo robertle: it evaluates "16" and uses the result of that 15:23
robertle timotimo: wow, that is really clever!
timotimo unless a RAKUDO_MAX_THREADS is set
it's a highly technical and complicated process
robertle yeah, and really good engineering: use heuristics first! 15:24
and it also does not require a system call!
timotimo it might require a sbrk to get enough memory for the variable!
haxmeister windows stores it in a env variable: echo %NUMBER_OF_PROCESSORS%
can also system call msinfo and parse it out 15:25
robertle timotimo: I have done that before in some app, would you be interested in a patch? 15:26
strike that, I see now why it is a bit more difficult than that :) 15:29
15:31 AlexDaniel joined
timotimo a patch for what exactly? 15:31
right number of processes?
15:32 lowbro left
Geth doc: b99a6661b1 | (Zoffix Znet)++ | doc/Type/IO/Handle.pod6
[io grant] Finish off IO::Path.path/.IO

  - Add links to special handles
  - Add method defs
15:32
15:32 araraloren left 15:33 bioexpress left
ilmari wow, lscpu.c is >2k lines 15:33
robertle yes, a patch to set the number of pool threads to the number of logical cores. but I had a quick look and stumbled on the obvious: you would probably want to put some portable method into moar, and expose through nqp. so a bit more involved that I was initially thinking...
that is based on my assumption that all platform-specfic stuff should be in the VM? 15:34
ilmari anonscm.debian.org/cgit/collab-mai...ls/lscpu.c
15:34 sufrostico joined
timotimo it shouldn't be limited to the number of cpu cores 15:34
robertle perhaps not set to =cores, but surely based on it
15:34 cygx joined
cygx sneaks in 15:34
robertle the app I did this before took the number of cores and capped at both ends 15:35
cygx you might want to call the function, lets say, MVM_platform_cpu_count ;)
15:39 eyck left 15:40 wamba left 15:45 AlexDaniel left 15:46 araujo joined, araujo is now known as Guest92975, Guest92975 left 15:49 khw joined, AlexDaniel joined 16:00 domidumont1 left, AlexDaniel left 16:05 cdg joined 16:10 vetmaster joined
moritz_ nine: FYI, niner.name/blog/ links to niner.name/blog/perl_toolchain_summit_2017 which produces an internal error 16:11
16:13 zakharyas left 16:16 Cabanossi left 16:17 Cabanossi joined 16:21 lizmat joined
raschipi hi lizmat! 16:22
lizmat raschipi o/ 16:23
yoleaux 10:41Z <nine> lizmat: niner.name/blog/ for the weekly
12:53Z <perlawhirl> lizmat: Thank you for fixing the Baggy op... I didn't even get around to asking!
raschipi How was your trip? 16:24
vetmaster hello guys! is there any way to compile perl6 codes to .exe? 16:30
16:31 domidumont joined
[Coke] vetmaster: nope. 16:31
vetmaster ok :) 16:32
16:32 setty1 joined, vendethiel joined
lizmat raschipi: still on the trip, passing Metz as I write this 16:32
16:33 LeCamarade left 16:34 vendethiel- left
lizmat .tell nine: noted and nine++ :-) 16:36
yoleaux lizmat: What kind of a name is "nine:"?!
lizmat .tell nine noted and nine++ :-)
yoleaux lizmat: I'll pass your message to nine.
16:47 robertle left 16:51 sufrostico left 16:52 lizmat left 16:53 ponbiki_ is now known as ponbiki 16:55 nicq20 joined
nicq20 Hello o/ 16:56
haxmeister hello nicq20 o/ 16:58
16:58 raschipi left
vetmaster .tell yoleaux hello, recursion :) 17:04
yoleaux vetmaster: Thanks for the message.
vetmaster .tell youleaux .tell youleaux
yoleaux vetmaster: I'll pass your message to youleaux.
vetmaster .tell youleaux .tell youleaux .tell youleaux .tell youleaux .tell youleaux .tell youleaux .tell youleaux .tell youleaux test
yoleaux vetmaster: I'll pass your message to youleaux.
vetmaster .tell youleaux .tell youleaux test
yoleaux vetmaster: I'll pass your message to youleaux.
vetmaster p6: say ".tell youleaux smth"; 17:05
camelia .tell youleaux smth
17:09 nicq20 left
vetmaster how fast is perl6? 17:09
17:10 Zoffix joined
vetmaster perl6 vs python3 - what language is faster? 17:10
Zoffix vetmaster: fast enough to take the left lane ;)
17:10 pmurias left
Zoffix vetmaster: languages don't really have any speed. It's their interpreters/compiled programs that do 17:11
17:11 Zoffix is now known as youleaux
youleaux . 17:11
yoleaux 17:04Z <vetmaster> youleaux: .tell youleaux
17:04Z <vetmaster> youleaux: .tell youleaux .tell youleaux .tell youleaux .tell youleaux .tell youleaux .tell youleaux .tell youleaux test
17:04Z <vetmaster> youleaux: .tell youleaux test
17:11 youleaux is now known as Zoffix
Zoffix buggable: eco wix 17:11
buggable Zoffix, App::InstallerMaker::WiX 'Tool to make basic WiX installers for Perl 6 apps, bundling MoarVM/Rakudo.': github.com/jnthn/p6-app-installermaker-wix
Zoffix vetmaster: not exactly compile-to-exe but I heard you could use that ^ tool to bundle stuff up 17:12
vetmaster ok, thanks
buggable: eco skynet
buggable vetmaster, Acme::Skynet 'Machine Learnings for your Perls6.': github.com/kmwallio/Acme-Skynet
Zoffix vetmaster: as for speed, comparisons aren't exact, as we one of the few language that do strings in graphemes right away, for example. In general, Rakudo's speed is still to be desired as we still have a ton of work to do to make it faster 17:13
haxmeister: DOM::Tiny just uses CSS selectors 17:14
bioexpre[TAB]... for number of CPUs, there's System::Info, currently in the making: github.com/lizmat/System-Info 17:15
17:16 stmuk_ joined, stmuk left
vetmaster buggable: eco ai 17:17
buggable vetmaster, Found 49 results: Algorithm::Diff, YAML, Bailador, Email::Simple, Email::MIME. See modules.perl6.org/#q=ai
vetmaster buggable: help
buggable vetmaster, tags | tag SOMETAG | eco | eco Some search term | speed
Zoffix There's also a FAQ entry on speed stuff: docs.perl6.org/language/faq#Is_Per...gh_for_me?
vetmaster I've tried it on my machine. And it works pretty fast 17:18
17:19 stmuk joined
vetmaster The speed is equal to python3 without cashing 17:19
I tried loops and grammars, and it is mostly what I would do with perl6
buggable: tags 17:20
buggable vetmaster, Total: 1582; BUG: 1049; UNTAGGED: 355; LTA: 161; NYI: 94; JVM: 59; RFC: 58; CONC: 56; REGEX: 56; UNI: 30; SEGV: 29; PERF: 24; TESTNEEDED: 23; NATIVECALL: 22; IO: 21; POD: 21; @LARRY: 20; REGRESSION: 20; TODO: 18; PRECOMP: 13; BUILD: 11; OO: 11; TESTCOMMITTED: 11; STAR: 10; OPTIMIZER: 9; BOOTSTRAP: 5; REPL: 5; GLR: 4; MATH: 4; OSX: 4; WEIRD: 4; SPESH: 3; WINDOWS: 3; RT: 2; BELL:
vetmaster buggable: tag @larry
buggable vetmaster, There are 20 tickets tagged with @LARRY; See perl6.fail/t/@LARRY for details
Zoffix vetmaster: it's a bit of a rough landscape though. Last week I hit onto this issue where writing the same thing differently makes it 70 times slower, for example: rt.perl.org/Ticket/Display.html?id...et-history
There's also #zofbot where you can play with the bots without spamming everyone in the channel. 17:21
17:21 sufrostico joined, stmuk_ left, stmuk_ joined
vetmaster sorry :) I'd like to find a good lib for machine learning 17:21
is Acme::Skynet the best? 17:22
Zoffix `Acme::` namespace usually means it's a joke module
vetmaster: you might have better luck searching metacpan.org/ (those are Perl 5 modules) and using what you find via Inline::Perl5
buggable: eco Inline::Perl5
buggable Zoffix, Inline::Perl5 'Use Perl 5 code in a Perl 6 program': github.com/niner/Inline-Perl5
17:23 stmuk left
vetmaster zofbot: eco AI:: 17:24
17:24 mcmillhj left 17:27 mcmillhj joined
vetmaster I cloned panda from github to ~/panda folder (Fedora Linux) 17:29
what to do next?
Zoffix Why?
vetmaster: rm -fr ~/panda; cd $(mktemp -d); git clone github.com/ugexe/zef .; perl6 -Ilib bin/zef install . 17:30
panda is an outdated and unloved packaged manager; zef is the new game in town
buggable: eco zef
buggable Zoffix, zef 'It's like [cpanm] wearing high heels with a tracksuit': github.com/ugexe/zef
tadzik you're unloved! 17:36
(but it's deprecated and unmaintained, officially now :P)
Zoffix :(
Fine!
tadzik says so on the readme too
17:36 Zoffix left
vetmaster i get zef: command not found anyway 17:37
Geth: help 17:38
Geth vetmaster, Source at github.com/perl6/geth To add repo, add an 'application/json' webhook on GitHub pointing it to geth.perl6.party/?chan=#perl6 and choose 'Send me everything' for events to send | use `ver URL to commit` to fetch version bump changes
vetmaster aaaaaaaaaa
h
tadzik how can we be of assistance :)
vetmaster :) I've done the following: cd $(mktemp -d); git clone github.com/ugexe/zef . 17:39
and then: perl6 -Ilib bin/zef install . 17:40
but neither in that temp folder nor in the ~ folder zef isn't being found
what the problem is that? 17:41
[Coke] what's the exact error message when you run that? 17:45
(or does that work and *then* you can't find zef's installed location?) 17:46
vetmaster bash: zef: command not found
17:47 Cabanossi left
[Coke] that's when running 'perl6 -Ilib bin/zef install .' ? 17:47
vetmaster after that
so, the process is finished, but then I can't call zef as "zef"
[Coke] and was there any output when running the install command?
17:47 Cabanossi joined
[Coke] Also, what OS? 17:48
vetmaster Fedora Linux
output:
==> Bootstrapping Panda ==> Installing panda from a local directory '/home/sivan/perl6/panda' ==> panda depends on File::Find, Shell::Command, JSON::Fast, File::Which ==> Shell::Command depends on File::Find ==> Fetching File::Find ==> Building File::Find ==> Testing File::Find t/01-file-find.t .. ok
etc.
[Coke] ... panda?
vetmaster sorry, it is not the needed log 17:49
[Coke] anything long, please use a paste service.
vetmaster pastebin.com/vchSsmA5 17:50
17:50 robertle joined
timotimo it tells you where the zef binary is put, that folder has to go into your PATH 17:51
vetmaster all right :) I'll set a shortcut then. 17:52
thank you
17:56 AlexDaniel joined
SmokeMachine is there any type like Weak Map? 17:56
timotimo other binaries will also be installed there
SmokeMachine: we don't have that in moarvm yet
SmokeMachine timotimo: thanks! 17:57
17:59 vetmaster left 18:00 nowan left
hythm Is there syntax highlighting for repl? 18:02
18:02 nowan joined 18:04 cygx left 18:05 wamba joined 18:07 jast left
timotimo there is not 18:08
hythm Thank you! 18:09
18:11 pecastro joined 18:15 Actualeyes left, AndyDee joined 18:18 TreyHarris left 18:19 hythm left 18:21 dha joined 18:27 ChoHag left 18:30 dha left 18:31 cdg left 18:35 jast joined 18:39 jast left
Geth doc: b070999f33 | (Zoffix Znet)++ | 2 files
[io grant] Document IO::Spec::*.path

Rakudo impl: github.com/rakudo/rakudo/commit/0547979373
   github.com/rakudo/rakudo/commit/8992af131b
   github.com/rakudo/rakudo/commit/816b2d4bfa
Tests: github.com/perl6/roast/commit/7266522699
   github.com/perl6/roast/commit/6ac3b4aabd
   github.com/perl6/roast/commit/8e445f8576
18:41
timotimo starpath
18:42 TreyHarris joined 18:43 mcmillhj left 18:46 colomon left, kaare_ joined, kaare__ left 18:49 mcmillhj joined, lizmat joined 18:53 mcmillhj left 18:56 espadrine joined 18:59 mcmillhj joined, lizmat left 19:01 darutoko left 19:02 jast joined 19:04 domidumont left, rindolf left 19:05 colomon joined 19:07 lizmat joined 19:08 nadim_ joined
Geth doc: d5f7971558 | (Zoffix Znet)++ | doc/Type/IO/Path.pod6
Fix head numbering
19:10
19:14 lizmat left 19:17 yqt joined
nine ~ 19:17
yoleaux 16:36Z <lizmat> nine: noted and nine++ :-)
nine moritz_: thanks, fixed!
19:19 mxco86 left 19:20 lizmat joined 19:22 zapwai joined 19:24 broy joined, nadim_ left, broy left 19:26 Sound joined, Sound left, Sound joined 19:29 nadim_ joined 19:30 Cabanossi left 19:33 Cabanossi joined, wamba left 19:37 avalenn joined, labster joined
Geth doc: bace8ffcf5 | (Zoffix Znet)++ | 5 files
[io grant] Document IO::Path*.perl
19:38
19:43 TEttinger joined 19:59 Ven joined 20:00 Ven is now known as Guest50585 20:01 lizmat_ joined, nadim_ left, pochi left 20:03 lizmat left 20:04 Guest50585 left, Grauwolf left 20:05 Ven_ joined 20:08 Grauwolf joined 20:09 Ven_ left 20:11 Ven_ joined
ingy Greetings. tony-o++ figued out how to bind libyaml to p6 so I should have a working (and fast) YAML implementation out under the YAML namespace... very soon. 20:13
20:16 lizmat_ is now known as lizmat 20:17 cdg joined
lizmat ingy: if that's within the next 2 hours, it will make it to this week's Perl 6 Weekly 20:19
eater :') 20:29
20:35 Ven_ left 20:36 Ven joined, Ven is now known as Guest873, sufrostico left 20:39 robertle left 20:40 Guest873 left 20:41 Ven_ joined, wamba joined 20:43 moritz_ is now known as moritz 20:45 Ven_ left 20:47 Ven_ joined 20:48 kaare_ left 20:49 lizmat_ joined 20:51 lizmat left 20:54 lizmat_ left 20:56 setty1 left 21:00 lizmat joined, Ven_ left 21:02 bjz joined 21:05 beginner joined
beginner hello 21:06
is there any approach in perl6 similar to JcoBox 21:07
21:08 lizmat left 21:09 skids left
eater Zoffix isa-ok, doesn't work on the exception :( cmp-ok ..cause.., '~~', X::OS does however 21:10
[Coke] beginner: based on the one paragraph I just read on some .de site, perhaps this might help: www.jnthn.net/papers/2015-yapcasia-...rrency.pdf
21:12 sufrostico joined 21:13 grumble left 21:14 grumble joined 21:20 lizmat joined 21:25 mcmillhj left 21:43 mcmillhj joined 21:46 Cabanossi left 21:47 Cabanossi joined 21:48 mcmillhj left 21:51 sufrostico left 21:56 bpmedley joined, mcmillhj joined 21:57 espadrine left 22:00 st_elmo left 22:02 Sound left 22:04 mcmillhj left 22:21 mcmillhj joined 22:27 bjz left 22:29 mcmillhj left 22:38 mcmillhj joined
beginner the present distribution does not have OO::Actors...how to use it 22:40
22:41 yqt left
timotimo have you tried installing it? 22:42
22:42 TimToady left 22:43 mcmillhj left 22:45 TimToady joined
timotimo beginner: like, "zef install OO::Actors"? 22:46
beginner yes 22:47
timotimo and that didn't work? 22:49
beginner timotimo : it shows up error "Failed to update p6c mirror Enabled fectching backends [path] don't understand" 22:54
timotimo i've seen this from someone else recently, but the installation still went through in that case 22:55
try it with: zef install github.com/jnthn/oo-actors/archive/master.zip 22:56
22:58 mcmillhj joined 23:00 Cabanossi left 23:03 mcmillhj left, Cabanossi joined
beginner timotimo : Enabled fetching backends [path] don't understand github.com/jnthn/oo-actors/archive/master.zip You may need to configure one of the following backends, or install its underlying software - [git wget curl pswebrequest] in method fetch at C:\rakudo\share\perl6\site\sources\A48CF21F42885E27DBC7EBC4927226101DEAD45B (Zef::Fetch) line 12 in code at C:\rakudo\share\perl6\site\sources\4B1D5A60B59D9541E13F76E0E2A2D55 23:06
timotimo do you have wget or curl available? 23:07
beginner yes 23:09
timotimo anyway, you can just download and unpack that zip file, cd into it and then "zef install ."
would be interesting to figure out why zef can't do it
on my machine i can use that exact command and it works, the one with the .zip 23:11
the "zef install ..." 23:12
but somehow the module's tests crash on my local version
23:13 mcmillhj joined
timotimo ooooh i still had a very strict ulimit set 23:14
beginner timotimo : so the actor module doesn't work perfect? 23:16
timotimo no, i set my shell up so that basically everything would crash
23:16 AlexDaniel left
lizmat is too tired to finish up the Perl 6 Weekly now 23:16
it should be published about 9 hours from now
sleep& 23:17
timotimo good rest, lizmat!
yeah, OO::Monitors installs just fine
23:18 mcmillhj left
beginner timotimo : finally done with installing...Thanks 23:21
23:25 cpage_ left, cpage_ joined 23:33 mcmillhj joined 23:34 margeas left 23:36 beginner left 23:38 mcmillhj left 23:39 cdg left 23:43 dj_goku left 23:54 mcmillhj joined, BenGoldberg joined