🦋 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:03 stanrifkin left 00:19 maylay left 00:21 maylay joined 01:06 Xliff joined
Xliff Hello! 01:06
Has anyone tried parsing C++ in Raku, yet?
antononcube Sure.
I decided it is not worth spending my time on that. There is an interesting more general effort that is for C, C++, and Java. 01:07
.landyacht. Is there a finalized location for TPRC in Greenville this year? 01:10
Xliff antoncube: Do you have a link to that effort?
[Coke] finalized? tickets are on sale, I have my hotel reservation... 02:03
tprc.us/tprc-2025-gsp/location/ 02:04
please also update github.com/perlconference/tprc-202...i/Raku-BOF
.landyacht. ah okay, I was just being blind 02:12
02:47 yewscion joined 02:51 yewscion left 03:01 yewscion joined 03:06 yewscion left 03:16 yewscion joined 03:19 sdomi left 03:21 yewscion left 03:29 sdomi joined 03:49 JimmyZhuo joined 03:54 yewscion joined 03:59 yewscion left 04:11 yewscion joined 04:16 yewscion left 04:38 maylay left 04:39 maylay joined 05:00 JimmyZhuo left 05:01 yewscion joined 05:06 JimmyZhuo joined 05:08 yewscion left 05:16 Aedil joined 05:25 JimmyZhuo left 05:29 yewscion joined 05:33 yewscion left 06:09 swaggboi left 06:23 swaggboi joined 06:54 merp left 07:06 lichtkind joined 07:40 Aedil left 07:42 Sgeo left 08:36 ulipink left 08:38 ulipink joined 08:53 apac joined 09:19 dakkar joined 09:25 sena_kun joined 09:32 jpn joined 10:25 sena_kun left 10:37 JimmyZhuo joined 10:57 yewscion joined 10:59 peder left 11:00 peder joined 11:01 yewscion left 11:16 yewscion joined 11:21 jpn left 11:22 yewscion left 11:30 jpn joined 11:42 Xliff left, peder left 12:09 peder joined 12:18 peder left 12:34 jgaz joined 12:37 jpn left 13:00 wbooze joined 13:05 peder joined 13:14 yewscion joined 13:18 yewscion left
antononcube @Xliff I spent half an hour searching for that project. It is about translation of different languages into AST given as an XML. 13:20
librasteve are there any thoughts to have another f2f [perl & ]raku conference in europe?
lizmat librasteve the only plan I know of is another Raku Core Summit in June for the Raku core team 13:22
13:25 nine left
librasteve oh - ok .... does Cro count as Core ? 13:25
13:25 jpn joined 13:26 nine joined
lizmat it could... 13:26
librasteve ;-)
lizmat privmsg? 13:27
13:28 librasteve_ joined 13:29 jpn left 13:34 wbooze left 13:36 melezhik joined
melezhik how can I insert element into array after specific element, given I know the index of element to insert after? 13:37
13:43 JimmyZhuo left
librasteve_ splice() 13:44
librasteve m: my @array = <a b c d>; say splice @array, 2, 0, 'X'; 13:47
evalable6 []
Raku eval []
librasteve m: my @a = <a b c d>; my @b = splice @array, 2, 0, 'X'; say @b 13:48
Raku eval Exit code: 1 ===SORRY!=== Error while compiling /home/glot/main.raku Variable '@array' is not declared. Did you mean any of these: 'Array', 'array'? at /home/glot/main.raku:1 ------> my @a = <a b c d>; my @b = splice ⏏@array, 2, 0, 'X'; say @b
evalable6 (exit code 1) ===SORRY!=== Error while compilin…
librasteve, Full output: gist.github.com/a6b1e60e2854707331...b4bb2e8de5
13:48 Aedil joined 13:50 melezhik left, peder left, melezhik joined 13:52 melezhik left 13:53 wbooze joined
librasteve m: my @a = <a b c d>; my @b = splice(@a, 2, 1, 'X'); say @a 13:54
evalable6 [a b X d]
Raku eval [a b X d]
librasteve_ m: my @a = <a b c d>; @a.splice(2, 1, 'X'); say @a 13:55
camelia [a b X d]
librasteve_ if you want the method form
here ‘2’ is the start of the insertion and ‘1’ is the elems to be inserted - NB this only works to insert as in replace an existing element it can’t be used to shift everything else right one afaik 14:00
14:01 jpn joined 14:04 peder joined 14:15 apac left
librasteve_ m: my @a = <a b c d>; @a.splice(2, 0, 'X'); say @a 14:15
camelia [a b X c d]
librasteve_ oh - splice can insert, the 2nd Int really means “overwrite this many items” 14:17
14:34 yewscion joined, wbooze left 14:45 wbooze joined 14:58 melezhik joined
melezhik . 14:58
librasteve: thanks!
librasteve_ you’re welcome 14:59
15:08 stanrifkin joined 15:22 peder left, melezhik left 15:25 Guest99 joined
lizmat yeah, splice is a bit of a swiss army chainsaw in itself 15:35
15:42 Guest99 left 15:45 wbooze left 15:55 peder joined 16:34 silug left 16:42 silug joined 16:48 yewscion left 16:57 yewscion joined 17:34 dakkar left 17:41 yewscion left 18:08 librasteve_ left 18:10 yewscion joined
lizmat weekly: dev.to/lizmat/debugging-by-repl-43ff 18:19
notable6 lizmat, Noted! (weekly)
18:20 jpn left 18:25 sena_kun joined 18:46 yewscion left 19:27 yewscion joined 19:49 lichtkind left 19:52 sena_kun left 19:53 lichtkind joined 19:55 sena_kun joined 19:56 apac joined 20:00 rir joined 21:05 librasteve_ joined
librasteve_ m: class A {}; class B {}; my @x = [A.new, A.new, B.new]; say @x.unique(as => .^name); 21:07
camelia (A.new A.new B.new)
librasteve_ ^^ can’t worl out what I’m doing wrong here 21:08
s/worl/work/
m: class A {}; class B {}; my @x = [A.new, A.new, B.new]; say @x.unique(as => *.^name); 21:10
camelia (A.new B.new)
librasteve_ aha - sorry for the false alarm
21:18 jgaz left 21:33 lichtkind left 21:53 yewscion left 21:59 Sgeo joined 22:24 yewscion joined 22:35 yewscion_ joined 22:36 lichtkind joined, yewscion left 22:42 sena_kun left 23:01 yewscion_ left 23:29 apac left 23:30 lichtkind_ joined, lichtkind left