18 Mar 2024
Raku eval 「foo」 16:12
librasteve dutchie: you can also employ an Array of Str as a Regex like this 16:13
m: my @a = <f fo foo>; say "foobar" ~~ /@a/; 16:14
evalable6 「foo」
Raku eval 「foo」
librasteve ^^ or like this (I just discovered)
When an array variable is interpolated into a regex, the regex engine handles it like a | alternative of the regex elements docs.raku.org/syntax/Regex%20Interpolation 16:15
Hello18 HEy everyone 16:24
Im excited to code in this wonderful language
Does anyone here dislike. Java?
antononcube @Hello18 Hmm... I am not confessing any like or dislike of mine for any programming language. 16:57
Except Python. Python sucks!
Voldenet there's plenty of languages I dislike, matlab, python, vb.net 17:07
extremely foreign syntax is usually the reason 17:08
antononcube @Voldenet In the order of your list: 👍, 👍, ¯_(ツ)_/¯ 17:11
lizmat and yet another Rakudo Weekly News hits the Net: rakudoweekly.blog/2024/03/18/2024-...pen-comma/ 18:40
librasteve Python and perl are actually pretty much exactly the same - analogous to the Judean People's Liberation front versus the People's Liberation front of Judea. However the languages are optimised for a slightly different purpose. Python helps you to think more like the computer does, whereas perl helps the computer to think more like you do. from news.ycombinator.com/item?id=39731960#39734909 20:55
antononcube Sounds like some sort of and an excuse for the Py-curious to (be enticed to) work with Python. 21:12
Deep into Python is the "aPOO" principle: > "There should be one– and preferably only one –obvious way to do it” (TSBEO-APOO-OWTDI) 21:13
(Very different from TIMTOWTDI ...) 21:14
ptc crazy thing I just noticed: there are two File::Zip distributions from two different authors (see raku.land/?q=File%3A%3AZip) 21:28
how is it possible to choose a particular one? 21:29
if I just use `zef install File::Zip` I get the dist I don't want :-/
is it possible to tell zef "don't use that one"? 21:30
is there maybe some extra bit of metainfo that I can append to the dist name to the `zef install` call to get the right thing?
antononcube @ptc Yes, use "ver<0.1.1>" and/or "auth:<zef:someone>". 21:33
@ptc For example: File::Zip:ver<0.1.2>:auth<gitlab:tyil>:api<0> 21:34
gfldex ptc: have a look at `zef search File::Zip`. It will show you the full names of all available distributions of that name. 21:35
ptc gfldex: yup, I tried that. The dist I want is the one without all of the extra metadata, i.e. the one without a version number :-/ Consequently, it's not clear what to give to zef as just `File::Zip` picks File::Zip:ver<0.1.2>:auth<gitlab:tyil>:api<0>, which turns out to be the one I don't want 21:39
I'll give the "auth:<zef:someone>" suggestion a go and see if that works
gfldex ptc: that's a zef bug. The proper name is in "raw.githubusercontent.com/Raku/REA...ETA.json". 21:43
ptc unfortunately, no luck: zef install 'File::Zip:auth<github:azawawi>' │Test Summary Report
===> Searching for: File::Zip:auth<github:azawawi> │-------------------
No candidates found matching identity: File::Zip:auth<github:azawawi> 21:44
using 'File::Zip:auth<zef:azawawi>' also doesn't work :-/
gfldex: the real issue is that I want to use Selenium::WebDriver and that dist uses the File::Zip that I'm after. 21:46
gfldex zef can't find any distribution that got ":ver<*>" in its name.
ptc maybe I just need to look for a different solution 21:47
gfldex: yeah, that's what I thought. Maybe I need to push a patch to fix that.
thanks for your help :-) 21:48
gfldex please file an issue at github.com/ugexe/zef/issues
ptc I'll give that a go tomorrow 21:57
It seems I'm not the first to have spotted this issue: github.com/azawawi/raku-selenium-w.../issues/27
librasteve zef -v install github.com/azawawi/perl6-file-zip.git should do the trick (per the issue) ... are you on macOS? if so I am curious to hear if/how you succeed in the light of my issue github.com/azawawi/raku-selenium-w.../issues/28 22:01
ptc: zef -v install github.com/azawawi/perl6-file-zip.git should do the trick (per the issue) ... are you on macOS? if so I am curious to hear if/how you succeed in the light of my issue github.com/azawawi/raku-selenium-w.../issues/28 22:02
ptc librasteve: no, I'm on Debian. I cloned the git repo and used `zef install .` (which is basically the same as using the URL, I guess). Am now strugging with Selenium::Webdriver. Perhaps I should go to bed... ;-) 22:10
_grenzo @librasteve & ptc: zef install 'File::Zip:ver<99>'would install the one you want. Basically any number except that of the other distro 22:22
19 Mar 2024
frost m: my @a=[^120]; @a.map(*.say) 09:46
camelia 0
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
5…
Voldenet I wouldn't count on side effects in .map 10:16
with .race in the iterator it could cause some serious confusion 10:18
m: my @a=[^120]; gather for @a { .say.take } 10:19
camelia 0
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
5…