🦋 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.
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
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)
cpan-raku New module released to CPAN! AttrX::Mooish (0.7.2) by 03VRURG 01:04
tbrowder .tell tony-o yes 01:21
tellable6 tbrowder, I'll pass your message to tony-o
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;
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]
samebchase- What's the Raku analogue of this? 07:44
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
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.
cpan-raku New module released to CPAN! Math::Libgsl::Matrix (0.1.3) by 03FRITH 09:33
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
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
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
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
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?
lizmat m: dd (1,).tail(*-1) # the way m_v_m is interpreting .tail 13:55
camelia ().Seq
[Coke] yah, tail isn't cdr 13:56
[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?
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
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
moritz my pleasure 14:14
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. :)
[Coke] I have used it at last 2-3 employers, but not for anything large. (biggest was for some devops deployment work) 14:20
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. :)
lizmat I guess adding a .cdr method as an alias for .skip would make people like m_v_m very happy 14:39
jnthn Perhaps also misleading in so far as the underlying representation is very different 14:45
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
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
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
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
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
cpan-raku New module released to CPAN! Today (0.0.2) by 03ELIZABETH 19:22
MasterDuke wow, my connection has been flakier than usual today 19:56
cpan-raku New module released to CPAN! Concurrent::PChannel (0.0.2) by 03VRURG 20:15
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)
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