🦋 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.
00:00 reportable6 left 00:02 reportable6 joined 00:05 QhpAptyj9hj0RQwM left 00:44 Voldenet left, Voldenet joined 01:33 razetime joined 02:33 committable6 left, linkable6 left, sourceable6 left, statisfiable6 left, benchable6 left, bisectable6 left, quotable6 left, squashable6 left, unicodable6 left, coverable6 left, releasable6 left, bloatable6 left, tellable6 left, shareable6 left, greppable6 left, notable6 left, evalable6 left, nativecallable6 left, reportable6 left 02:34 quotable6 joined, reportable6 joined, evalable6 joined, coverable6 joined, shareable6 joined, linkable6 joined, benchable6 joined, unicodable6 joined 02:35 committable6 joined, notable6 joined, tellable6 joined, greppable6 joined, nativecallable6 joined, bloatable6 joined, sourceable6 joined, bisectable6 joined 02:36 statisfiable6 joined, squashable6 joined, releasable6 joined 03:10 razetime left 03:19 razetime joined 03:28 ProperNoun left 03:29 razetime left 03:40 rf left 04:40 quotable6 left, statisfiable6 left, reportable6 left, bisectable6 left, evalable6 left, committable6 left, nativecallable6 left, greppable6 left, benchable6 left, tellable6 left, notable6 left, sourceable6 left, shareable6 left, linkable6 left, unicodable6 left, coverable6 left, squashable6 left, releasable6 left, bloatable6 left, evalable6 joined, unicodable6 joined 04:41 quotable6 joined, committable6 joined, benchable6 joined, notable6 joined, tellable6 joined, coverable6 joined 04:42 squashable6 joined, bisectable6 joined, bloatable6 joined, reportable6 joined, releasable6 joined, derpydoo joined, statisfiable6 joined 04:43 linkable6 joined, nativecallable6 joined, shareable6 joined, greppable6 joined, sourceable6 joined 05:43 reportable6 left, evalable6 left, tellable6 left, committable6 left, bloatable6 left, unicodable6 left, greppable6 left, notable6 left, sourceable6 left, shareable6 left, statisfiable6 left, nativecallable6 left, benchable6 left, quotable6 left, coverable6 left, linkable6 left, bisectable6 left, releasable6 left 05:44 committable6 joined, evalable6 joined, unicodable6 joined, benchable6 joined, shareable6 joined, sourceable6 joined 05:45 tellable6 joined, releasable6 joined, reportable6 joined, greppable6 joined, linkable6 joined, statisfiable6 joined, quotable6 joined, coverable6 joined 05:46 nativecallable6 joined, bloatable6 joined, bisectable6 joined, notable6 joined 05:48 derpydoo left 06:00 reportable6 left 06:02 reportable6 joined 06:31 initrd joined 06:48 tea3po left 06:49 tea3po joined 07:19 Sgeo left 07:32 peder left 07:33 peder joined 07:40 tejr left 07:48 tejr joined 07:52 tejr left 08:03 tejr joined 08:13 initrd left 08:53 merp joined 09:06 dakkar joined 09:07 jpn joined 09:10 abraxxa joined 09:31 tejr left 09:32 tejr joined 09:41 zebzzw joined
Nemokosch so yeah, yesterday I managed to get one generated part of the highlighter config right 09:45
there are five parts
is there anyone who comprehends Coffeescript strings? I came across something that looks like a Python docstring (triple apostrophe) and it seems to have comments in it, like wtf 09:46
exp Nemokosch: can you show an example? I'm not aware of anything like that, but boy I haven't heard Coffeescript in a while! 09:49
tellable6 exp, I'll pass your message to Nemokosch
Nemokosch okay, so they are apparently called "block strings" 09:52
moment
exp no need, that's enough for googling, gracias :) 09:53
Nemokosch github.com/Raku/atom-language-perl....raku#L288 09:55
there are similar things in the output as well 09:56
github.com/Raku/atom-language-perl....cson#L813
the way I understand it, these strings keep the linebreaks, they are much like heredoc strings 09:57
however, I cannot comprehend how they can contain comments, and whether that's a language feature of Coffescript or some stupid custom hack in Atom or that Ruby regex processor 09:58
it seems to me that it's NOT Coffeescript that is weird about that comment 10:02
github.com/Alhadis/Regex-Comments#...e-comments goddamnit 10:04
this is indeed an Atom hack
hm, not Atom but PCRE mode of this regex engine 10:06
anyway, I guess I might as well leave these comments there, and see how it works out 10:08
10:41 evalable6 left, linkable6 left 10:42 linkable6 joined 10:43 evalable6 joined 11:01 ab5tract joined 11:17 jpn left 11:20 jpn joined 11:23 tejr left 11:37 ab5tract left 11:45 sena_kun joined 11:56 ab5tract joined 12:00 reportable6 left 12:02 reportable6 joined 12:07 ab5tract left 12:15 ab5tract joined 12:38 ab5tract left, ab5tract joined 12:39 peder left 12:48 peder joined 12:50 ProperNoun joined 13:09 ab5tract left 13:13 ab5tract joined 13:19 jgaz joined
Anton Antonov I have a project in which one of the possible solutions is to construct a grammar from a list of regexes. Should I use RakuAST or the approach given here : perl6advent.wordpress.com/tag/bnf/ ? 13:59
I assume the non-RakuAST is going to always work. Meaning, after RakuAST is finished and "main stream" the ^add_method and EVAL implementation is still going to work. Is this correct? 14:01
I more recent/updated work corresponding to the advent link above is this Raku module repository: github.com/tadzik/Grammar-BNF . 14:10
14:12 ab5tract left 14:26 rf joined
lizmat Anton Antonov the past week I got regex / rule / token declarations to work in a useful way 14:27
rf Morning folks 14:28
lizmat I haven't written any tests for creating grammars yet, but that *should* be trivial
m: say Q|grammar A { token B { b } }|.AST.statements.head.expression # to give you an idea how that would look 14:29
camelia RakuAST::Package.new(
declarator => "grammar",
name => RakuAST::Name.from-identifier("A"),
body => RakuAST::Block.new(
body => RakuAST::Blockoid.new(
RakuAST::StatementList.new(
RakuAST…
14:35 ab5tract joined 14:38 zebzzw left 14:45 sarna left 14:46 sarna joined 14:48 clarkema left, patrickb left, atweedie left 14:49 silasfox joined 14:50 atweedie joined 14:51 clarkema joined, patrickb joined 15:03 ab5tract left 15:06 sarna left 15:10 sarna joined
Anton Antonov @lizmat Thanks! 15:11
15:17 ab5tract joined 15:28 jpn left 15:34 jpn joined 15:36 Sgeo joined 15:50 clarkema left, patrickb left, atweedie left 15:55 atweedie joined 15:56 patrickb joined, clarkema joined 16:05 perlbot left, simcop2387 left 16:31 silasfox left 16:43 ab5tract left 16:45 ab5tract joined 17:12 japhb left 17:19 simcop2387 joined, simcop2387 left 17:22 codesections left 17:23 japhb joined 17:26 nort left 17:36 dakkar left, sarna left, sarna joined 17:42 QhpAptyj9hj0RQwM joined 17:48 abraxxa left 18:00 reportable6 left, jpn left 18:03 reportable6 joined 18:04 jpn joined 18:17 jpn left 18:37 jpn joined 18:50 volare joined
volare question: can i install rakudo perl using apt-get in debian? 18:51
tonyo m: my Buf[uint8] $x .=new; dd $x; 18:58
camelia Buf[uint8 $x = Buf[uint8].new()
volare is perl6 backward compatible with perl5? 19:02
lucs volare: I believe it is recommended to install rakudo with rakubrew (see rakubrew.org). 19:07
And no, Raku is similar to Perl in many ways, but it is a different language. 19:08
(perl6 is now called Raku)
19:20 jpn left
volare lucs: i managed to install it with sudo apt-get install rakudo 19:23
19:23 teatwo joined
volare i am converting a simple perl 5 program and the for loop doesn't work 19:24
lucs Oh, that indeed works, but I've seen people
recommend rakubrew
The 'for' syntax may be different in Raku. 19:25
volare: Enter "5to6" in the search box here for clues: docs.raku.org/ 19:27
19:27 tea3po left
lucs This one mentions 'for' loops: docs.raku.org/language/5to6-perlsyn.html 19:28
19:32 jpn joined
tonyo volare: what is the output of `raku -v` 19:33
19:38 jpn left
volare Welcome to Rakudo(tm) v2020.12. 19:38
Implementing the Raku(tm) programming language v6.d.
lucs Yikes, kind of old.
volare Built on MoarVM version 2020.12.
how do you say a text and variable on the same line? 19:39
lucs rakubrew can get you 2023.02.
volare: Not sure what you mean...
Maybe this?: say "Value is $the-val" 19:40
volare say "\nYou thought of number: ";
say ($count-6);
evalable6
You thought of number:
volare i want to say both lines on one line
lucs m: $num = 42; say "You thought of number ", $num; 19:41
camelia ===SORRY!=== Error while compiling <tmp>
Variable '$num' is not declared. Did you mean any of these: 'Num',
'num'?
at <tmp>:1
------> <BOL>⏏$num = 42; say "You thought of number ",
lucs m: my $num = 42; say "You thought of number ", $num; 19:42
camelia You thought of number 42
lucs volare: I suggest you join the raku-beginner channel instead of this one. 19:43
volare it worked thank you
lucs You're welcome, even more welcome in raku-beginner :-) 19:44
volare magical.ddns.net/software/listings...ads/perl5/ 19:45
the perl6 program is there
lucs Wow, 1-space shiftwidth. Where are my glasses! 19:46
volare lucs: how do i join the developer community? 19:48
lucs Not sure, someone else can answer. 19:49
volare thank you lucs 19:53
lucs Sure thing.
(Now I have that song stuck in my head :-) )
volare lol 19:56
tonyo 2020 is a pretty old version volare 20:02
volare i will look into getting the brew
thank you 20:04
20:08 tg57 joined
rf I didn't realise how easily you can express quicksort with Raku lol 20:10
rosettacode.org/wiki/Sorting_algor...ksort#Raku
volare lucs: you should watch the one with penolope cruz 20:14
lucs I just watched the original, Domenico Modugno, on Ed Sullivan. 20:15
The song was a big hit when I was a kid (yeah, I'm pretty old.) 20:16
I'll look at the one with MsCruz.
volare alrighty
20:18 jpn joined
lucs Oh, she's "just" dancing ;-) 20:19
volare :^)
Nemokosch I don't like that quicksort solution, to be honest. It tries to be very generic but kinda ruins it by using flat 20:20
it would be better to make slips
volare lucs: listen to Pianoholic 2022 on Spotify or Deezer 20:24
20:49 volare left 20:58 tg57 left 21:11 jpn left 21:14 dustinm` left 21:20 jgaz left 21:22 sena_kun left 21:28 jpn joined 21:34 QhpAptyj9hj0RQwM left 21:41 dustinm` joined 22:03 jpn left
tbrowder__ m: say (7 mod 3) 22:11
camelia 1
tbrowder__ m: say (8 div 7) 22:12
camelia 1
tbrowder__ m: say so (8 mod 7) 22:28
camelia True
22:58 tejr joined
tonyo tbrowder__: your usaf site makes me a bit nostalgic 23:02
23:12 derpydoo joined 23:23 jpn joined 23:29 jpn left