Raku Conference Day 2 on Youtube: www.youtube.com/watch?v=BL9-XdC9WYI 🦋 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 14 August 2022.
atweiden-air_ this is my understanding of raku error handling. feedback would be appreciated 01:27
gist.github.com/atweiden/e59cf9993...08a823dffd
xinming tonyo: it's an cro app 03:25
web interface written in cro
lizmat japhb: version 0.9 fixes the issues, afaics 09:26
tbrowder note that skaji has a pending chg to mi6 that allows users to mod the dist,ini file to build as many separate docs as desired. 13:19
*dist.ini
lizmat weekly: www.reddit.com/r/rakulang/comments...on_advice/ Seeking TUI creation advice 13:41
notable6 lizmat, Noted! (weekly)
lizmat weekly: www.reddit.com/r/rakulang/comments...ercismorg/ reworked Raku exercises on exercism.org 13:42
notable6 lizmat, Noted! (weekly)
[Coke] wonders if he should stick with zsh for his shell as the new mac recommends. 16:26
[Coke] has been on bash as long as he can remember. 16:27
stevied i use zsh. not much different than bash. and you can still use bash scripts
only think that bites me regularly is you have to be sure to quote patterns with globs 16:29
other than that, I don't notice a difference between zsh and bash
Nemokosch positive: using Raku on Mac should never be an issue because it's... completely out-tested 16:33
negative: using Mac is as far from the Raku ideals as possible within the software industry
lizmat [Coke]: I hardly noticed a difference between zsh and bash, in the way that *I* use it :-) 16:48
xinming tonyo: sorry, laptop out of power 16:53
tonyo xinming: i'd probably put a wrapper around the DB to catch a connection problem and retry. if you wanted it to not be a bad xp then you could set a timer to try to reconnect 16:54
xinming tonyo: the reason I don't like the wrapper thing is, It'll add check logic each time a call to database is issued. 17:05
I just thought that I can try to catch the exception, and do reconnect 17:06
will try that
tonyo the wrapper should just catch the exception, i mean 17:18
and then retry once and return the results or the error
tonyo using Supply.interval you could set up a check to autoreconnect 17:20
[Coke] has been on bash as long as he can remember. 19:29
Xliff m: "a/b/c/d".IO.dirname.^name.say 19:37
camelia Str
Xliff Is there any way to get the directory of an IO::Path as an IO path? 19:38
Otherways to add a directory to an IO path, I have to roundtrip IO::Path -> Str -> IO::Path
m: "a/b/c/d".IO.parent.^name.say 19:40
camelia IO::Path
Xliff m: "a/b/c/d".IO.parent.say
camelia "a/b/c".IO
Xliff Looks like we have a winner! 19:41
japhb Xliff: BTW, there is a .sibling method if that's what you really want (to find a path "next to" an existing one) -- many people end up doing .parent.child, but that's just extra steps. 19:45
tonyo m: 'a/b/c/d'.IO.sibling.^name.say 19:46
camelia Too few positionals passed; expected 2 arguments but got 1
in block <unit> at <tmp> line 1
19:47
tonyo m: my \a = 'a/b/c/d'; say a.IO.sibling(a).^name
camelia IO::Path
tonyo m: my \a = 'a/b/c/d'; say a.IO.sibling(a).Str
camelia a/b/c/a/b/c/d
japhb m: 'a/b/c/d'.IO.sibling('e') 19:48
tonyo m: my \a = 'a/b/c/d'; say a.IO.sibling('.').resolve.Str
camelia ( no output )
/home/camelia/a/b/c
japhb m: 'a/b/c/d'.IO.sibling('e').say
camelia "a/b/c/e".IO
tonyo that looks wrong..adding a '.' shouldn't cause it to back up one
oh, i see
m: my \a = 'a/b/c/d'; say a.IO.sibling(a.parts[*-1]).resolve.Str 19:49
camelia No such method 'parts' for invocant of type 'Str'. Did you mean any of
these: 'pairs', 'path'?
in block <unit> at <tmp> line 1
tonyo m: my \a = 'a/b/c/d'.IO; say a.sibling(a.parts[*-1]).resolve.Str
camelia /home/camelia/a/b/c/volume
tonyo m: my \a = 'a/b/c/d'.IO; say a.sibling(a.parts[*-1]).resolve.Str 19:50
camelia /home/camelia/a/b/c/volume
tonyo hrh
Xliff OK. Is there a way I can get the location of a compunit at compile time? 20:10
lizmat define location ? 20:13
Xliff It's file 20:15
I'm currently using: ::?CLASS.^can('init').head.file.split(' ').head.IO. 20:16
Where 'init' is a method in the class.
But I am getting 'gen/moar' from somewhere and I don't know why. Compile time artefact?
lizmat raku.land/cpan:NINE/Inline::Perl5 # release 0.60, nine++ 21:59
and I can run the Inline::Perl5 integration tests again! :-) 22:04
lizmat tonyo: I've just uploaded rak:ver<0.0.14> to fez about 30 mins ago, and it still doesn't show 22:38
tonyo ugexe feels like something is stuck ? 22:39
Are you sure you want to upload rak-0.0.14.tar.gz to Zef ecosystem? (y/N) y
Executing /Users/liz/Github/rakudo/install/bin/rakudo -e use Fez::CLI --file=rak-0.0.14.tar.gz upload
>>= Hey! You did it! Your dist will be indexed shortly.
It will appear in 360.zef.pm/
but it isn't listed there :-( 22:41