🦋 Welcome to the former MAIN() IRC channel of the Raku Programming Language (raku.org). This channel has moved to Libera (irc.libera.chat #raku)
Set by lizmat on 23 May 2021.
Geth doc: 163a4945e2 | Coke++ | doc/Language/operators.pod6
whitespace
00:27
linkable6 Link: docs.raku.org/language/operators
ToddAndMargo Hi All! Is there way to get the full path of my current working directory? `$*SPEC.curdir` just returns a single dot `.` 05:09
Figured it out. It is $*CWD 05:11
bye bye
moon-child see ya 05:12
Geth ¦ doc: tbrowder self-assigned Need a tutorial for Linux users wanting to use Raku on Windows github.com/Raku/doc/issues/3913 09:30
tamarro why in Raku the logic behind the "current working directory" is duplicated and abstracted from the real meaning? Isn't this a flaw? 10:06
gfldex tamarro: we don't call fork anymore. So we have to provide the ENV ourself.
tamarro gfldex: this looks very confusing to me pastebin.com/LANJJRa9 10:08
I wonder if Java does that 10:09
probably not
ok, checked, java does not support chdir 10:10
Ruby raises a warning if chdir is called with multiple threads 10:11
I think the logic behind Raku approach is sane, just another case of DIHWIDI 10:12
action at a distance is never cool 10:13
m: use NativeCall; sub execve(Str, int32, int32) is native { * }; sub fork(--> int32) is native { * }; execve("/bin/ls", 0, 0) if fork(); say "here" 10:19
camelia (signal ABRT)here
A NULL argv[0] was passed through an exec system call.
tamarro works on macos
lizmat In Raku each thread has its own "current directory" in $*CWD 10:20
tamarro thanks lizmat, I figured out, makes sense 10:21
basically the unix semantic doesn't play well with multithreaded programs. We knew that
so either you do like java and you disable chdir
or you do like Raku and you introduce the concept of dynamic variables 10:22
tamarro multithreading is a concept loaded with many different meaning.. If I understand correctly in Raku this is mostly the Rx-model.. I wonder if multiprocessing really had inherent handicaps to handle this model 10:32
well.. perl is quite poor in the area so probably, yes 10:33
lizmat tamarro: what do you understand by "the Rx -model" ? 10:35
tamarro react ,Channels , Promises, Supplies 10:36
lizmat ah...I guess that's a yes then :-)
tamarro I find it funny that all this somehow coincide to unix IPC primitives. But somehow there is not a single high level language that uses them to the full power 10:38
lizmat how would you rate Raku in that respect ? 10:39
tamarro I love it
tbrowder m: my $s="\"; say $s 10:53
camelia 5===SORRY!5=== Error while compiling <tmp>
Cannot use variable $s in declaration to initialize itself
at <tmp>:1
------> 3my $s="\"; say $7⏏5s
expecting any of:
double quotes
term
tbrowder m: my $s='\\'; say $s 10:55
camelia \
tbrowder m: my $s='\\'; say $s ~~ /'\\'/; 10:56
camelia 「\」
tbrowder my $s = '\\\n'; say so $s ~~ /'\\$/ 10:57
m: my $s = '\\\n'; say so $s ~~ /'\\'$/ 10:58
camelia False
tbrowder m: my $s='\\'; $s ~~ s/'\\'//; 11:00
camelia ( no output )
dpk i'm moderately surprised that it complains about the recursive definition first, rather than the unterminated string literal
tbrowder m: my $s='\\ foo'; $s~~ s/'\\'//; say "$s" 11:02
camelia foo
Geth raku.org: 48e70a961c | (Sizhe Zhao)++ | source/index.html
Change .perl to .raku in examples
13:14
raku.org: 14d82fa148 | (Sizhe Zhao)++ (committed using GitHub Web editor) | source/index.html
Merge pull request #147 from Prince213/perl-to-raku

Change .perl to .raku in examples
gfldex lolibloggedalittle: gfldex.wordpress.com/2021/07/11/co...-addition/ 14:35
Geth problem-solving/clarify-readme: a91a274442 | (Daniel Sockwell)++ (committed using GitHub Web editor) | README.md
Resolve remaining comments

The remaining comments were mostly nits; this commit accepts them all.
14:55
Geth problem-solving/clarify-readme: e84670523f | (Juan Julián Merelo Guervós)++ (committed using GitHub Web editor) | README.md
:pencil2:
15:03
melezhik . 17:28
melezhik .tell tonyo fez works for me as a charm, thanks a lot for your work - gist.github.com/melezhik/7cda94dc4...4d64c3962a 18:07
tellable6 melezhik, I'll pass your message to tonyo