🦋 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.
Geth doc: uzluisf++ created pull request #3452:
Extend documentation on typed lambdas
01:00
Geth doc: c286df1a68 | (Luis F. Uceta)++ | doc/Type/Signature.pod6
Extend documentation on typed lambdas

Refs: #3384
06:20
doc: 58424ddf3e | (Juan Julián Merelo Guervós)++ (committed using GitHub Web editor) | doc/Type/Signature.pod6
Merge pull request #3452 from uzluisf/master

Extend documentation on typed lambdas
linkable6 Link: docs.raku.org/type/Signature
linkable6 DOC#3384 [open]: github.com/Raku/doc/issues/3384 [docs][update] Extend documentation on typed lambdas
Geth doc/containers-examples: 0d5da03330 | (Stoned Elipot)++ | doc/Language/containers.pod6
Add example's output
07:28
doc: stoned++ created pull request #3453:
Add example's output
07:29
moon-child how can I debug an infinitely hanging grammar? 08:36
I made this sprunge.us/LRI8h5, and it hangs when I pass it something simple like '6;' 08:37
moritz moon-child: hanging grammars are ususally the result of quantifying a zero-width match 08:44
MasterDuke trying changing the `*` in your TOP to `+`? 08:44
moritz don't think that's it 08:45
moon-child moritz: doesn't look like any of them would be zero-width, though? 08:45
sour what parsing algorithm is used internally by the raku grammars?
that grammar looks like it's left recursive
moon-child MasterDuke: doesn't help
moritz sour: you'r onto it, I think
expr -> fn-call -> expr '(' ... 08:46
sour try replacing the first <expr> in fn-call with literal-str
again, i'm not sure if hanging is desired, but if left recursion is bad, that's where it's bad
moon-child ahh, I see
moritz Grammar::Tracer can help you debug, to answer the original question 08:47
<plug> www.apress.com/us/book/9781484232279 also contains some advice dealing with stuff like that </plug>
lizmat and yet another Rakudo Weekly News hits the Net: rakudoweekly.blog/2020/06/01/2020-...by-wenzel/ 11:44
raku-bridge <theangryepicbanana> Yay 12:13
tadzik what is raku-bridge bridging to? 12:14
ah, discord it seems
sour wait, there's a raku discord? D: 12:15
tadzik apparently 12:15
Geth doc/containers-examples: f35ecec7ad | (Stoned Elipot)++ | doc/Language/containers.pod6
whitespace styling
12:23
Geth doc: 0d5da03330 | (Stoned Elipot)++ | doc/Language/containers.pod6
Add example's output
12:31
doc: f35ecec7ad | (Stoned Elipot)++ | doc/Language/containers.pod6
whitespace styling
doc: 71457b64c9 | Altai-man++ (committed using GitHub Web editor) | doc/Language/containers.pod6
Merge pull request #3453 from Raku/containers-examples

Add example's output
linkable6 Link: docs.raku.org/language/containers
cpan-raku New module released to CPAN! Math::Libgsl::Constants (0.0.5) by 03FRITH 12:48
suman m: use nqp; my @arr := ['work', 'job', 'study']; say nqp::join('_', @arr); 12:52
camelia This type (Array) does not support elems
in block <unit> at <tmp> line 1
suman can it be made to work in nqp? 12:53
m: use nqp; my @arr := ['work', 'job', 'study']; say nqp::join('_', @arr); 12:54
camelia This type (Array) does not support elems
in block <unit> at <tmp> line 1
jnthn Could be written `my $arr := nqp::list('work', 'job', 'study')` instead 12:58
bazzaar o/ Raku 13:52
hi, does anyone know if DBIish can output the built sql query commands as text, not execute the actual query on the db? 13:55
bazzaar I'm just thinking it might be a useful function for debugging 13:56
the use case could be where using placeholders in a prepared insert query, and traversing a complicated data structure and populating the placeholders from different levels of the datastructure. 14:01
bazzaar may also help to ensure data value glitches don't get pushed to db, a quick screening of the final text insert commands before doing the execute. 14:03
suman jnthn that works, I did not expect I had to assign a list to a scalar. 14:06
jnthn suman: NQP doesn't really do anything much with the sigil; that's one of its simplifications. 14:07
suman If I write a raku code in nqp, will it run faster? 14:10
[Coke] "maybe" 14:15
it's not worth doing it since nqp can change out from under you.
er, not worth doing if you're outside of core, I should say. 14:16
Geth doc/master: 4 commits pushed by Coke++ 14:20
melezhik people keep posting URLs like "modules.raku.org/dist/IO::Prompt:cpan:WBIKER" to rakudist 15:46
which makes me think maybe it worth to support none zef identities ? 15:47
cc AlexDaniel`
jdv79 should autovivication be a "last wins" type deal in a multi assign? 16:26
it seems raku does that but perl does not. i found perl's handling more DWIMy. 16:27
nopaste.linux-dev.org/?1318831 16:29
should i report that as a bug or is that intentional?
jnthn I believe Perl's one eagerly creates on first touch (so just looking can vivify); in Raku that doesn't happen, but yes, if there's nesting in cases like this then it would vivify a different hash in the top key 16:41
konvertex m: <3 5 -2>.combinations.max({[*] $_}).say 16:49
camelia (3 5 -2)
konvertex m: <3 5 -2>.combinations.max({[*] |$_}).say
camelia (3 5)
konvertex What happens here?
jdv79 so maybe a trap note in the docs but it'll stay the way it is?
jnthn jdv79: Most likely yes; I guess it's the trade-off of doing the other DWIM. It's not clear to me we can reasonably have both. 16:51
jdv79 ok, thanks! 16:52
mscha m: my $x = 1/0; say "yes" if $x > 0; # Is it, though? 18:35
camelia yes
melezhik it took 22 minutes to test CSS module on RakuDist, now sure why it's so long, from that almost 10 minutes zef built dependency tree, which is just a few modules 19:02
rakudist.raku.org/sparky/report/debian/152 19:04
melezhik 18:31:14 06/01/2020 ... 18:52 19:05
oh, I see they are not just a few, but still imho 10 minutes to build a dependency tree a bit too much 19:06
somehow we need to think about zef performance improving in that case ...
timotimo that is impressive 19:37
mscha m: .say for 0/0 == 0, 0/0 > 0, 0/0 >= 0; # oh really? 21:02
camelia False
False
True
mscha m: say (1e0/0).raku; # makes sense 21:05
camelia Failure.new(exception => X::Numeric::DivideByZero.new(using => "/", details => Any, numerator => 1e0), backtrace => Backtrace.new)
mscha m: say (1/0).raku; # shouldn't this be a Failure as well? 21:06
camelia <1/0>
[Coke] m: say (1/0) 21:21
camelia Attempt to divide by zero when coercing Rational to Str
in block <unit> at <tmp> line 1
[Coke] ^^ this one actually tries to calculate the value. .raku is giving you the object itself without trying to evaluate it.
the Failure is deferred as long as possible.
timotimo until it has reached the point between keyboard and chair 21:38
hobbs I'm guessing >= is true because < is false... someone applied some logic that doesn't work for incomparables :) 21:40
melezhik Hi! github.com/melezhik/Sparrow6/blob/...6#L90-L157 22:18
Sparrow uses that code to run sub processes, if there is any way to disable buffering to make time stamps in log more sensible ? 22:19
for example here I see buffered log, and timestamps do not reflect real picture, because obviously zef test does happen immediately - github.com/ugexe/zef/issues/353#is...-637154222 22:20
So basically I am talking how to disable stdout/stderr buffereing when run process using Proc::Async 22:26
[Coke] docs.raku.org/routine/out-buffer ? 22:30
ah. if it's in a proc::async... I think you're going to get some buffering just because it's going through a Supply. 22:31
melezhik yeah, probably it's not buffering itself that concerns me most, but Sparrow waiting for something before it closes child process 22:33
may be it's not the case, but to see this I need first of all somehow disable buffering ... 22:34
[Coke] how do suppose to use out-buffer to deal with it? 22:35
jdv79 if its any help i think i've seen that when running zef in a docker build 22:36
just haven't cared to check it out yet
melezhik Never mind Sparrow 23:20
Sparrow waits something, it's just buffering
so I need to know how to manage size of buffering and flush it, when run processes through Proc:Async, if possible ))) 23:21