š¦ 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:01
xelxebar joined
00:07
hungrydonkey joined
|
|||
vrurg | I wonder if there is a way to make zef install only deps but skip their tests? zef install --deps-only --/test actually doesn't install test dependencies of the module too resutling in later test failure. | 00:24 | |
00:25
aborazmeh joined,
aborazmeh left,
aborazmeh joined
00:27
sasadsad joined,
sasadsad left
|
|||
El_Che | notable6: news.perlfoundation.org/post/tpcih_cancel | 00:33 | |
notable6 | El_Che, I cannot recognize this command. See wiki for some examples: github.com/Raku/whateverable/wiki/Notable | ||
El_Che | notable6: weekly news.perlfoundation.org/post/tpcih_cancel | ||
notable6 | El_Che, Noted! (weekly) | ||
00:48
MasterDuke left
00:52
helit joined
00:53
girafe left
01:03
wildtrees left
|
|||
cpan-raku | New module released to CPAN! AttrX::Mooish (0.7.2) by 03VRURG | 01:04 | |
01:16
Kaiepei left
01:21
Kaiepi joined
|
|||
tbrowder | .tell tony-o yes | 01:21 | |
tellable6 | tbrowder, I'll pass your message to tony-o | ||
01:57
devmikey left
01:59
wildtrees joined
02:01
wildtrees left
02:09
helit left
02:11
ufobat__ joined
02:15
ufobat_ left
02:35
guifa left
02:40
hungrydonkey left
02:42
hungrydonkey joined
02:44
aindilis` joined
02:46
aindilis left
02:48
hungryd5 joined
02:49
aindilis` left,
hungrydonkey left,
aindilis joined
03:01
aborazmeh left
03:02
molaf left,
helit joined
03:04
helit left
03:09
yht joined
03:10
aborazmeh joined,
aborazmeh left,
aborazmeh joined
03:11
helit joined,
rbt left,
rbt joined
03:15
molaf joined
03:17
aborazmeh left
03:18
helit left
03:32
helit joined,
helit left
03:34
helit joined
03:37
upupbb-user3 left
03:45
Xliff left
04:00
pilne left
04:09
PacoLinux left
05:09
sourceable6 left,
bloatable6 left,
releasable6 left,
shareable6 left,
quotable6 left,
statisfiable6 left,
nativecallable6 left,
committable6 left,
linkable6 left,
unicodable6 left,
greppable6 left,
bisectable6 left,
tellable6 left,
reportable6 left,
evalable6 left,
coverable6 left,
benchable6 left,
squashable6 left,
notable6 left
05:10
committable6 joined,
notable6 joined,
squashable6 joined,
greppable6 joined,
benchable6 joined,
releasable6 joined
05:11
nativecallable6 joined,
bisectable6 joined,
unicodable6 joined,
linkable6 joined,
tellable6 joined,
coverable6 joined,
statisfiable6 joined,
reportable6 joined,
bloatable6 joined
05:12
sourceable6 joined,
quotable6 joined,
shareable6 joined,
evalable6 joined
05:14
silug left
05:15
silug joined
05:20
molaf left
05:36
wamba joined
05:40
wamba left
05:41
wamba joined,
upupbb-user3 joined
05:50
wamba left
05:54
sauvin joined
05:55
sauvin_ joined
05:59
sauvin left
06:07
wamba joined
06:08
hungryd5 left
06:11
hungrydonkey joined
06:20
cpan-raku left,
cpan-raku joined,
cpan-raku left,
cpan-raku joined
06:24
stoned75 joined,
stoned75_ joined
06:32
sauvin_ is now known as Sauvin
06:57
Doc_Holliwood joined
|
|||
xinming | What method is used to make a class name and store it as a string? | 07:12 | |
as we can have something like ::($class) already; | |||
07:13
dogbert17 left
07:14
dogbert17 joined
07:18
MasterDuke joined
07:23
stoned75 left,
stoned75_ left
07:37
hungrydonkey left
07:43
silug left,
silug6 joined,
silug6 is now known as silug
|
|||
samebchase- | Hello, I am looking for something like: zvon.org/other/haskell/Outputprelud...ate_f.html | 07:43 | |
So that I can do: take 10 (iterate (2*) 1) | 07:44 | ||
which would give me: | |||
[1,2,4,8,16,32,64,128,256,512] | |||
07:44
rbt left
|
|||
samebchase- | What's the Raku analogue of this? | 07:44 | |
07:45
rbt joined
|
|||
moritz | m: say (1, * * 2, ... *).head(10) | 07:45 | |
camelia | Potential difficulties: Comma found before apparent sequence operator; please remove comma (or put parens around the ... call, or use 'fail' instead of ...) at <tmp>:1 ------> 3say (1, * * 2,7ā5 ... *).head(10) * in blockā¦ |
||
moritz | m: say (1, * * 2 ... *).head(10) | ||
camelia | (1 2 4 8 16 32 64 128 256 512) | ||
samebchase- | nice | ||
moritz | or even | ||
m: say (1, 2, 4 ... *).head(10) | |||
camelia | (1 2 4 8 16 32 64 128 256 512) | ||
samebchase- | now, say I wanted to do that by repeatedly calling .succ on a date object | ||
moritz | m: say (Date.today, *.succ ... *).head(10) | 07:46 | |
camelia | (2020-03-25 2020-03-26 2020-03-27 2020-03-28 2020-03-29 2020-03-30 2020-03-31 2020-04-01 2020-04-02 2020-04-03) | ||
samebchase- | whhaaaa that's nice!! | ||
moritz | it is :D | ||
m: say (Date.today, ... *).head(10) | 07:47 | ||
camelia | Potential difficulties: Comma found before apparent sequence operator; please remove comma (or put parens around the ... call, or use 'fail' instead of ...) at <tmp>:1 ------> 3say (Date.today,7ā5 ... *).head(10) * in bloā¦ |
||
moritz | m: say (Date.today ... *).head(10) | ||
camelia | (2020-03-25 2020-03-26 2020-03-27 2020-03-28 2020-03-29 2020-03-30 2020-03-31 2020-04-01 2020-04-02 2020-04-03) | ||
moritz | it seems .succ is the default for sequences anyway | ||
samebchase- | beautiful | ||
I did realise I could do Date.new(2020, 3, 12) ... Date.new(2020, 3, 20), but I was having difficulty with the end range. The whatever star solves this elegantly. | 07:48 | ||
oh and what's the difference between three dots (...) and two dots (..) | 07:50 | ||
moritz | m: say (1..3).^name | 07:53 | |
camelia | Range | ||
07:53
sena_kun joined
|
|||
moritz | two dots generate a Range, which has fast-path membership tests and the likes, but always assumes ascending order | 07:53 | |
three dots generate a sequence / lazy list / iterator thingy, with potentially any generator function | 07:54 | ||
samebchase- | ahhhh nice. That's what I needed. | ||
07:56
stoned75 joined,
stoned75_ joined
08:00
rindolf joined
08:09
sena_kun left
08:19
girafe joined
08:24
sena_kun joined
08:27
abraxxa joined
08:31
aluaces left
08:35
PacoLinux joined
08:39
PacoLinux left
08:47
stoned75 left,
dakkar joined,
stoned75_ left
09:07
stoned75 joined
09:08
stoned75_ joined
09:19
pecastro joined
09:27
sena_kun left
|
|||
cpan-raku | New module released to CPAN! Math::Libgsl::Matrix (0.1.3) by 03FRITH | 09:33 | |
09:40
yht left
09:50
rindolf left
09:54
yht joined
09:58
Doc_Holliwood left
10:01
rindolf joined
10:14
Sauvin left
10:16
MasterDuke left
10:18
sauvin joined,
MasterDuke joined,
sauvin is now known as Sauvin
10:24
_jrjsmrtn joined
10:27
__jrjsmrtn__ left
10:28
helit left,
helit joined,
helit left
10:29
AlexDani` joined,
AlexDaniel left,
NODE left
10:30
AlexDani` is now known as AlexDaniel,
AlexDaniel left,
AlexDaniel joined
10:32
NODE joined
10:33
wamba left
10:34
wamba joined
10:36
lizmat joined
10:40
devmikey joined
10:41
patrickb joined
|
|||
patrickb | .tell tony-o I'm also willing to help test out zeco. Also I'm still waiting for the writeup you wanted to send me. :-) | 10:42 | |
tellable6 | patrickb, I'll pass your message to tony-o | ||
patrickb | tadzik: Rakubrew (slowly) is getting to the point of working reliably. What's your stance wrt rakudobrew? Should it officially be deprecated? | 10:50 | |
tellable6 | 2020-03-21T10:13:48Z #raku-dev <tyil> patrickb sure thing, | ||
2020-03-21T10:14:18Z #raku-dev <tyil> patrickb you can refer jjatria to [email@hidden.address] if he wants to contact me, or reach out on irc :> | |||
El_Che | lizmat: twitter.com/liztormato/status/1242...68800?s=20 <-- sounds like a reply to my tweet? | 10:53 | |
lizmat | yeah, was intended as such | 10:54 | |
deleted and commented at the right place now | 10:55 | ||
El_Che++ | |||
El_Che | pretty wow, your microstory | 10:56 | |
11:02
daxim left,
patrickb left
11:09
daxim joined
11:11
NODE left
11:12
patrickb joined
11:13
daxim left
11:14
NODE joined
11:18
daxim joined
11:26
daxim left
11:32
daxim joined
11:40
SqrtNegInf joined
11:45
patrickb left
11:52
chloekek joined
12:02
patrickb joined
12:12
aborazmeh joined,
aborazmeh left,
aborazmeh joined
12:15
MasterDuke left
12:33
yht left
12:41
MasterDuke joined
12:45
aborazmeh left
12:46
aborazmeh joined,
aborazmeh left,
aborazmeh joined
12:48
imcsk8 left
12:49
imcsk8 joined,
yht joined
12:59
aluaces joined
|
|||
Geth | doc: 199d017d61 | (Tom Browder)++ (committed using GitHub Web editor) | doc/Language/5to6-nutshell.pod6 Add note about do block being unchanged |
13:02 | |
linkable6 | Link: docs.raku.org/language/5to6-nutshell | ||
13:04
andrzejku joined
13:08
MasterDuke left,
mowcat joined
13:15
aborazmeh left
|
|||
Geth | doc: 04c8b8e8c2 | (Tom Browder)++ (committed using GitHub Web editor) | doc/Language/5to6-nutshell.pod6 Make heading consistent with sibling items |
13:18 | |
linkable6 | Link: docs.raku.org/language/5to6-nutshell | 13:19 | |
13:37
andrzejku left
13:38
MasterDuke joined
13:41
m_v_m joined
13:43
andrzejku joined
|
|||
m_v_m | Hi all. I am just wondering...why tail of a one element array is equal to 'first' of the one element array?. In most know (to me) languages invoking 'tail' on [1] would return [] not 1. | 13:45 | |
lizmat | tail gives the last element of a list | 13:46 | |
13:46
upupbb-user3 left
|
|||
lizmat | on a one element list, .head, .first and .tail give the same element | 13:47 | |
m_v_m | this is strange :) In most know for me languages list could be pattern matched to [H | T] where H is the first element and T is the 'rest'. If there is a one element list then T would be nil or [] | 13:48 | |
moritz | it seems Raku isn't most languages | 13:49 | |
m_v_m | I see. Is there any reason behind it? | ||
13:50
squashable6 left
13:53
squashable6 joined
|
|||
lizmat | m: dd (1,).tail(*-1) # the way m_v_m is interpreting .tail | 13:55 | |
camelia | ().Seq | ||
13:55
devmikey left
|
|||
[Coke] | yah, tail isn't cdr | 13:56 | |
13:56
guifa joined
|
|||
[Coke] | Something we could add to the docs if we have a xxxx-to-raku section for one of those languages. | 13:59 | |
moritz | m_v_m: the functional languages approach is not a very intuitive interpretation of "tail" | ||
m_v_m | "not very intuitive" can you elaborate on that? | 14:00 | |
moritz | ask a 5 year old where the tail of a queue of people is | ||
and then ask them to point the 5 people at the tail of the queue | 14:01 | ||
that's what an intuitive understanding of tail(5) is, IMHO | |||
tail implies looking towards the end -- why it would count from the start, then? | |||
14:02
caterfxo left
|
|||
m_v_m | In my opinion not :) specially in moments when first and tail are returning the same thing. | 14:02 | |
moritz | well, but you asked for my elaboration | ||
m_v_m | true. Can I use something else which give me the same behaviour as a 'functional tail' without loosing performance? | 14:03 | |
Raku is a very flexible language so probably there is a short solution for my problem :) | 14:04 | ||
14:04
silug left,
silug3 joined
|
|||
moritz | m: say <a b c d e f g>[2..*] | 14:04 | |
camelia | (c d e f g) | ||
moritz | m: say <a b c d e f g>.tail(*-2) | 14:05 | |
camelia | (c d e f g) | ||
m_v_m | thank you! | 14:06 | |
14:14
[Sno] left
|
|||
moritz | my pleasure | 14:14 | |
14:14
rindolf left
|
|||
m_v_m | I have one more question. Do you know any real world usage of Raku? I mean companies :) I am just wondering. | 14:17 | |
moritz | I know that nine's company has some services written in Raku | 14:18 | |
jnthn does work stuff with raku as well | |||
jnthn | My $dayjob has built multiple running-in-production things in Raku | 14:19 | |
Well, or has built them for customers | |||
Implying that said people also use them. :) | |||
14:19
lucasb joined
|
|||
[Coke] | I have used it at last 2-3 employers, but not for anything large. (biggest was for some devops deployment work) | 14:20 | |
14:24
MasterDuke left
14:26
Doc_Holliwood joined
|
|||
m_v_m | Wow! I thought that most of the cases would be around DSLs or something similar. So, most of the use cases are around devops, and Cro web framework? | 14:31 | |
lizmat | m: dd <a b c d e f g>.skip # another way to get all elements except the first m_v_m moritz | 14:32 | |
camelia | ("b", "c", "d", "e", "f", "g").Seq | ||
[Coke] | You have a very small sample size here. :) | ||
and folks that also hack on the language are going to be an odd subset of users. :) | |||
14:32
hoelzro joined
14:35
m_v_m left
14:37
MasterDuke joined
|
|||
lizmat | I guess adding a .cdr method as an alias for .skip would make people like m_v_m very happy | 14:39 | |
14:44
[Sno] joined
|
|||
jnthn | Perhaps also misleading in so far as the underlying representation is very different | 14:45 | |
14:51
devmikey joined
|
|||
lizmat | would that matter ? | 14:56 | |
isn't that an implementation detail ? | |||
moritz | LISP people kinda expect cdr to be O(1) | ||
timotimo | lists being immutable also allows sharing of pieces easily | 14:57 | |
but yeah, O(n) for cdr would be quite a surprise | 14:58 | ||
14:58
rindolf joined
|
|||
timotimo | if you literally port a piece of lisp code, it'll be using car and cdr liberally, i'd imagine, and the performance characteristics could be far worse? | 14:58 | |
moritz | yes | 14:59 | |
14:59
empee0 joined
15:00
regreg joined
|
|||
moritz | m: my $x = 42; my \l = (1, $x, 5); l.skip(1)[0] = 3; say $x | 15:00 | |
camelia | 3 | ||
moritz | containers are preserved, expected as much | ||
lizmat | see also: github.com/Raku/problem-solving/issues/135 | 15:01 | |
cpan-raku | New module released to CPAN! Today (0.0.1) by 03ELIZABETH | 15:02 | |
15:15
vike left
15:19
Doc_Holliwood left
15:21
molaf joined
15:24
wildtrees joined
|
|||
guifa just realized a great common use for phasers when he realized he could have used them in JS | 15:28 | ||
guifa hates JS lol | 15:29 | ||
when you do a for (foo of bar) loop, you canāt intercolate anything between loops | 15:30 | ||
itās either every loop or add in a conditional | |||
but in Raku, NEXT {Ā intercolated codeĀ }Ā | 15:31 | ||
15:35
Maylay joined
15:41
Kaiepi left,
Kaiepi joined
15:46
sena_kun joined,
sena_kun left
15:47
sena_kun joined
15:49
silug3 left,
silug joined
15:53
vike joined
16:00
silug left
16:03
molaf left
16:06
silug joined
|
|||
tbrowder | lizmat++ i love the new Today module, and vote for adding 'today' for Raku core. | 16:13 | |
tellable6 | 2020-03-24T23:42:36Z #raku-dev <tony-o> tbrowder merged rakudo-nightly | ||
2020-03-24T23:47:11Z #raku <tony-o> tbrowder did you express wanting to help test zeco? | |||
tbrowder | btw, new P5pack works great on p5 code in the wild with "pack('C' => 0xAD)" call, thnx | 16:14 | |
16:18
benlittle joined
16:21
benlittle left
16:26
Altai-man_ joined
16:28
sena_kun left
16:30
patrickb left
16:36
benlittle joined
16:46
benkolera left
16:47
uzl[m] left
16:53
grumble joined
16:54
rba[m] joined,
unclechu joined
16:55
uzl[m] joined
16:56
CIAvash joined
16:58
awwaiid joined
16:59
benkolera joined
17:02
Doc_Holliwood joined,
empee0 left
17:04
BlackChaosNL[m] joined
17:05
MasterDuke left
17:23
guifa left
17:29
andrzejku left
17:33
stoned75 left
17:34
stoned75_ left,
FROGGS joined
17:47
dakkar left
17:48
MasterDuke joined
17:50
andrzejku joined
18:06
veesh left
18:07
veesh joined
18:14
andrzejku left
18:17
leont joined
18:18
andrzejku joined,
silug left,
regreg left
18:24
silug joined
18:27
sena_kun joined
18:28
Sauvin left,
silug left
18:29
Altai-man_ left
18:32
mowcat left
18:34
wamba left
18:37
silug joined
18:41
silug left,
silug6 joined
18:42
andrzejku left
18:48
squashable6 left
18:50
Altai-man_ joined
18:51
squashable6 joined
18:53
sena_kun left
18:54
Doc_Holliwould joined
18:55
Doc_Holliwood left
18:56
veesh_ joined
18:58
veesh left
18:59
veesh_ is now known as veesh
19:01
pilne joined
19:06
wildtrees left
19:07
wildtrees joined
19:13
kst joined
|
|||
cpan-raku | New module released to CPAN! Today (0.0.2) by 03ELIZABETH | 19:22 | |
19:42
MasterDuke left
19:45
wildtrees left
19:46
andrzejku joined
19:47
wildtrees joined
19:48
wildtrees left
19:50
natrys joined
19:51
devmikey left
19:55
MasterDuke joined
|
|||
MasterDuke | wow, my connection has been flakier than usual today | 19:56 | |
20:04
wamba joined
|
|||
cpan-raku | New module released to CPAN! Concurrent::PChannel (0.0.2) by 03VRURG | 20:15 | |
20:16
squashable6 left,
benlittle left
20:17
squashable6 joined
20:18
benlittle joined
20:19
mowcat joined
20:25
camelCaser left
20:26
camelCaser joined
20:29
SqrtNegInf left,
Redfoxmoon left,
andrzejku left
20:32
Redfoxmoon joined
20:37
MasterDuke left
20:41
FROGGS left,
NODE left
20:43
NODE joined
20:46
NODE left
20:47
NODE joined
20:51
sena_kun joined
20:53
Altai-man_ left
20:58
[Sno] left,
[Sno] joined
21:04
MasterDuke joined
|
|||
chloekek | p6: sub f($x --> $x) { }; say f(1) | 21:06 | |
evalable6 | (exit code 1) 04===SORRY!04=== Error while compiling /tmp/sR3XVeAynf Malformed return value at /tmp/sR3XVeAynf:1 ------> 03sub f($x -->08ā04 $x) { }; say f(1) |
||
21:07
patrickb joined
21:29
lucasb left
21:33
leont left
21:40
patrickb left
21:48
upupbb-user3 joined
21:59
upupbb-user3 left
22:03
wamba left
22:06
chloekek left
22:09
wildtrees joined
22:10
wildtrees left
22:11
wildtrees joined
22:26
poga left
22:28
poga joined
22:37
natrys left
|
|||
Geth | ecosystem: d51f179a13 | thundergnat++ (committed using GitHub Web editor) | META.list Add Date::Discordian to the ecosystem See github.com/thundergnat/Date-Discordian |
22:40 | |
22:44
patrickb joined
22:49
patrickb left
22:50
Altai-man_ joined
22:53
sena_kun left
23:07
girafe2 joined
23:09
girafe left
23:14
mowcat left
23:18
girafe2 left
23:26
wildtrees left
23:29
Kaiepi left
23:32
Kaiepi joined
23:34
rindolf left
23:54
pecastro left
23:59
devmikey joined
|