🦋 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.
lizmat PSA: pl6anet.org is now officially offline, if you were still using that, please use planet.raku.org instead 08:55
jaguart It's 32C in Sussex UK - with no aircon - just not used to that! 13:39
lizmat 30 here in NL, now officially the hottest Sep 6 13:40
the coming 6 days will probably all break records as well
jaguart whew
I've been away for a while - BSc Info Tech squeezed into 12 weeks. Enough javascript and C# - now I'm back to Raku! 13:42
nemokosch yeah long time no see 14:11
jaguart I'm looking forward to playing with this: github.com/bduggan/raku-jupyter-kernel 14:13
nemokosch have you followed the Rakudoc news?
jaguart a little - but not in earnest 14:14
what did I miss?
nemokosch I don't know, to be frank. It just seemed you might be interested.
lizmat github.com/Raku/problem-solving/issues/380
jaguart :)
lizmat more specifically: raw.githubusercontent.com/Raku/Rak..._3.rakudoc 14:15
jaguart I had so many assignments my head was down the whole time. Kept promoting raku as a better OO than C# to the profs/tutors 14:16
I did read about the pod6 changes - looking forward to seeing how it evolves 14:17
I'm guessing my niggles with minor POD6 bugs will evaporate 14:18
The big thing I really want is auto generation of class documentation a'la JavaDoc - but that seems orthoganal to raku-doc 14:22
lizmat jaguart: you mean, generate from code? yes, that would be orthogonal 14:23
jaguart yes - it's on my todo list 14:26
I do like the raku-doc =COLUMN - that is really nice 14:27
lizmat well, with RakuAST it would definitely be simpler, as you wouldn't need to parse the code yourself, but could use the .AST 14:27
"file".IO.slurp.AST basically
jaguart I'm assuming the AST branch is not main yet? 14:31
new-raku.finanalyst.org/language/rakudoc - wow, a superb job on this! 14:33
[Coke] packy.dardan.com/2023/09/05/perl-w...y-kenneth/ - another blog post with a raku solution to the weekly 14:34
jaguart: it is, but you need to activate it with 'use experimental :rakuast'
m: use experimental :rakuast; $*PROGRAM.AST.say 14:36
camelia ===SORRY!=== Error while compiling
Unsupported use of /e. In Raku please use: interpolated {...} or s{} =
... form.
------> /tmp/e⏏valbot-file-61DDyQfy8Q
jaguart will look at dropping that into my introspection widget 14:37
[Coke] ... ok, that worked with -e locally, but is very unhappy when I save it in a file. substitute real code for the $*PROGRAM there. :) 14:38
lizmat m: say Q|say "Hello World"|.AST 14:44
camelia RakuAST::StatementList.new(
RakuAST::Statement::Expression.new(
expression => RakuAST::Call::Name.new(
name => RakuAST::Name.from-identifier("say"),
args => RakuAST::ArgList.new(
RakuAST::QuotedString.new(
lizmat m: say Q|say "Hello World"|.AST.statements.head
camelia RakuAST::Statement::Expression.new(
expression => RakuAST::Call::Name.new(
name => RakuAST::Name.from-identifier("say"),
args => RakuAST::ArgList.new(
RakuAST::QuotedString.new(
segments => (
RakuAST::St
[Coke] lizmat: wait, the experimental isn't needed? 14:46
lizmat the :experimental is only needed if you want to directly access / create RakuAST classes 14:47
.AST makes them for you
[Coke] Ahhhhh
Apologies
lizmat I mean as soon as you want to check for specific nodes in the .AST result, you would need the :experimental 14:48
*or* "use v6.e.PREVIW"
*or* "use v6.e.PREVIEW"
[Coke] m: q 15:07
camelia ===SORRY!=== Error while compiling <tmp>
Undeclared routine:
q used at line 1
[Coke] m: q|2+3|.AST.sat
camelia No such method 'sat' for invocant of type 'RakuAST::StatementList'.
Did you mean any of these: 'Set', 'say'?
in block <unit> at <tmp> line 1
[Coke] m: q|2+3|.AST.say
camelia RakuAST::StatementList.new(
RakuAST::Statement::Expression.new(
expression => RakuAST::ApplyInfix.new(
left => RakuAST::IntLiteral.new(2),
infix => RakuAST::Infix.new("+"),
right => RakuAST::IntLiteral.new(3)
)…
[Coke] is there a way to constant flatten that? 15:08
lizmat m: q|2+3|.AST.literalize.say 15:18
camelia 5
[Coke] nice! 15:49
nerd friends: don't assume someone's mailing address is their shipping address.
My mom's town doesn't have a post office, so the mailing address is the next town over, but so many online delivery places are trying to convert the address to a mailing address (probably because that's what they had to validate against) 15:50
m: q|pi|.AST.literalize.say 15:51
camelia 3.141592653589793
[Coke] m: q|pi|.AST.say
camelia RakuAST::StatementList.new(
RakuAST::Statement::Expression.new(
expression => RakuAST::Term::Name.new(
RakuAST::Name.from-identifier("pi")
)
)
)
[Coke] 👍 15:54
jaguart Noice - got the Jupyter notebook server running with Raku - woohoo. Slight tweaks to the instructions. Chuffed 17:07
😅
antononcube @Jaguart Great! Please try "Jupyter::Chatbook". 17:19
@Jaguart Here is a demo (first out of five -- the next four are coming soon): www.youtube.com/watch?v=cICgnzYmQZg 17:25