🦋 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.
00:05 hungrydonkey joined 00:17 pilne joined 00:33 armin_ joined, armin_ left 01:17 mowotter left 01:42 Itaipu left 01:45 Itaipu joined 01:54 Redfoxmoon left 01:58 Redfoxmoon joined 02:14 tejr left 02:16 tejr joined 02:26 AlexDani` joined 02:28 AlexDaniel left 02:29 pilne left 03:06 holli__ joined 03:07 Doc_Holliwould left 03:48 kst joined 04:13 AlexDani` is now known as AlexDaniel, AlexDaniel left, AlexDaniel joined 04:21 brtastic joined 04:33 aborazmeh left 04:38 farcas1982regreg joined 04:40 Redfoxmoon left, Redfoxmoon joined 04:48 perlmaros joined 04:49 KindOne left 04:57 KindOne joined 05:27 silug left 05:31 silug joined 05:35 rindolf joined 05:40 molaf joined 05:50 hungryd85 joined 05:53 hungrydonkey left 05:55 hungrydonkey joined 05:57 brtastic left, hungryd85 left 06:25 hungryd23 joined 06:28 hungrydonkey left 06:36 hungrydonkey joined 06:39 hungryd23 left 06:55 kensanata joined 07:05 brtastic joined 07:06 brtastic left 07:07 Kaiepi left 07:08 Kaiepi joined 07:09 farcas1982regreg left 07:20 abraxxa1 left 07:22 brtastic joined 07:26 andrzejku joined 07:27 hungryd47 joined, hungrydonkey left 07:29 abraxxa joined 07:33 abraxxa left 07:34 abraxxa joined 07:40 dakkar joined, patrickb joined 07:52 pecastro joined
samebchase- I am trying to destructure, i.e. unpack a hash in a `my declaration`, but facing some issues with it. Given `my %hash = 'one' => 1, 'two' => 2;`, why doesn't `my %h2 (:one($o), :two($t)) = %hash;` work if I want to access the value of the 'one' key with the variable `$o`. 08:08
could someone point me to the documentation where something like this can be achieved. so far I have not been able to find anything 08:10
I am able to destructure function arguments like this: `sub hs(%h (:one($o), :two($t))) { say $o, $t; }`, but the same syntax is not working with `my`. 08:13
MasterDuke samebchase: i don't know the answer, but i assume you've looked at docs.raku.org/type/Signature#Destr..._arguments ? 08:16
samebchase- I've been able to get it working with functions, but can't seem to make it work with `my` declarations. 08:22
08:23 rindolf left 08:27 sena_kun joined, rindolf joined 08:56 Altai-man_ joined 08:58 sena_kun left 08:59 Geth left, Geth joined 09:10 AlexDaniel` joined 09:13 farcas1982regreg joined 09:24 tejr left, tejr joined 09:28 tejr left 09:31 tejr joined 09:36 unclechu joined, awwaiid joined, Demos[m] joined, wildtrees[m] joined, BlackChaosNL[m] joined, wamba[m] joined, matiaslina joined, uzl[m] joined, CIAvash joined
jnthn samebchase-: You need to use the binding operator (:=) to destructure, not the assignment operator. 09:38
(Signatures are also bound.)
09:42 molaf left 09:46 farcas1982regreg left 10:09 lizmat_ joined 10:11 lizmat left
samebchase- thanks jnthn, I'll try this out! 10:15
10:17 cibs joined 10:22 holli__ left 10:23 lizmat_ is now known as lizmat 10:57 sena_kun joined 10:58 Altai-man_ left 11:01 molaf joined 12:08 evalable6 left, linkable6 left 12:09 evalable6 joined 12:10 linkable6 joined 12:22 Black_Ribbon left
dakkar p6: sub foo(:a(:$b!)) {} 12:29
camelia 5===SORRY!5=== Error while compiling <tmp>
Unable to parse named parameter; couldn't find right parenthesis
at <tmp>:1
------> 3sub foo(:a(:$b7⏏5!)) {}
dakkar should it be possible to declare aliases for required named parameters?
p6: sub foo(:a(:$b)) {}
camelia ( no output )
jnthn p6: sub foo(:a(:$b)!) {} 12:30
camelia ( no output )
jnthn It's the parameter that's required, not the variable it happens to be bound in to
dakkar ah! 12:31
the documentation doesn't quite explain that, I think 12:33
ok, it's shown in an example about variable-less named arguments… but I don't think it's actually said 12:34
12:34 andrzejku left
dakkar I'm looking at docs.raku.org/type/Signature#Argument_aliases 12:34
12:54 sftp joined 12:56 Altai-man_ joined 12:58 sena_kun left 13:09 andrzejku joined 13:30 bdju joined
brtastic How long do you think it takes to learn raku above the level raku's equivalent of baby perl? I know the language is vast 13:33
moritz above baby raku: pretty quickly :D 13:38
jnthn Depends if you count in the standard library or just the language, really. 13:41
timotimo there's a part of the standard library you really can't get much done without :P 13:43
i mean, Str is in there, and Int, and Array :)
13:47 aborazmeh joined, aborazmeh left, aborazmeh joined
brtastic with just enough standard library to get most out of the language features, I'm not yet familiar with raku more than creating a lazy array with fibonacci sequence up to infinity but I feel like that's one of the features that can really make the difference 13:52
moritz it can 13:54
and you can spend weeks or months learning grammars really well if you're into text parsing
(though if you're really into parsing, you might learn them a bit faster) 13:55
but if you're not interested in that area, no need to learn that :D
14:02 patrickb left 14:14 patrickb joined 14:41 sjm_uk joined 14:45 brtastic left 14:57 sena_kun joined 14:58 Altai-man_ left 14:59 farcas1982regreg joined, gabiruh joined 15:14 aborazmeh left 15:22 rindolf left 15:27 rindolf joined
Geth doc: 3334cdcf11 | Coke++ | doc/Type/IO/Handle.pod6
temporarily skip test for issue #3351
15:28
linkable6 Link: docs.raku.org/type/IO::Handle
DOC#3351 [open]: github.com/Raku/doc/issues/3351 xt/examples-compilation.t doc/Type/IO/Handle.pod6 failure
15:28 farcas1982regreg left 15:33 gabiruh left, farcas1982regreg joined 15:35 Benett left, Benett joined
Geth doc: 8a6d6801ce | Coke++ | doc/Type/IO/Handle.pod6
Setup correct preamble for method definition

Fixes #3351
15:45
linkable6 Link: docs.raku.org/type/IO::Handle
DOC#3351 [closed]: github.com/Raku/doc/issues/3351 [xt] xt/examples-compilation.t doc/Type/IO/Handle.pod6 failure
Geth doc: 622c4a3a58 | Coke++ | writing-docs/EXAMPLES.md
Add note related to issue #3351
15:51
linkable6 DOC#3351 [closed]: github.com/Raku/doc/issues/3351 [xt] xt/examples-compilation.t doc/Type/IO/Handle.pod6 failure
15:53 mowcat joined 15:54 andrzejku left, chloekek joined 16:03 holli__ joined
Geth doc: Kaiepi++ created pull request #3352:
Document Metamodel::TypePretense, Metamodel::MethodDelegation, and Metamodel::CoercionHOW
16:09
16:15 molaf left 16:27 cognomin_ joined 16:30 cognominal left 16:56 Altai-man_ joined 16:58 sena_kun left 17:07 hungryd47 left 17:15 dakkar left 17:17 andrzejku joined
Geth doc: 89e433dce5 | (JJ Merelo)++ | doc/Type/Str.pod6
Adds use of MINUS SIGN in Unicode for val refs #2632
17:22
doc: a5861ec59c | (JJ Merelo)++ | doc/Type/Str.pod6
Add all different versions of val #2632
doc: d706b837c6 | (JJ Merelo)++ | doc/Type/Str.pod6
753c34ff70 | Coke++ | 2 files

  (sort word file)
17:22 Geth left
linkable6 Link: docs.raku.org/type/Str 17:23
DOC#2632 [open]: github.com/Raku/doc/issues/2632 [Hacktoberfest][RFE][big][docs][good first issue][help wanted][new][⚠ Top Priority ⚠] Checklist for 6.d
17:24 ChanServ sets mode: +o AlexDaniel
AlexDaniel “<Sigyn> The ban on geth has been lifted” 17:24
so, fixed
17:24 Geth joined, ChanServ sets mode: -o AlexDaniel 17:32 brtastic joined 17:34 kensanata left 17:36 andrzejku left
xinming How can we get the source file path for Specific module? 17:49
lizmat is the module installed ? 17:58
xinming Yes 17:59
In old perl, We cal use `perldoc -l Module::Name` for the module path. 18:00
p6doc command doesn't have this option.
wether p6doc command have option to get the path
lizmat if a module is installed, there is really no such thing as a "module path" 18:03
the $*REPO knows where it lives, and will provide it when needed
what are you trying to achieve?
18:07 patrickb left 18:27 cognominal joined 18:30 cognomin_ left 18:35 squashable6 left 18:38 squashable6 joined 18:53 sjm_uk left 18:55 Sgeo__ left 18:56 sena_kun joined 18:58 Altai-man_ left 19:07 chloekek left 19:11 Sgeo joined 19:15 ellipsis left 19:18 dotdotdot joined 19:27 ryn1x joined 19:28 abraxxa left
ryn1x what is a good way to make sure Proc::Async is open for write? I currently save the promise from start and then await $promise.ready, but i still get runtime crashes occasionally that the process is not open for write. A small sleep fixes everything, but I don't like that.... 19:29
19:30 abraxxa joined 19:43 holyghost left, holyghost joined 19:50 molaf joined 20:01 melezhik joined
melezhik How can I do html escaping in Template::Mojo template? 20:01
lizmat tadzik might know 20:02
:-)
tbrowder hi, folks 20:12
timotimo don't template languages tend to do escaping by default and need unescaping to be made explicitly 20:14
tbrowder i'm getting travis failures with my Excel module which requires Inline::Perl5. the inline::perl5 shows installing ok in tony-o's nightly but it fails the inline::p5 test
Grinnz are you talking about in perl melezhik?
melezhik Nope. About Raku 20:16
github.com/tadzik/Template-Mojo
20:16 finsternis left
tadzik I've no idea btw, I don't even remember when I wrote it 20:17
20:17 finsternis joined 20:18 KindOne left
lizmat tbrowder: nine did some extensive work in Inline::Perl5 recently, maybe that could be the reason ? 20:18
melezhik I search thought the code and could not find any examples for that
tbrowder .tell tony-o yr nightly is failing when installing Inline::Perl5. there is a warning during compilation and then a failure with testing. i don't have a problem installing locally on debian but i don't have access to an ubuntu box 20:19
tellable6 tbrowder, I'll pass your message to tony-o
Grinnz not that I personally mind, but it would probably be better if that module did not use the Mojo name implying some relationship to the mojolicious team... maybe MojoLike
melezhik yeah, I am not the author
tbrowder lizmat: i saw that, but i don't have any prob locally. but as you probably just saw, tony-o's ubuntu nightly show a compiler warning i can't dup on debian buster 20:21
20:21 KindOne joined
Grinnz additionally I don't want people showing up in #mojo asking about that module ;) 20:21
tbrowder anyone have ubuntu handy to test upinstall inline::perl5?
*zef install 20:22
lizmat Grinnz: it's a little late to complain about a module that's been around for 7 years now 20:23
melezhik tbrowder: rakudist has centos/debian/alpine if it helps
Grinnz I'm not complaining, just advising
melezhik it's quite easy to bootstrap Ubuntu container as well
lizmat actually 8 years old tomorrow
melezhik yeah, the time I started to use Bailador it was a default templating system for it 20:24
20:25 caterfxo left, p6steve joined 20:26 caterfxo joined, pilne joined
tbrowder mehezhik: thnx, but i don't have chops for vm install except through digitalocean, but i am working on my own docker version like tony-o's 20:26
slooowly
p6steve hi i have three related modules - use'ing them in one sequence works, the other segfaults 20:27
how cn i get started in debugging the segfault route - eg stacktrace?
melezhik tbrowder: you don't need to install anything, rakudist is a service ready to use 20:28
lizmat p6steve: by the time you segfault, it's too late to create a backtrace, at least at the HLL level
but timotimo might have some ideas, p6steve
melezhik repo.westus.cloudapp.azure.com/rakudist
p6steve This is perl 5, version 30, subversion 2 (v5.30.2) built for darwin-thread-multi-2level on macos 10.15.4
melezhik give me 10 minutes and I'll bootstrap ubuntu for you
tbrowder melezhik: ah, that was in lizmat's last weekly! i've already used it! 20:29
but not for Ec
Excel
melezhik yeah, 10-15 minutes and you'll get ubuntu there 20:30
timotimo it's sometimes possible to get a stacktrace at the point of a segfault
melezhik I have probably already run tests for this module
timotimo p6steve: please run perl6-gdb-m instead of perl6 (or raku-gdb-m instead of raku)
tbrowder p6steve: have you tried isolating the use of the modules into their using scopes? 20:31
20:31 cgfbee left
tbrowder that worked for me with conflicting symbols 20:31
20:32 mowcat left
p6steve melezhik rakudist is on my radar for wider hardening - would like to get it working all ways on my machine first 20:33
timotimo: will try perl6-gdb-m next and report back 20:34
melezhik p6steve: sure
timotimo at the point of the crash, go "up" until the frame it shows has a "tc=0x12341234" in the line 20:35
rather than one that's "optimized out" or something
p6steve tbrowder: i have three layers Physics::ShortMeasure uses Physics::Measure and Physics::Unit, Physics::Measure uses Physics::Unit
20:36 dotdotdot left, dotdotdot joined
p6steve tbrowder: and the script uses Physics::Measure and Physics::ShortMeasure 20:36
tbrowder: from the base - each module works fine - so Physics::Unit has solo test, then Physics::Measure tests at this level 20:37
trowder: so, my question is "what do you mean by isolating into using scopes"?? 20:38
lizmat p6steve: use statements are lexical 20:39
tbrowder hm, maybe segregate the chunks a bit more so no overlap, have a physics::longmeasure and no physics::measure..l
lizmat m: { use Test }; ok 42 20:40
camelia 5===SORRY!5=== Error while compiling <tmp>
Undeclared routine:
ok used at line 1
tbrowder lizmat: instead of putting use statements at the top of the using file of a module, put the use statements inside the using sub 20:41
p6steve lizmat: you are a genius! 20:42
tbrowder sorry, lizmat...
p6steve tbrowder: oh - just realized you are both proposig same thing - I am newly hopeful!! 20:43
20:45 dotdotdot left
tbrowder good deal! 20:47
melezhik so I found workaround by using HTML::Escape gets called right inside template 20:48
sooner or latter I am going to migrate to cro and it's template system
20:50 Black_Ribbon joined
tbrowder melezhik: you will need build essentials and libperl-dev for the debian. 20:51
melezhik I know, already in progress ;-)
this is patch system that allows to specify any unique requirements for any Raku module. For example - github.com/melezhik/RakuDist/blob/...parrowfile 20:52
20:52 dotdotdot joined
melezhik for Excel module - github.com/melezhik/RakuDist/blob/...parrowfile 20:53
20:53 dg left, Bucciarati joined
melezhik cc tbrowder: 20:53
tbrowder: Excell module successful install on Rakudist/Ubuntu - repo.westus.cloudapp.azure.com/raku...279548.txt 20:54
tbrowder excellent! you are the sparrowdo author and i am going to try it out someday soon 20:55
melezhik yes, I am :-) ... Sure
lizmat afk&
20:55 dg joined 20:56 Altai-man_ joined
tbrowder melezhik: thnx for the test. now i can file a better bug report with tony-o 20:56
melezhik yeah ... you're welcome
20:58 Kaiepi left, sena_kun left, Kaiepi joined 21:01 dotdotdot left, dotdotdot joined 21:02 Celelibi joined
Geth ¦ problem-solving: Kaiepi assigned to jnthn Issue A better MOP API for wrapper kinds could exist github.com/Raku/problem-solving/issues/180 21:03
21:09 p6steve left 21:20 gordonfish joined 21:33 dotdotdot left 21:37 brtastic left 21:52 p6steve joined 21:56 dotdotdot joined, p6steve left 22:00 aborazmeh joined, aborazmeh left, aborazmeh joined 22:04 rindolf left
Kaiepi releasable6, status 22:13
releasable6 Kaiepi, Next release will happen when it's ready. 3 blockers. 166 out of 369 commits logged (⚠ 3 warnings)
Kaiepi, Details: gist.github.com/ada3012c030fb50210...28c5e528e6
22:16 melezhik left 22:22 ryn1x left 22:28 p6steve joined, oneeggeach joined 22:32 p6steve left 22:38 aborazmeh_ joined, aborazmeh_ left, aborazmeh_ joined, aborazmeh left, aborazmeh_ is now known as aborazmeh 22:40 Kaiepi left 22:47 aborazmeh left 22:49 Altai-man_ left 22:53 pecastro left, dotdotdot left 22:57 dotdotdot joined 23:05 skyl4rk left 23:09 dotdotdot left, skyl4rk joined 23:12 dotdotdot joined 23:15 Kaiepi joined 23:17 oneeggeach left, oneeggeach joined, oneeggeach left 23:18 oneeggeach joined, oneeggeach left 23:23 devmikey joined 23:24 dotdotdot left 23:25 dotdotdot joined 23:44 guifa2 joined 23:45 holli__ left 23:53 guifa2 left 23:54 guifa2 joined