🦋 Welcome to the MAIN() IRC channel of the Raku Programming Language (raku.org). Log available at irclogs.raku.org/raku/live.html . If you're a beginner, you can also check out the #raku-beginner channel!
Set by lizmat on 6 September 2022.
uzl[m] .tell dakkar The gamification sounds like a good idea, although I'd be interested on how many Rakoons are interested on that haha 00:00
tellable6 uzl[m], I'll pass your message to dakkar
tonyo uzl[m]: i would likely accept a PR for it 01:09
tellable6 hey tonyo, you have a message: gist.github.com/f7b709a5b3095ab345...ade19a95e8
tonyo dakkar uzl[m] i've made something similar for fez/zef very early on and we removed it for various reasons, with fez i have the plan to redo all of that but i don't have enough time or days to get to everything yet 01:12
SmokeMachine Is this error message (`Cannot find method 'add_object_if_no_sc' on object of type NQPMu`) related to something missing on RakuAST yet? I always get that when adding `use Red` on code when RAKUDO_RAKUAST=1 is set. usercontent.irccloud-cdn.com/file/.../image.png 01:43
tbrowder__ if you use mi6 you write in rakudoc and let mi6 convert to markdown for github. a win-win imho 01:51
tonyo :) 02:07
patrickb I think supporting Rakudoc and people starting to use it will result in people starting to write more extensive documentation. To me MD always felt like a stopgap. "Put a README.MD at the top level and you are done." People don't write extensive class / method / ... documentation in that one file. I believe Rakudoc, which can be mixed into source code and split into many files, will give people a 07:14
framework to write such extensive documentation.
librasteve fwiw I wrote a toy script for personal use gist.github.com/librasteve/79a2731...131b37c4f9
this is the inverse of rakudoc in that it helps "literate programming" where you have a lot of markdown text and a small amount of raku code in code blocks such as config options 07:16
then I have a couple of github repos that are basically a walk thought of various processes that can actually be run with ramd README.md 07:17
I would prefer something that lets me write MD inline in raku code rather than having to become fluent in rakudoc 07:18
Nemokosch welcome to the AlexDaniel camp 07:36
Xliff m: class A { method a ($a, $b) { say $a; say $b }; }; multi sub postcircumfix:<[ ]> (A $a, $b, $c) { say "Whee!"; $a($b, $c) }; my $a = A.new; $a[1, 2] 07:59
camelia ( no output )
Xliff But or E_NOTINSCOPE?
Er... Bug? or E_NOTINSCOPE?
m: class A { method a ($a, $b) { say $a; say $b }; }; multi sub postcircumfix:<[ ]> (A $a, Int $b, Int $c) { say "Whee!"; $a($b, $c) }; my $a = A.new; $a[1, 2]
camelia ( no output )
Nemokosch m: class A { method a ($a, $b) { say $a; say $b }; }; multi sub postcircumfix:<[ ]> (A $a, Int $b, Int $c) { say "Whee!"; $a.a($b, $c) }; my $a = A.new; $a[1, 2] 08:28
Raku eval
timo m: class A { }; my $a = A.new; multi sub postcircumfix:<[ ]>(A $x, ($a, $b)) { say $a, $b }; $a[1, 2] 09:36
camelia 12
Xliff m: class A { }; my $a = A.new; multi sub postcircumfix:<[ ]>(A $x, ($a, $b)) { say $a, $b }; $a[1, 2] 09:51
camelia 12
Xliff Thank you, thank you, timo! 09:52
timo YW :) 10:29
[Coke] any raku users going to the TPRF conference in Canada? 14:09
Anton Antonov @Coke TPRF-2023 in Canada is too far me ... 14:44
[Coke] Yah, It's probably best for me and jdv and not many others. :) 14:47
[Coke] wonders if we have to rakubrew to get a working build on m2 macs. (I tried a standalone build just before the 2023.05 release, and got the intel vs. m2 erros on one of the libraries() 15:09
but a rakubrew of the HEAD at the same time worked fine.
(not necessarily the same exact commit, but within a few) 15:12
librasteve Coke: here's my recipe for arm64 github.com/librasteve/raku-Dockerf...Dockerfile but it is for ubuntu not MacOS on m1 ... I have torn out much hair with MacOS and now use with rakubrew AND, separately I run vftools for very fast ubuntu vms on MacOS 15:43
rakujourney.wordpress.com/2021/11/...s-part-ii/ (the Vector Two chapter) has a kink to the vftools setup 15:45
personally I am pretty despairing at Apple with the way they contort unix 15:48
leont Yeah, they keep breaking stuff that has worked since forever 15:50
librasteve then when I really need Intel (e.g. to run the standard Jupyter Docker images), then I just spin up an AWS instance with github.com/librasteve/raku-CLI-AWS-EC2-Simple (what I wrote) 15:51
the video demo for that is here rakujourney.wordpress.com/2022/12/...-postvent/ 15:52
tonyo patrickb: i could be convinced more to use it if there was a tool analagous to `go doc` 16:34
[Coke]: it's not bad for me but i'll be in switzerland
tonyo is there a way to invoke the `--doc=SOMETHING` functionality from a running process? 17:05
lizmat running as in actually running, or maybe as a CHECK phaser ?
tonyo like, i want to do some work in a script, parse pod out of another file, and then do some other stuff with it 17:09
basically i want to build go doc into fez or something else so i can run `fez doc SomeClass.method1` and get just the documentation for that method from the command line 17:10
so i need to do some resolution first to find the right file for SomeClass, etc
lizmat look at lib/Rakudo/To/Text.rakumod in 2023.05 for an example 17:11
perhaps some logic for finding the right file
and then to walk the pod
tonyo ahhh this requires the RakuAST? 17:14
this is nice, ty lizmat 17:15
guifa [Coke]: I'm going! 20:18
tonyo lizmat: getting `Cannot find method 'from-paragraphs' on object of type NQPMu` on that branch 21:02
basically resolving where Zef::Client is and running `$path.IO.slurp.ast` against it 21:05
gfldex lizmat: I just wrote `eigenstates(@a.all²)` what made me chuckle. 21:49
kawaii Are there any Raku modules for lemmatization of words? i.e. finding the root of a word? kissing -> kiss, does -> do, hugged > hug ? 21:51
gfldex m: say (1,2,3)»²; 21:55
camelia (1 4 9)
gfldex Why does that work? o.0
gfldex Ohh, ² is considered an unary operator! 21:56
lizmat tonyo: you need to run with RAKUDO_RAKUAST=1 22:59
Xliff kawaii: You'd need a dictionary for that. 23:06
tonyo different error: gist.github.com/tony-o/a7946566c75...b70b2c67cd 23:26
tonyo oh, weird - raku ast doesn't like zef's source. disregard 23:31