Perl 6 - the future is here, just unevenly distributed

IRC log for #perl6, 2016-04-27

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:01 BenGoldberg joined #perl6
00:06 Xliff "Configuring and building MoarVM ...
00:06 Xliff udobrew/moar-nom/install --make-install"
00:06 Xliff Well THAT didn't work.
00:07 Xliff At any rate, if I try and use "--moar-option='--no-optimize'" the outer Configure.pl will still throw in --optimize on the call to MoarVM's Configure.pl
00:07 Xliff Which then breaks everything.
00:09 timotimo i don't think --no-optimize exists
00:09 timotimo but --optimize=0 definitely does
00:09 timotimo why are you still using --gen-moar?
00:09 timotimo i think it'd really be easier to just cd into moar's code and make sure the right --prefix gets set
00:09 timotimo then you should be golden
00:09 BenGoldberg joined #perl6
00:10 Xliff timotimo, Well, everytime I've tried doing it from MoarVM, the symbols get erased.
00:10 pierre_ joined #perl6
00:10 Xliff So I'm trying to do a complete top-down build to see what I get.
00:11 Xliff Call me a masochist. I will probably end up doing exactly as you suggest.
00:11 Xliff But I'm.....stubborn.
00:11 timotimo you can immediately see if your symbols live after "make install" under moar finishes
00:12 timotimo with "file", that'll tell you if it's been stripped or not
00:12 timotimo oh, btw
00:12 timotimo there's a tiny bit of C code in rakudo, too
00:12 timotimo if you end up in there, you'll only see symbols if you made sure that also gets compiled with --debug=something
00:12 timotimo it'll likely take its CFLAGS and such from moar's config, though
00:13 Xliff We'll see.
00:13 Xliff And it went fine with "--optimize=0", but right after that the "--optimize" flag gets specified again.
00:14 Xliff This is using MoarVM's Configure.pl from the top level Configure.pl
00:14 Xliff I may just try to rebuild moar after this.
00:14 dalek doc: ea8c2e4 | (Tom Browder)++ | doc/Language/unicode_texas.pod:
00:14 dalek doc: tidy table inputs by removing extra white space and aligning column pipes separators
00:14 dalek doc: review: https://github.com/perl6/doc/commit/ea8c2e4b76
00:14 dalek doc: ee1fe48 | (Tom Browder)++ | doc/Language/unicode_texas.pod:
00:14 dalek doc: Merge pull request #466 from tbrowder/master
00:14 dalek doc:
00:14 dalek doc: tidy table inputs by removing extra white space and aligning column p…
00:14 dalek doc: review: https://github.com/perl6/doc/commit/ee1fe48fad
00:15 skink joined #perl6
00:16 timotimo clearly --moar-options doesn't have a clue about --optimize
00:16 timotimo patches welcome
00:16 timotimo like "we really need moar to be compiled with optimization, so we add it. good idea, eh?"
00:17 timotimo hah, yeah
00:17 timotimo check tools/lib/NQP/Configure.pm
00:17 timotimo line 320 is literally
00:17 timotimo push @opts, "--optimize";
00:19 timotimo also, nqp has that same file, but both have some differences
00:19 Xliff Yeah.
00:19 Xliff Also:
00:19 Xliff gcc  -L/home/cbwood/.rakudobrew/moar-nom/install/lib -shared -fPIC -O3 -DNDEBUG -g3 --optimize=0 -Wl,-rpath,/home/cbwood/.rak​udobrew/moar-nom/install/lib -Wl,-rpath,/home/cbwood/.rakudobrew/m​oar-nom/install/share/perl6/site/lib  -O3 -DNDEBUG -lm -lpthread -lrt -ldl -o dynext/libperl6_ops_moar.so dynext/perl6_ops.o dynext/container.o -lmoar
00:19 timotimo that makes zero sense
00:19 Xliff Note that the "--optimize=0" somehow gets passed to CFLAGS and yet the -O3 remains.
00:20 timotimo is that when you have two optimize flags passed to Configure?
00:20 skink Not to interrupt, but are there any docs yet on that new native string type?
00:20 branthebuilder joined #perl6
00:20 tardisx joined #perl6
00:21 timotimo i wasn't aware of a new native string type
00:21 Xliff timotimo, that resulted from "perl ./Configure.pl --gen-moar --backend=moar --moar-option='--debug=3 --optimize=0'"
00:21 BenGoldberg joined #perl6
00:21 timotimo oh, i know what's going on
00:21 Xliff So I didn't specify two optimize options.
00:21 timotimo see how it's called "--moar-option" and not "--moar-options"?
00:21 dalek star: 4d70f16 | (Steve Mynott)++ | tools/star/release-guide.pod:
00:21 dalek star: doc how-to-get-rakudo
00:21 dalek star: review: https://github.com/rakudo/star/commit/4d70f16375
00:21 timotimo you're litterally setting the debug to "3 --optimize=0"
00:21 Xliff O_O
00:21 timotimo and we're not quoting properly
00:21 timotimo so it should have become -g"3 --optimize=0" in the CFLAGS
00:21 * Xliff tries again.
00:22 Xliff Er. Nope.
00:22 timotimo --moar-options doesn't exist. you have to pass --moar-option twice
00:22 Xliff Configure.pl pukes on "--moar-options"
00:22 Xliff Ooo. OK.
00:23 skink timotimo, Second bullet on the release announcement. 'str' instead of 'Str'
00:23 skink I can't find many references to it though
00:23 MadcapJake Xliff: try FILE.path('/dev/stdout') (perhaps on a VM, 1 isn't stdout's file descriptor)
00:24 stmuk_ not sure its worth retrospectively changing announcements
00:24 timotimo skink: you mean native string arrays, then?
00:24 skink mhm
00:25 Xliff MadcapJake, SURE
00:25 timotimo oh, compiler release, not star release?
00:25 kid511 joined #perl6
00:25 timotimo no, must have been Star
00:26 timotimo skink: i literally can't find an announcement that has "str" in it
00:26 timotimo as in: in its second bullet
00:26 skink http://rakudo.org/2016/04/25/anno​unce-rakudo-star-release-2016-04/
00:26 skink Some of the new compiler features since the last Rakudo Star release include:
00:26 skink Much improved REPL with multi-line support.
00:26 skink Native string arrays.
00:28 timotimo yeah, that's not "'str' instead of 'Str'" :)
00:28 timotimo that's also not a "new native string type"
00:28 MadcapJake Xliff: that's just how I have the class named to match how it's written in C code :P
00:29 skink timotimo, Man I just got home and skimmed that :)
00:29 timotimo :)
00:30 * Xliff is just going to have to suffer with the "-O3" and hopes he can still find the problem.
00:36 timotimo why?
00:36 timotimo i told you how to get around that problem
00:37 timotimo why do you do this to us :P
00:38 stmuk_ pass the options from rakudobrew ;) (joke)
00:38 adu joined #perl6
00:39 timotimo rakudobrew giving people trouble made me look at a carreer in table-flipping
00:47 awwaiid Only the source for rakudo-star-2016.04 is released -- no .msi or .dmg yet eh?
00:48 timotimo FROGGS usually makes the .msi but he seems quite busy at the moment
00:48 awwaiid well I'm psyced and ready to update the purdy "how to get rakudo perl 6" page on rakudo.org :)
00:49 stmuk_ awwaiid: I will probably build the .dmg in the next hour or so
00:53 Xliff _IO_new_fdopen (fd=1, mode=0x0) at iofdopen.c:65
00:54 Xliff fd_flags = <optimized out>
00:54 Xliff o_O
00:55 MadcapJake This is nuts: https://spin.atomicobject.com/201​6/04/26/swift-long-compile-time/
00:59 timotimo whoops
01:00 timotimo huh, so it's about type inference?
01:01 MadcapJake yeah i'm guessing that each added field required checking against all other fields' types
01:01 Xliff MadcapJake, FILE.path('/dev/stdout') worked.
01:03 MadcapJake Xliff: sweet!
01:03 Actualeyes joined #perl6
01:10 timotimo on windows, you can allegedly open "CON"
01:13 MadcapJake timotimo: i read that, no windows machine to try it on though
01:19 timotimo mhm
01:19 * geekosaur reads back, considers sending apple's devs a copy of ghc >.>
01:26 hotel joined #perl6
01:27 hotel does anyone know where I can set LDFLAGS for moarVM to compile with?
01:28 geraud joined #perl6
01:29 molaf joined #perl6
01:30 hotel I was digging around the stuff I think makes it build, but I can't be sure
01:32 timotimo if i have to change LDFLAGS, i usually vi Makefile :\
01:33 hotel so yeah, I saw that the makefile set LDFLAGS=@ldflags@ and I didn't want to change it for fear of screwing stuff up?
01:33 timotimo may i ask what you're up to?
01:34 hotel still trying to compile perl6 on WSL
01:34 hotel the ubuntu on windows
01:34 pierre_ joined #perl6
01:34 timotimo ah!
01:35 hotel it won't compile on the stack
01:35 hotel so I'm trying the ldflags hack
01:36 tardisx joined #perl6
01:37 Xliff What is the ldflags hack?
01:38 hotel from this site: https://wiki.gentoo.org/wiki/​Hardened/GNU_stack_quickstart which says to add these: -Wl,-z,noexecstack
01:39 hotel I found the site on a perl6 listserv talking about building on selinux
01:41 Xliff Try adding to the ldmiscflags key on line 274 of moar/nqp/MoarVM/build/setup.pm
01:42 Xliff This is NOT recommended, but since I've been digging in the build system tonight. I may as well pass on some of the stuff I've learned.
01:46 skink MadcapJake, reddit comments on that said problem can be resolved if you just add a type annotation
01:46 MadcapJake skink: I noticed that in the article comments too :P
01:46 skink Oh, right
01:46 hotel thanks for the help Xliff :)
01:46 * skink needs to stop simply skimming
01:46 hotel I wouldn't be doing this if I wasn't balls deep in trying to game the WSL system lol
01:46 MadcapJake Here's another interesting article: http://www.evanmiller.org/elixir-​ram-and-the-template-of-doom.html
01:46 MadcapJake The author makes it sound like "this is so amazing" but really it sounds completely ridiculous, insert an empty string and performance more than doubles! WUT?!
01:46 dalek doc: ecc765f | (Tom Browder)++ | doc/Language/unicode_texas.pod:
01:46 dalek doc: remove non-functional pod format codes
01:46 dalek doc: review: https://github.com/perl6/doc/commit/ecc765f034
01:46 dalek doc: 47fd2ac | (Tom Browder)++ | doc/Language/unicode_texas.pod:
01:46 dalek doc: Merge pull request #467 from tbrowder/master
01:46 dalek doc:
01:46 dalek doc: remove non-functional pod format codes
01:46 dalek doc: review: https://github.com/perl6/doc/commit/47fd2ac5d6
01:49 zacts joined #perl6
01:51 ZoffixWin joined #perl6
01:52 hotel curses, it didn't work
01:54 ZoffixWin m: https://gist.github.com/zoffixznet​/cff6ca52a02976488721281c32d0d778
01:54 camelia rakudo-moar ce5dc0: OUTPUT«5===SORRY!5=== Error while compiling /tmp/ckVwcQ05gb␤Unsupported use of . to concatenate strings; in Perl 6 please use ~␤at /tmp/ckVwcQ05gb:2␤------> 3    TOP { [<bold> | <italic> | . 7⏏5]+ }␤»
01:54 ZoffixWin Weird, no? Can't seem to reduce it to a smaller test case :/
01:55 ZoffixWin Ahh.. I've missed "token" off TOP ~_~
01:55 ZoffixWin m: grammar { TOP { . } }
01:55 camelia rakudo-moar ce5dc0: OUTPUT«5===SORRY!5=== Error while compiling /tmp/jikmv2xskv␤Unsupported use of . to concatenate strings; in Perl 6 please use ~␤at /tmp/jikmv2xskv:1␤------> 3grammar { TOP { . 7⏏5} }␤»
01:56 hotel_california joined #perl6
01:57 ZoffixWin Reported as LTA error: https://rt.perl.org/Ticket/Display.html?id=128003
02:00 hotel joined #perl6
02:00 BenGoldberg joined #perl6
02:10 hotel interesting
02:10 hotel gcc: error: unrecognized command line option ‘-Wl’
02:12 timotimo http://www.drmemory.org/  -  this drstrace thing might be interesting to use for figuring out why rakudo can't install with the "invalid file descriptor" error or what that was
02:13 hotel I haven't gotten that since then
02:13 hotel in other words, since I started trying to build from the tarball instead of from github
02:13 geekosaur something is inappropriately splitting on commas?
02:13 hotel oh that could be it
02:14 hotel I changed it so LDFLAGS=@ldflags@ -Wl -z noexecstack without knowing how to properly join things in make
02:18 * hotel is still unsure tbh
02:21 geekosaur it's not make, just a quirk of the -W syntax that it requires commas
02:21 hotel oh
02:21 hotel ooh
02:21 geekosaur -Wtool,option[,option...]
02:23 * hotel generally likes to stay in a higher layer
02:26 noganex joined #perl6
02:27 hotel omg
02:27 hotel it's working!!1!
02:31 alx741 joined #perl6
02:37 BenGoldberg joined #perl6
02:40 Xliff hotel++
02:41 hotel yo
02:41 hotel it's running through tests now :D
02:46 Xliff Right on.
02:47 Xliff If you could write up what you did to get things working on the WSL, that would be great.
02:47 zacts joined #perl6
02:48 Xliff Considering that I may want to do the same if I go to Windows 10.
02:48 hotel yeah I will
02:49 hotel where should I post it, do you think?
02:50 Herby_ joined #perl6
02:50 Herby_ o/ #perl6
02:51 hotel \o
02:51 BenGoldberg joined #perl6
02:57 hotel I guess I'll post on reddit after I confirm what exactly made it work
02:58 cdg joined #perl6
03:10 BenGoldberg joined #perl6
03:14 tomboy64 joined #perl6
03:23 tomboy64 joined #perl6
03:25 tardisx joined #perl6
03:26 hotel is there a way to terminate a test and move to the next one?
03:38 dalek star: 3379969 | (Steve Mynott)++ | ports/darwin_dmg/package_darwin_dmg.pl:
03:38 dalek star: lowercase final filename to look like the windows etc ones
03:38 dalek star: review: https://github.com/rakudo/star/commit/3379969429
03:38 stmuk_ http://pl6anet.org/drop/rakudo-star-2016-04.dmg
03:38 stmuk_ can a mac user have a quick look at that please?
03:42 hotel left #perl6
03:59 adu joined #perl6
04:19 alx741 left #perl6
04:30 Cabanossi joined #perl6
05:32 Actualeyes joined #perl6
05:37 rba_ joined #perl6
05:49 Util joined #perl6
05:58 pierre_ joined #perl6
06:00 jjido joined #perl6
06:10 domidumont joined #perl6
06:15 domidumont joined #perl6
06:22 sno joined #perl6
06:23 firstdayonthejob joined #perl6
06:24 tardisx joined #perl6
06:30 pdcawley joined #perl6
06:30 _mg_ joined #perl6
06:40 ufobat joined #perl6
06:43 raydiak m: my %foo; %foo<bar>[*-0] = 42; say %foo.perl;
06:43 camelia rakudo-moar ce5dc0: OUTPUT«{:bar($[Any, 42])}␤»
06:43 raydiak ^ where did the Any come from?
06:43 raydiak m: my @foo; @foo[*-0] = 42; say @foo.perl;
06:43 camelia rakudo-moar ce5dc0: OUTPUT«[42]␤»
06:45 raydiak m: my %foo; %foo<bar>.push: 42; say %foo.perl;
06:45 camelia rakudo-moar ce5dc0: OUTPUT«{:bar($[42])}␤»
06:45 masak raydiak: looks bugly to me
06:46 raydiak thanks masak, I'll file a report then
06:47 ufobat good morning :)
06:47 raydiak good evening :)
06:48 CIAvash joined #perl6
06:52 tomboy64 joined #perl6
06:52 mrsolo joined #perl6
06:56 wamba joined #perl6
06:59 SmokeMachine____ joined #perl6
07:01 BuildTheRobots joined #perl6
07:05 MadcapJake joined #perl6
07:09 jjido joined #perl6
07:11 ggherdov joined #perl6
07:15 JimmyZ_ joined #perl6
07:19 rindolf joined #perl6
07:22 rba_ joined #perl6
07:22 zakharyas joined #perl6
07:34 cdg joined #perl6
07:37 Actualeyes joined #perl6
07:48 jack_rabbit joined #perl6
07:56 rba_ joined #perl6
08:09 darutoko joined #perl6
08:10 jjido joined #perl6
08:10 abraxxa joined #perl6
08:12 winger__ joined #perl6
08:13 dakkar joined #perl6
08:19 abraxxa joined #perl6
08:22 maybekoo2 joined #perl6
08:29 pierre_ joined #perl6
08:34 winger_ joined #perl6
08:35 eone joined #perl6
08:36 BooK so following some hacking with lizmat I wrote a stress-test for Version.pm
08:36 BooK what's the procedure to add that to roast? just commit on master?
08:36 domidumont joined #perl6
08:37 BooK I wrote it with eq, lt, ge, etc, and then rewrite it with ==, <, >=, etc after lizmat's change from Str to Num semantics (which makes a lot of sense)
08:40 BooK I wouldn't mind some code review to learn more idiomatic ways to write stuff, as this is my most substantial perl6 program ever :-)
08:42 winger_ joined #perl6
08:50 RabidGravy joined #perl6
08:50 rba_ joined #perl6
08:50 RabidGravy boom
08:59 masak m: say "boom".flip
08:59 camelia rakudo-moar ce5dc0: OUTPUT«moob␤»
09:00 * masak .oO( wooq )
09:00 masak m: sub flip($s) { "wooq" }; say "boom".&flip
09:00 camelia rakudo-moar ce5dc0: OUTPUT«wooq␤»
09:01 * masak is in a silly mood, apparently
09:01 DrForr m: say "TVA".flip
09:01 camelia rakudo-moar ce5dc0: OUTPUT«AVT␤»
09:02 DrForr And I was hoping for tableflip here :)... Maybe I should write one.
09:04 masak please do.
09:05 BooK https://github.com/book/roast/commit/b0​1dc6d64d3c12ff55a27da62d2abade92452386 # I'd be interested in a code review, before submitting a PR for roast
09:06 BooK or should I push directly on master?
09:06 winger__ joined #perl6
09:08 RabidGravy BooK, looks good
09:08 masak BooK: looks good
09:09 winger__ joined #perl6
09:10 BooK there's no better way to write: @same.map({$_²}).sum ?
09:10 BooK m: my @a = <1 2>; say @a.map(*²).sum
09:10 camelia rakudo-moar ce5dc0: OUTPUT«Cannot call Numeric(Whatever: ); none of these signatures match:␤    (Mu:U \v: *%_)␤  in block <unit> at /tmp/3lZr02RoS1 line 1␤␤»
09:11 masak m: my @a = <1 2>; say @a>>².sum
09:11 jjido joined #perl6
09:11 camelia rakudo-moar ce5dc0: OUTPUT«5␤»
09:11 masak m: my @a = <1 2>; say @a»².sum
09:11 camelia rakudo-moar ce5dc0: OUTPUT«5␤»
09:11 BooK ah cool
09:13 BooK m: @a=( < 1 2 >, < 3 4 > ); say @a»+»².sum
09:13 camelia rakudo-moar ce5dc0: OUTPUT«5===SORRY!5=== Error while compiling /tmp/XS9czfJXU6␤Variable '@a' is not declared␤at /tmp/XS9czfJXU6:1␤------> 3<BOL>7⏏5@a=( < 1 2 >, < 3 4 > ); say @a»+»².sum␤»
09:13 BooK m: my @a=( < 1 2 >, < 3 4 > ); say @a»+»².sum
09:13 camelia rakudo-moar ce5dc0: OUTPUT«5===SORRY!5=== Error while compiling /tmp/lCpe3JeeNZ␤Malformed postfix␤at /tmp/lCpe3JeeNZ:1␤------> 3my @a=( < 1 2 >, < 3 4 > ); say @a»7⏏5+»².sum␤    expecting any of:␤        postfix␤»
09:14 BooK sum of the squares of the number of elements
09:14 masak first off, don't need those parens
09:15 DrForr Hrm, I had code somewhere that extrapolated series using divided differences... yet something else to dig up :)
09:15 masak m: my @a = <1 2>, <3 4>; say @a».elems»².sum
09:15 camelia rakudo-moar ce5dc0: OUTPUT«8␤»
09:15 masak BooK: ^
09:15 winger__ joined #perl6
09:15 masak m: my @a = <1 2>, <3 4>; say (+«@a)»².sum
09:15 camelia rakudo-moar ce5dc0: OUTPUT«4␤»
09:16 BooK masak: yep, came to the same conclusion
09:16 masak hurm :)
09:16 BooK ».elem»².sum I mean
09:17 masak m: my @a = <1 2>, <3 4>; say +«@a
09:17 camelia rakudo-moar ce5dc0: OUTPUT«[(1 2) (3 4)]␤»
09:18 masak ah.
09:18 masak curse you, nodal!
09:18 masak :)
09:18 BooK what's nodal?
09:18 masak my nemesis, clearly
09:19 arnsholt From memory, it's a sub trait that controls whether hypering that sub over a list will recurse down the list or simply apply to the first-level list items
09:19 arnsholt IIRC is nodal means that it will recurse
09:19 masak arnsholt++ # what arnsholt said
09:20 BooK so here, it's + that's nodal ?
09:20 arnsholt And it seems that what masak wanted was a list of the lengths of the sublists, rather than a numified list of the same topology as the input
09:20 arnsholt Yeah, operators being somewhat special subs
09:20 profan &win 16
09:20 profan wops
09:20 * profan scurries away
09:21 arnsholt Hello, fellow irrsi user! =D
09:21 profan hello :D
09:21 masak :D
09:21 * masak points the way to window 16
09:21 masak it's... over there -->
09:22 * profan follows the sigils
09:35 zakharyas joined #perl6
09:39 winger_ joined #perl6
09:39 pdcawley_ joined #perl6
09:45 pierre_ joined #perl6
09:47 leont_ joined #perl6
09:59 pecastro joined #perl6
10:07 g4 joined #perl6
10:07 g4 joined #perl6
10:12 jjido joined #perl6
10:12 kaare_ joined #perl6
10:33 rba_ joined #perl6
10:48 rba__ joined #perl6
11:01 leont_ joined #perl6
11:05 AlexDaniel joined #perl6
11:05 brrt joined #perl6
11:07 AndyDee joined #perl6
11:08 kid51 joined #perl6
11:10 AlexDaniel https://twitter.com/stelian​/status/720913927639560194 rotary dial is probably my favorite
11:11 AlexDaniel jnthn: in case of 4 ~~ (4,5,6,7), is it possible to give a warning? (instead of doing nothing which is LTA)
11:11 jnthn unlikely
11:12 AlexDaniel crap!
11:12 jnthn m: say 1234 ~~ m:g/\d/
11:12 camelia rakudo-moar f7613f: OUTPUT«(「1」 「2」 「3」 「4」)␤»
11:12 jjido joined #perl6
11:16 AlexDaniel jnthn: or should I open a [LTA] ticket anyway just in case somebody figures out how to make it throw a warning?
11:16 TimToady joined #perl6
11:16 jnthn I'd prefer not to have open-ended tickets with no clear resolution.
11:16 AlexDaniel the problem is that not only it is very natural for somebody to try that, but it's also how it *kinda* works in Perl 5
11:17 AlexDaniel jnthn: ok then, thanks
11:17 moritz ... except that smart-matching is deprecated in p5
11:17 AlexDaniel moritz: yeah, that's why “kinda” :)
11:18 AlexDaniel moritz: although I'm not sure if it is actually deprecated. v5.22 still says that it is “experimental”
11:19 AlexDaniel moritz: and most recent docs say “The smartmatch operator is experimental and its behavior is subject to change”
11:20 AlexDaniel which does not sound like “deprecated”
11:22 perlawhirl joined #perl6
11:27 Xliff my @a = ^5; say @a»
11:28 Xliff m: my @a = ^5; say @a»
11:28 camelia rakudo-moar f7613f: OUTPUT«5===SORRY!5=== Error while compiling /tmp/XPKMz_LtdL␤Malformed postfix␤at /tmp/XPKMz_LtdL:1␤------> 3my @a = ^5; say @a»7⏏5<EOL>␤    expecting any of:␤        postfix␤»
11:28 Xliff m: my @a = ^5; say @a»²
11:28 camelia rakudo-moar f7613f: OUTPUT«[0 1 4 9 16]␤»
11:28 Xliff m: my @a = ^5; say @a»².sum
11:28 camelia rakudo-moar f7613f: OUTPUT«30␤»
11:29 Xliff Neat
11:31 DrForr "We tried for years to attach some kind of cosmic significance to that..."
11:33 moritz AlexDaniel: you're right; I just tend to avoid code that throws warnings, so I treat "experimental" and "deprecated" pretty much the same
11:34 RabidGravy though there has been an increasing 'experimental' -> 'deprecated' -> removed trajectory over the releases since ~ 5.18.0
11:36 _nadim joined #perl6
11:37 _nadim Good afternoon!
11:37 masak _nadim: hi!
11:37 _nadim is there a nice Perl6ish way to do something like thishttp://nopaste.linux-dev.org/?1093534
11:37 * masak .oO( unrecognized protocol thishttp )
11:38 timotimo that's like categorize or classify
11:38 masak was gonna say
11:38 _nadim masak: hello fellow frozen countryman
11:39 masak _nadim: indeed. this weather, huh? want my money back.
11:39 _nadim masak: I am going awy to Africa, I didn't sign up for this ;)
11:40 jnthn Aww, I'm missing cool weather?
11:40 _nadim search for categorize gave Baggy::categorize-list which is not documented
11:40 jast 4°C here right now
11:40 bazzaar joined #perl6
11:40 _nadim Brrrr
11:41 _nadim We need to plan aPerl6 conference in Africa
11:41 bazzaar \o
11:42 RabidGravy Libya is cheap and plenty of free accomodation right now
11:42 telex joined #perl6
11:42 TimToady joined #perl6
11:43 _nadim You obviously deserve to be send there!
11:43 bazzaar has anyone found Pg connect problem with DBIish in Rakudo Star 2016-04 ?
11:44 timotimo i haven't tried it yet; what's the symptom? error message?
11:44 bazzaar getting a 'This type cannot unbox to a native string' error, in script that worked with R* 2016-01
11:45 timotimo it doesn't give a backtrace, does it?
11:45 timotimo can you try running it with "perl6 --ll-exception blah.p6"?
11:45 RabidGravy DBIish had a high velocity over the last few months
11:47 bazzaar got the backtrace, not sure how to share it
11:47 _4d47 joined #perl6
11:48 leont_ joined #perl6
11:49 timotimo there are many nice "no-paste" services on the 'net that you can use for free
11:49 timotimo http://nopaste.linux-dev.org/ - for example
11:49 dalek joined #perl6
11:51 ilmari http://fpaste.scsys.co.uk/perl6
11:51 ilmari then shadowpaste will automatically post the link
11:51 timotimo cool
11:52 _4d47 is there any differences between returns and --> apart style ?
11:52 timotimo _4d47: you can put "-->" into anonymous blocks and such, or signature literals, where "returns" isn't applicable
11:54 bazzaar timotimo: DBIish connect error backtrace - http://nopaste.linux-dev.org/?1093550
11:55 _4d47 ok thx :)
11:56 jdv79 is p6 faster than p5 yet?
11:56 bazzaar ilmari: thanks also for that link
11:56 [Coke] jdv79: nope
11:57 jast faster to write in, once you've gotten a bit of practice in
11:57 timotimo jdv79: it can be for very small - engineered - test cases
11:58 timotimo bazzaar: can you also share a bit of your code?
11:59 timotimo i'd have to install a postgres server somewhere to test stuff ...
12:01 RabidGravy has anyone got a raspberry pi 3 and in a position to share the contents of the /proc/cpuinfo ?
12:01 jdv79 is it normal to sleet and then be sunny in < an hour round brussels?
12:02 jdv79 happened yday 2 times.  i dont think ive ever seen that round nyc.
12:02 RabidGravy it was doing that in London yesterday
12:02 rba_ joined #perl6
12:02 RabidGravy quite pleasant for ten minutes then awful sleety stuff and then pleasant again
12:03 RabidGravy not quite as bad today
12:03 jdv79 very confusing
12:03 RabidGravy but not sufficiently pleasant to make me want to go outside
12:06 bazzaar timotimo: DBIish connect error backtrace - example code - http://nopaste.linux-dev.org/?1093551
12:07 domidumont joined #perl6
12:09 pierre_ joined #perl6
12:10 tbrowder joined #perl6
12:12 moritz DBDish::Pg::Native):145 looks to be the actual source of the error
12:12 moritz bazzaar: try specifying the port as a string
12:13 moritz bazzaar: :port('5432')
12:13 jjido joined #perl6
12:13 _mg_ joined #perl6
12:16 timotimo ah, interesting
12:16 astj joined #perl6
12:17 moritz that's a bug in DBIish
12:18 tbrowder good morning all:  I've noticed the Perl 6 world uses the word 'codepoint' in most places, but many other places on the Net (including Wikipedia and Microsoft) show the word as 'code point'. Any objection to correcting that in Perl 6 (as well as maybe adding it to the doc/STYLEGUIDE.md)?
12:18 timotimo oh, interesting
12:20 domidumont joined #perl6
12:20 bazzaar moritz: specifying the port as a string, that works :)
12:20 AlexDaniel tbrowder: I think that codepoint is fine
12:21 moritz bazzaar: can you please open a bug at https://github.com/perl6/DBIish/issues/ for that?
12:21 AlexDaniel tbrowder: it is commonly used, and somebody even bothered to add it to wiktionary as an alternative spelling for “code point”
12:22 DrForr http://unicode.org/glossary/ # It's spelled 'code point' in the Unicode glossary.
12:22 tbrowder AlexDaniel: but our docs are not consistent, so we should pick one or the other and specify it IMHO
12:22 moritz then we should prefer the Unicode consortium's writing
12:23 bazzaar moritz: yes, I'll give it a go ... also for interest, perl6 reported 'DBDish::Pg::Connection.disconnect is DEPRECATED, please use .dispose'
12:24 damnlie joined #perl6
12:24 * AlexDaniel looks at https://www.google.ee/#q=%2​2codepoint%22+site:unicode.org
12:25 masak I'd say "codepoint" is one of those words (like "email") where something that used to be two parts is being streamlined into being just one part
12:25 AlexDaniel DrForr: 25600 results, eh… not all of them are relevant but still
12:26 moritz AlexDaniel: curious, on google.com I only get ~6k results
12:26 moritz and 3k for "code point"
12:26 AlexDaniel hah!
12:27 AlexDaniel 2870 for "code point" here
12:27 AlexDaniel moritz: it's really interesting that google is giving different results
12:27 AlexDaniel and also that it automatically redirects me from .com
12:27 pierre_ joined #perl6
12:28 DrForr Different datacenters have different shards?
12:28 _nadim what does a proto like "proto method classify-list(|) { * }" force for type of signature?
12:29 AlexDaniel DrForr: sure, but it makes me want to do that through Tor next time :)
12:29 tbrowder the fact that the Unicode group uses 'code point' should be the deciding factor, not popularity--our docs should be technically sound and authoritative as much as possible
12:29 bbkr joined #perl6
12:31 AlexDaniel tbrowder: I do not agree. Our docs are for people, there's no good enough reason to get it more “technically sound” in this case. Especially when it is such bikeshedding
12:31 rurban joined #perl6
12:32 RabidGravy it should be consistent foremost
12:32 perlawhirl joined #perl6
12:33 rurban left #perl6
12:34 AlexDaniel “code point” – 54 on perl6.org vs “codepoint” – 392 results
12:34 AlexDaniel so I'd say that it is easier to change “code point” to “codepoint”…
12:34 RabidGravy :)
12:35 DrForr Maybe we should also have a glossary in order to encourage people to use the Perl 6-authorized spelling? :)
12:36 AlexDaniel is it “falsy” or “falsey”?
12:37 tbrowder I agree. Perfect uniformity in language is probably impossible, but one mark of good technical documentation is consistent terminology, and a glossary IMHO is a good thing.
12:38 AlexDaniel ok
12:38 AlexDaniel there you go: http://design.perl6.org/S99.html#codepoint
12:39 _nadim DrForr: an excellent idea, in all the bigger project, I've been working in, we had a glosary
12:39 tbrowder ...and that's not bikeshedding.
12:39 AlexDaniel _nadim: we have two!
12:39 RabidGravy wouldn't that glossary be better in the docs
12:40 AlexDaniel on is here https://doc.perl6.org/language/glossary
12:40 AlexDaniel and the other one is S99
12:40 AlexDaniel one*
12:40 AlexDaniel RabidGravy: yes. lizmat++ did a great job in moving all important stuff from S99 to docs
12:40 AlexDaniel RabidGravy: feel free to continue it
12:41 * AlexDaniel really hopes that we will get rid of S99 one day
12:44 perlpilot AlexDaniel: why?
12:44 AlexDaniel perlpilot: have you ever tried reading S99 from top to bottom? :)
12:45 perlpilot nope.  But I haven't tried reading a dictionary or a thesaurus from front to back either.
12:45 RabidGravy I'd say that the S99 should be restricted to terms that are actually in the design docs
12:45 AlexDaniel heh, well S99 is not that long
12:46 perlpilot RabidGravy: why?
12:46 RabidGravy because it's a design doc
12:47 RabidGravy it shouldn't be in the business of  glossarizing things that are just colloquialisms of the Perl 6 community
12:47 AlexDaniel perlpilot: we should not have two glossaries. Right now some stuff is duplicated, so we should probably start removing that from S99
12:47 RabidGravy unless of course it seeks to mandate a particular use of language
12:48 _nadim what's $^a?
12:48 AlexDaniel perlpilot: after doing that it will just leave a bunch of words that are not described, so there would be no point to keep it
12:48 RabidGravy (and given the authoritarian streak of some geeks I wouldn't be surprised)
12:48 perlpilot AlexDaniel, RabidGravy: Have both you read the first paragraph of S99?
12:48 AlexDaniel m: sub foo { return $^a * *a }; say foo 42
12:48 camelia rakudo-moar f7613f: OUTPUT«5===SORRY!5=== Error while compiling /tmp/X5GuWKTygY␤Two terms in a row␤at /tmp/X5GuWKTygY:1␤------> 3sub foo { return $^a * *7⏏5a }; say foo 42␤    expecting any of:␤        infix␤        infix stopper␤        postfix␤        sta…»
12:49 AlexDaniel m: sub foo { return $^a * $a }; say foo 42
12:49 camelia rakudo-moar f7613f: OUTPUT«1764␤»
12:49 grondilu Ok, so I was trying "my &f = multi () {}" and rakudo tells me that's not possible.  So I tried my &f = proto () {*} and it tells me that's not possible either.  Why not?
12:50 jnthn grondilu: Because multi candidate lists are associated with the correct proto by name
12:50 llfourn_ grondilu: runtime protos are not really a thing
12:50 AlexDaniel perlpilot: no, what's there?
12:51 grondilu that's slightly LTA
12:51 perlpilot AlexDaniel: S99:14
12:51 synopsebot6 Link: http://design.perl6.org/S99.html#line_14
12:51 perlpilot :-)
12:51 [Coke] _nadim: it's a positional so you can use a name for an arg without having to explicitly declare it in the signature.
12:52 llfourn_ grondilu: it's NYI I think, in the design docs it says you should be able to push candidates onto a dispatcher which implies to me that runtime proto creation should work.
12:52 [Coke] you'll see $^a and $^b in one-off sort subs, reminiscent of perl5's $a and $b
12:52 RabidGravy perlpilot, but that would suggest that really it wants to be in the docs and not the design
12:52 RabidGravy it wouldn't need that explanation then
12:52 perlpilot RabidGravy: perhaps.
12:53 AlexDaniel perlpilot: this was written in 2013 which was before we had proper docs and proper glossary in docs
12:53 AlexDaniel perlpilot: also see this https://github.com/perl6/specs/commit/4​3de78ced4001e2be30a2e215130bfbc14d4ca5d
12:53 _nadim [Coke]: I got that from the example above, thnaks
12:53 AlexDaniel which is your commit
12:53 _nadim I am trying to wrap my head around Baggy classify-list
12:53 grondilu I was building three functions from a common template so I had to do something like my (&f, &g, &h) = map -> &x { sub () { do-something-with-&x } }, &afunc, &anotherone, &yetanotherone.  But then I realized that I would lost polymorphism for &f, &g and &h
12:54 llfourn_ grondilu: you can do something like  my $new_proto = (my proto anon (|) {*}).clone; # But YMV and it might be evil
12:55 RabidGravy y'see I would argue that it should actually be reduced in scope to the first two sentences of the original paragraph, and anything else should go in the docs
12:55 AlexDaniel _nadim: one gotcha is that the order depends on the… uh… codepoint number I guess?
12:55 AlexDaniel m: sub foo { say $^a; say $^b }; say foo 42, 69
12:55 camelia rakudo-moar f7613f: OUTPUT«42␤69␤True␤»
12:55 AlexDaniel m: sub foo { say $^b; say $^a }; say foo 42, 69
12:55 camelia rakudo-moar f7613f: OUTPUT«69␤42␤True␤»
12:55 AlexDaniel no??
12:56 perlpilot AlexDaniel: they are ordered Unicodely
12:56 _nadim seems so
12:56 AlexDaniel ah yeah, right
12:56 * AlexDaniel got confused by his own example
12:57 AlexDaniel _nadim: in other words, it is probably a bad idea to use readable names
12:57 _nadim lol!
12:58 _nadim https://doc.perl6.org/routine/categorize-list would deserve a little work specially explaining the difference with classify and also what a multi level classification/categorization is
12:59 BooK book
12:59 RabidGravy well unless  $^aardvark and $^barbarian are natural names for your application
12:59 AlexDaniel _nadim: you are right. Please create an issue here: https://github.com/perl6/doc/issues/new
13:00 _nadim I also promised to help with this, been busy and now have a broken computer but maybe next week when I get a new one.
13:01 Actualeyes joined #perl6
13:01 perlpilot RabidGravy: though, if "aardvark" and "barbarian" are natural names, you might want to use $:aardvark and $:barbarian instead.
13:01 RabidGravy yeah, exactly
13:01 perlpilot or, of course, even better would be to actually declare a signature ;)
13:02 _nadim AlexDaniel: done
13:02 RabidGravy it's one of those features I could really do without
13:02 AlexDaniel _nadim: 🖒👍
13:03 _nadim multi method classify-list( %test, *@list ) { self.classify-list( { %test{$^a} }, @list ); }   This is the example where $^a made me scratch my head.
13:04 AlexDaniel RabidGravy: I thought that it is one of those features I couldn't really do without until I realized that the order is not what I want it to be
13:04 pierre_ joined #perl6
13:05 perlpilot Like all shortcuts in Perl, they are to be used judiciously
13:05 AlexDaniel _nadim: You can also use $_ here, I think
13:05 tbrowder I'll leave 'codepoint' vs 'code point' to simmer...bye
13:05 timotimo bye tbr:)
13:05 timotimo damn
13:06 dalek doc: b28194f | (Tom Browder)++ | doc/Language/unicode_texas.pod:
13:06 dalek doc: define the code point properties in the description
13:06 dalek doc: review: https://github.com/perl6/doc/commit/b28194fb6d
13:06 dalek doc: 8aff7f6 | (Tom Browder)++ | doc/Language/unicode_texas.pod:
13:06 dalek doc: chg '((' to '('; add hyphen for adjective; add missing property <Lm> and its definition
13:06 dalek doc: review: https://github.com/perl6/doc/commit/8aff7f60fd
13:06 dalek doc: ed99281 | (Tom Browder)++ | doc/Language/unicode_texas.pod:
13:06 dalek doc: Merge pull request #468 from tbrowder/master
13:06 dalek doc:
13:06 dalek doc: define the code point properties in the description
13:06 dalek doc: review: https://github.com/perl6/doc/commit/ed9928153c
13:07 bazzaar moritz: DBIish bug reported, https://github.com/perl6/DBIish/issues/62 - github mangled my text with silly font sizes though, ... shrug
13:07 _nadim AlexDaniel: doesn't make more sense to use $_ vs $^a. I actually wouldn't mind a walk through those two multies.  I get 90% of them (or so I believe ;) ) and the rest is "Mhuua WTF?!"
13:08 moritz bazzaar: if you indent the text four spaces, github will leave it alone
13:08 AlexDaniel bazzaar: try using ``` ``` around it
13:09 AlexDaniel which is sometimes a bit easier than indenting the whole text :)
13:09 * moritz is used to vim's block editing feature
13:10 darutoko joined #perl6
13:10 timotimo yeah, i love block editing in vim
13:10 grondilu I've found a solution:  proto f {*}; proto g {*}; my ($f, $g) = map -> &x {...}, &a, &b; multi f { $f() }; multi g { $g() };
13:10 grondilu basically storing the result of the map in a hidden storage array.
13:11 grondilu (or several hidden variables)
13:12 AlexDaniel moritz: do you use something to get vim features in your browser?
13:12 llfourn_ grondilu: it works but it would be nice to be able to just push $f and $g onto the proto
13:14 llfourn_ grondilu: I actually made a module that should work in your circumstance which hacks the feature in, https://github.com/LLFourn/​p6-CompUnit-Util#push-multi
13:14 tomboy64 joined #perl6
13:14 jjido joined #perl6
13:14 llfourn_ but YMV
13:14 grondilu something like proto f { somefunc({*}) } should work theoretically, shouldn't it?
13:14 llfourn_ I think so
13:15 moritz AlexDaniel: yes, I use the It's All Text extension
13:15 skids joined #perl6
13:15 moritz AlexDaniel: which can open arbitrary editors for text areas
13:15 grondilu however that's not what I want to do since the other multi I'm planning to make will not use somefunc.
13:15 moritz AlexDaniel: and I use that with gvim
13:18 _nadim Who maintains http://doc.perl6.org/?
13:18 takadonet morning all
13:19 _nadim morning!
13:20 bazzaar moritz: that's done the trick
13:20 uruwi joined #perl6
13:20 moritz _nadim: all of us do
13:20 moritz I hope :-)
13:21 _nadim :) I didn't mean the content but the page itself
13:21 moritz that's generated from the content
13:21 moritz I maintain the webserver behind it
13:21 _nadim anyway, it would be nice if the focus was on the search field by default so one can type directly when the page is displayed
13:21 moritz _nadim: we had that before, and didn't like it
13:22 _nadim so we avoid what I call the IMDB syndrom
13:22 bazzaar AlexDaniel: thanks also for the tip, .. I did try it but somehow I mustn't have done it correctly, next bug I'll try again :)
13:22 moritz people want to use the space bar to scroll through the page, for example
13:22 _nadim then IMDB syndrom it is (trillions of users cursing it)
13:22 moritz or use / to introduce find-as-you-type
13:22 AlexDaniel bazzaar: I've edited it already, by the way
13:24 dalek ecosystem: 626f89a | RabidGravy++ | META.list:
13:24 dalek ecosystem: Rename META for Linux::Cpuinfo
13:24 dalek ecosystem: review: https://github.com/perl6/e​cosystem/commit/626f89a118
13:24 _nadim moritz: I think it would be fine with / to search but people that want to use space to scroll are blocking the people who want to use ALL the other keys. and scrolling works with page-down even idf the search is on. But this is but just a small detail.
13:25 moritz _nadim: as I said, it was like that before, and the feedback was mostly negative
13:25 bazzaar AlexDaniel: oops didn't realise, maybe my edits over-wrote, anyway it looks as I'd intended it too :)
13:26 _nadim moritz: as I said, itis not important but I can't help but find that silly and illogical, there is nothing to scroll! its a one page page.
13:27 moritz _nadim: depends on your screen size. And the same widget is used all over the site
13:27 moritz even on big pages
13:30 RabidGravy I might be procrastinating finishing the documentation for a module but in the meantime all the other modules get a spring clean :)
13:31 _nadim Of course but I beg to disagree, I have a small resolution and it is still one page. Of course the people complaining may have 400% zoom due to their old age. I am slowly getting there ;)
13:34 _nadim Mmm, 'file_name'.IO.lines works but 'file_name'.IO::Path.e doesn't, that's not very consistent.  Or am I doing something wrong?
13:34 moritz _nadim: yes, you are.
13:34 moritz _nadim: you are trying to call a method from a totally different class on a string
13:34 _nadim I am happy that I am.
13:36 moritz _nadim: fwiw on my Galaxy S6, the front page doesn't fit on a single page, and for a smart phone it has a rather big screen
13:36 _nadim Arff, I looked in the doc and missed method IO
13:36 _nadim it's be nice if IO::xxx added method IO::xxx to STr
13:37 _nadim moritz: Its OK, i'll double tab to get in the search widget
13:37 moritz what's wrong with calling .IO.xxx?
13:37 moritz less key strokes, less confusion
13:38 _nadim IO::xxx like if was the constructor for IO:xxx
13:38 sufrostico joined #perl6
13:38 _nadim IO::xxx class
13:39 pierre_ joined #perl6
13:39 _nadim Eg: IO::Path.new("/etc/passwd").e  vs "/etc/passwd".IO::Path.e
13:40 RabidGravy hahaha
13:41 moritz ... and a pony
13:42 _nadim '...'.IO.lines was the pony, this would be a unicorn
13:43 RabidGravy of course the plan in Linux::Cpuinfo's "this machine" test is totally bogus
13:43 RabidGravy boo
13:46 tomboy64 joined #perl6
13:47 perlawhirl joined #perl6
13:48 bazzaar DBIish seems to have slowed considerably for fetchall_arrayref(), 6000 records takes a good deal longer than it did in R* 2016-01 [I think]
13:49 adu joined #perl6
13:57 grondilu m: role A { multi method new { class :: does A {}.new } }
13:57 camelia rakudo-moar f7613f: OUTPUT«Use of uninitialized value of type Any in string context␤Any of .^name, .perl, .gist, or .say can stringify undefined things, if needed.  in any try_select at gen/moar/m-Metamodel.nqp line 2606␤5===SORRY!5=== Error while compiling /tmp/7lyf3v6Uah…»
13:57 grondilu m: role A {...}; role A { multi method new { class :: does A {}.new } }
13:57 camelia rakudo-moar f7613f: OUTPUT«Use of uninitialized value of type Any in string context␤Any of .^name, .perl, .gist, or .say can stringify undefined things, if needed.  in any try_select at gen/moar/m-Metamodel.nqp line 2606␤5===SORRY!5=== Error while compiling /tmp/QM69nrntvU…»
13:57 Woodi hi everyone :)
13:57 grondilu ^looks like a bug to me
13:58 grondilu or at least an unhelpful error message.
13:59 grondilu I had a role used as an interface (that is, with a virtual method).  And I wanted to provide a default implementation.
13:59 grondilu role A { method foo {...}; multi method new { class :: does A { has $.foo }.new }
14:00 Woodi stmuk++ # R*2016.04;  but installing all 32 module takes ages... It would be nice if rakudo's make install install just rakudo; modules can be done with modules-install
14:01 arnsholt grondilu: That code looks very weird. What exactly did you want a default implementation of?
14:01 masak Woodi: if you only want the compiler, why are you downloading R* ?
14:01 Woodi timotimo: do System Shock 2 ! it is worth any money :)
14:01 Woodi masak: hmm :)
14:01 grondilu arnsholt: of the the A role.
14:01 masak Woodi: you're like the people who write travel reviews about the beach, giving it a 2 out of 5, saying "too much sand"
14:02 timotimo Woodi: i more-or-less promised someone to do co-op, but we never got around to it
14:02 zacts joined #perl6
14:03 Woodi masak: I think I want package with modules. but probably, for some reason, I belive in some betternes&magic from R* :)  but also I want more flexibility from 'modules-install' target...
14:03 arnsholt grondilu: That sounds like a weird way to do it. If you want to provide a default implementation of the role, do that as a separate class I think
14:04 zacts joined #perl6
14:04 grondilu arnsholt: that's what I did with class :: does A {}  :P, but maybe you meant in a different compunit?
14:05 Woodi timotimo: single player is perfect there. eg. after that you will have small, cute monkeys "voice" burned all over your brain :)
14:05 timotimo hah
14:05 arnsholt grondilu: Well, that'll make new return an instance of a *different* class than the class you're composing into (since you're creating a new anonynous one)
14:06 arnsholt So just "role R { ... }; class DefaultR { ... }"
14:07 grondilu that would work but it will make a mess in terms of names and compunits.
14:07 Woodi timotimo: 2. any explanation on mechanism why german words are better ? :)  I hear it is true from few sources :)
14:07 timotimo nope, just misguided arrogance
14:09 Woodi heh :)  I think at least some german experience in some domains work like this
14:09 perlawhirl joined #perl6
14:10 zakharyas joined #perl6
14:10 timotimo german was lingua franca for something for some time. was it maths? philosophy?
14:10 Woodi and psychology probably
14:10 geekosaur and chemistry for a while
14:11 perlawhirl nadim: a bit belated, but...
14:11 perlawhirl m: (^10).categorize({ ($_ %% 2 ?? 'even' !! 'odd'; $_ < 5 ?? 'small' !! 'big'; 'seven' if $_ == 7) })
14:11 camelia rakudo-moar f7613f: ( no output )
14:11 perlawhirl m: say (^10).categorize({ ($_ %% 2 ?? 'even' !! 'odd'; $_ < 5 ?? 'small' !! 'big'; 'seven' if $_ == 7) })
14:11 camelia rakudo-moar f7613f: OUTPUT«{big => [5 6 7 8 9], even => [0 2 4 6 8], odd => [1 3 5 7 9], seven => [7], small => [0 1 2 3 4]}␤»
14:11 grondilu arnsholt: on second thought it should be fine.  Just need to re-organize things a bit.
14:15 jjido joined #perl6
14:16 tharkun joined #perl6
14:16 Xliff Well, crap.
14:17 Xliff This is NativeCall. If I'm given a pointer to a character aray and a length, how can I convert that to a Blob?
14:17 Xliff Blob to contain the data in the charater array.
14:18 tbrowder joined #perl6
14:18 timotimo copy it over byte-by-byte; there's a module for that purpose in the ecosystem
14:18 timotimo NativeHelpers::something
14:19 Xliff @a := nativecast(CArray[uint8], $p); bytecopy using @a and the length?
14:19 Xliff timotimo, I will look into NativeHelpers. Thanks.
14:19 tbrowder AlexDaniel: doc/Language/unicode_texas.pod pull request is ready for your review
14:20 RabidGravy NativeHelpers::Array
14:20 wamba joined #perl6
14:21 timotimo i think you can do pointer arithmetic, too, but nativecast to CArray also works well
14:23 Xliff Yeah. I'd rather not have another dependency if I can help it.
14:23 Xliff So as long as I keep within the buffer, I should be fine.
14:23 cdg joined #perl6
14:25 jack_rabbit joined #perl6
14:25 Xliff @a := nativecast(CArray[uint8], $p); my $b = Buf.new(@a[^$p_len]); <- ???
14:25 AlexDaniel tbrowder: I like that unicode_texas.pod is getting attention to details
14:25 timotimo does that work? looks good to me
14:25 AlexDaniel tbrowder: but I'm not sure if this commit is right
14:25 Xliff timotimo, Won't know it till I try it.
14:26 shadowpaste joined #perl6
14:26 AlexDaniel tbrowder: “Any codepoint that has the C<Nd> (Number, decimal digit) property, can be used as a digit in any number.” – OK. But the example is demonstrating 𝑒
14:26 AlexDaniel tbrowder: which is not related to Nd
14:26 AlexDaniel tbrowder: it is just a constant
14:27 AlexDaniel tbrowder: one possible example to demonstrate codepoints with Nd property is
14:27 AlexDaniel m: say ١٩
14:27 camelia rakudo-moar f7613f: OUTPUT«19␤»
14:27 AlexDaniel m: say ‘١٩’.uninames
14:27 camelia rakudo-moar f7613f: OUTPUT«(ARABIC-INDIC DIGIT ONE ARABIC-INDIC DIGIT NINE)␤»
14:28 AlexDaniel m: say ‘١٩’.uniprops
14:28 camelia rakudo-moar f7613f: OUTPUT«Method 'uniprops' not found for invocant of class 'Str'␤  in block <unit> at /tmp/3pt9kxFtFO line 1␤␤»
14:28 AlexDaniel m: say ‘١’.uniprop; say ‘٩’.uniprop
14:28 camelia rakudo-moar f7613f: OUTPUT«Nd␤Nd␤»
14:29 zacts joined #perl6
14:33 AlexDaniel alright: RT #128009
14:33 synopsebot6 Link:  https://rt.perl.org/rt3//Publ​ic/Bug/Display.html?id=128009
14:35 AlexDaniel tbrowder: your second example is ok, altough I'd probably write it in one line (the variable makes no difference in this case)
14:35 ufobat joined #perl6
14:35 AlexDaniel m: say ⅒ + 2
14:35 camelia rakudo-moar f7613f: OUTPUT«2.1␤»
14:36 timotimo i don't see anything there )%
14:36 AlexDaniel tbrowder: what I meant by pointing to this phrase “These aren't decimal digit characters, so can't be combined” was this:
14:36 stmuk_ awwaiid: are you actually editing rakudo.org or can I steal your lock? :)
14:36 AlexDaniel m: say ٩٩
14:36 camelia rakudo-moar f7613f: OUTPUT«99␤»
14:36 AlexDaniel m: say ⅡⅡ
14:36 camelia rakudo-moar f7613f: OUTPUT«5===SORRY!5=== Error while compiling /tmp/GxVPwvDD4t␤Bogus postfix␤at /tmp/GxVPwvDD4t:1␤------> 3say Ⅱ7⏏5Ⅱ␤    expecting any of:␤        infix␤        infix stopper␤        postfix␤        statement end␤        statement mod…»
14:37 AlexDaniel tbrowder: ↑ that is, you **can** use unicode digits, but not all unicode numeric things can be used as digits. And this depends on their property
14:38 timotimo that's right
14:38 AlexDaniel and my problem with that phrase is that it does not make it clear enough
14:38 timotimo we may want to give a clearer error message for cases where any N with non-d is put after another of the same group
14:39 * AlexDaniel afk for a while
14:42 tbrowder AlexDaniel: see change
14:43 uruwi joined #perl6
14:47 zacts_ joined #perl6
14:47 awwaiid stmuk_: haha
14:48 awwaiid stmuk_: I just updated the .dmg
14:48 awwaiid stmuk_: I'll close the page now
14:53 stmuk_ thanks :)
14:54 awwaiid it's closed. hopefully that releases any lock.
14:55 stmuk_ it was just locked for the page I was going to edit but you made the change anyway
14:55 zacts joined #perl6
14:58 khw joined #perl6
14:59 zacts_ joined #perl6
15:00 masak Woodi: it still sounds to me that what you want is rakudo the compiler, and then Task::Star
15:02 grondilu in A.pm6: unit class A; our sub f {}
15:03 grondilu in B.pm6: unit role B; use A; my &f = &A::f;
15:03 grondilu and then 'use B; class :: does B {};'
15:04 grondilu ===SORRY!=== Error while compiling -e
15:04 grondilu Could not instantiate role 'B':
15:04 grondilu Cannot find method 'package_at_key': no method cache and no .^find_method
15:04 grondilu at -e:1
15:05 grondilu notice that it works fine without compunits
15:05 grondilu m: class A { our sub f {} }; role B { use A; my &f = &A::f }
15:05 camelia rakudo-moar f7613f: OUTPUT«===SORRY!===␤Could not find A at line 1 in:␤    /home/camelia/.perl6␤    /home/camelia/rakudo-m-inst-2/share/perl6/site␤    /home/camelia/rakudo-m-inst-2/share/perl6/vendor␤    /home/camelia/rakudo-m-inst-2/share/perl6␤    CompUnit::Repository:…»
15:06 grondilu m: class A { our sub f {} }; role B { my &f = &A::f }
15:06 camelia rakudo-moar f7613f: ( no output )
15:06 grondilu m: class A { our sub f {} }; role B { import A; my &f = &A::f }
15:06 camelia rakudo-moar f7613f: ( no output )
15:07 zacts hi perl6 hackers
15:07 zacts et nerds, etc..
15:08 mst zacts: HEY! I RESEMBLE THAT REMARK!
15:09 zacts lol =D
15:09 zacts mst: are you getting involved with Perl6 now too along with Perl5?
15:10 Xliff For modules entered into the ecosystem, is it preferred to use .pm6 and .pl6 instead of the Perl5 equivalents?
15:11 mst zacts: only vaguely, so far
15:12 zacts ah ok, cool
15:15 perlpilot Xliff: I use *.pm6 when I think about it, but often I forget
15:15 perlpilot (and I've never used .pl or .pl6 because usually my programs don't have some special suffix)
15:15 jjido joined #perl6
15:18 AlexDaniel tbrowder: I have to go unfortunately, so can't review that right now
15:18 perlpilot (actually ... I did use .pl for a while, but it was with Perl 4 when the .pl suffix stood for "Perl Library" and the .pl file occupied a similar space then as the .pm files do now)
15:19 AlexDaniel tbrowder: examples look alright as far as I can see
15:19 geekosaur I use .pl still for programs that are not yet complete
15:19 mst Xliff: if you use .pm6, file type guessers (e.g. for synhi) are more likely to get it right
15:19 geekosaur removing the .pl suffix means it's reasonably complete
15:19 mst Xliff: if you don't use .pm6, you really should 'use v6'
15:20 mst so it depends, do you want to indicate you're perl6 code in your file name or a line of code
15:20 AlexDaniel timotimo: do you know any character that has more than one property?
15:21 perlawhirl joined #perl6
15:28 Woodi masak: no. for sure I wanted ability to install rakudo and modules one after one. and looking into Makefile I found:  install: rakudo-install modules-install welcome-message  :)  someone++  so looks I just assumed other naming/prioritization. all good now
15:29 Actualeyes joined #perl6
15:33 wamba joined #perl6
15:33 khw joined #perl6
15:36 Woodi masak: actually you may be right... I also wanted ability to not installing modules...
15:39 dalek ecosystem: 200a5f7 | RabidGravy++ | META.list:
15:39 dalek ecosystem: Rename the META for Linux::Fuser
15:39 dalek ecosystem: review: https://github.com/perl6/e​cosystem/commit/200a5f7ad3
15:40 TheLaw joined #perl6
15:41 TheLaw left #perl6
15:41 timotimo AlexDaniel there are many different properties defined in Unicode. almost all characters have more than one i am willing to claim
15:43 TimToady tbrowder: due to its frequency of use, it is quite intentional that we coined the compound 'codepoint', just as it is intentional that we use 'grapheme' to mean that long consortium phrase that I can't even remember to make fun of it
15:43 ufobat joined #perl6
15:44 TimToady we've coined a number of other terms in the past as well
15:45 TimToady standards bodies rarely have the courage to coin new terms where they are necessary, so they just string random works together
15:45 stmuk_ I quite like "rune"
15:46 TimToady funny thing is, the situation doesn't even arise in a language like Chinese, where compounding is automatic by frequency, and no decision needs to be made about spacing
15:47 ZoffixW joined #perl6
15:47 ZoffixW m: role NamedAttribute { has Str $.json-name is rw; }; multi sub trait_mod:<is>(Attribute $a, Str :$json-name!) { $a does NamedAttribute; $a.json-name = $json-name; }; class Bar { has $.meow is json-name('foo') = 42; }; say Bar.new.meow.foo-name;
15:47 camelia rakudo-moar f7613f: OUTPUT«Method 'foo-name' not found for invocant of class 'Int'␤  in block <unit> at /tmp/XVt1ebaami line 1␤␤»
15:47 TimToady linguistically, in English, I'd argue that we should start thinking about compounding the moment you start using a multi-noun phrase as an adjective
15:47 ZoffixW Why doesn't this make foo-name method available? I think that's the exact copy of JSON::Name's code :/
15:47 El_Che joined #perl6
15:47 TimToady "codepoint property" vs "code point property"
15:48 TimToady and I don't really give a rip how the Unicode consortium does it :)
15:49 * TimToady wonders what the derivation of "give a rip" is...
15:50 wamba joined #perl6
15:51 bazzaar Hi, just noticed that R* 2016-04 creates a precomp dir in .perl6 dir, whereas R*2016-01 put precomp in .perl6/2016.01.1 ... was that intended?
15:52 Xliff mst: Both.
15:52 mst Xliff: both is also good :)
15:52 maybekoo2 joined #perl6
15:52 Xliff but I will start with "use v6" and maybe update extensions when I do code cleanup.
15:53 ZoffixW Has anyone done talks or written blogs about making custom traits? I really need some good info :/
15:56 * TimToady also grumbles about disbelief in nested parens, which can be used to great comic effect
15:56 ufobat joined #perl6
15:56 hoelzro ZoffixW: what kind of info do you need?
15:56 ufobat hum! Could not map file '/home/martin/.workspace/p6/VoteImproved/.​./Bailador/lib/.precomp/D7820A4EF6D97B780F​45CAC4B50C4E6E59589690.1461213213.60262/3B​/3BC5C3D7FF8F38932639644824058B0EEF588B45' into memory: FIXME
15:56 ufobat not so awesome ;)
15:57 ZoffixW hoelzro, how to use them? What's possible? Why my code above isn't working? Everything :)
15:57 * hoelzro looks
15:59 hoelzro ZoffixW: that last line should be Bar.new.meow.json-name, right?
15:59 ZoffixW hoelzro, ah, right. But it still fails:
16:00 hoelzro yes
16:00 ZoffixW m: role NamedAttribute { has Str $.json-name is rw; }; multi sub trait_mod:<is>(Attribute $a, Str :$json-name!) { $a does NamedAttribute; $a.json-name = $json-name; }; class Bar { has $.meow is json-name('foo') = 42; }; say Bar.new.meow.json-name;
16:00 camelia rakudo-moar f7613f: OUTPUT«Method 'json-name' not found for invocant of class 'Int'␤  in block <unit> at /tmp/Ywgn0IZYUb line 1␤␤»
16:00 hoelzro so the reason *that* is
16:00 hoelzro ...is because you're applying a role to the Attribute
16:00 hoelzro not to the values it contains
16:00 ZoffixW Isn't it the same that's happening here? https://github.com/jonathanstowe/JSO​N-Name/blob/master/lib/JSON/Name.pm
16:00 hoelzro role NamedAttribute { has Str $.json-name is rw; }; multi sub trait_mod:<is>(Attribute $a, Str :$json-name!) { $a does NamedAttribute; $a.json-name = $json-name; }; class Bar { has $.meow is json-name('foo') =
16:01 hoelzro m: role NamedAttribute { has Str $.json-name is rw; }; multi sub trait_mod:<is>(Attribute $a, Str :$json-name!) { $a does NamedAttribute; $a.json-name = $json-name; }; class Bar { has $.meow is json-name('foo') = 42; };  say Bar.^attributes[0].WHAT;
16:01 camelia rakudo-moar f7613f: OUTPUT«(Attribute+{NamedAttribute})␤»
16:02 hoelzro ZoffixW: yes, that's the same thing
16:02 hoelzro but what's probably happening is serializer is looking at an object's attributes
16:02 hoelzro and checking $attr.?json-name
16:02 ZoffixW Ah
16:02 hoelzro falling back to $attr.name.subst(/^ <[$@%]> '!'/, '')
16:04 ZoffixW I don't understand what the difference is here:
16:04 ZoffixW m: role Foo { has $.bar = 'meow'; };  multi sub trait_mod:<is>(Variable $a, :$foo!) { $a does Foo; }; my $x is foo; my $y does Foo;  say $x; say $y;
16:04 camelia rakudo-moar f7613f: OUTPUT«(Any)␤Scalar+{Foo}.new(bar => "meow")␤»
16:04 ZoffixW What is a `Variable`? I'd think both $x and $y would be the same....
16:06 RabidGravy it's the meta thingy for that variable
16:07 ZoffixW -_-
16:08 * ZoffixW reads src/core/Variable.pm
16:11 hoelzro it's like a container
16:11 hoelzro m: my $x; say $x.VAR.WHAT;
16:11 camelia rakudo-moar f7613f: OUTPUT«(Scalar)␤»
16:11 hoelzro m: my $x; say $x.VAR.WHAT ~~ Variable;
16:11 camelia rakudo-moar f7613f: OUTPUT«False␤»
16:11 hoelzro apparently not a container in its own right =/
16:11 geekosaur m: my $x; say $x.VAR ~~ Variable;
16:11 camelia rakudo-moar f7613f: OUTPUT«False␤»
16:15 RabidGravy isn't it the HOW of the container
16:15 hoelzro ah, maybe that's it
16:15 geekosaur m: my $x; say $x.VAR.HOW ~~ Variable;
16:15 camelia rakudo-moar f7613f: OUTPUT«False␤»
16:15 geekosaur m: my $x; say $x.HOW ~~ Variable;
16:15 camelia rakudo-moar f7613f: OUTPUT«False␤»
16:15 geekosaur mrrr
16:15 Lixquid joined #perl6
16:15 ZoffixW m: role Foo { has $.bar = 'meow'; }; multi sub trait_mod:<is>(Variable $v, :$foo!){ $v.var.VAR does Foo; }; my $x is foo; say $x.bar;
16:15 camelia rakudo-moar f7613f: OUTPUT«meow␤»
16:15 ZoffixW Success \o/ :)
16:16 ZoffixW Well, almost... you can't assign anything to $x anymore :/
16:16 jjido joined #perl6
16:17 geekosaur m: role Foo { has $.bar = 'meow'; }; multi sub trait_mod:<is>(Variable $v, :$foo!){ $v.var.VAR does Foo; }; my $x is foo; say $x.bar; $x = 0;
16:17 camelia rakudo-moar f7613f: OUTPUT«meow␤Cannot assign to an immutable value␤  in block <unit> at /tmp/Z9JMAtX1In line 1␤␤»
16:17 geekosaur m: role Foo { has $.bar = 'meow'; }; multi sub trait_mod:<is>(Variable $v, :$foo!){ $v.var.VAR is rw does Foo; }; my $x is foo; say $x.bar; $x = 0;
16:17 camelia rakudo-moar f7613f: OUTPUT«5===SORRY!5=== Error while compiling /tmp/xKZjuzBcdt␤Two terms in a row␤at /tmp/xKZjuzBcdt:1␤------> 3od:<is>(Variable $v, :$foo!){ $v.var.VAR7⏏5 is rw does Foo; }; my $x is foo; say $x␤    expecting any of:␤        infix␤        infi…»
16:17 uruwi joined #perl6
16:17 geekosaur m: role Foo { has $.bar is rw = 'meow'; }; multi sub trait_mod:<is>(Variable $v, :$foo!){ $v.var.VAR does Foo; }; my $x is foo; say $x.bar; $x = 0;
16:17 camelia rakudo-moar f7613f: OUTPUT«meow␤Cannot assign to an immutable value␤  in block <unit> at /tmp/666P7yOhLJ line 1␤␤»
16:18 geekosaur bleh
16:18 dalek ecosystem: 83c7528 | RabidGravy++ | META.list:
16:18 dalek ecosystem: OOPS
16:18 dalek ecosystem: review: https://github.com/perl6/e​cosystem/commit/83c752828b
16:19 RabidGravy :-^
16:23 tharkun joined #perl6
16:25 rurban joined #perl6
16:25 domidumont joined #perl6
16:25 zakharyas joined #perl6
16:28 ChoHag joined #perl6
16:45 Xliff Is there a while-loop equivalent in P6?
16:45 timotimo yes, it's called "loop"
16:46 timotimo er
16:46 timotimo it's called "while"
16:46 Xliff LOL!
16:46 timotimo m: while my $i < 10 { say $i; $i++ }
16:46 camelia rakudo-moar f7613f: OUTPUT«Use of uninitialized value of type Any in numeric context  in block <unit> at /tmp/OrkhRpRIwt line 1␤(Any)␤1␤2␤3␤4␤5␤6␤7␤8␤9␤»
16:46 Xliff That's test first then loop, correct.
16:46 timotimo pff, whatevs.
16:46 Xliff Excellent.
16:47 Xliff DD'oh!
16:47 Xliff while wasn't mentioned here https://en.wikibooks.org/wiki/Perl_6_​Programming/Control_Structures#Loops
16:47 timotimo https://perl6advent.wordpress.com/2015/1​2/17/day-17-a-loop-that-bears-repeating/
16:47 timotimo that wikibook ought to be deleted
16:47 Xliff But is, here: https://doc.perl6.org/langu​age/control#while%2C_until
16:48 awwaiid in theory it can be edited :)
16:48 awwaiid (assuming the "wiki" in it's name means the normal thing)
16:48 timotimo yeah, but that's a whole lot of work
16:48 awwaiid well we could add a link to each section or something. hmmm
16:48 timotimo we don't seem to have enough people/time to get such a thing working
16:49 * timotimo puts an entry into "ye olde" about the wikibook
16:49 dalek ecosystem: 01703d5 | RabidGravy++ | META.list:
16:49 dalek ecosystem: rename META for Log::Syslog::Native
16:49 dalek ecosystem: review: https://github.com/perl6/e​cosystem/commit/01703d5dcf
16:49 awwaiid "ye olde"?
16:50 Xliff "It goes without saying that this is a situation up with which Perl 6 will not put. Let’s see what Perl 6 provides us with."
16:50 Xliff Might want to be rewritten as:
16:50 Xliff "It goes without saying that this is a situation that Perl6 will not put up with. …"
16:50 geekosaur don't like implicit Churchill ref?
16:50 timotimo https://github.com/perl6/ye-olde/issues/5
16:51 arnsholt Xliff: It's intentional =)
16:51 Xliff Is that what it was?
16:51 timotimo no, it does not want to be rewritten
16:51 geekosaur yes
16:51 arnsholt What geekosaur++ said, basically
16:51 timotimo awwaiid: see my link there
16:51 Xliff OK.
16:51 Xliff As long as its deliberate.
16:52 Xliff On first read I get more "clumsy" than "Churchill". However, I am not well read about him.
16:53 geekosaur it's a famous quote
16:53 geekosaur roughly "This is the sort of nonsense up with which I shall not put"
16:53 timotimo churchill is someone whom you are not well read about?
16:54 stmuk_ I was wondering if everything preXmas on http://rakudo.org/downloads/ should be put in an archive directory under each directory?
16:55 timotimo might be a good idea
16:55 timotimo "attic/"? :)
16:56 ZoffixW joined #perl6
16:56 ZoffixW It's not possible to get the name of the variable, is it?   something like my $foo; my $var-name = $foo.^name; and $var-name would have "foo" in it.
16:56 skids I generally tend to error on the side of "don;t break urls"
16:57 timotimo m: my $foo; my $var-name = $foo.VAR.name; say $var-name
16:57 camelia rakudo-moar f7613f: OUTPUT«$foo␤»
16:57 stmuk_ "attic" is very CVS :P
16:57 timotimo yeah, that'd be appropriately ye-olde to refer to pre-christmas rakudo releases
16:58 geekosaur ..."advent"?
16:58 timotimo well, then nobody at all would know what it's about :D
16:58 stmuk_ that's consistant with the rest of perl 6 then ;)
16:58 * timotimo needs a nap
16:58 geekosaur I can;t say "ye-olde" leads me in that direction either
16:58 ZoffixW :o timotimo++
16:59 ZoffixW Ah, I see what I did wrong... I dumped ^methods and saw name, but called it as ^name instead of name :)
17:08 ZoffixW m: https://gist.github.com/zoffixznet​/f95da0224c863dd4d014f39539c6be24
17:08 camelia rakudo-moar f7613f: OUTPUT«Bender␤beer␤»
17:08 ZoffixW Neat, eh? :)
17:10 RabidGravy yeah cool :)
17:17 bazzaar joined #perl6
17:17 jjido joined #perl6
17:17 bazzaar \o
17:17 ZoffixW o/
17:25 bazzaar Hi perl6, I posted earlier that I thought DBIish was much slower in R* 2016-04, than it was in R* 2016-01 ... my simple data retrieval is 70 times slower ( see timings : http://nopaste.linux-dev.org/?1094000 )
17:26 AlexDaniel ouch
17:26 ZoffixW :o
17:27 ZoffixW bazzaar, it's worth reporting as a bug, with a sample code that could be used to reproduce the issue.
17:28 ZoffixW bug for Rakudo that is https://github.com/rakudo/rakudo/#reporting-bugs
17:28 firstdayonthejob joined #perl6
17:28 mst yeah, that's not supposed to happen
17:29 RabidGravy I'd say it was the way that fetchall_* was reimplemented in DBIish
17:30 ZoffixW bazzaar, are both of your Perl 6 installation using the same DBIish version?
17:30 Xliff Is there a difference between ~< and +< (and their siblings)
17:31 ZoffixW Xliff, one is for strings the other is for numbers, if I recall.
17:31 RabidGravy massive changes in DBIish since January,
17:31 Xliff Thanks, ZoffixW
17:32 bazzaar ZoffixW: I reinstated my R* 2016-01 installation, so I think the DBIish versions were different in the two tests
17:32 ZoffixW bazzaar, then it might be the issue coming from DBIish, since it looks like there was a lot changed in it.
17:32 RabidGravy they will be
17:33 ZoffixW You could clone the repo, checkout an older, working commit and install that (panda --force install .)
17:33 bazzaar ZoffixW: So I should repot as a bug in DBIish instead of Rakudo?
17:33 bazzaar report
17:34 RabidGravy I'd say so
17:34 ZoffixW bazzaar, if possible, test it with the same versions of DBIish on both perls. Just update the one on 2016-01 install
17:34 ZoffixW That will tell you where the problem lies, even though it's likely with DBIish :)
17:34 Lixquid What does the error "Merging GLOBAL symbols failed: duplicate definition of symbol X" mean? I'm getting it when I'm attempting to use a package
17:35 Lixquid From what I can see, the package doesn't have the symbol defined anywhere
17:35 RabidGravy m:  say X.WHAT
17:35 camelia rakudo-moar f7613f: OUTPUT«(X)␤»
17:36 RabidGravy m:  say X.HOW.WHAT
17:36 camelia rakudo-moar f7613f: OUTPUT«(PackageHOW)␤»
17:36 RabidGravy there
17:36 ZoffixW :/
17:36 RabidGravy it exists because X::AdHoc does for example
17:37 bazzaar ZoffixW: ok, I'll try that before I create the ticket
17:38 ZoffixW Lixquid, do you have anything like Foo::X? I see this ticket: https://rt.perl.org/Ticket/Display.html?id=127484
17:39 Lixquid Not as far as I'm aware, I'm just attempting to use the module from the REPL
17:40 Lixquid (The symbol X was generic, it's actually erroring for me on the symbol "Fast")
17:41 ZoffixW Not sure. I had the same error pre-Christmas, but I forget what was causing it.
17:41 ZoffixW Do you have any BEGIN{} blocks that print anything to STDOUT/STERR?
17:42 RabidGravy Lixquid, what is the actual module?
17:42 Lixquid The Discord module, in this case
17:42 RabidGravy which uses JSON::Fast via some dependencies
17:43 RabidGravy it's a weird problem
17:44 Lixquid panda --installed --verbose shows JSON::Fast as installed on version 0.4
17:45 Lixquid Is something trying to load multiple versions of JSON::Fast or something?
17:45 RabidGravy say you have some module that uses JSON::Fast and that gets precompiled, then another module uses an explicit and later version of JSON::Fast
17:46 RabidGravy Lixquid, I know this because it is actually JSON::Marshal (my module) that creates the problem
17:46 Lixquid Oh, okay, I can see why this is a problem
17:46 RabidGravy It has to  use v0.4 or better, but JSON::Unmarshal doesn't care which version
17:47 RabidGravy and Discord uses both
17:48 RabidGravy it's better now that Panda has the v0.4 JSON::Fast
17:48 Lixquid So, there's two versions of JSON::Fast, JSON::Marshal uses the newer version, Unmarshal uses the older version, and when Discord uses both they collide?
17:48 RabidGravy yep
17:49 Lixquid Right, ok
17:49 RabidGravy it's probably a bug in the way that precompilation works
17:49 Lixquid That kinda sucks :(
17:49 Lixquid is there a way to somehow remove the old version, or force Unmarshal to use the newer version
17:51 RabidGravy I just deleted everything
17:51 RabidGravy in theory you could use zef uninstall
17:52 RabidGravy but I had a bad experience with that and ended up deleting everything anyway
17:53 Lixquid When you say delete everything, are you referring to the modules
17:53 Lixquid ..speaking of, where are hte modules installed anyway, on windows?
17:53 hankache joined #perl6
17:53 RabidGravy no "rakudobrew nuke moar; rakudobrew build moar"
17:53 aries_liuxueyang joined #perl6
17:54 RabidGravy haven't the faintest, don't use windows
17:54 Lixquid I'd love to not use Windows, but unfortunately, VS is windows only
17:56 RabidGravy all this reminds me I was going to make a thing that does similar to "cpan autobundle"
17:56 _rubio_ joined #perl6
17:56 MadcapJake Lixquid: look for a .precomp directory
17:56 Lixquid I've tried renaming the precomp folder in ~/.perl6, but from what I see that only removed the precompiled stuff
17:57 MadcapJake yeah, what did you want it to do?
17:57 tbrowder AlexDaniel: doc: any problem with merging the changes as they are at the moment?
17:57 AlexDaniel tbrowder: I'll take a look in like 30 minutes
17:57 Lixquid It then just redownloads / recompiled all the installed packages next time panda runs
17:57 MadcapJake not redownloads but it does recompile
17:57 AlexDaniel tbrowder: but last time I looked it was more like an improvement, so it's probably good :)
17:58 MadcapJake any time you use a module it checks if it's been precompiled and if it hasn't it precompiles it
17:58 Lixquid yeah, ideally I can nuke all modules I've told it to download
17:58 Lixquid reset the modules, as it were
17:59 MadcapJake Lixquid: try changing the order of your JSON::Fast, JSON::Marshal use statements
17:59 RabidGravy it doesn't help
17:59 colomon joined #perl6
18:00 RabidGravy I spent a whole day trying to find a workaround
18:00 zacts joined #perl6
18:00 MadcapJake Lixquid: `zef uninstall` works
18:00 Lixquid Yeah, there's a collision independant of the order
18:00 ZoffixW Just make both modules require the same version of JSON::Fast?
18:01 ZoffixW HTTP::UserAgent's tests still seem to hang on 32-bit boxes :/
18:02 MadcapJake CURs are supposed to be able to solve this though.  What was the error message?
18:03 RabidGravy MadcapJake, supposed to sure
18:03 RabidGravy there appears to be abug
18:04 RabidGravy ZoffixW, github issue with exact test that is doing that please
18:04 MadcapJake yeah, I'm working on CURs right now so maybe I can help.  Is there some minimum code somewhere that triggers this?
18:05 RabidGravy no
18:05 MadcapJake ok :\
18:06 RabidGravy I can't think of a way of reproducing in a single piece of code
18:06 MadcapJake not even just `use Discord` in a script?
18:07 dalek doc: 3a40207 | (Jan-Olof Hendig)++ | doc/Type/Code.pod:
18:07 dalek doc: Fixed errors in the usage sections for methods file and line. Also added code example for line.
18:07 dalek doc: review: https://github.com/perl6/doc/commit/3a40207ef4
18:07 RabidGravy no that won't help either because it may not happen to you
18:08 xfix joined #perl6
18:08 sno joined #perl6
18:08 MadcapJake so it's a caused by a specific history of installs/uses
18:09 RabidGravy If you have a module B that depends on module A installed and precomped and a module C that is changed to require a specific version of A or greater and you install the newer version of A
18:09 RabidGravy then using both C and B will give rise to the error
18:09 RabidGravy i.e. B loads the old version and C tries to load the new version
18:09 MadcapJake well it *shouldn't* because both versions of A should still be around
18:09 RabidGravy or vice versa
18:10 RabidGravy exactly
18:10 RabidGravy but *something* doesn't like the two versions being loaded
18:10 MadcapJake e.g., A:ver<0.1.0> and A:ver<0.1.1>
18:10 RabidGravy well A
18:10 RabidGravy it fails in GLOBAL merge
18:11 winger_ joined #perl6
18:11 RabidGravy because that's not versioned
18:13 RabidGravy it's all a bit sucky really
18:13 MadcapJake well if you do ever get that error again (and you too Lixquid) please paste the output somewhere (and use --ll-exception)
18:14 ZoffixW RabidGravy, done: https://github.com/sergot/​http-useragent/issues/145
18:14 RabidGravy cheers matey
18:15 RabidGravy no way I can test but it probably give me a clue where the problem lies
18:15 MadcapJake and even RAKUDO_MODULE_DEBUG=1 if you could
18:15 rba_ joined #perl6
18:15 RabidGravy or y'know I could just delete all the modules
18:16 tomboy64 joined #perl6
18:16 MadcapJake maybe zef/panda should have a clean/nuke command too
18:17 stmuk_ zef can uninstall modules
18:18 jjido joined #perl6
18:18 RabidGravy I think it's too early for MODULE_DEBUG BTW
18:18 MadcapJake stmuk_: right I mean `zef --all uninstall` :)
18:19 MadcapJake too early?
18:21 Lixquid This is the output on my system (Win8, rakudo 2016.01) http://hastebin.com/ixokajobap.hs
18:21 Lixquid It's identical with and without --ll-exception
18:21 RabidGravy yeah
18:24 RabidGravy fwiw I think load_module got changed after 2016.01
18:26 MadcapJake ahh so it appears the module process is fine it's *after* when it's collecting all globally available symbols
18:26 rurban joined #perl6
18:26 grondilu m: role A { proto method f {*} }; class :: does A {};  # I kind of was expecting this to fail with a message that the method f must be implemented.
18:26 camelia rakudo-moar f7613f: ( no output )
18:28 grondilu m: role A { proto method f {*}; multi method f {...} }; class :: does A {};
18:28 camelia rakudo-moar f7613f: OUTPUT«5===SORRY!5=== Error while compiling /tmp/4PYqL6A6qn␤Multi method 'f' with signature :(<anon|74541168> $: *%_) must be implemented by <anon|74541168> because it is required by a role␤at /tmp/4PYqL6A6qn:1␤»
18:28 Ven joined #perl6
18:28 RabidGravy MadcapJake, yeah, it can't handle the different versions
18:29 grondilu having to declare a stub multi to force the error is a bit redundant imho
18:30 RabidGravy though strangely "perl6 -e 'use JSON::Fast:ver(v0.3); use JSON::Fast:ver(v0.4)'" works fine here
18:33 RabidGravy so my new working hypothesis is that it's associated with the dependencies of the module being precomped
18:37 uruwi joined #perl6
18:37 Xliff Can someone help, pls?
18:37 Xliff https://gist.github.com/Xliff/6​08addc037f083577da0bb9a75b9a05e
18:38 masak Xliff: you're expecting .WHAT to be stringifiable
18:38 masak Xliff: try .^name
18:38 grondilu m: role A { method add($x) { self + $x } }; say reduce { $^a.add($^b) }
18:38 camelia rakudo-moar f7613f: OUTPUT«5===SORRY!5=== Error while compiling /tmp/ZzpHdCGSUP␤Missing comma after block argument to reduce␤at /tmp/ZzpHdCGSUP:1␤------> 3lf + $x } }; say reduce { $^a.add($^b) }7⏏5<EOL>␤    expecting any of:␤        postfix␤»
18:39 grondilu m: role A { method add($x) { self + $x } }; say reduce { $^a.add($^b) }, map { $_ but A }, ^10;
18:39 camelia rakudo-moar f7613f: OUTPUT«Method 'add' not found for invocant of class 'Int'␤  in block <unit> at /tmp/_z9qJqSLl0 line 1␤␤»
18:39 grondilu m: say (10 but role { method add($x) { self + $x } }).add(2)
18:39 camelia rakudo-moar f7613f: OUTPUT«12␤»
18:40 Xliff D'oh! masak++
18:40 Xliff OK. But that was just debugging weirdness. What I really need is help with the next line that throws an error:
18:40 grondilu m: role A { method add($x) { self + $x } }; say reduce { $^a.add($^b) but A }, map { $_ but A }, ^10;
18:40 camelia rakudo-moar f7613f: OUTPUT«45␤»
18:41 Xliff @pre_buffer[0][$i] = 0; # This type cannot unbox to a native number
18:41 Xliff Output from fixed script shows that @pre_buffer[0][$i] == 'Num'
18:41 Xliff Er...
18:41 Xliff Output from fixed script shows that @pre_buffer[0][$i].^name == 'Num'
18:41 RabidGravy yes
18:42 RabidGravy 0.0
18:42 RabidGravy or Num(0)
18:43 Xliff \o/
18:44 Xliff RabidGravy++
18:44 Xliff So when dealing with LHS nativecall expressions, force type.
18:45 RabidGravy yeah, I've got some code that does that somewhere - just trying to locate
18:46 Xliff Well, that makes the write test work, but the output is broken.
18:46 RabidGravy https://github.com/jonathanstowe/Audio-Snd​file/blob/master/lib/Audio/Sndfile.pm#L373
18:46 Xliff More work to do...
18:46 timotimo we might want to output "native floating point number" instead of "native number"
18:46 Xliff Thanks, RabidGravy
18:46 timotimo because that could cause people to go "wtf, since when is 5 not a number?"
18:46 RabidGravy yeah
18:49 [Tux] left #perl6
18:51 sufrostico joined #perl6
18:51 ZoffixW joined #perl6
18:52 ZoffixW m: sub trait_mod:<from> (Variable $, :$config!) { }; my $x from config;
18:52 camelia rakudo-moar f7613f: OUTPUT«5===SORRY!5=== Error while compiling /tmp/x28DCEcjz8␤Two terms in a row␤at /tmp/x28DCEcjz8:1␤------> 3from> (Variable $, :$config!) { }; my $x7⏏5 from config;␤    expecting any of:␤        infix␤        infix stopper␤        stateme…»
18:52 ZoffixW Am I correct in assuming only `is` verb can be used for traits?
18:52 timotimo we could output "native num" instead of "number", because "num" doesn't seem like it's obviously refering to the concept of numbers. at least not as much as "number" does
18:52 timotimo you would be mostly correct
18:52 timotimo i'm not sure how exactly "will" is handled
18:53 ZoffixW m: sub trait_mod:<will> (Variable $, :$config!) { }; my $x will config;
18:53 camelia rakudo-moar f7613f: OUTPUT«5===SORRY!5=== Error while compiling /tmp/okYX1VFESP␤Missing block␤at /tmp/okYX1VFESP:1␤------> 3ble $, :$config!) { }; my $x will config7⏏5;␤    expecting any of:␤        block or pointy block␤»
18:53 ZoffixW k...
18:53 timotimo ah, yes, you can also trait_mod:<will>
18:53 ZoffixW Really?
18:53 timotimo there's also "trusts" and "hides"
18:53 timotimo check src/core/traits.pm
18:53 timotimo even "handles" and "returns" are in there
18:54 ZoffixW Yeah, but how do you use them? It seems they aren't user redefinable. And if you look in the grammar, the <is> has a whole bunch of logic, while the rest have just a simple check
18:55 ZoffixW Like here: https://github.com/rakudo/rakudo/blo​b/6d21e8ba1c2a86fd0943660eb91e955be0​ed72c4/src/Perl6/Grammar.nqp#L3113
18:56 Xliff My gists are turning into a journal of NativeCall GOTCHA!s
18:56 ZoffixW $*BORG 0.o
18:56 Xliff $*RESISTANCE is futile;
18:57 * timotimo shrugs
18:59 Actualeyes joined #perl6
19:00 RabidGravy ZoffixW, I did have a comprehensive list of the trait words somewhere, but the calling conventions differ slightly
19:01 RabidGravy so e.g.
19:02 RabidGravy m: multi sub trait_mod:<will> (Variable $v, &foo, :$bar) { say "bar"; foo()}; my $b will bar { say "glarg" };
19:02 camelia rakudo-moar f7613f: OUTPUT«bar␤glarg␤»
19:03 RabidGravy "will" always gets the block there
19:03 timotimo yes, that's what "will" is for
19:03 timotimo to add a block to a thing
19:03 timotimo usually we'd install a phaser there
19:03 RabidGravy yes
19:03 timotimo that's probably why it's different in the grammar
19:04 AlexDaniel tbrowder: it is ok!
19:04 ZoffixW Aha. Cool. RabidGravy++
19:04 timotimo ah, also: we explain mistery and cry sorrows there because the thing with "is" will immediately be executed
19:04 AlexDaniel tbrowder: I still don't understand “where case distinctions do not matter” part though
19:04 timotimo but we don't want to execute anything at all if we've stumbled over some problems in the code so far
19:04 AlexDaniel tbrowder: it has been there before your changes, but I'd still like to know what it means
19:05 ZoffixW where .lc eq .uc ?
19:05 AlexDaniel ZoffixW: which means?
19:05 ZoffixW AlexDaniel, where is that from?
19:06 prammer joined #perl6
19:06 AlexDaniel ZoffixW: https://doc.perl6.org/language/unicode_texas
19:07 RabidGravy I still think that some mechanism to add new trait introducing words would be cool
19:07 ZoffixW m: sub ƻa { say 'two' }; ƻa
19:07 camelia rakudo-moar f7613f: OUTPUT«two␤»
19:08 grondilu m: role A { proto method f returns Real {*} }; say class :: does A { multi method f { "not a number at all" } }.f()
19:08 camelia rakudo-moar f7613f: OUTPUT«not a number at all␤»
19:08 RabidGravy sometimes it's a real struggle coming up with things that make sense
19:08 ZoffixW AlexDaniel, ¯\_(ツ)_/¯ I think it's just poor wording attempting to say that unlike Lc/Lu, Lo chars don't have a "case"
19:09 AlexDaniel ZoffixW: why would that matter on unicode_texas page?
19:09 AlexDaniel tbrowder: so perhaps you can even get rid of that part
19:10 AlexDaniel unless somebody has a better explanation
19:10 pmurias joined #perl6
19:11 pmurias what does the name nqp::p6bindattrinvres expand to?
19:11 ZoffixW toss it
19:13 ZoffixW I'd also move the Numeric Values section right after Numeric Characters, or even combine them. Right now it's odd how Whitespace section is inbetween
19:13 ZoffixW Watch a magic trick:
19:13 ZoffixW m: say 'Life, the Universe, and Everything'.WHY == ፵ + ፪
19:13 camelia rakudo-moar f7613f: OUTPUT«True␤»
19:13 ZoffixW :D
19:18 pmurias joined #perl6
19:18 jjido joined #perl6
19:23 AlexDaniel m: say ‘Life, the Universe, and Everything’.WHY
19:23 camelia rakudo-moar f7613f: OUTPUT«42␤»
19:23 AlexDaniel who did that
19:23 timotimo Deep Thought
19:24 masak or the mice, depending how you see it
19:25 geekosaur both (Pinky asked the wrong question :p)
19:27 AlexDaniel m: say ‘Life, the Universe, and Everything’.WHO
19:27 camelia rakudo-moar f7613f: OUTPUT«Str␤»
19:28 AlexDaniel m: say ‘Life, the Universe, and Everything’.WHERE
19:28 camelia rakudo-moar f7613f: OUTPUT«140702311043192␤»
19:35 yqt joined #perl6
19:37 timotimo Error while reading from file: Invalid UTF-8 encountered on line 3, character 15
19:37 timotimo # oh no, a comm􏿽xE9t
19:37 timotimo ^ here maybe?
19:38 RabidGravy bing bang bong
19:39 timotimo https://github.com/perl6/nqp/commit/403bf33cd4  -  nqp/helpful_utf8_read_failure  -  please put it through its paces for me
19:40 tbrowder joined #perl6
19:40 timotimo Unhandled exception: java.lang.NoClassDefFoundError: Could not initialize class java.lang.Shutdown
19:40 timotimo ^- seems like i can't build nqp? o_O
19:42 timotimo aha
19:42 timotimo here's the first wrong already
19:43 timotimo when i feed it a utf16 string, it'll apparently succeed in reading the whole thing, but it then goes on to output the caret 2x as far to the right as it ought to
19:43 tbrowder AlexDaniel: check doc changes and see if that's a bit better
19:44 AlexDaniel tbrowder: this looks right
19:45 tbrowder okay to merge what we have now?
19:45 AlexDaniel sure
19:45 tbrowder I'll wait for the build check...
19:45 AlexDaniel some people complained about “Portability” thing but I haven't found it
19:46 AlexDaniel am I blind or was it removed?
19:46 colomon joined #perl6
19:46 tbrowder It was a suggestion, but not in a change.
19:46 AlexDaniel ah
19:47 timotimo um ... how come we seem to decode utf16 just fine when utf8 is selected as encoding?
19:51 bazzaar joined #perl6
19:52 firstdayonthejob joined #perl6
19:53 bartolin timotimo: maybe not what you are looking at, but utf8-c8 is not supported with nqp-j (you have that in your commit)
19:53 timotimo oh!
19:53 timotimo yes, good point
19:54 bartolin nqp::setencoding($new-handle, "utf8-c8")  # dies with 'Unsupported encoding utf8-c8'
19:55 tbrowder unicode: Can anyone explain the extra white space associated with 0x1d452 in some renderings?
19:55 timotimo i will catch that and give the original error instead.
19:55 timotimo m: say uniname(0x1d452)
19:55 camelia rakudo-moar f7613f: OUTPUT«MATHEMATICAL ITALIC SMALL E␤»
19:55 timotimo huh
19:55 timotimo no clue
19:56 timotimo perhaps some library wrongly states that it's a wide character?
19:58 timotimo https://twitter.com/loltimo​/status/725413721921753089
20:00 [Coke] .seen leont
20:00 yoleaux I saw leont 24 Apr 2016 14:45Z in #perl6: * leont has lived with --std=c++11 for a while now, and wouldn't ever want to look back
20:01 tbrowder m: say uniname(0xff19)
20:01 camelia rakudo-moar f7613f: OUTPUT«FULLWIDTH DIGIT NINE␤»
20:02 dalek doc: 85b3f2b | (Tom Browder)++ | doc/Language/unicode_texas.pod:
20:02 dalek doc: add some examples; format some text for ease of maintenance
20:02 dalek doc: review: https://github.com/perl6/doc/commit/85b3f2b494
20:02 dalek doc: 78c100c | (Tom Browder)++ | doc/Language/unicode_texas.pod:
20:02 dalek doc: use Nd chars per AlexDaniel
20:02 dalek doc: review: https://github.com/perl6/doc/commit/78c100c20f
20:02 dalek doc: d3d074d | (Tom Browder)++ | doc/Language/unicode_texas.pod:
20:02 dalek doc: add reference to properties
20:02 dalek doc: review: https://github.com/perl6/doc/commit/d3d074dc5d
20:02 dalek doc: b807a73 | (Tom Browder)++ | doc/Language/unicode_texas.pod:
20:02 dalek doc: make changes per AlexDaniel and Zoffix
20:02 dalek doc: review: https://github.com/perl6/doc/commit/b807a730b0
20:02 dalek doc: 097b496 | (Tom Browder)++ | doc/Language/unicode_texas.pod:
20:02 dalek doc: Merge pull request #470 from tbrowder/master
20:02 dalek doc:
20:02 dalek doc: add some examples; format some text for ease of maintenance
20:02 dalek doc: review: https://github.com/perl6/doc/commit/097b4960f1
20:02 grondilu 455+
20:03 grondilu ^ignore that, that was me trying to input a unicode character
20:03 AlexDaniel grondilu: does not look like a strong password
20:03 * grondilu still does not quite get the Alt+'+' method on windows
20:03 timotimo tbrowder: can you try the branch with my newest commits?
20:04 MadcapJake AlexDaniel: xD
20:06 tbrowder timotimo: um, can you point me to it?  this git collab with LOTS of players and action is a little new to me
20:07 timotimo wait
20:07 timotimo sorry, it was bartolin who notified me, not ou
20:07 timotimo sorry for the noise!
20:07 timotimo bartolin: ^ please test my latest commit if it properly catches that exception
20:07 RabidGravy :-\
20:09 bartolin timotimo: will do, though it will take a while :-)
20:09 timotimo thank you!!
20:14 tbrowder AlexDaniel: the pull has built and the fresh page awaits: https://doc.perl6.org/language/unicode_texas
20:18 RabidGravy tbrowder, looks good (leaving aside the default font in chrome means I can't actually see the unicode characters properly)
20:18 MadcapJake Why is there a since column if it's got nothing in it?
20:19 geekosaur presumably for stuff added in e.g. 6.d?
20:19 AlexDaniel let's fill it with 6.c then?
20:20 MadcapJake yeah agreed, seems bizarre that the whole column is empty
20:20 AlexDaniel also, here are some weird things
20:20 AlexDaniel “as part of «» or .»”
20:21 AlexDaniel what is .» ?
20:21 timotimo hyper method calls
20:21 AlexDaniel ». then?
20:21 timotimo you can even type it .».
20:21 timotimo but it really should be »., yeah
20:21 AlexDaniel but why would you
20:21 AlexDaniel and here's another one
20:21 AlexDaniel
20:21 MadcapJake also should it mention that those can also be wrapped around operators?
20:22 timotimo there's only ++«, not sure if you can put a . in between there
20:22 timotimo m: my Int @foo = <4 5 6>; ++.<<@foo; say @foo
20:22 camelia rakudo-moar f7613f: OUTPUT«5===SORRY!5=== Error while compiling /tmp/M2PDPyYqe8␤Unable to parse quote-words subscript; couldn't find right double-angle quote␤at /tmp/M2PDPyYqe8:1␤------> 3 Int @foo = <4 5 6>; ++.<<@foo; say @foo7⏏5<EOL>␤    expecting any of:␤    …»
20:22 timotimo m: my Int @foo = <4 5 6>; ++<<@foo; say @foo
20:22 camelia rakudo-moar f7613f: OUTPUT«[5 6 7]␤»
20:22 MadcapJake maybe remove the since column and add `(added in 6.d)` in the remarks column if the need arises
20:22 timotimo m: my Int @foo = <4 5 6>; ++<<.@foo; say @foo
20:22 camelia rakudo-moar f7613f: OUTPUT«Invocant requires a type object of type Array[Int], but an object instance was passed.  Did you forget a 'multi'?␤  in block <unit> at /tmp/Gb6La8NWqf line 1␤␤»
20:22 timotimo turns out you can not.
20:22 AlexDaniel obviously notb
20:22 AlexDaniel not*
20:23 AlexDaniel tbrowder: are you taking notes? :)
20:24 wu_ joined #perl6
20:24 tbrowder unicode_texas:  I believe the remarks column needs real examples--any takers?
20:24 AlexDaniel I don't think that examples are going to fit horizontally
20:25 timotimo don't put me in there!
20:27 wu_ I wanted to run EVAL as: my $cmd="say 'hello'"; EVAL($cmd); But the EVAL gives error, though calling with string literally EVAL("say 'hello'") can success. How can the EVAL be used?
20:28 tbrowder could we use the remarks column to reference an example following the list, or on a separate page?
20:28 RabidGravy do what it tells you to do in the message
20:28 AlexDaniel tbrowder: it is also important to note that you can nest ‘’ “” and others
20:28 AlexDaniel m: say ‘hello ‘world’’
20:28 camelia rakudo-moar f7613f: OUTPUT«hello ‘world’␤»
20:28 bazzaar \o
20:29 bazzaar https://github.com/perl6/DBIish/issues/63
20:29 timotimo wu_: that's our "if you're really, really sure you want to use eval, you have to specify it at the beginning of your file" thing
20:29 timotimo m: use MONKEY-SEE-NO-EVAL; my $text = "say 'hello'"; EVAL($text)
20:29 camelia rakudo-moar f7613f: OUTPUT«hello␤»
20:30 timotimo m: my $text = "say 'hello'"; EVAL($text)
20:30 camelia rakudo-moar f7613f: OUTPUT«5===SORRY!5=== Error while compiling /tmp/LzVFsyGYVw␤EVAL is a very dangerous function!!! (use MONKEY-SEE-NO-EVAL to override,␤but only if you're VERY sure your data contains no injection attacks)␤at /tmp/LzVFsyGYVw:1␤------> 3my $text = "say …»
20:30 timotimo ^- wu_ see the difference?
20:30 tbrowder AlexDaniel: I just started this exercise to make a better-looking table; I don't know enough about the fancy operators and unicodes to detect many errors
20:30 wu_ timotimo thanks, I will try.
20:31 AlexDaniel tbrowder: well, you can always ask something here and people will jump in trying to help
20:31 dolmen joined #perl6
20:31 tbrowder AlexDaniel: ...and in my case, I don't intend to use much of unicode (if any) for math or operators
20:31 cdg joined #perl6
20:32 AlexDaniel tbrowder: the problem is that these answers are usually not suitable for docs :)
20:32 AlexDaniel tbrowder: sure, but you're doing a great job there ;)
20:32 tbrowder but what do you think about making examples following the lists? or on another page?  I'm happy to start either and get help from you all
20:33 AlexDaniel tbrowder: set operators have separate pages
20:33 AlexDaniel e.g. https://doc.perl6.org/routine/%E2%8A%86
20:33 tbrowder from my Perl journey so far, I think there are many places that need real examples
20:34 AlexDaniel some constants are documented here: https://doc.perl6.org/langu​age/terms#Identifier_terms
20:34 tbrowder AlexDaniel: then a reference to those pages might be the answer
20:34 AlexDaniel tbrowder: yes
20:35 tbrowder I'll see what I can do
20:35 AlexDaniel but note that https://doc.perl6.org/routine/%CF%84 has nothing… which has to be fixed
20:36 AlexDaniel perhaps you should just duplicate this: https://doc.perl6.org/routine/tau
20:37 AlexDaniel ∘ is not documented!
20:37 wu_ can require rename imported symbols? Suppose I have two scripts files, both export a same class name, I want to use as: require "abs_file_one_path.p6" <MyClass> and require "abs_file_two_path.p6<MyClass>; of cause, the second MyClass should be alias to another name?
20:38 colomon joined #perl6
20:40 AlexDaniel tbrowder: yeah, after looking at it again I think that every thing has to have it's own page
20:40 AlexDaniel well, maybe not every, but most of them
20:41 AlexDaniel tbrowder: superscripts should probably be mentioned here: https://doc.perl6.org/routine/**
20:42 AlexDaniel tbrowder: × and ÷ must probably have their own pages to be searchable
20:43 AlexDaniel oh, actually it looks like there is a way to make stuff searchable without creating a separate page
20:43 fhorck joined #perl6
20:44 AlexDaniel tbrowder: it may be a significant amount of work but it will be highly appreciated, I'm sure
20:45 RabidGravy wu_, in short no
20:46 bitmap joined #perl6
20:46 AlexDaniel tbrowder: perhaps you can start by linking to stuff that already exists
20:47 timotimo wu_, RabidGravy: though you can use constant FooClass = do { require ... }, i think
20:47 tbrowder AlexDaniel: it sounds like a good project, and I'll put it on my TODO list, but I really would like to fix the pod parsing so pod codes are usable inside table cells.
20:47 fhorck \1
20:47 timotimo fhorck: in perl6, you'd always use "$0" for that
20:47 RabidGravy timotimo, yeah that's why I said "in short" ;-p
20:48 wu_ after calling "use MONKEY-SEE-NO-EVAL;" I can call EVAL on embedded code. How can I later disable the pragma to restore the safety?
20:48 bartolin timotimo: I was able to build nqp-j (and rakudo-j) from your branch. should I test something else?
20:48 AlexDaniel no MONKEY-SEE-NO-EVAL ?
20:48 RabidGravy yeah
20:48 AlexDaniel m: no MONKEY-SEE-NO-EVAL
20:48 camelia rakudo-moar f7613f: ( no output )
20:48 wu_ RabidGravy: thanks, I will have a test on using FooClass = do {require ...}
20:49 RabidGravy it's also lexical in effect so keeping it within a small scope is good
20:49 timotimo wu_: don't forget the "constant" in front, or alternatively "my \FooClass = ", note the \
20:49 timotimo AlexDaniel: clearly we have to add MONKEY-SEE-EVAL
20:49 timotimo :P
20:50 RabidGravy obPixiesReference
20:53 timotimo and the devil is six?
20:53 RabidGravy well MONKEY-GONE-TO-HEAVEN
20:54 grondilu a travis build for one of my module with this message:
20:54 grondilu /home/travis/build.sh: line 45: perl6: command not found
20:54 wu_ RabidGravy: can you please give an full example on constant FooClass = do { require ... },
20:54 wu_ thanks.
20:55 colomon joined #perl6
20:55 wu_ RabidGravy: what I have tested is to show the FooClass is actually the filename str.
20:56 RabidGravy yeah, I think that is possibly correct
20:57 RabidGravy 'ang on
20:57 sortiz joined #perl6
20:57 timotimo oh, in that case it'd have to be
20:58 timotimo do { require "blah blah" <FooClass>; FooClass }
20:58 sortiz \o #perl6
20:58 timotimo yo sortiz, how are you doing?
20:58 sortiz timotimo, Fine, thanks, fixing DBIish #62 :-)
20:59 timotimo wait, what?
20:59 timotimo you must have me confused with someone else
21:01 wu_ timotimo: thanks
21:02 sortiz "timotimo> yo sortiz, how are you doing?" just answering.
21:02 timotimo oh!
21:02 grondilu chmod -- 755 /home/travis/.rakudobrew/mo​ar-nom/install/bin/perl6-m
21:02 grondilu tools/build/create-moar-runner.pl "/home/travis/.rakudobrew/​moar-nom/install/bin/moar" perl6.moarvm /home/travis/.rakudobrew/moar​-nom/install/bin/perl6-gdb-m "/home/travis/.rakudobrew/moar-n​om/install/share/perl6/runtime" "gdb" "/home/travis/.rakudobrew/moa​r-nom/install/share/nqp/lib" "/home/travis/.rakudobrew/moar​-nom/install/share/perl6/lib" "/home/travis/.rakudobrew/moar-n​om/install/share/perl6/runtime"
21:02 timotimo i read "thanks for fixing DBIish #62"
21:02 grondilu sh: 1: tools/build/create-moar-runner.pl: Permission denied
21:02 grondilu make: *** [m-install] Error 126
21:02 grondilu is there something wrong with travis?
21:02 timotimo grondilu: create-moar-runner flip-flopped between a perl6 version and a perl5 version today
21:03 grondilu ok
21:03 dalek DBIish/data-sets: 120c3d1 | (Salvador Ortiz)++ | / (3 files):
21:03 dalek DBIish/data-sets: Pg: Make sure all connection params are Str
21:03 dalek DBIish/data-sets:
21:03 dalek DBIish/data-sets: Closes #62, bazzaar++ for the report
21:03 dalek DBIish/data-sets: review: https://github.com/perl6/DBIish/commit/120c3d13ce
21:04 timotimo hmm, shouldn't it read the port from the environment, too?
21:06 [Coke] our "make" doesn't do a good job of detecting when you have to regen config
21:06 timotimo that, too
21:06 timotimo but that shouldn't cause trouble with travis, should it?
21:06 timotimo because it always does it from scratch?
21:07 jjido joined #perl6
21:10 sortiz I'm seeing an issue whit travis-ci: "rakudobrew: No vesion set. The command "rakudobrew build-panda" failed and exited with 1 during ."
21:13 sortiz s/whit/with/
21:14 RabidGravy eugh
21:15 jjido joined #perl6
21:16 sortiz The error with travis-ci in only with "latest", '2016-01' works without problems.
21:16 firstdayonthejob joined #perl6
21:16 RabidGravy that may be what grondilu was alluding to above
21:17 RabidGravy as it has been working fine most of the day
21:19 sufrostico joined #perl6
21:29 TEttinger joined #perl6
21:35 RabidGravy ah yes "sh: tools/build/create-moar-runner.pl: Permission denied"
21:36 sortiz Yep, seems to be same problem: At the end of the MoarVM build, the install fails, so no perl6 installed.
21:38 timotimo so we ought to revert the revert?
21:38 _28_ria joined #perl6
21:41 RabidGravy it might be the reversion failed to reset the permissions on the file or something
21:43 timotimo huh
21:43 timotimo could be; wanna try?
21:43 RabidGravy ah, got it
21:43 leont_ joined #perl6
21:44 RabidGravy the first time it calls it, it does so with the path to the perl5 the second time it doesn't
21:44 timotimo aaah!
21:44 colomon joined #perl6
21:45 RabidGravy specifically for the perl6-gdb-m target
21:45 RabidGravy so actually the third time
21:49 RabidGravy but on the bright side you are actually left with a working rakudo, just not a perl6-gdb-m (or anything else that might come after that)
21:51 dalek doc/hash-block: 496ec07 | (Dabrien 'Dabe' Murphy)++ | doc/ (2 files):
21:51 dalek doc/hash-block: Incorporate feedback re: idiomaticity
21:51 dalek doc/hash-block:
21:51 dalek doc/hash-block: zoffixznet++
21:51 dalek doc/hash-block: ab5tract++
21:51 dalek doc/hash-block: review: https://github.com/perl6/doc/commit/496ec0768d
21:51 Xliff m: say 1e-1 == 0.1e0
21:51 camelia rakudo-moar f7613f: OUTPUT«True␤»
21:51 RabidGravy is idiomaticity even a thing?
21:52 timotimo it is now
21:53 colomon joined #perl6
21:56 nd3i joined #perl6
21:56 RabidGravy actually regarding the make install not working, it's rather odd as it appears to be correct in the Makefile
21:56 RabidGravy $(PERL5) tools/build/create-moar-runner.pl "$(MOAR)" perl6.moarvm perl6-gdb-m . "gdb" "$(M_LIBPATH)" .
21:57 timotimo does any of that get unset/reset over the course of make going its course?
21:57 travis-ci joined #perl6
21:57 travis-ci Doc build errored. Dabrien 'Dabe' Murphy 'Incorporate feedback re: idiomaticity
21:57 travis-ci https://travis-ci.org/perl6/doc/builds/126231204 https://github.com/perl6/doc/com​pare/0712be40fcc9...496ec0768d62
21:57 travis-ci left #perl6
21:57 RabidGravy or PERL5 isn't actually set at all
21:58 RabidGravy ah no
21:59 RabidGravy it actually does "$(PERL) tools/build/create-moar-runner.pl "$(MOAR)" perl6.moarvm $(DESTDIR)$(PREFIX)/bin/perl6-gdb-m "$(PERL6_LANG_DIR)/runtime" "gdb" "$(M_LIBPATH)" "$(PERL6_LANG_DIR)/lib" "$(PERL6_LANG_DIR)/runtime""
21:59 RabidGravy in another place which is the actual target that is causing the problem
22:00 RabidGravy yeah in the m-install target
22:02 RabidGravy So if someone has commit in rakudo is lines 274 and 275 of Configure.pl need s/PERL/PERL5/
22:02 sortiz $(PERL) vs $(PERL5)
22:05 Xliff Right... now generated .ogg file contains vorbis data but data is still borked from equivalent C code. *sigh*
22:06 timotimo Xliff: you could try to run it under valgrind to see if you're overflowing some buffers or something
22:06 Xliff timotimo++, thanks! I'll keep that in mind.
22:06 Xliff However the header data was broken by a badly transliterated "last if $ret != 0" when it should have been "last if $ret == 0"
22:07 timotimo if you're on a system that doesn't have valgrind, there's also this "drmemory" thing that also works on windows for example
22:07 Xliff So I'm not ruling out logic errors at this point.
22:07 timotimo and is allegedly a whole lot faster than valgrind is
22:07 Xliff No. I have my VM. \)
22:07 Xliff =) too
22:07 timotimo 'k
22:08 Xliff BUT -- I might be able to release a v0.0.1 version of Audio::OggVorbis to the ecosystem. over the weekend.
22:08 Xliff I just need to solve this one, last, pesky problem.
22:09 timotimo cool :)
22:11 RabidGravy cool
22:19 Xliff The "ogg_packet" is interpreted as NULL right --> "vorbis_analysis($vb, ogg_packet);"
22:19 RabidGravy if that's a type object yeah
22:19 Xliff ogg_packet is "class ogg_packet repr('CStruct') {…}"
22:20 RabidGravy yeah that should be fine (if the omission of the 'is' above is just an artefact of copying)
22:20 Xliff Well. Taking a break then. I don't know why I get more data rounds out of the P6 code than I do out of the C code. It must be something I'm doing.
22:21 Xliff Yes. Is omitted coz... FAT FINGERS!
22:21 khw joined #perl6
22:21 Xliff When dealing with bugs like this, I find it is better to take frequent breaks and get mind off subject and then come back to tackle it.
22:21 ZoffixLappy joined #perl6
22:21 Xliff Solved header issues, that way.
22:22 timotimo mhm
22:23 dalek DBIish: f07d94e | (Salvador Ortiz)++ | / (3 files):
22:23 dalek DBIish: Pg: Make sure all connection params are Str
22:23 dalek DBIish:
22:23 dalek DBIish: Closes #62, bazzaar++ for the report
22:23 dalek DBIish: review: https://github.com/perl6/DBIish/commit/f07d94e6d2
22:23 dalek DBIish: 03a6b22 | (Salvador Ortiz)++ | .travis.yml:
22:23 dalek DBIish: travis-ci: Test env vars
22:23 dalek DBIish: review: https://github.com/perl6/DBIish/commit/03a6b22894
22:24 Xliff Although P6 header writes out 3574 bytes instead of C's 3573.
22:24 Xliff Wonder how that happened.
22:24 RabidGravy off by one copying a buff or array to the CArray>
22:25 Xliff No. Those values come from libvorbis.
22:25 Xliff That data doesn't hit a CArray until right before the...write.
22:26 Xliff I've checked all of the reprs used and their nativesizeof matches C's sizeof, so we are good there.
22:29 Sgeo joined #perl6
22:30 Xliff HAH! Mystery solved. My vorbis comment was one character larger than the original.
22:31 Xliff Well, at least for the header size difference.
22:33 ZoffixLappy m: class BetterInt is Int { method even { self %% 2 } }; my BetterInt $x = 42;
22:33 camelia rakudo-moar f7613f: OUTPUT«Type check failed in assignment to $x; expected BetterInt but got Int (42)␤  in block <unit> at /tmp/mTbvCFQjSm line 1␤␤»
22:33 leont_ joined #perl6
22:34 ZoffixLappy Is there any possible way to make it work? But which I mean for it to somehow recognize that given value is an Int that it can operate on? I tried redefining method new() but that didn't do anything
22:34 sortiz Setting a proper PERL environment variable let the travis-ci build pass. RabidGravy++ for diagnose.
22:36 timotimo ZoffixLappy: you just have to box a native int into the BetterInt
22:36 Xliff Wow! perl version of encoder throws out COMPLETELY random data.
22:36 Xliff *Sigh*
22:36 timotimo m: use nqp; class BetterInt is Int { method even { self %% 2 } }; my BetterInt $x = nqp::box_I(42, BetterInt);
22:36 camelia rakudo-moar f7613f: OUTPUT«===SORRY!===␤No registered operation handler for 'box_I'␤»
22:36 timotimo m: use nqp; class BetterInt is Int { method even { self %% 2 } }; my BetterInt $x = nqp::box_i(42, BetterInt);
22:36 camelia rakudo-moar f7613f: ( no output )
22:36 timotimo m: use nqp; class BetterInt is Int { method even { self %% 2 } }; my BetterInt $x = nqp::box_i(42, BetterInt); say $x; say $x.WHAT
22:36 camelia rakudo-moar f7613f: OUTPUT«42␤(BetterInt)␤»
22:36 RabidGravy yeah I couldn't work out where the PERL stopped being defined, it wasn't in the commit that was reverted
22:36 ZoffixLappy eh... that's not user-friendly
22:36 timotimo yah
22:37 ZoffixLappy I kinda came up with:   my BetterInt $x .= new: 42; $x .= new: 71;  seems passable
22:40 RabidGravy ZoffixLappy, wouldn't it be easier to either make it a role or an augment
22:41 timotimo probably would be easier with a role, but noooo don't augment :)
22:41 ZoffixLappy A role? the $x = 42 but role {... } ?
22:42 timotimo yeah
22:42 RabidGravy yeah
22:42 timotimo yeah
22:42 ZoffixLappy yeah!
22:42 ZoffixLappy :D
22:42 RabidGravy who do we think we are? the beatles or something?
22:43 ZoffixLappy :)
22:43 timotimo well, i'm certainly not beatless at the moment
22:52 wamba m: -> Numeric @a { say @a }([1,2])
22:52 camelia rakudo-moar f7613f: OUTPUT«Type check failed in binding @a; expected Positional[Numeric] but got Array ($[1, 2])␤  in block <unit> at /tmp/CPTIJInq8t line 1␤␤»
22:55 skids joined #perl6
22:56 RabidGravy yes it is literal about the type constraints if poistionals
22:56 ZoffixLappy wamba, "Numeric @a" does not mean "array that contains only Numerics"
22:58 grondilu m: sub (@a where .all ~~ Numeric) { say @a }([1, 2])
22:58 camelia rakudo-moar f7613f: OUTPUT«[1 2]␤»
22:58 grondilu m: sub (Numeric @a) { say @a }(my Numeric @ = [1, 2])
22:58 camelia rakudo-moar f7613f: OUTPUT«[1 2]␤»
22:59 RabidGravy yeah
22:59 RabidGravy it uses the .of of the container
23:01 ZoffixLappy Well, I'm not exactly right... *in signature* it doesn't EXACTLY mean that...
23:01 ZoffixLappy m: my Numeric @x = 1, 2; -> Numeric @a { say @a }( @x )
23:01 camelia rakudo-moar f7613f: OUTPUT«[1 2]␤»
23:01 ZoffixLappy In declaration it does, and that's what it'd expect in signature
23:01 timotimo m: my Numeric @a; say @a.VAR.WHAT
23:01 camelia rakudo-moar f7613f: OUTPUT«(Array[Numeric])␤»
23:02 * grondilu did not know we can type parameters in a pointy block
23:02 timotimo ah, yes, that'll give you Array, not Positional. but since Array does Positional, that's fine
23:02 timotimo grondilu: you can even give a return type annotation for a pointy block
23:02 timotimo grondilu: on top of that, sub-signatures also work, but you probably already knew about those
23:02 timotimo hmm
23:02 timotimo grondilu: did i talk to you about the particle system? or only about the white noise thing?
23:03 grondilu I vaguely remember about the white noise.
23:03 nd3i left #perl6
23:03 timotimo ah, ok
23:04 timotimo well, i also made a little particle system based on SDL2::Raw's function that takes an int array of positions and draws points there
23:04 timotimo and by replacing pretty much every single thing ever with an nqp op, i got a very decent framerate out of it; at least compared to what rakudo with "naive" code can do
23:04 timotimo it's in the SDL2::Raw repo in a branch, if you're interested
23:04 timotimo i'll be AFK now
23:05 xenowoolfy joined #perl6
23:06 liztormato joined #perl6
23:06 geekosaur joined #perl6
23:07 grondilu Do I need XWindow to run SD2::Raw?
23:07 wamba ok thanks, Thus, i can use  "where .all ~~ Numeric".
23:07 grondilu I currently have two machines: a windows 10 one and a Pi with no X
23:07 ZoffixLappy m: class Int is Int { method even { self %% 2 } }
23:07 camelia rakudo-moar f7613f: OUTPUT«===SORRY!===␤P6opaque: must compose before allocating␤»
23:07 grondilu Not sure I can use SDL2 then
23:07 ZoffixLappy m: class Int is CORE::Int { method even { self %% 2 } }
23:07 camelia rakudo-moar f7613f: OUTPUT«===SORRY!===␤Could not locate compile-time value for symbol CORE::Int␤»
23:08 grondilu I certainly would love to try graphics stuff in Perl 6
23:08 ZoffixLappy Is there anyway to make that work? Re-define an Int lexically instead of messing with ^augment?
23:08 sufrostico joined #perl6
23:08 grondilu wamba: consider making a subset.  subset Vector of Array where .all ~~ Numeric.
23:09 xenowoolfy I hope all is well.
23:09 grondilu ZoffixLappy: use MONKEY-TYPING
23:09 grondilu oh wait
23:10 grondilu yeah, MONKEY-TYPING will do
23:10 grondilu just use augment, it's not that dirty.
23:11 kid51 joined #perl6
23:11 grondilu m: { my class Int is Int {} }
23:11 camelia rakudo-moar f7613f: ( no output )
23:11 grondilu m: { my class Int is Int { method even { self %% 2 } }; say 4.even }
23:11 camelia rakudo-moar f7613f: OUTPUT«===SORRY!===␤P6opaque: must compose before allocating␤»
23:11 grondilu wow never seen this one
23:12 ZoffixLappy grondilu, but it affects ALL Ints,, doesn't it?
23:12 grondilu it does
23:12 ZoffixLappy Well, that's why it's evil :) And I'm exploring something other than augment
23:12 grondilu m: { use MONKEY-TYPING; augment class Int { method talk { say "hi" } }; 4.talk; } 5.talk
23:12 camelia rakudo-moar f7613f: OUTPUT«5===SORRY!5=== Error while compiling /tmp/Q0W6_oH3rY␤Strange text after block (missing semicolon or comma?)␤at /tmp/Q0W6_oH3rY:1␤------> 3 { method talk { say "hi" } }; 4.talk; }7⏏5 5.talk␤    expecting any of:␤        infix␤        i…»
23:13 grondilu m: { use MONKEY-TYPING; augment class Int { method talk { say "hi" } }; 4.talk; }; 5.talk
23:13 camelia rakudo-moar f7613f: OUTPUT«hi␤hi␤»
23:13 adu joined #perl6
23:13 grondilu indeed it affects everything
23:13 ZoffixLappy Yeah... JavaScript folks would love it :P
23:14 grondilu I've never successfully inherited anything from a core class.  It usually doesn't work well.
23:18 ZoffixLappy I wonder if it'd be possible to use `temp` to localize CORE:: and swap the Int in it with your custom Int....
23:19 ZoffixLappy m: CORE::<Int> = class :: is Int { method even { self %% 2 } };
23:19 camelia rakudo-moar f7613f: OUTPUT«Cannot modify an immutable Int␤  in block <unit> at /tmp/hUckoj4kHq line 1␤␤»
23:19 ZoffixLappy Oh well
23:20 grondilu you can define even as a sub and use the .& notation.
23:20 wamba graodilu: ye, its good idea, but i try this and it do not work same. Directly write works, but make Vector fails with  expected Positional[Array] but got Array ($[1])
23:20 ZoffixLappy grondilu++ thanks. That's a good idea to include in my article!
23:21 grondilu wamba: it should work fine
23:21 hotel joined #perl6
23:22 grondilu wamba: what do you mean by "make Vector"?
23:23 grondilu m: subset Vector of Array where .all ~~ Numeric; my Vector @a = rand xx 4;
23:23 camelia rakudo-moar f7613f: OUTPUT«Type check failed in assignment to @a; expected Vector but got Num (0.237613331200051e0)␤  in block <unit> at /tmp/TjWySHY08M line 1␤␤»
23:23 hotel I'm getting this error when running make install for rakudo, any ideas why? https://gist.github.com/HotelCalifor​nia/5ae76dbae555397a8e0886d21bf24420
23:23 grondilu oh I see
23:23 tardisx joined #perl6
23:23 grondilu m: subset Vector of Array where .all ~~ Numeric; my Vector $a = rand xx 4;
23:23 camelia rakudo-moar f7613f: OUTPUT«Type check failed in assignment to $a; expected Vector but got List ($(0.853054247658877e0...)␤  in block <unit> at /tmp/ffRnDr3WP1 line 1␤␤»
23:23 grondilu m: subset Vector of Array where .all ~~ Numeric; my Vector $a = [rand xx 4];
23:23 camelia rakudo-moar f7613f: ( no output )
23:24 wamba m: subset Vector of Array where .all ~~ Numeric; sub rotate_sum ( Vector @a is copy, NaturalNumber $n  ) {  @a.prepend: 0 xx $n;   [Z+]  @a, { .rotate } ... { .[0] != 0 } ;} say (1,2).&rotate_sum(2);
23:24 camelia rakudo-moar f7613f: OUTPUT«5===SORRY!5=== Error while compiling /tmp/g6rFflotQf␤Invalid typename 'NaturalNumber' in parameter declaration.␤at /tmp/g6rFflotQf:1␤------> 3e_sum ( Vector @a is copy, NaturalNumber7⏏5 $n  ) {  @a.prepend: 0 xx $n;   [Z+]  @␤»
23:24 grondilu you just have to be careful, but it works fine
23:24 wamba m: subset Vector of Array where .all ~~ Numeric; sub rotate_sum ( Vector @a is copy, $n  ) {  @a.prepend: 0 xx $n;   [Z+]  @a, { .rotate } ... { .[0] != 0 } ;} say (1,2).&rotate_sum(2);
23:24 camelia rakudo-moar f7613f: OUTPUT«5===SORRY!5=== Error while compiling /tmp/af0sa2tUNg␤Strange text after block (missing semicolon or comma?)␤at /tmp/af0sa2tUNg:1␤------> 3+]  @a, { .rotate } ... { .[0] != 0 } ;}7⏏5 say (1,2).&rotate_sum(2);␤    expecting any of:␤      …»
23:24 grondilu 'Vector @a' means for instance an array of vectors
23:24 grondilu it's not a vector named @a
23:25 grondilu you must write 'Vector $a' if you meant a single vector
23:25 grondilu and you must affect an array to it, not a list
23:25 grondilu so you need the []
23:25 hotel funny that a single vector should be considered a $calar
23:25 grondilu makes total sense imho
23:26 hotel not mathematically, lol
23:26 grondilu even mathematically.
23:26 RabidGravy tum ti tum
23:26 grondilu don't assimilate a vector to its coordinates.
23:26 hotel iirc, a vector is composed of a scalar magnitude and a direction, no?
23:27 grondilu that's one way to sumarize it.  But truly a vector is something that can be added to an other vector or multiplied by a scalar.
23:28 RabidGravy toodles
23:28 ZoffixLappy bye
23:28 hotel hm
23:28 hotel I sit corrected
23:28 * hotel is but young
23:30 grondilu but frankly I think Perl 6's keyword "Scalar" to designate variables with a $ sigil is unfortunate.
23:30 hotel so, does anyone know why running make install for rakudo should give this error? https://gist.github.com/HotelCalifor​nia/5ae76dbae555397a8e0886d21bf24420
23:31 grondilu hotel: current issues with rakudo.  Being studied I think.
23:31 grondilu see backlog
23:31 hotel interesting
23:33 hotel think it's fixed in 2016.04?
23:33 grondilu dunno
23:33 grondilu everything worked fine this moring so.
23:33 grondilu *morning
23:35 hotel hm, guess I'll try it with that then
23:36 arnsholt grondilu: What is it you don't like with the name Scalar?
23:38 grondilu it collides with the mathematical meaning imho
23:38 grondilu though tbh I remember it used to bother me but now it does not anymore.
23:39 leont_ joined #perl6
23:39 ZoffixLappy grondilu, not really, if you realize its contents IS an object :P
23:39 ZoffixLappy ...even if that object has multiple things
23:39 grondilu well I'm not the one who pointed out the irony of having to store a Vector into a Scalar variable.
23:40 ZoffixLappy :D
23:44 BenGoldberg joined #perl6
23:46 zwu joined #perl6
23:46 ZoffixLappy m: use MONKEY-TYPING; augment class Numeric { method even { self.Int %% 2 } }
23:46 camelia rakudo-moar f7613f: OUTPUT«5===SORRY!5=== Error while compiling /tmp/kLdy3TEDFZ␤Cannot augment Numeric because it is closed␤at /tmp/kLdy3TEDFZ:1␤------> 3use MONKEY-TYPING; augment class Numeric7⏏5 { method even { self.Int %% 2 } }␤    expecting any of:␤        g…»
23:47 ZoffixLappy Closed? Is there a way to re-open it?
23:47 ZoffixLappy Hm, it's a role... nm... I should choose something else for my current purposes (though, if there's an answer, I'll gladly learn)
23:47 grondilu m: use MONKEY-TYPING; augment role Numeric { method even { self.Int %% 2 } }
23:47 camelia rakudo-moar f7613f: OUTPUT«5===SORRY!5=== Error while compiling /tmp/DEL9KqvlJf␤Cannot augment Numeric because it is closed␤at /tmp/DEL9KqvlJf:1␤------> 3use MONKEY-TYPING; augment role Numeric7⏏5 { method even { self.Int %% 2 } }␤    expecting any of:␤        ge…»
23:48 grondilu can you summarize what you want to do?
23:48 tbrowder doc: Travis is failing, and I don't think it's my pull request...
23:49 grondilu and why defining an Even subset or an is-even sub would do?
23:49 ZoffixLappy grondilu, make method .even available for all types that are Numeric
23:49 ZoffixLappy grondilu, "would do"? If you meant "won't do", it's because I'm writing an article and want to explore all options (and learn myself)
23:49 sortiz tbrowder, Yep, is a rakudo problem.
23:50 grondilu m: use MONKEY-TYPING; augment class Any { method even(Numeric:) { self.Int %% 2 } }
23:50 camelia rakudo-moar f7613f: ( no output )
23:50 grondilu m: use MONKEY-TYPING; augment class Any { method even(Numeric:) { self.Int %% 2 } }; say pi.even
23:50 camelia rakudo-moar f7613f: OUTPUT«Method 'even' not found for invocant of class 'Num'␤  in block <unit> at /tmp/EygckIDT7S line 1␤␤»
23:50 ZoffixLappy m: say pi.WHAT
23:50 camelia rakudo-moar f7613f: OUTPUT«(Num)␤»
23:50 grondilu isn't a Num and Any?
23:50 ZoffixLappy m: use MONKEY-TYPING; augment class Any { method even(Numeric:) { self.Int %% 2 } }; Num.^compose; say pi.even
23:50 camelia rakudo-moar f7613f: OUTPUT«False␤»
23:51 ZoffixLappy You have to re-compose all the children.
23:51 grondilu oh, I did not know about that.
23:51 esh joined #perl6
23:51 ZoffixLappy s/children/descendants/;
23:54 BenGoldberg One would think that MONKEY-TYPING, besides providing an 'augment' keyword, would also provide a means to re-compose all of a class's children, perhaps automatically.
23:55 ZoffixLappy Impossibru. You can have anonymous classes that inherit from the augmented type
23:55 ZoffixLappy Hm
23:56 ZoffixLappy Unless they're listed somewhere in namespaces... At least when I wanted to write Evil.pm6 that would do just that, I was told it was impossible
23:56 ZoffixLappy m: say ½ %% 2
23:56 camelia rakudo-moar f7613f: OUTPUT«False␤»
23:56 synopsebot6 joined #perl6
23:57 zwu If two scripts defined classes with same name and export them, for example MyClass in T1.pm6 and MyClass in T2.pm6. I cannot using require "file_T1.pm6" <MyClass> and require "file_T2.pm6 " <MyClass>
23:58 zwu even when I tried constant T1MyClass = do { require ... <MyClass> } and constant T2MyClass = do {require ... <MyClass>}
23:58 ZoffixLappy zwu, what do you expect the result to be, when there's an obvious name clash?
23:58 zwu the error returns is P6M Merging Global symbols failed: duplicate definitioin of symbol MyClass
23:58 ZoffixLappy Aye... I recall someone else today had the same error.
23:58 zwu that
23:59 zwu that's me, was wu_
23:59 ZoffixLappy Ah
23:59 * ZoffixLappy has no solution :(
23:59 sortiz zwu, if the classes are our, you can use both by the full name: T1::MyClass and T2::MyClass.
23:59 BenGoldberg Write a custom exporter, so that classes are lexically exported, just like subs.

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

Perl 6 | Reference Documentation | Rakudo