»ö« #raku and #raku-dev are OPEN FOR BUSINESS | perl6.org/ | evalbot usage: 'p6: say 3;' or /msg camelia p6: ... | irclog: irc.perl6.org or colabti.org/irclogger/irclogger_log/perl6 | UTF-8 is our friend! 🦋
Set by mst on 15 October 2019.
cpan-raku New module released to CPAN! LibXML (0.1.5) by 03WARRINGD 01:07
koalaking Hi, I have a newb question - I am trying to learn inheritance in perl6 - following the book Learning Perl 6. In ex 12.4, I am asked to print using inheritance. Here is a gist - gist.github.com/skrisna/57c2e15bee...ritance-p6 01:28
It prints Hamadryas is Hamadryas, Hamadryas, Hamadryas, Hamadryas, Hamadryas 01:29
This is not what I expected
any suggestions?
Thanks in advance! 01:30
AlexDaniel koalaking: yeah, that's not how it works, the object itself is still Hamadryas. With your code you can do something like this: gist.github.com/AlexDaniel/47d913c...13c4f4fb97 03:23
tellable6 AlexDaniel, I'll pass your message to koalaking
AlexDaniel koalaking: but really you can do just: say Hamadryas.new.^mro; 03:24
tellable6 AlexDaniel, I'll pass your message to koalaking
AlexDaniel koalaking: also, people are more active on #raku :)
tellable6 AlexDaniel, I'll pass your message to koalaking
hungrydonkey 'p6: say "hello";' 03:43
p6: say 'hello' 03:44
evalable6 hello
Alex22 hi 08:47
tyring to compile to bytecode, then run bytecode on moarvm, any good docs? 08:49
MasterDuke Alex22: i don't remember how, but people have talked about it before on these channels 09:16
i'd either try asking again in #raku (people are switching over to there) or searching the irc logs for something like "bytecode" colabti.org/irclogger/irclogger_lo...arch/perl6 09:17
Alex22 thank you 09:29
SmokeMachine www.irccloud.com/pastebin/77MLf0H5/ 11:25
lelf p6: say «foo12 bar321».map(* ~~ /<:L>+/)».Str # Hi! Is there shortcut for this (.map(* ~~ RE)».Str)? 14:55
evalable6 (foo bar)
timotimo m: dd "foo12 bar321".map(/<:L>+/)>>.Str 15:01
evalable6 (exit code 1) No such method '!cursor_start' for invocant of type 'Str'
in block <unit> at /tmp/1kydrR4f8m line 1
timotimo m: dd "foo12 bar321".map(rx/<:L>+/)>>.Str
evalable6 (exit code 1) No such method '!cursor_start' for invocant of type 'Str'
in block <unit> at /tmp/vu5eXdRZo3 line 1
timotimo m: dd "foo12 bar321">>.match(rx/<:L>+/)>>.Str 15:02
evalable6 ("foo",)
timotimo ah, you already have a string though i thought we were working with an array
in that case:
m: dd "foo12 bar321".comb(/<:L>+/)
evalable6 ("foo", "bar").Seq
fingolfin3 Hi! Can I use only Str for hash keys? I have confused becouse Pair can contain any object for key or value, but this does not seem to be true for hashes. 18:47
MasterDuke fingolfin3: you can use other types, those are called object hashes docs.perl6.org/language/hashmap#No...ject_hash) 18:50
and fyi, most people are moved over to #raku
fingolfin3 Thanks, I will reed it 18:50
xkr47 is the official channel now #raku ? 19:32
sena_kun xkr47, yes
xkr47 sena_kun, *updating wikipedia* :) 19:57
sena_kun xkr47++ 19:58
sena_kun writes %?RESOURCES docs...
xkr47 nice 20:00
so what is happening in this old channel? just telling people to move on? :) 20:01
sena_kun xkr47, people are moving to #raku, what'll happen with this channel... no idea. 20:02
xkr47 ^^ 20:03
I'm testing the limits on #raku now, let's see what happens ^^
simcop2387 i'm going to upgrade the install of raku on perlbot (and also probably setup a rakubot) this weekend, i think I ask this every time, but are there any particular libraries or modules that you folks would like added (or removed) when I do so? only real restriction is that the pastebin and eval can't do network traffic 21:20
xkr47: sena_kun: i haven't been told anything official about it, but from what i have heard it'll like end up redirecting to #raku as things move along. 21:21
Grinnz it's pretty much always official. just go there 21:29
already*
i guess the docs just have to be updated to point people there if it hasn't
simcop2387 Grinnz: yea it's just all paperwork at this point is my understanding 21:46