Perl 6 - the future is here, just unevenly distributed

IRC log for #perl6, 2017-10-29

Perl 6 | Reference Documentation | Rakudo

| Channels | #perl6 index | Today | | Search | Google Search | Plain-Text | summary

All times shown according to UTC.

Time Nick Message
00:09 cdg joined #perl6
00:22 ryn1x joined #perl6
00:33 Cabanossi joined #perl6
00:41 aborazmeh joined #perl6
00:41 aborazmeh joined #perl6
00:47 tyil https://github.com/perl6/doc/pull/1635#discussion_r147553947 would anyone have any input on this? being "reached" sounds a little off to me, but I cant really think of a better way to describe it either :/
01:02 evalable6 joined #perl6
01:04 geekosaur 'once their rules are matched'
01:05 geekosaur could quibble 'rule' as 'pattern'
01:05 geekosaur and 'corresponding rule/pattern' if you want to be precise or formal
01:06 Morfent joined #perl6
01:10 cdg joined #perl6
01:14 ryn1x joined #perl6
01:14 tyil that reads nicer, thanks!
01:17 colomon joined #perl6
01:19 ryn1x_ joined #perl6
01:26 ryn1x joined #perl6
01:43 ryn1x joined #perl6
02:00 ryn1x joined #perl6
02:10 cdg joined #perl6
02:17 blakebooyah joined #perl6
02:17 blakebooyah p6: say 3
02:17 camelia rakudo-moar 4fca94743: OUTPUT: «3␤»
02:17 blakebooyah p6: say 3+4
02:17 camelia rakudo-moar 4fca94743: OUTPUT: «7␤»
02:18 blakebooyah p6: say 3**4
02:18 camelia rakudo-moar 4fca94743: OUTPUT: «81␤»
02:18 blakebooyah p6: say 3..4
02:18 camelia rakudo-moar 4fca94743: OUTPUT: «3..4␤»
02:18 blakebooyah p6: say (3..4)
02:18 camelia rakudo-moar 4fca94743: OUTPUT: «3..4␤»
02:18 blakebooyah p6: say (1..4)
02:18 camelia rakudo-moar 4fca94743: OUTPUT: «1..4␤»
02:18 blakebooyah p6: say 1..4
02:18 camelia rakudo-moar 4fca94743: OUTPUT: «1..4␤»
02:18 blakebooyah p6: print 1..4
02:18 camelia rakudo-moar 4fca94743: OUTPUT: «1 2 3 4»
02:18 blakebooyah p6: print 2..41
02:18 camelia rakudo-moar 4fca94743: OUTPUT: «2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41»
02:18 blakebooyah p6: print (2..41)**2
02:18 camelia rakudo-moar 4fca94743: OUTPUT: «1600»
02:19 blakebooyah p6: reverse 1..4
02:19 camelia rakudo-moar 4fca94743: ( no output )
02:19 ugexe you can pm the bot too
02:19 blakebooyah p6: say reverse 1..4
02:19 camelia rakudo-moar 4fca94743: OUTPUT: «(4 3 2 1)␤»
02:19 blakebooyah okay sorry
02:20 blakebooyah not a lot of action in here tonight...does everyone have girlfriends and families now or what
02:21 ugexe many live in Europe
02:33 Cabanossi joined #perl6
02:33 bitrauser joined #perl6
02:56 ilbot3 joined #perl6
02:56 Topic for #perl6 is now »ö« Welcome to Perl 6! | https://perl6.org/ | evalbot usage: 'p6: say 3;' or rakudo:,  or /msg camelia p6: ... | irclog: http://irc.perl6.org or http://colabti.org/irclogger/irclogger_logs/perl6 | UTF-8 is our friend!
03:07 Herby_ joined #perl6
03:07 Herby_ \o
03:08 Geth ¦ doc: jstuder-gh++ created pull request #1636: Modify Label Doc and Examples
03:08 Geth ¦ doc: review: https://github.com/perl6/doc/pull/1636
03:10 Mrofnet joined #perl6
03:11 cdg joined #perl6
03:18 Cabanossi joined #perl6
03:32 cdg joined #perl6
03:33 noganex_ joined #perl6
03:35 araraloren joined #perl6
03:50 piojo joined #perl6
03:53 Geth ¦ doc/master: 6 commits pushed by (Alex Chen)++
03:53 Geth ¦ doc/master: f09aa72e42 | Add example "Add actions directly", review needed
03:53 Geth ¦ doc/master: 8fa97ee522 | Update grammar_tutorial.pod6
03:53 Geth ¦ doc/master: a7a3bcea42 | Update grammar_tutorial.pod6
03:53 Geth ¦ doc/master: 11bff0a953 | Update grammar_tutorial.pod6
03:53 Geth ¦ doc/master: aac1952a7d | Update grammar_tutorial.pod6
03:53 Geth ¦ doc/master: 02b3c730ff | Merge pull request #1635 from perl6/W4anD0eR96-patch-1
03:53 Geth ¦ doc/master: review: https://github.com/perl6/doc/compare/c091ada9c5...02b3c730ff
03:55 Geth ¦ doc: a2e3df3c7f | (Jeremy Studer)++ (committed by Zoffix Znet) | doc/Type/Label.pod6
03:55 synopsebot Link: https://doc.perl6.org/type/Label
03:55 Geth ¦ doc: Modify Label Doc and Examples (#1636)
03:55 Geth ¦ doc:
03:55 Geth ¦ doc: * Make Label method examples clearer
03:55 Geth ¦ doc:
03:55 Geth ¦ doc: Changed the example for the next method so that it's output differs from
03:55 Geth ¦ doc: that of the last example. With the change, the numbers 5 through 10 are
03:55 Geth ¦ doc: printed, which makes it more clear that the loop has iterated a total of
03:55 Geth ¦ doc: <…commit message has 6 more lines…>
03:55 Geth ¦ doc: review: https://github.com/perl6/doc/commit/a2e3df3c7f
04:10 evalable6 joined #perl6
04:13 lowin joined #perl6
04:18 Cabanossi joined #perl6
04:29 ryn1x joined #perl6
04:33 cdg joined #perl6
04:47 Cabanossi joined #perl6
05:07 evalable6 joined #perl6
05:15 fudje joined #perl6
05:20 fudje joined #perl6
05:21 fudje oh wow that was confusing
05:26 fudje joined #perl6
05:28 fudje Can anyone comment on thread safety with NativeCall?
05:33 fudje I've got a partial gettext binding that's using supposedly thread-safe calls to set locale (so I can have different languages in different threads); but given that Perl6 does threading differently - I wonder if the interface is going to be able to consistently remember per workload which locale to use.
05:34 cdg joined #perl6
05:36 fudje Or whether to just assume that I need to switch locale as part of the wrapper for each gettext call....
05:37 fudje (Of course anyone saying "Why are you messing with this at all, we have equivalent functionality already, here read this" is also welcome to comment :D)
05:39 geekosaur that would count as thread-local data and it will probably be a problem because perl 6 threads likely do not map 1-on-1 to pthreads threads. and I would be cautious about using a wrapper unless you also use some kind of synchronization (or: what happens if two threads call gettext at the same time?)
05:41 fudje I think the most correct behaviour would be to lock the entire wrapper there
05:41 geekosaur yes, that's what I meant
05:54 piojo ‎geekosaur‎: do you know if two OS-level reads will ever get the same $*THREAD.id?
05:55 piojo I mean, is it possible for one perl thread to be two OS threads?
05:56 piojo I want to use $*THREAD.id to ensure each thread has its own data, like: my $dbh = $database-handles<$*THREAD.id>. It works in testing, but am I sitting on a time bomb
05:59 evalable6 joined #perl6
06:00 Zoffix joined #perl6
06:01 Zoffix piojo: Text::CSV uses that technique IIRC, so it's probably safe, BUT, you're not keying it on THREAD id; you're just using string '$*THREAD.id'. You need $database-handles{$*THREAD.id}
06:06 fudje hmm... If I'm using Promises I pretty consistently get $*THREAD.id repeats...
06:06 mempko joined #perl6
06:08 geekosaur do pay attention to what Zoffix just said. <> is a single quote
06:08 geekosaur {} is an expression
06:08 fudje p6: put bag(await ^10 .map: { start { $*THREAD.id } })
06:08 camelia rakudo-moar 4fca94743: OUTPUT: «4(10)␤»
06:09 geekosaur the other thing is I'm not sure whether $*THREAD tells you about the pthreads thread or the perl 6 thread
06:09 fudje p6: put bag(await ^1024 .map: { start { $*THREAD.id } })
06:09 camelia rakudo-moar 4fca94743: OUTPUT: «4(1024)␤»
06:09 fudje huh
06:09 geekosaur the perl 6 thread ID should generally be the same. whether it's the same pthreads thread that gettext is using is another question
06:11 Zoffix left #perl6
06:11 fudje Pretty sure $*THREAD is the perl6 thread based on that :)
06:15 fudje piojo: are you using the Thread class directly or a promise (e.g. via start {}) ?
06:31 wjw joined #perl6
06:34 wjw left #perl6
06:35 cdg joined #perl6
06:36 wjw joined #perl6
06:38 Brumbazz joined #perl6
06:39 rindolf joined #perl6
06:41 ChoHag joined #perl6
06:45 wamba joined #perl6
06:48 setty1 joined #perl6
07:06 Geth ¦ doc: ecbe32439c | (Moritz Lenz)++ | doc/Language/regexes.pod6
07:06 synopsebot Link: https://doc.perl6.org/language/regexes
07:06 Geth ¦ doc: Document :ignoremark (Issue #1133)
07:06 Geth ¦ doc: review: https://github.com/perl6/doc/commit/ecbe32439c
07:32 evalable6 joined #perl6
07:32 Geth ¦ doc: b5a674d66e | (Moritz Lenz)++ | doc/Language/regexes.pod6
07:32 Geth ¦ doc: Document regex substitution adverbs
07:32 Geth ¦ doc:
07:32 Geth ¦ doc: Closes #1133
07:32 Geth ¦ doc: review: https://github.com/perl6/doc/commit/b5a674d66e
07:32 synopsebot Link: https://doc.perl6.org/language/regexes
07:35 cdg joined #perl6
07:44 darutoko joined #perl6
07:54 Piotr__ joined #perl6
07:57 p6steve hi folks - I wonder if someone could help me out
07:58 p6steve I am trying to interpolate into a token in a grammar thus:  token unam    { <$unames> }
07:59 p6steve works fine in an isolated test setup - but when I copy over to my main project (2x pm several hundred lines each), I get an error - At Frame 1, Instruction 33, op 'findmeth', operand 1, expected MAST::Local, but didn't get one
07:59 p6steve I am doing something dumb??
07:59 p6steve This is Rakudo version 2017.07 built on MoarVM version 2017.07
08:00 moritz sounds like a bug in rakudo
08:00 p6steve I am loading a big HEREDOC - maybe pushing some size limit
08:01 moritz might be worth checking in a newer rakudo
08:01 p6steve ok - I'll try
08:01 moritz s/in/with/
08:02 p6steve thanks!
08:04 sena_kun joined #perl6
08:07 domidumont joined #perl6
08:12 domidumont joined #perl6
08:16 nadim_ joined #perl6
08:18 mson joined #perl6
08:21 espadrine joined #perl6
08:21 HoboWithAShotgun joined #perl6
08:24 whimsical joined #perl6
08:28 piojo joined #perl6
08:32 mr-fooba_ joined #perl6
08:36 cdg joined #perl6
08:43 * HoboWithAShotgun wanders the halls looking for an iron to iron out the wrinkles
09:17 Cabanossi joined #perl6
09:22 mr-foobar joined #perl6
09:23 ChoHag joined #perl6
09:34 AlexDaniel joined #perl6
09:37 cdg joined #perl6
09:48 parv joined #perl6
09:52 domidumont joined #perl6
10:20 evalable6 joined #perl6
10:28 aborazmeh joined #perl6
10:28 aborazmeh joined #perl6
10:32 Cabanossi joined #perl6
10:38 cdg joined #perl6
11:03 nativecallable6 joined #perl6
11:03 quotable6 joined #perl6
11:03 releasable6 joined #perl6
11:03 committable6 joined #perl6
11:03 bloatable6 joined #perl6
11:03 evalable6 joined #perl6
11:03 benchable6 joined #perl6
11:03 unicodable6 joined #perl6
11:03 bisectable6 joined #perl6
11:03 coverable6 joined #perl6
11:03 greppable6 joined #perl6
11:03 squashable6 joined #perl6
11:03 statisfiable6 joined #perl6
11:05 dj_goku joined #perl6
11:05 dj_goku joined #perl6
11:08 HoboWithAShotgun oh come on, really?
11:09 HoboWithAShotgun i just debugged this for 2 hours until i found the cause.
11:09 lizmat and?
11:09 HoboWithAShotgun what could be a potential problem with this method: https://hastebin.com/ivasoroyiv.pl
11:10 lizmat first draft of Telemer
11:10 lizmat first draft of Telemetry documentation: https://gist.github.com/lizmat/9dfe921efe7762c55fba534dfdbcd68c
11:11 lizmat the $++ ?
11:11 HoboWithAShotgun aye
11:12 lizmat you intended what ?
11:12 HoboWithAShotgun no! i assumed $++ to be zero at each invokation of the method
11:12 lizmat alas, no, $++ is shorthand for a nameless state variable
11:12 HoboWithAShotgun or better, each time the loop gets entered
11:13 HoboWithAShotgun oh, ok. i thought it's a built in loop counter
11:13 MasterDuke lizmat: line 92-93: "to take calculate"
11:15 lizmat MasterDuke++  # fixed
11:17 Cabanossi joined #perl6
11:23 AlexDaniel lizmat: working on RT+GH report :)
11:23 lizmat AlexDaniel++
11:23 moritz lizmat: looks like something that could well go into a module
11:24 lizmat you mean Telemetry, or just snap ?
11:24 moritz both :-)
11:25 lizmat so no core supported way to expose nqp::getrusage ?
11:25 moritz hmmm
11:26 moritz that's something that could have a very thin wrapper in Rakudo::Internals, and then we can experiment in module space with more feature-full implementations
11:27 moritz or didn't we have another namespaces that was mostly meant as a public but thin API for things that otherwise only work with nqp ops?
11:27 lizmat well, Rakudo::Internals is eh, internal ?
11:28 pmurias joined #perl6
11:28 lizmat subject to change without notice ?
11:28 pmurias lizmat: re Telemetry docs, one thing that wasn't clear to be is what $t1 - $t2 results in
11:30 lizmat moritz: perhaps put it in lib, just like Test.pm ?
11:30 margeas joined #perl6
11:31 moritz lizmat: maybe
11:31 moritz I'm unconvinced either way :-)
11:33 pmurias lizmat: if it's a Telemetry::Period maybe putting $t1-$2 in a temporary variable with a Telemetry::Period  would be more informative
11:37 lizmat joined #perl6
11:38 lizmat stupid flay wifi :-(
11:38 lizmat *flaky
11:38 jast maybe you do need to flay it, or at least threaten to
11:39 cdg joined #perl6
11:44 lizmat jast: tried that a few times already  :-)
11:45 jast I'm all out of ideas, then :(
11:51 lizmat Draft of Telemetry::Period documentation: https://gist.github.com/lizmat/e601e91c90e93858a8a1836b965ec770
11:53 lizmat moritz: making a Telemetry a module now seems useless, as it won't work before 80b49320
11:54 lizmat and afaik we don't have a way to check for existence of nqp ops at runtime ?
11:55 lizmat apart from EVAL I guess
12:00 leah2 joined #perl6
12:04 mxco86 joined #perl6
12:05 mxco86 joined #perl6
12:07 Piotr__ joined #perl6
12:13 Actualeyes joined #perl6
12:14 HoboWithAShotgun joined #perl6
12:19 cdg joined #perl6
12:20 blakebooyah left #perl6
12:22 finanalyst joined #perl6
12:36 buggable New CPAN upload: IO-Socket-Async-SSL-0.5.tar.gz by JNTHN https://cpan.metacpan.org/authors/id/J/JN/JNTHN/Perl6/IO-Socket-Async-SSL-0.5.tar.gz
12:36 Actualeyes joined #perl6
12:47 Cabanossi joined #perl6
12:48 cdg joined #perl6
12:56 buggable New CPAN upload: IO-Socket-Async-SSL-0.5.0.tar.gz by JNTHN https://cpan.metacpan.org/authors/id/J/JN/JNTHN/Perl6/IO-Socket-Async-SSL-0.5.0.tar.gz
12:57 espadrine joined #perl6
13:12 colomon just tried installing Inline::Python, and it failed because of a dependency on Panda::Common
13:14 colomon in particular the Build.pm file uses Panda::Common and Panda::Builder
13:15 colomon ah, I guess I can install those by hand?
13:16 colomon (by “by hand” I mean explicitly with zel install Panda::Common)
13:17 colomon (this sort of thing is why I was running a 6 month old version of Rakudo)
13:17 colomon yes, now Inline::Python claims to install okay.
13:17 evalable6 joined #perl6
13:21 domidumont joined #perl6
13:31 Geth ¦ ecosystem: 6615ee2f60 | (Jonathan Worthington)++ (committed using GitHub Web editor) | META.list
13:31 Geth ¦ ecosystem: IO::Socket::Async::SSL now on CPAN
13:31 Geth ¦ ecosystem: review: https://github.com/perl6/ecosystem/commit/6615ee2f60
13:32 jdv79 m: "ab" ~~ /(.)*/; my %h = :k($0>>.Str); say %h<k>.WHAT, %h<k>[0].VAR.WHAT; %h<k>[0] = ""
13:32 camelia rakudo-moar 524404861: OUTPUT: «(Array)(Str)␤Cannot modify an immutable Str (a)␤  in block <unit> at <tmp> line 1␤␤»
13:32 jdv79 m: "ab" ~~ /(.)*/; my %h = :k(@=$0>>.Str); say %h<k>.WHAT, %h<k>[0].VAR.WHAT; %h<k>[0] = ""
13:32 camelia rakudo-moar 524404861: OUTPUT: «(Array)(Scalar)␤»
13:32 jdv79 why is that diff there?
13:38 moritz m: my @a; @a[0] := 'abc'; @a[0] = 'def';
13:38 camelia rakudo-moar 524404861: OUTPUT: «Cannot modify an immutable Str (abc)␤  in block <unit> at <tmp> line 1␤␤»
13:38 moritz in the first example, the string is bound to an array item, not assigned to it
13:40 TimToady joined #perl6
13:45 dogbert17 joined #perl6
13:47 COMBORICO joined #perl6
13:49 cdg joined #perl6
13:49 jdv79 the docs infer that arrays typically have containers
13:49 jdv79 i realize what the diff is.  i asked why the diff is.
13:49 jdv79 i would get it more if one was a list and one was an array
13:50 jdv79 and the default for list was uncontainered and array the opposite
13:50 moritz right
13:52 jdv79 so why did the first example up there create an array of non-containerized elements?
13:52 jdv79 is there something there that implies binding?
13:54 mst I thnk that $0's elements are not containerised because it's not writeable, so the >>.Str returns un-containerised stuff too?
13:57 jdv79 that'd be my guess but seems confusing is part of my point.  why isn't that a list in $0 then?
13:57 pilne joined #perl6
13:58 jdv79 well, i guess that's just a p6 design issue
13:59 Rawriful joined #perl6
14:00 mst m: "ab" ~~ /(.)*/; say $0.WHAT;
14:00 camelia rakudo-moar 524404861: OUTPUT: «(Array)␤»
14:00 jdv79 its odd that we only have certain topicalizing control flow options
14:00 jdv79 be cool if there was a if that topicalized
14:17 khw joined #perl6
14:21 esh joined #perl6
14:25 moritz m: sub f() { say 42 }; if f() -> $x { say $x }
14:25 camelia rakudo-moar b30916f35: OUTPUT: «42␤True␤»
14:25 moritz like that? :-)
14:28 TimToady joined #perl6
14:32 Cabanossi joined #perl6
14:37 okl joined #perl6
14:39 Geth ¦ modules.perl6.org: dca2795682 | (Zoffix Znet)++ | lib/ModulesPerl6/DbBuilder/Dist/PostProcessor/p20TravisCI.pm
14:39 Geth ¦ modules.perl6.org: Fix breakage in travis postprocessor
14:39 Geth ¦ modules.perl6.org: review: https://github.com/perl6/modules.perl6.org/commit/dca2795682
14:40 Geth ¦ modules.perl6.org: 61bb5c6570 | (Zoffix Znet)++ (committed using GitHub Web editor) | use-me-for-commit-triggers
14:40 Geth ¦ modules.perl6.org: [REBUILD] it
14:40 Geth ¦ modules.perl6.org: review: https://github.com/perl6/modules.perl6.org/commit/61bb5c6570
14:47 Sgeo joined #perl6
14:49 cdg joined #perl6
14:53 apallatto joined #perl6
14:59 darkmorph joined #perl6
15:18 raiph joined #perl6
15:20 wander m: say so 1|3|5 != 2
15:20 camelia rakudo-moar f7d21b5d6: OUTPUT: «True␤»
15:20 wander m: say so any(1,3,5) != 2
15:20 camelia rakudo-moar f7d21b5d6: OUTPUT: «True␤»
15:21 piojo joined #perl6
15:22 sena_kun eater, ping?
15:30 wander https://github.com/perl6/doc/blob/c091ada9c5fd9866e6d37eabbd0df68b92c1e96b/doc/Language/concurrency.pod6#L83-L87
15:31 wander ^^ this example throw an exception, and seems don't do what it explains below
15:33 wander oops, $promise2 is really broken, but when "say $promise2.cause;", it complain "Tried to get the result of a broken Promise"
15:34 apallatto joined #perl6
15:34 wander but "say $promise1.cause;" runs well
15:34 Brumbazz joined #perl6
15:42 cdg joined #perl6
15:45 apallatto joined #perl6
15:57 domidumont joined #perl6
15:59 HoboWithAShotgun can i have a nested operator? you may know i have unit operators, so i can say my $current = 12A; i have multiple of them and i want to be able to write
15:59 Morfent joined #perl6
15:59 zakharyas joined #perl6
15:59 HoboWithAShotgun my $current = 12kA; my $current2 = 3mmA; and so on
16:00 HoboWithAShotgun but i don't want to have x alternations of the ampere postfix
16:00 HoboWithAShotgun so can i create a k and mm operator that combines with the A operator?
16:01 timotimo HoboWithAShotgun: you might have to force people to write k\V
16:01 moritz you can combine multiple postfix operators as long as you separate them somehow
16:01 timotimo m: sub postfix:<a>($a){ "$a a" }; sub postfix:<b>($a) { "$a b" }; say 100a\b; say 100b\a
16:01 camelia rakudo-moar f7d21b5d6: OUTPUT: «100 a b␤100 b a␤»
16:02 timotimo m: sub postfix:<a>($a){ "$a a" }; sub postfix:<b>($a) { "$a b" }; say 100ab
16:02 camelia rakudo-moar f7d21b5d6: OUTPUT: «100 a b␤»
16:02 timotimo oh?
16:02 moritz m: sub postfix:<k>($x) { 1000 * $x }; sub postfix:<A>($x) { "$x Ampere" }; say 42k\A
16:02 camelia rakudo-moar f7d21b5d6: OUTPUT: «42000 Ampere␤»
16:02 timotimo well, isn't that neat
16:02 moritz m: sub postfix:<k>($x) { 1000 * $x }; sub postfix:<A>($x) { "$x Ampere" }; say 42kA
16:02 camelia rakudo-moar f7d21b5d6: OUTPUT: «42000 Ampere␤»
16:02 moritz I wonder if this is a bug
16:03 timotimo it'll break if someone introduces a kA operator in some unrelated module
16:03 timotimo suddenly the parse changes
16:03 timotimo that's not very nice
16:04 zakharyas joined #perl6
16:04 wamba joined #perl6
16:08 mst well, but, equally, you could totally have a j operator and a k operator and then also define a jk operator that's an optimisation over composing the two individual implementations
16:08 mst so it could turn out to be both a footgun and a feature
16:09 timotimo right
16:09 timotimo a featgun
16:09 mst timotimo++
16:10 mst https://twitter.com/shadowcat_mst/status/924669635215134722 # *snarf*
16:14 sena_kun my friend is getting `Unexplained error` on linux machine while installing a module. Googling shows it's a libuv error. Is there any possible workaround?
16:15 mst http://trout.me.uk/data.jpg
16:15 timotimo sena_kun: strace might give a hint for what exactly errored?
16:16 Khisanth joined #perl6
16:16 sena_kun timotimo, perhaps. Is just installing strace and running it like `strace zef install ...` enough?
16:17 timotimo you'll likely need to pass -f so that it doesn'"t stop tracing when child programs are launched
16:17 timotimo but yeah, that'd be enough
16:17 sena_kun ok.
16:17 timotimo it'll likely give you a firehose of information
16:18 timotimo i recommend grep -v for at least brk and mprotect
16:20 sena_kun so it means no quick workaround, just an issue filling?
16:21 mst we can't help you find a workaround when you haven't given us any diagnostic information whatsoever
16:22 mst right now your question is equivalent to my grandmother saying "the internet is broken" in terms of amount of detail
16:22 ChoHag joined #perl6
16:24 sena_kun well, I just assumed that, for example, previous rakudo/moarvm commit or usage of release or dances around the fire could help in case someone bumped into it already. I am not familiar with libav so I don't know is it obvious error or something with black magic. Logs are on the way, don't worry. :)
16:27 sena_kun as for diagnostic information, btw, you are right, sorry. rakudobrew 5 minutes fresh, the exact module is `Cro::HTTP`. It happens on void linux.
16:31 timotimo does it happen in the test suite? cro itself suggests to install it without running the tests ;)
16:31 timotimo or at least it used to
16:32 sena_kun give me one more minute, please. yeah, during tests.
16:32 Cabanossi joined #perl6
16:33 sena_kun https://pastebin.com/LpgxPQMt - it looks like that. strace log is still on the way.
16:36 sena_kun during cro development it's not too rare to bump into some regressions, so yeah, without testing. :) But while you can --force broken tests, you cannot do anything with a hang during installation.
16:36 sena_kun s/testing/running tests/
16:38 sena_kun the log weight is 39mb, so asked him for last 2-3 thousand of lines.
16:38 cdg joined #perl6
16:39 ggoebel joined #perl6
16:45 troys joined #perl6
16:46 setty1 joined #perl6
16:47 sena_kun https://pastebin.com/d0UrbNai - the log before first `Unexplained error`, and then it becomes like https://pastebin.com/9dABpbjT
16:48 sena_kun tell me if full(39mb) log or any other info is needed.
16:48 ugexe i thought IO::Socket::Async::SSL was broken?
16:49 cdg joined #perl6
16:51 sena_kun it is indeed.
16:52 sena_kun but it is possible to just --force it. However, I might have a clue on how to fix it...
16:57 xinming_ joined #perl6
16:57 cdg joined #perl6
16:57 MasterDuke joined #perl6
16:59 cdg joined #perl6
17:20 HoboWithAShotgun joined #perl6
17:25 raiph joined #perl6
17:33 sena_kun in the end just removed test file that triggered the problem. not enough info and remote investigation is not the best thing for night of Sunday, so never mind me.
17:41 BenGoldberg joined #perl6
17:47 Zoffix joined #perl6
17:48 Zoffix sena_kun: well, tell your friend to use releases instead of arbitrary, minimally-tested development commits that may have bugs
17:48 Zoffix sena_kun: teh bug's in rakudo due to native call JIT changes
17:48 sena_kun Zoffix, oh, sure. Thanks!
17:49 Zoffix sena_kun: this is the ticket (I think Async::SSL is used by that module): https://github.com/rakudo/rakudo/issues/1220
17:49 Zoffix looking at it now, thought I know nothing about JIT, so unless it's just some typo somewhere, I won't fix it
17:51 drissel joined #perl6
17:54 eroux joined #perl6
17:55 HoboWithAShotgun joined #perl6
17:57 Rawriful joined #perl6
18:07 TEttinger joined #perl6
18:09 Piotr__ joined #perl6
18:21 poohman joined #perl6
18:27 HoboWithAShotgun joined #perl6
18:30 redhands joined #perl6
18:31 HoboWithAShotgun Can i envelope a sub in a foreign module? Specifically i want to manipulate the "proclaim" sub in Test, so it prints in color
18:32 HoboWithAShotgun currently using this to do that: https://hastebin.com/yahijosale.pl
18:32 HoboWithAShotgun but yeah know, it's not pretty
18:36 * HoboWithAShotgun yawns wholeheartedly
18:36 * Zoffix would just manipulate the TAP
18:36 Zoffix TAP::Harness probably has a parser
18:38 Zoffix You can wrap routines with `.wrap` method, but proclaim is not exported
18:38 Zoffix nor is `our`ed.
18:39 Zoffix That code has an error, how are you "using" it?
18:39 Zoffix 4 errors
18:39 redhands left #perl6
18:40 HoboWithAShotgun what, my script?
18:40 HoboWithAShotgun that's Perl 5
18:40 Zoffix Oh, didn't realize they had a `when`
18:41 Zoffix Is that from `switch` feature that turned out to be a bad idea and was removed or something?
18:42 HoboWithAShotgun no, Perl 5 bundles such stuff in "features" that have to be explicitly enabled
18:42 mson joined #perl6
18:43 lizmat HoboWithAShotgun: the problem is really that proclaim() is not part of the official API of Test
18:43 moritz Zoffix: yes, given, when and smartmatch are "experimental" in newer Perl 5 versions
18:44 redhands joined #perl6
18:44 * HoboWithAShotgun puts TAP::Parser and Test::Color on the todo list
18:44 HoboWithAShotgun unless we have a TAP Parser already
18:44 Zoffix "Feature "smartmatch" is not supported by Perl 5.26.0 at -e line 1."
18:44 * lizmat thinks there is
18:45 lizmat well, http://modules.perl6.org/search/?q=TAP%3A%3AHarness actually
18:46 HoboWithAShotgun noted. but i gonna hit the sack now
18:46 redhands left #perl6
18:46 * pmurias is not sure what route should the js backend go with string handling
18:47 Cabanossi joined #perl6
18:47 pmurias a whole bunch of roast tests want NFG but it seems this would slow stuff down a lot and add an extra barrier to interop with js code
18:48 Zoffix left #perl6
18:50 lizmat pmurias: so you just want to use NFC as an alternative to NFG ?
18:55 lizmat afk for some organised crashing in curb #1
19:03 poohman joined #perl6
19:06 buggable New CPAN upload: URI-Encode-0.000.003_20171029.tar.gz by PSIXDISTS https://cpan.metacpan.org/authors/id/P/PS/PSIXDISTS/Perl6/URI-Encode-0.000.003_20171029.tar.gz
19:23 evalable6 joined #perl6
19:43 unicodable6 joined #perl6
19:43 benchable6 joined #perl6
19:43 bloatable6 joined #perl6
19:43 nativecallable6 joined #perl6
19:43 greppable6 joined #perl6
19:43 quotable6 joined #perl6
19:43 evalable6 joined #perl6
19:43 committable6 joined #perl6
19:43 coverable6 joined #perl6
19:43 bisectable6 joined #perl6
19:43 releasable6 joined #perl6
19:43 squashable6 joined #perl6
19:43 statisfiable6 joined #perl6
19:52 mr-foobar joined #perl6
19:54 Mrofnet joined #perl6
19:54 napo1eon joined #perl6
19:55 ryn1x joined #perl6
19:56 eliasr joined #perl6
20:09 nine Sooo.... how can I actually download the dist? http://modules.perl6.org/dist/IO::Socket::Async::SSL:cpan:JNTHN
20:10 Geth ¦ perl6-examples: c539e3d67c | (Shlomi Fish)++ | categories/euler/prob284-shlomif.p6
20:10 Geth ¦ perl6-examples: Add the solution to Euler#284.
20:10 Geth ¦ perl6-examples: review: https://github.com/perl6/perl6-examples/commit/c539e3d67c
20:12 Zoffix joined #perl6
20:12 Praise joined #perl6
20:12 Praise joined #perl6
20:12 Zoffix nine: there's a link on search page (the CPAN icon: http://www.cpan.org/authors/id/J/JN/JNTHN/Perl6/IO-Socket-Async-SSL-0.5.0.tar.gz ) Just needds to be added to individual pages
20:13 Zoffix nine: do you know if anything special needs to be done to this case in this commit? https://github.com/MoarVM/MoarVM/commit/82273161ce11981f0c942bcf468670beec285b31#diff-096dfff63a9f0fb34f4f93b732e14e43L461
20:13 Zoffix Adding `goto fail` up there fixes R#1220 ... trying to figure out what it doesn't like with it
20:14 synopsebot R#1220 [open]: https://github.com/rakudo/rakudo/issues/1220 [regression] Regression since 2017.10 breaks IO::Socket::Async::SSL tests
20:15 nine ===> Install [FAIL] for OpenSSL:ver('0.1.15'):auth('github:sergot'): Failed to open file /home/nine/.zef/store/openssl.git/08b4516ff5f6a2cb58cabd8bb42d603e0e61254b/resources/ssleay32.dll libeay32.dll: No such file or directory
20:15 MasterDuke joined #perl6
20:15 nine Diagnosing this seems like a challenge of its on
20:15 nine own
20:21 nine Zoffix: can't find any download links on http://modules.perl6.org/search/?q=openssl either
20:23 Zoffix nine: there aren't any CPAN modules in those results
20:24 nine I'm not looking for CPAN modules? I'm just trying to install the dependencies of the module with which I ought to reproduce a bug.
20:24 nine Finally succeeded by manually hunting down the repos on github and editing the META6.json to make it installable
20:25 Zoffix Then I don't know what you wanted to do download
20:25 nine How did anyone even find the bug when this stuff is so hard to install? :)
20:25 Zoffix left #perl6
20:25 nine Zoffix: there used to be links to github repos on modules.perl6.org? They were quite handy for what I'm doing.
20:25 camelia joined #perl6
20:29 nine Zoffix: the CPointer case is a red herring. It's just that the broken ASN1_STRING_to_UTF8 function also has a Pointer argument. But the VMArray argument is the broken one.
20:30 nine Odd though that the p5_sv_to_buf(Pointer, CArray[CArray[int8]]) method in Inline::Perl5 seems to work just fine. The signature is almost identical.
20:31 rindolf time perl6 prob284-shlomif.p6 gives me 5minutes
20:37 skirmisha joined #perl6
20:38 skirmisha mst, hi, just wanted to thank you for your effort today
20:41 rindolf it takes 45s in g++ -O3+gmp
20:42 rindolf so not too bad
20:43 rindolf my algo is likely inefficient
20:43 poohman joined #perl6
20:47 AndChat|370944 joined #perl6
20:50 nine Even more curious, one of NativeCall's tests looks like this: sub TakeANullPointerArray(Pointer, CArray[CArray[int8]]) returns int32
20:50 nine Which really is the same just with switched arguments
20:57 Geth ¦ doc: jstuder-gh++ created pull request #1637: Modify Dockerfile and Add Docker-related Make targets
20:57 Geth ¦ doc: review: https://github.com/perl6/doc/pull/1637
21:01 Aaronepower joined #perl6
21:03 redhands joined #perl6
21:05 nine Could be that we'd need a MVM_nativecall_refresh there
21:08 Piotr_ joined #perl6
21:09 lizmat well, that was an interesting race
21:13 khw joined #perl6
21:16 rindolf lizmat: which?
21:16 lizmat F1 Mexico
21:17 moritz and here I thought there was a race condition that lizmat++ found :-)
21:17 lizmat hehe  :-)
21:18 lizmat and the winner was Max, who is actually a guy who grew up about 6km from where we live
21:19 lizmat we pass by his grandfather's icecream parlour regularly
21:19 lizmat or the place where he did his first cart racing...  :-)
21:19 lizmat he's a local hero :-)
21:20 moritz nice :-)
21:21 moritz I've had school swimming in a pool where Hannah Stockbauer trained regularly
21:22 moritz who became world champion
21:22 moritz https://en.wikipedia.org/wiki/Hannah_Stockbauer
21:26 stmuk joined #perl6
21:35 cdg joined #perl6
21:35 lizmat Max is still a long way from world champion...  but maybe next year  :-)
21:37 moritz to be fair, the swimmers have more distances and thus more races where they can become champion :-)
21:37 moritz and: go Max! :-)
21:38 zakharyas joined #perl6
21:38 moritz anyway, time for sleep here, TTFN
21:42 timotimo lizmat: oh btw i drove to my parent's house today :)
21:43 lizmat timotimo: so why don't you drop by tomorrow ?
21:43 timotimo got plans for tomorrow. not sure if there are plans for tuesday though
21:44 lizmat ah, ok, well, let us know
21:44 timotimo sure
21:44 lizmat we only have fitness in the morning :-)
21:45 timotimo fascinating. my touchpad really does switch between "two fingers to scroll" and "three fingers to scroll" on each reboot since i spilled some water on it
21:45 lizmat should be ok after 1pm
21:45 rindolf wow! Java consumes over 30% of my RAM when building rakudo
21:47 Cabanossi joined #perl6
22:06 cdg joined #perl6
22:15 cdg joined #perl6
22:18 BenGoldberg joined #perl6
22:34 Morfent joined #perl6
22:37 Merfont joined #perl6
22:48 timotimo is there any terminal emulator that'd let me click (aka xdg-open) hyperlinks in the terminal using only keyboard commands?
22:56 leah2 ttps://wiki.archlinux.org/index.php/rxvt-unicode#Yankable_URLs_.28no_mouse.29
22:56 leah2 https://wiki.archlinux.org/index.php/rxvt-unicode#Yankable_URLs_.28no_mouse.29
22:57 timotimo oh, i remember having that a long time ago
22:57 timotimo 1) sleep, 2) set that up ... maybe
22:58 geekosaur glah. there was one announced a couple months ago (either an emulator or a plugin) that extracted all URLs into a menu you could navigate by keyboard
22:58 geekosaur I can't find it now :(
22:58 timotimo ooh :(
22:59 leah2 there's also such a thing for tmux iirc
23:01 mson joined #perl6
23:01 timotimo the problem with that is that my tmux runs on a remote server
23:01 timotimo so i'd have to somehow get it tunneled back to my machine
23:02 leah2 there used to be times when firefox communicated with the local X11 display %)
23:02 timotimo hm. actually. if it's only about irc anyway i should use glowing bear instead of my terminal to chat
23:02 Cabanossi joined #perl6
23:02 timotimo yeah, but the remote system is openbsd (or freebsd?) and pretty sure not to get a firefox installed :D
23:04 timotimo tadaa, every link is noc adorned with a number that i can use to "click" it without my mouse
23:05 timotimo annoyingly, that includes every nickname on every line :D
23:09 aindilis joined #perl6
23:11 BenGoldberg For most irc clients, that's so you can send a file, do a whois, ignore, add to friends list, etc.
23:12 * BenGoldberg ponders customizing the right-click menu there so it contains an actual "etc." item.
23:16 ggoebel joined #perl6
23:22 raschipi joined #perl6
23:23 timotimo i believe glowing-bear only has it hooked up to put the name and a colon in the input bar
23:36 BenGoldberg Does it not have this new fangled thing known as tab completion?
23:45 * BenGoldberg is suddenly contemplating writing a bash based irc client, which does a chroot to a directory which has programs named /join, /part, etc. and uses the shell's own command parser.
23:48 geekosaur that sounds like a recipe for confusion to me
23:48 geekosaur also, caching issues. (the history of mh comes to mind)
23:57 knight__ joined #perl6
23:59 knight__ Guys, I must say Perl6  is exceptionally, especially his parallelism/concur./async  :-)
23:59 knight__ Great work.

| Channels | #perl6 index | Today | | Search | Google Search | Plain-Text | summary

Perl 6 | Reference Documentation | Rakudo