🦋 Welcome to Raku! raku.org/ | evalbot usage: 'p6: say 3;' or /msg camelia p6: ... | irclog: colabti.org/irclogger/irclogger_log/raku
Set by ChanServ on 14 October 2019.
00:10 kensanata left
tony-o guifa2: do you mean through use of grammars? 00:14
tellable6 2020-12-23T22:23:34Z #raku <patrickb> tony-o password reading seems to work on my machine. (Unless the server accepts empty passwords and the prompt just ignored all input or something similar went wrong).
tony-o .tell patrickb i'll merge winpass and that should get rid of the gcc requirement 00:15
tellable6 tony-o, I'll pass your message to patrickb
notagoodidea Is it a pratical reason why permutations refuses to accepts more than 20 elements? 00:19
guifa2 tony-o: if they're modifying Raku's grammar, absolutely
Basically, I'm thinking of things that integrate with the language at a level that's impossible in most other languages, which makes using them feel very natural 00:20
00:23 schlaftier left
guifa2 sort of like how cro lets you say "route { … }" 00:29
00:30 xinming_ left, xinming_ joined 00:44 xinming_ left 00:45 xinming_ joined 00:53 monkey_ joined 00:56 pecastro left 01:27 monkey_ left 01:34 frost-lab joined 01:46 xinming_ left, xinming_ joined 01:49 lucasb left 01:56 xinming_ left 01:57 xinming_ joined 02:03 mowcat left
leont guifa2: "seamless integration with Raku" is rather poorly defined, if you ask me 02:11
02:19 Doc_Holliwood left
notagoodidea \exit 02:31
02:31 notagoodidea left 02:33 xinming_ left 02:34 xinming_ joined 02:35 thdrmz left 02:41 leont left 02:51 xinming_ left 02:52 xinming_ joined, jmchael left 03:00 rindolf joined
[Coke] m: my @data[2;2] = [[1,2],[3,4]]; my @adta[2;2] = [[1,2],[3,4]]; say @data eqv @adta; 03:07
camelia Partially dimensioned views of shaped arrays not yet implemented. Sorry.
in block <unit> at <tmp> line 1
03:24 xinming_ left, xinming_ joined 04:01 xinming_ left 04:02 xinming_ joined 04:14 __jrjsmrtn__ joined, _jrjsmrtn left 04:18 guifa2 left 04:20 cooper joined 04:47 aborazmeh joined, aborazmeh left, aborazmeh joined 04:59 xinming_ left 05:01 xinming_ joined 05:07 Doc_Holliwood joined 05:09 xinming_ left 05:10 xinming_ joined 05:20 SmokeMachine left, jhill left, BuildTheRobots left, SmokeMachine joined 05:22 jhill joined, BuildTheRobots joined
Geth ecosystem: 931b173f54 | (Elizabeth Mattijsen)++ | META.list
Make GTK::Simple available in the ecosystem again

At least until the repo has been properly transferred to finanalyst++
05:38
05:47 aborazmeh left 05:52 schlaftier joined, brtastic joined 06:05 brtastic left 06:06 brtastic joined 06:14 parabolize left 06:17 Altai-man joined 06:35 Doc_Holliwood left 07:02 brtastic left 07:11 aluaces joined 07:17 ChoppedBacon left 07:19 ChoppedBacon joined 07:35 brtastic joined 07:39 xinming_ left, xinming_ joined 08:17 brtastic left 08:29 xinming_ left 08:30 xinming_ joined 08:32 Sgeo left
Geth ¦ problem-solving: JJ self-assigned Documentation and the ecosystem github.com/Raku/problem-solving/issues/252 08:36
08:39 warriors joined 08:46 xinming_ left, xinming_ joined 08:49 pecastro joined 08:58 Black_Ribbon left 09:01 ChoppedBacon left 09:02 ChoppedBacon joined 09:10 sena_kun joined 09:12 Altai-man left, frost-lab left 09:18 xinming_ left 09:19 xinming_ joined 09:32 tib_ left 09:57 sjm_uk joined 10:09 thdrmz joined 10:14 Doc_Holliwood joined 10:19 frost-lab joined 10:22 frost-lab left 10:34 frost-lab joined 10:36 thdrmz left 10:39 thdrmz joined 10:42 kensanata joined 10:57 thdrmz left 11:08 warriors left 11:38 jmchael joined 11:42 leont joined 11:54 wamba joined 12:05 notandinus left 12:07 notandinus joined 12:20 Tirifto joined
tbrowder Merry Christmas Eve! 12:27
is there a way to define two constants with the same value in the same statement? 12:28
m: constant $x = $y = 4 12:29
camelia 5===SORRY!5=== Error while compiling <tmp>
Variable '$y' is not declared
at <tmp>:1
------> 3constant $x = 7⏏5$y = 4
lizmat best wishes returned! :-)
tbrowder m: constant ($x = $y = 4)
camelia 5===SORRY!5=== Error while compiling <tmp>
Missing initializer on constant declaration
at <tmp>:1
------> 3constant7⏏5 ($x = $y = 4)
lizmat m: constant $x = (constant $y = 4); dd $x, $y 12:30
camelia 5===SORRY!5=== Error while compiling <tmp>
Variable '$y' is not declared
at <tmp>:1
------> 3onstant $x = (constant $y = 4); dd $x, 7⏏5$y
lizmat m: my constant $x = (my constant $y = 4); dd $x, $y
camelia 5===SORRY!5=== Error while compiling <tmp>
Variable '$y' is not declared
at <tmp>:1
------> 3tant $x = (my constant $y = 4); dd $x, 7⏏5$y
tbrowder constant ($x, $y) = 0,0
lizmat m: my constant ($x, $y) = 0,0 12:31
camelia 5===SORRY!5=== Error while compiling <tmp>
Missing initializer on constant declaration
at <tmp>:1
------> 3my constant7⏏5 ($x, $y) = 0,0
lizmat m: my $constant $y = 4; my constant $x = $y; dd $x, $y
camelia 5===SORRY!5=== Error while compiling <tmp>
Two terms in a row
at <tmp>:1
------> 3my $constant7⏏5 $y = 4; my constant $x = $y; dd $x, $y
expecting any of:
infix
infix stopper
statement end
…
lizmat m: my constant $y = 4; my constant $x = $y; dd $x, $y
camelia 4
4
lizmat ^^ closest thing I think 12:32
tbrowder thnx, it would be handy for aliasing which is my real use case, e.g.
my $reallongvar = $x # it would be self-documenting 12:33
m: (constant x, constant y)=0,0 12:37
camelia 5===SORRY!5=== Error while compiling <tmp>
Missing initializer on constant declaration
at <tmp>:1
------> 3(constant x7⏏5, constant y)=0,0
12:38 frost-lab left
tbrowder m: constant x = constant y = 0 12:38
camelia ( no output )
tbrowder m: constant x = constant y = 0; say x 12:39
camelia 0
tbrowder not too bad
12:40 xinming_ left, xinming_ joined
tbrowder m: const = &constant; const x = const y = 0; say y 12:41
camelia 5===SORRY!5=== Error while compiling <tmp>
Preceding context expects a term, but found infix = instead.
Did you make a mistake in Pod syntax?
at <tmp>:1
------> 3const =7⏏5 &constant; const x = const y = 0; say y
13:01 kensanata left 13:09 Altai-man joined 13:10 xinming_ left 13:11 xinming_ joined 13:12 sena_kun left 13:36 xinming_ left
tbrowder bummer: the constant thingy above doesn't work in real life. 14:13
m: constant x = constant y = 0: say x; say y 14:14
camelia 5===SORRY!5=== Error while compiling <tmp>
Confused
at <tmp>:1
------> 3constant x = constant y = 0:7⏏5 say x; say y
expecting any of:
colon pair
tbrowder arg!
m: constant x = constant y = 0; say x; say y 14:15
camelia 0
0
tbrowder hm, doesnt work on local host...
aha, it seems the sigil i used on local host is the culprit: 14:19
m: constant $x = constant $y = 0; say $x; say $y 14:20
camelia 5===SORRY!5=== Error while compiling <tmp>
Variable '$y' is not declared
at <tmp>:1
------> 3stant $x = constant $y = 0; say $x; say 7⏏5$y
tbrowder m: constant $x = my constant $y = 0; say $x; say $y 14:22
camelia 5===SORRY!5=== Error while compiling <tmp>
Variable '$y' is not declared
at <tmp>:1
------> 3nt $x = my constant $y = 0; say $x; say 7⏏5$y
tbrowder so there is something magic about constants and sigils i guess. 14:23
14:36 linkable6 left, evalable6 left 14:37 evalable6 joined 14:38 linkable6 joined
masak tbrowder: looks like a bug to me 14:49
(hi, #raku)
lizmat masak o/
ltns
masak that's a Chinese expression :) and yes
tbrowder hi
masak: ok, i'll file one 14:51
masak either a name `$y` should've been declared, or `constant $y` shouldn't've parsed 14:52
tbrowder when i used the sigiless version in my program, shouldn't i be able to use them in quoted strings if i put them in curlies? i tried and i'm still debugging so may be other offending pieces. i'll try here... 14:54
m: constant x = 4,
camelia ( no output )
tbrowder m: constant x =4.2; say "x = {x}" 14:55
camelia x = 4.2
tbrowder ok, good
masak m: say "x = {constant x = 4.2}"
camelia x = 4.2
masak m: say "y = {constant $x = constant $y = 1}" 14:56
camelia y = 1
tbrowder m: constant x =3; my $z=2; say "x+z = {$z+x}" 14:58
camelia x+z = 5
tbrowder good. i must have my own prog bug, what a concept ;-D
merry christmas, all 14:59
masak m: say Array.^name 15:11
camelia Array
masak m: say Array.^name.subst("A", "Me").subst("a", "") ~ " Christmas" 15:12
camelia Merry Christmas
masak :D
15:17 wamba1 joined, wamba left 15:19 Sgeo joined 15:22 wamba1 left 15:25 sno left 15:35 guifa2 joined 15:39 wamba joined 15:43 thdrmz joined 16:02 parabolize joined 16:06 wamba left 16:11 cpan-raku left 16:17 cpan-raku joined, cpan-raku left, cpan-raku joined 16:20 thdrmz left 16:21 thdrmz joined 16:32 xinming joined 16:58 guifa2 left 17:05 thdrmz left 17:07 guifa2 joined
guifa2 leont: sure, it's intentionally not well defined 17:09
17:10 sena_kun joined
guifa2 but what I?m looking for is something that goes beyond just "here's a class that does X or here's a sub that does Y" which is what a lot of modules are (and there's nothing wrong with that, of course) 17:10
17:11 Altai-man left 17:13 guifa2 left 17:14 guifa2 joined
leont I think my Path::Finder module is a good example of "this is something you can't do without named arguments and smartmatch", would that count? 17:14
e.g. find(@dirs, :file, :name<foo.*>, size(* > 1024), :depth(1..3), :!follow-symlinks) 17:16
Er, :size 17:17
17:27 natrys joined 17:45 lucasb joined 18:11 b2gills left 18:25 b2gills joined 18:54 lizmat_ joined 18:58 lizmat left 19:05 lizmat_ left 19:06 lizmat joined 19:19 lizmat_ joined 19:21 lizmat left 19:26 guifa2 left 19:32 lizmat_ is now known as lizmat 19:34 wamba joined 20:16 Black_Ribbon joined 20:19 sjm_uk left 20:29 wamba left 20:36 mowcat joined 21:09 Altai-man joined 21:11 sena_kun left 21:31 rindolf left 21:45 ChoppedBacon left 21:46 ChoppedBacon joined 21:57 Altai-man left 22:13 wamba joined 22:34 grondilu joined 22:57 natrys left 23:10 lizmat_ joined 23:13 wamba left, lizmat left 23:15 lizmat_ is now known as lizmat 23:30 cpage left 23:34 cpage joined 23:47 Kaiepi left
timotimo :size(1024..*) :) 23:54
m: say 1024..
camelia 5===SORRY!5=== Error while compiling <tmp>
Missing required term after infix
at <tmp>:1
------> 3say 1024..7⏏5<EOL>
expecting any of:
prefix
term
timotimo m: say 1024..*
camelia 1024..Inf