🦋 Welcome to Raku! raku.org/ | evalbot usage: 'p6: say 3;' or /msg camelia p6: ... | irclog: colabti.org/irclogger/irclogger_log/raku
Set by ChanServ on 14 October 2019.
Geth ¦ problem-solving: MasterDuke17 assigned to jnthn Issue Expmod returns a default value instead of erroring out on libtommath errors github.com/Raku/problem-solving/issues/150 00:12
cpan-raku New module released to CPAN! JSON::Pretty::Sorted (0.0.2) by 03HOLLI 00:25
cpan-raku New module released to CPAN! Math::SelfDescriptiveNumbers (0.0.1) by 03HOLLI 01:19
tyil I'm working on a module to generate an HTML section from a README.pod6 (home.tyil.nl/git/raku/Pod::To::HTM...on/tree/), but it appears the entire thing is run through twice, resulting in the notes appearing twice (home.tyil.nl/git/raku/Pod::To::HTM...on/about/) 02:30
does anyone know why this happens, and how I can make it not do that?
rypervenche phogg: But uhhh, --sparse (-S) 02:49
ryan48 what is the best way to do a system wide install? i was going to move the rakudo dir to /opt and then make symbolic links of the binaries to /usr/local/bin, but it seems moving the entire rakudo dir breaks the binaries... 03:25
AlexDaniel ryan48: which OS? Just install from distro repos? 03:30
ryan48 ubuntu 18.04. the rakudo in the repos is pretty old... 2018.03. I can't remember for sure, but I think there are things that strarted working better for us in v6.d... and we have use v6.d in a lot of modules now... 03:33
AlexDaniel notable6: deb 03:34
notable6 AlexDaniel, No notes for “deb”
AlexDaniel ryan48: what about github.com/nxadm/rakudo-pkg/ ? 03:34
hmm why is that ubuntu focal has 2018.12 03:37
ryan48 AlexDaniel: that looks promising... thanks!
AlexDaniel ryan48: by any chance do you know how it works in ubuntu? I'm looking at this: packages.ubuntu.com/focal/rakudo 03:38
are they basing it off debian buster?
ryan48: like, can somebody ask them to update it? 03:39
would be nice to have the next LTS to include a recent-ish rakudo
not 2018.12, which is kinda alright too, but still 03:40
Grinnz usually you need to tell the configure process what prefix it will be installed under, unless it's a relocatable build
no idea if that's set up but i think i saw conversation about it previously.. 03:41
ryan48 I'm really not sure... I use arch on my personal computers, but am forced to use ubuntu LTS at work.... not super familiar with that stuff...
ryan48 AlexDaniel: rakudo-pkg worked perfectly. Thanks! 03:54
wish that was listed on raku.org/rakudo.org... guess it's "unofficial, but still really nice 03:58
well on second thought rakudo.org list 3rd party binaries for windows and mac... 03:59
rakudo-pkg even comes with zef and raku* binaries. Nice! 04:01
Geth doc: 83168d5b32 | (JJ Merelo)++ | doc/Type/Nil.pod6
Minor changes while preparing for working on Nil #2632
06:56
doc: 99dfca4fb2 | (JJ Merelo)++ | doc/Type/Nil.pod6
Adds ords and chrs to Nil #2632
XexonixXexillion Hi. What are some good resources for learning Raku? 07:02
El_Che XexonixXexillion: it depends on you knowledge of programming and your learning style 07:03
XexonixXexillion: think Raku can be downloaded for free (or bought) here: greenteapress.com/wp/think-perl-6/ 07:04
it a variant of the series like "Think Python"
there is also Learning Perl 6 from O'reilly, Perl 6 Fundamentals and so on: perl6book.com/ 07:05
I would suggest though, to go to docs.raku.org and read the tutorials and start a very small project
XexonixXexillion I like the flow chart on perl6book.com. But I'm not really looking for a book unless I can download it right now. 07:09
I've worked as a software dev in C, Java, Node.js and Haskell at various times, so I'm not exactly new to programming
but I don't know Perl5, and a lot of tutorials seems to assume that I do 07:10
I've got a long train ride tomorrow, so I was hoping to spend it playing around with Raku 07:11
XexonixXexillion Are there any particularly well written libraries in Raku that are worthing looking at the source for? 07:12
El_Che jmerelo: your book in now on safari: Perl 6 Quick Syntax Reference 07:21
XexonixXexillion: Think Raku can be downloaded legally and for free 07:22
it doesn not assume perl 5 knowledge
it may be too basic as it explain programming concepts, but it will be an easy walkthrough
XexonixXexillion: libs: have a look at Cro 07:23
XexonixXexillion El_Che it looked like it's not really about teaching Raku. It's about teaching programming and uses Raku to do so, but I've already downloaded a copy anyway
El_Che XexonixXexillion: yes, you're right 07:24
that's also why I meant walk through 07:25
you just have a quick look how to do things with raku, eg syntax
but don't need to get into programming concepts
El_Che Perl 6 Fundamentals was also a very nice and introduction, but I don't think it's available for free 07:26
tobs not talking down the books that have already been written, but I was also missing such a "Raku for Polyglots" book which focuses on the models the language employs and what ties them together at the core, what mental model I should have of a Raku runtime. 07:48
most of what I learned in this regard came from lurking in this channel, probably a few blog posts, those big docs pages and talks. 07:49
moritz tobs: my experience as an author is that the further you get away from intro books, the less they sell 08:02
I'm more proud of the regexes + grammars book than of Fundamentals, but being more niche, it sells far worse
so as much as I would enjoy both writing and having such a book, the economics basically forbid it 08:03
El_Che moritz: isn't writing IT books nowadays more of a itch thing (*wanting* to write, learning by writing, putting your name out there, etc) than making money? 08:15
I don't think even intro books sell that much nowadays 08:16
moritz El_Che: that's right, but at least they have the chance to be profitable to the publisher 08:20
discord6 <Smitty> do we have any build in in Raku to do thing like this native function in C: getaddrinfo 08:20
moritz El_Che: and it does hurt when you pour hundreds of hours into a book project, only to never exceed 200 copies sold 08:21
El_Che moritz: welcome to academia 08:23
kawaii Hi, I've been away from the community for some time - any news on the next Star release? :) 09:54
Smitty do we have any build in functions or classes in Raku to do thing like this native function in C: getaddrinfo 10:21
Kaiepi .tell smitty, there's a problem solving issue open for that github.com/Raku/problem-solving/issues/111 11:22
tellable6 Kaiepi, I'll pass your message to Smitty
discord6 <Smitty> I see @Kaiepi , so this come as a problem need to show at 6.e, thanks. 12:42
tellable6 2020-01-17T11:22:21Z #raku <Kaiepi> smitty, there's a problem solving issue open for that github.com/Raku/problem-solving/issues/111
cpan-raku New module released to CPAN! Gnome::N (0.15.2.1) by 03MARTIMM 13:03
cpan-raku New module released to CPAN! Gnome::GObject (0.15.10) by 03MARTIMM 13:28
cpan-raku New module released to CPAN! Pod::To::Anything (0.1.0) by 03TYIL 14:18
New module released to CPAN! Pod::To::HTML::Section (0.1.0) by 03TYIL
guifa moritz: re books/audiences, as El_che said, it’s worse in academia lol. I’ll probably have more people listen to my talk at Perl/Raku Con 2020 in Houston than I’ve had of my last ten (academic) conferences talks combined.
[Coke] guifa++ 14:20
[Coke] will probably skip Houston this year, though he would love a chance to visit his old town again.
poohman m:@a=^10; @a.map(.say) 14:30
evalable6 (exit code 1) 04===SORRY!04=== Error while compiling /tmp/v6vlwft9wV
Variable '@a' is not declared
at /tmp/v6vlwft9wV:1
------> 03<BOL>08⏏04@a=^10; @a.map(.say)
cpan-raku New module released to CPAN! Grammar::TodoTxt (0.1.0) by 03TYIL 14:34
New module released to CPAN! App::GTD (0.1.0) by 03TYIL 14:41
tyil that should be all the modules that I hadn't pushed to cpan yet 14:41
guifa still needs to sign up for PAUSE so he can do that 14:52
uzl[m] El_Che: Recently Laurent released the 2nd version of Think Perl 6 , Think Raku (github.com/LaurentRosenfeld/think_raku) 16:20
tellable6 2020-01-14T14:25:53Z #raku-dev <lizmat> uzl[m] I've left some comments with the gist
uzl[m] lizmat: Thank you very much. I'll have a look whenever I've the time. 16:21
El_Che uzl[m]: that's what linked in the page with perl6 in the url 16:25
the pdf is called think_raku.pdf
2nd Edition, Version 0.6
January 2020
\o/ for laurent 16:26
uzl[m] El_Che: My bad ;-). I didn't realize they've updated the green tea website. 16:28
Kudos to Laurent. BTW, the Spanish translation has also been Raku-ified (uzluisf.gitlab.io/piensa-raku/). 16:30
melezhik RakuDistApi now can test Raku modules from github: 17:01
curl -d os=debian -d project=edumentab/p6-app-moarvm-debug repo.westus.cloudapp.azure.com/raku...un/:github
refined documentation - github.com/melezhik/RakuDist#run-tests-via-api 17:02
El_Che melezhik: with your config mgmt tool as a backend? 17:05
melezhik yeah 17:06
you have 2 options, 1) run it low level ( your custom scenarios ) through sparrowdo/docker 2) run it through API using curl 17:07
in both cases test scenarios are written in Sparrow6 and executed inside docker containers
El_Che uzl[m]: it was just meant as a fyi not as a 'I am right" :)
melezhik: interesting 17:08
melezhik: specially the curl one :)
melezhik: I have been too busy to have a look :(
melezhik yeah, you can take it for a spin right now, no coding is needed at all!
El_Che melezhik: that is great. I think that people like me and you sometime forget that not everyone is into containers and stuff :) 17:09
melezhik El_Che: thanks. Yeah containers are cheap and fast 17:12
AlexDaniel melezhik: any way we can quickly add support for custom rakudo versions ? 17:13
melezhik: like maybe through github.com/perl6/whateverable/wiki/Shareable or something like that
like, I want to be able to do curl -d rakudo=33993023 os=debian -d project=edumentab/p6-app-moarvm-debug repo.westus.cloudapp.azure.com/raku...un/:github 17:15
melezhik AlexDaniel: good idea. Basically we just need plug this into current sparrowdo bootstrap - github.com/melezhik/sparrowdo/blob...otstrap.sh
AlexDaniel: sure !
AlexDaniel sena_kun: ↑ 17:16
sena_kun: a very cool tool for release managers, once that is available
melezhik: also have you seen github.com/perl6/ecosystem-unbitrot ?
melezhik No, what is that in 2 words? 17:17
AlexDaniel melezhik: if rakudist is so easy to use with curl, I can adjust the template so that it says “Rerun tests in RakuDist: ……”
melezhik: it's basically an issue tracker for modules that don't pass tests 17:18
melezhik yeah, good idea, I will need to prepare my azure VM for higher load then ((=:
AlexDaniel melezhik: so out of 1482 modules in the ecosystem roughly 220 don't work, and that repo is for figuring out what's up with them and trying to fix them 17:19
melezhik: no need for higher load I think, the testing and stuff comes from Blin and we handle that
melezhik now I have enabled requests throttling to avoid server down. 220 module is doable though, let me think ...
Alex - ok
AlexDaniel melezhik: but a lot of the times people wonder if the status changed or if it's still broken and stuff like this, and being able to replay the tests is pretty cool 17:20
melezhik yeah, this is the very idea behind RakuDist
Alex, sorry I need to switch to my main work, but lets figure out details latter 17:21
AlexDaniel melezhik: btw here's the list of deps that are needed for modules: github.com/Raku/Blin/blob/master/d...pendencies
melezhik ok, noted ... 17:22
AlexDaniel talk to you later then :) 17:22
El_Che it would be cool if modules could specify their own dependencies 17:23
for the remote tests
AlexDaniel El_Che: yeah that needs to be figured out 17:26
AlexDaniel El_Che: I mean, there's already a way to define native deps, I think? 17:27
azarmadr !~~ meaning
AlexDaniel El_Che: there's probably one module somewhere doing that
El_Che AlexDaniel: it's a moving target, but module authors could define it for the oses they care about 17:30
AlexDaniel that's what I'm thinking too 17:31
jmerelo Raku question in Stackoverflow remain at ~ 1 per day data.stackexchange.com/stackoverfl...onth#graph 17:36
I thought I had seen some improvement after the change of name, but that does not seem to be the case. 17:37
Geth doc: a9b147c4e9 | finanalyst++ | doc/Language/compilation.pod6
new compilation tutorial
17:39
doc: a10fd84956 | finanalyst++ | doc/Language/compilation.pod6
Changes to reflect reviews
doc: 356eadf55a | (Juan Julián Merelo Guervós)++ (committed using GitHub Web editor) | doc/Language/compilation.pod6
Merge pull request #3082 from finanalyst/master

OK, I'm merging this. Better to have it here and improve it afterwards, that simply not have it. We can always create an issue with an RFE for later.
Poohman m:my @a=^10;@a.kv.map(->$idx,$val{for @[$idx .. *] -> $b {if {$val==$b}{last;}LAST{say $val~","~$b}}}) 18:23
evalable6 (exit code 1) 04===SORRY!04===
Sh…
Poohman, Full output: gist.github.com/090550eeb6f175000d...120a97aa85
Poohman m:my @a=^10;@a.kv.map(->$idx,$val {for @[$idx .. *] -> $b {if {$val==$b}{last;}LAST{say $val~","~$b}}}) 18:25
evalable6 (exit code 1) 04===SORRY!04===
Fu…
Poohman, Full output: gist.github.com/e6135f8491a8f87536...c4eb1dd737
Poohman hello all, why is the LAST phaser not being recognised 18:29
Geth doc: 2ecad8df6e | Coke++ | xt/headings.t
whitelist a class name
18:33
doc: 0fb20ebf23 | Coke++ | 2 files
spelling, word variant, grammar cleanups.

learn some new words
Poohman m:my @a=^10;@a.kv.map(->$idx,$val {for @[$idx .. *] -> $b {if {$val==$b}{last;} LAST {say $val~","~$b}}}) 18:45
evalable6 (exit code 1) 04===SORRY!04===
Fu…
Poohman, Full output: gist.github.com/634d43617d34ef8aa0...0ece63df48
Poohman m:my @a=^10;@a.kv.map(->$idx,$val {for @[$idx .. *] -> $b {if {$val==$b}{last}; LAST {say $val~","~$b}}})
evalable6 (exit code 1) 04===SORRY!04===
Fu…
Poohman, Full output: gist.github.com/7f0d40d271b68dad06...f80b29d1d3
[Coke] Poohman: whitespace is important.
Poohman m:my @a=^10;@a.kv.map(->$idx,$val {for @[$idx .. *] -> $b {if {$val==$b} {last}; LAST {say $val~","~$b}}}) 18:46
evalable6 0,0
1,1
2,2
3,3
4,4
5,5
6,6
7,7
8,8
9,9
[Coke] m: my @a=^10;@a.kv.map(->$idx,$val {for @[$idx .. *] -> $b {if $val==$b {last;}; LAST {say $val~","~$b}}})
camelia 0,0
1,1
2,2
3,3
4,4
5,5
6,6
7,7
8,8
9,9
[Coke] also don't need block around conditional in if.
Poohman got it
[Coke] You got close, though. think you were just missing the ; on the last there. (and that's only due to the one-liner, I think) 18:47
Grinnz since raku cares more about whitespace, please tell me "$ foo" is not supported :)
Poohman yes, the example in the documentation did not have it, maybe it was because it was not a one liner 18:48
thanks
guifa Grinnz I was almost about to say you could do $\ foo, but … nope. That’s more limited than I thought 18:49
Grinnz sometimes limits are good
(at least in the default state) 18:50
guifa pasteboard.co/IQqi1Ns.png 18:57
Camelia goes Egyptian!
(for the social media image for one of my international modules — Thoth is, among other things, god of language)
chrsteel p6: my $x = "ho raku!"; $x .= tc.subst(/o/,"i"); say $x; 19:15
camelia Ho raku!
chrsteel p6: my $x = "ho raku!"; $x = $x.tc.subst(/o/,"i"); say $x; 19:16
camelia Hi raku!
chrsteel ^^^ I would expect the first version to also return "Hi raku!". What don't I understand? :-) 19:17
AlexDaniel guifa: hah :) 19:21
jmerelo: I don't know, stackoverflow just doesn't sound like a resource I'd go to to ask about Raku 19:26
tellable6 AlexDaniel, I'll pass your message to jmerelo
AlexDaniel “Next privilege Access moderator tools” 19:27
nice, maybe I'll get it by the end of this year
(without writing a single answer for several years) 19:28
hm, actually I wrote 5 since 2014
thundergnat <guifa: Camelia goes Egyptian!> SCNR: rosettacode.org/wiki/Egyptian_divis...22_version 19:54
(May need an Egyptian Hyroglyphs font installed)
shred_alert "Camelia goes Egyptian!" :') 20:26
Geth doc: 1d073cdd21 | (Tom Browder)++ (committed using GitHub Web editor) | CONTRIBUTING.md
Add a link to a PR guide
20:42
doc: 458ea5cf13 | (Tom Browder)++ (committed using GitHub Web editor) | CONTRIBUTING-PRs.md
Start new doc
20:43
doc: ec9ed688ea | (Tom Browder)++ (committed using GitHub Web editor) | 2 files
Rename for better sort
20:45
doc: f293a72d24 | (Tom Browder)++ (committed using GitHub Web editor) | CONTRIBUTING.md
correct doc name
20:48
cpan-raku New module released to CPAN! Gnome::GObject (0.15.10.4) by 03MARTIMM 20:49
Geth doc: b49cf9c9f0 | (Tom Browder)++ (committed using GitHub Web editor) | CONTRIBUTING.md
complete links and titles
20:52
Geth doc: 92547b7686 | (Tom Browder)++ (committed using GitHub Web editor) | CONTRIBUTING_PRs.md
start fillling out the steps
21:11
tbrowder pardon the noise but i just started a PR guide (a WIP) to help folks (like Todd) who've never done such a thing--feel free to add, subtract, or multiply. i'm going to do further updates now through PRs or pushes from my fork and clone of this repo. i'm no expert as AlexDaniel can attest, but i can at least help with an initial working setup 21:15
AlexDaniel tbrowder: I'm not sure if that's something we should do 21:19
there are many guides out there on how to use github
tbrowder yes, but not for someone who has no concept of the whole picture but wants to contribute. if you don't want it i'll remove it and put it on my account 21:22
Geth doc: 0bcdbcd0cd | Coke++ | doc/Language/compilation.pod6
Mark non-code as such. pass compilation test
21:23
doc: e42cc72c4c | Coke++ | CONTRIBUTING.md
whitespace
AlexDaniel tbrowder: it can stay, of course, but maybe we should find some 3rd party guide and see if it's as helpful 21:24
tbrowder i'm certainly open to suggestions, but i want a cookbook recipe for the doc repo for Todd so we can keep him better focused 21:27
so until something better is found, i'll keep working on it
*work/hack 21:28
Geth doc: 0838f21927 | (Tom Browder)++ (committed using GitHub Web editor) | CONTRIBUTING_PRs.md
format
21:32
doc: f6a006ffe3 | (Tom Browder)++ (committed using GitHub Web editor) | CONTRIBUTING_PRs.md
format
21:37
AlexDaniel .seen BDUGGAN 21:49
tellable6 AlexDaniel, I haven't seen BDUGGAN around
MasterDuke anybody here know git submodules and tags really well? 22:27
Geth doc: zostay++ created pull request #3165:
Io socket async listensocket
23:20
i_dont_do_spam hi. static.fsf.org/nosvn/videos/fsf-sh...-720p.webm 23:36
AlexDaniel i_dont_do_spam: I wish it was encoded with AV1 23:40
but ok, VP8 will do :)
it is still spam but ok… nicely done :S 23:42