🦋 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
guifa Nemokosch: i didnt entirely, which is why I asked for a bit more information. And they just gave it to me! 00:25
00:51 squashable6 left 00:52 squashable6 joined 01:18 guifa_ joined
tbrowder__ revisiting @arr: the 3 needs to be 4 because we want to skip the last 3 lines so we stop iterating at the 4th line from the end 01:31
m: my @arr = 5, 4, 3, 2, 1; say $_ for @arr[^(*-4)] 01:33
camelia 5
tbrowder__ arg my bad, i have to check on my host again... 01:34
i had an empty line at the end, ugh 01:42
01:58 guifa_ left 02:23 rf left
guifa Maybe do a .lines.grep(?*) to clear your empty lines first? 02:40
03:23 linkable6 left, evalable6 left, linkable6 joined 03:25 evalable6 joined 04:25 sourceable6 left, linkable6 left, reportable6 left, committable6 left, nativecallable6 left, greppable6 left, tellable6 left, statisfiable6 left, benchable6 left, bisectable6 left, evalable6 left, squashable6 left, releasable6 left, shareable6 left, statisfiable6 joined, benchable6 joined, greppable6 joined 04:26 sourceable6 joined, reportable6 joined, shareable6 joined, tellable6 joined, linkable6 joined 04:27 bisectable6 joined, releasable6 joined, nativecallable6 joined, committable6 joined 04:28 squashable6 joined, evalable6 joined 05:26 siavash joined 05:27 jpn joined 05:32 jpn left 05:55 ilogger2 left, ilogger2 joined 06:00 reportable6 left 06:01 reportable6 joined 06:38 abraxxa joined 06:39 abraxxa1 joined 06:42 abraxxa left 06:53 ab5tract joined 07:04 abraxxa1 is now known as abraxxa 07:17 jpn joined 07:21 jpn left 07:22 Sgeo left 07:46 jast left, jast joined 08:13 dakkar joined
lizmat m: say (^10).head(*-3) 08:13
camelia (0 1 2 3 4 5 6)
lizmat tbrowder_ ^^ 08:14
08:20 tea3po joined 08:23 teatwo left 08:48 jpn joined 09:58 linkable6 left, evalable6 left 09:59 evalable6 joined
nemokosch This was the first thing 😛 10:00
10:00 linkable6 joined 10:04 jpn left 10:06 jpn joined 10:24 drakonis left 10:25 drakonis joined 10:48 abraxxa left 10:52 jpn left 11:02 jpn joined 11:16 Vyrus left 11:20 Vyrus joined 11:32 abraxxa joined 11:46 moritz left, moritz joined 11:55 jpn left 12:00 reportable6 left 12:03 reportable6 joined 12:10 jpn joined 12:14 ab5tract left 12:15 abraxxa left 12:23 abraxxa joined
lizmat clickbaits rakudoweekly.blog/2023/09/04/2023-...september/ 12:32
tbrowder__ lizmat++ cool! 12:41
cleaner, clearer, but more chars than antononcube’s solution by my count (8 vs 10 12:46
12:50 jjido joined 12:57 siavash left 13:25 jpn_ joined 13:28 jpn left 13:31 jjido left 13:34 jgaz joined 13:46 xinming left 13:49 xinming joined 14:00 jpn_ left
Geth setup-raku/node20: 0c9a1896d5 | (Shoichi Kaji)++ | 6 files
setup-raku: skaji++ created pull request #29:
14:06 ab5tract joined, jpn joined 14:10 ab5tract left 14:11 ab5tract joined
vendethiel The point is the statement is too vague to begin with 14:17
nemokosch I wouldn't say it's "too" vague 14:30
it does have a clear point
the approach Rust took is basically "easy, we just won't allow you to make mistakes", of course in this context the question isn't if your code is safe but if you can even do all the things required 14:32
and it seems like there are people who say "no" to that question. I wouldn't know but it is indeed suspicious 14:35
14:35 ab5tract left
tonyo m: say (^10)[0..*-3] 14:37
camelia (0 1 2 3 4 5 6 7)
tonyo m: say (^10)[0..^*-3]
camelia (0 1 2 3 4 5 6)
tbrowder__ tony-o: nice try, 9 chars 14:44
14:46 jpn_ joined, skaji_ left, skaji_ joined 14:48 jpn left 14:55 observant_meat joined
[Coke] m: say (^10)[^(*-3)] 14:58
camelia (0 1 2 3 4 5 6)
tbrowder__ antononcube still the winner 14:59
15:30 jpn_ left 15:49 jjido joined 15:52 abraxxa left, hythm joined 16:03 buffet left, jjido left
tonyo what was anton's? 16:25
16:26 buffet joined
[Coke] I'm also not sure how you're getting 9 characters there. 16:26
(I guess we could use unicode for the .. and save a char, but not a byte, btw) 16:27
16:43 dakkar left 17:05 codesections joined 17:17 jpn joined
pelevesque Is there a way to call Raku/Rakudo from node.js? I'm using a language that has a node.js integration inside of it, but not raku, so I'm trying to figure out how I could run a raku script and bring the results inside node.js 17:17
[Coke] There is a JS backend for rakudo, but it is not actively maintained. 17:21
pelevesque I heard about that ya... I figured it would be too rudimentary since it was kind of abandonned a long time ago no? I could be wrong. 17:23
nemokosch you are basically right 17:25
frankly, the simplest thing would be to just invoke the process 17:26
now that there are unix domain sockets, you can do some async IPC hopefully
it's kind of a bleeding edge thing but I don't think it will magically mature without users
pelevesque Thanks Nemokosch. I will research that. 17:27
nemokosch of course if it's overkill for your task, you don't have to do it, surely Node.js can launch processes and obtain their output 17:29
[Coke] I just tried to build it, missing a dep locally. 17:31
17:41 jpn left 18:00 reportable6 left, reportable6 joined
librasteve o/ 18:07
pelevesque: you can also consider ffi which raku/moarvm supports via Nativecall 18:08
here - github.com/node-ffi/node-ffi/wiki/...I-Tutorial
and here - docs.raku.org/language/nativecall 18:09
18:11 slu left
antononcube @tonyo I think tbrowder is refering to this code @arr[^(*-3)] . 18:11
librasteve @antononcube we need to lower you code golf handicap 18:13
18:14 slu joined
btw - ++ on the Jupyter::ChatBook - I am working hard at getting a basic Dan::Polars to Jupyter and aim to "meet" you there soon 18:16
antononcube @librasteve Thanks. I am not sure what part of "Jupyter::Chatbook" should go into "Jupyter::Kernel", but I think there is a certain room for obscure but very useful extensions of "Jupyter::Kernel". For example: 1) Having meta cells that allow access to different data structures of the kernel 2) Ability to specify a list of package that loaded with each session. (E.g. "Dan::Polars".) 3) Always being able to connect 18:22
to Mermaid-Ink and be able to render the obtained images.
18:25 guessed joined
guessed hi if tokens are not backtracking why is this saying True 18:26
m: grammar { token TOP { .+ "z"? } }.parse("no").so.put
camelia True
guessed misunderstood, ignore please 18:28
librasteve guessed: have you tried use Grammar::Tracer; ? 18:29
m: use Grammar::Tracer; grammar { token TOP { .+ "z"? } }.parse("no").so.put;
Raku eval Exit code: 1 ===SORRY!=== Error while compiling /home/glot/main.raku Could not find Grammar::Tracer in: inst#/home/glot/.raku inst#/nix/store/paigpapymi5rpv51zjnpv7xlgcym4752-rakudo-2022.02/share/perl6/site inst#/nix/store/paigpapymi5rpv51zjnpv7xlgcym4752-rakudo-2022.02/share/perl6/vendor inst#/nix/store/paigpapymi5rpv51zjnpv7xlgcym4752-rakudo-2022.02/share/perl6/core ap# nqp# perl5# at
guessed Thank you 18:50
18:57 ab5tract joined, jjido joined 19:02 jjido left 19:11 jjido joined 19:19 guessed left 19:27 ab5tract left 19:32 thowe left 19:34 jpn joined
nemokosch token composition is not backtracking, not the quantifier inside, I suppose 19:37
19:43 jpn left 19:52 thowe joined 20:20 teatwo joined 20:23 tea3po left 20:24 jpn joined 21:07 jpn left 21:47 tea3po joined 21:49 teatime joined 21:51 teatwo left 21:52 tea3po left
antononcube Video "Jupyter Chatbook LLM cells demo (Raku)" : www.youtube.com/watch?v=cICgnzYmQZg 22:09
22:09 codesections left
Geth setup-raku: 0c9a1896d5 | (Shoichi Kaji)++ | 6 files
setup-raku: dcbe26668e | (Shoichi Kaji)++ (committed using GitHub Web editor) | 6 files
Merge pull request #29 from Raku/node20

22:12 dogbert17 joined 22:15 dogbert11 left
Geth setup-raku: 52a6e9a58a | (Shoichi Kaji)++ | CHANGELOG.md
22:34 deoac joined 22:55 jjatria left, jjatria joined 22:58 Altreus left, Altreus joined 23:11 jjido left 23:38 Sgeo joined