Perl 6 - the future is here, just unevenly distributed

IRC log for #perl6, 2016-09-10

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 mcmillhj joined #perl6
00:12 pierre_ joined #perl6
00:13 mcmillhj joined #perl6
00:19 BenGoldberg joined #perl6
00:24 Kaffe joined #perl6
00:26 canopus joined #perl6
00:33 xinming joined #perl6
00:49 mcmillhj joined #perl6
00:50 AlexDaniel oh, so now github shows the license on top
00:53 canopus joined #perl6
01:06 mcmillhj joined #perl6
01:13 Roamer` joined #perl6
01:16 finanalyst joined #perl6
01:29 mcmillhj joined #perl6
01:46 mcmillhj joined #perl6
02:02 mcmillhj joined #perl6
02:08 bob777 joined #perl6
02:12 rgrinberg joined #perl6
02:19 kaare_ joined #perl6
02:25 cdg joined #perl6
02:28 noganex_ joined #perl6
02:30 mcmillhj joined #perl6
02:38 pierre_ joined #perl6
02:39 pierre_ joined #perl6
02:49 cog__ joined #perl6
02:52 rgrinberg joined #perl6
02:58 mcmillhj joined #perl6
03:08 pierre_ joined #perl6
03:09 bisectable6 joined #perl6
03:11 cog_ joined #perl6
03:25 kyclark_ joined #perl6
03:26 mcmillhj joined #perl6
03:34 kyclark_ joined #perl6
03:45 pierre_ joined #perl6
03:49 holyghost joined #perl6
03:54 mcmillhj joined #perl6
04:04 ruoso joined #perl6
04:04 roguelazer joined #perl6
04:08 Cabanossi joined #perl6
04:09 mcmillhj joined #perl6
04:12 roguelazer joined #perl6
04:17 ruoso joined #perl6
04:40 pierre_ joined #perl6
04:40 mcmillhj joined #perl6
04:42 sakuya joined #perl6
05:00 rgrinberg joined #perl6
05:01 pierre_ joined #perl6
05:02 sakuya joined #perl6
05:07 eviltwin_b joined #perl6
05:13 erana joined #perl6
05:13 mcmillhj joined #perl6
05:16 pierre joined #perl6
05:18 xiaomiao joined #perl6
05:19 wamba joined #perl6
05:21 PotatoGim joined #perl6
05:21 peteretep joined #perl6
05:22 ggherdov joined #perl6
05:24 BuildTheRobots joined #perl6
05:25 cog_ joined #perl6
05:25 bisectable6 joined #perl6
05:25 vike joined #perl6
05:25 Khisanth joined #perl6
05:25 grondilu joined #perl6
05:25 mr-foobar joined #perl6
05:25 committable6 joined #perl6
05:25 benchable6 joined #perl6
05:25 Upasaka joined #perl6
05:25 sftp joined #perl6
05:25 dalek joined #perl6
05:25 masak joined #perl6
05:25 salva joined #perl6
05:25 sunnavy joined #perl6
05:25 Matthew[m] joined #perl6
05:25 ssm joined #perl6
05:25 nebuchadnezzar joined #perl6
05:25 w4and0er96 joined #perl6
05:25 mst joined #perl6
05:25 mrf joined #perl6
05:25 Woodi joined #perl6
05:25 mniip joined #perl6
05:25 dsp_ joined #perl6
05:25 xxpor joined #perl6
05:25 DANtheBEASTman joined #perl6
05:25 camelia joined #perl6
05:25 mls joined #perl6
05:25 jcallen joined #perl6
05:25 tailgate joined #perl6
05:25 albongo joined #perl6
05:25 konobi joined #perl6
05:29 ggherdov joined #perl6
05:38 ggherdov joined #perl6
05:41 mcmillhj joined #perl6
05:47 rindolf joined #perl6
05:48 holyghost joined #perl6
05:53 mcmillhj joined #perl6
06:09 sjoshi joined #perl6
06:13 Pierre_ joined #perl6
06:22 domidumont joined #perl6
06:23 mcmillhj joined #perl6
06:27 domidumont joined #perl6
07:00 CIAvash joined #perl6
07:10 dalek gtk-simple: 64f0f76 | (Richard Hainsworth)++ | examples/01-hello-world.pl6:
07:10 dalek gtk-simple: _ to - in comments
07:10 dalek gtk-simple: review: https://github.com/perl6/gt​k-simple/commit/64f0f76efb
07:10 dalek gtk-simple: dc085ff | finanalyst++ | / (4 files):
07:10 dalek gtk-simple: ScrolledWindow widget & example. Adds auto scrollbars when child too large
07:10 dalek gtk-simple: review: https://github.com/perl6/gt​k-simple/commit/dc085ffff7
07:10 dalek gtk-simple: b885186 | finanalyst++ | examples/01-hello-world.pl6:
07:10 dalek gtk-simple: Merge branch 'master' of https://github.com/finanalyst/gtk-simple
07:10 dalek gtk-simple: review: https://github.com/perl6/gt​k-simple/commit/b885186867
07:10 dalek gtk-simple: c6abba8 | finanalyst++ | / (2 files):
07:10 dalek gtk-simple: adding required files
07:10 dalek gtk-simple: error in git updating.
07:10 dalek gtk-simple: review: https://github.com/perl6/gt​k-simple/commit/c6abba823f
07:10 dalek gtk-simple: da96500 | (Richard Hainsworth)++ | / (7 files):
07:10 dalek gtk-simple: Merge pull request #62 from finanalyst/master
07:10 dalek gtk-simple:
07:10 dalek gtk-simple: ScrolledWindow widget & example + 01-example typos
07:10 dalek gtk-simple: review: https://github.com/perl6/gt​k-simple/commit/da96500c76
07:18 firstdayonthejob joined #perl6
07:19 dalek gtk-simple: 91f4f35 | finanalyst++ | README.md:
07:19 dalek gtk-simple: typo in readme
07:19 dalek gtk-simple: review: https://github.com/perl6/gt​k-simple/commit/91f4f353ec
07:19 dalek gtk-simple: 0741e2a | lizmat++ | README.md:
07:19 dalek gtk-simple: Merge pull request #65 from finanalyst/master
07:19 dalek gtk-simple:
07:19 dalek gtk-simple: typo in readme
07:19 dalek gtk-simple: review: https://github.com/perl6/gt​k-simple/commit/0741e2ae3a
07:22 sjoshi joined #perl6
07:37 grondilu .seen Xliff
07:37 yoleaux I saw Xliff 8 Sep 2016 06:28Z in #perl6: <Xliff> Bed time for me, so I will see you, later.
07:47 RabidGravy joined #perl6
08:04 roguelazer joined #perl6
08:04 noganex_ joined #perl6
08:04 Kaffe joined #perl6
08:04 buggable joined #perl6
08:04 zacts joined #perl6
08:04 atta joined #perl6
08:04 M-Illandan joined #perl6
08:04 xfix joined #perl6
08:04 Glitchy joined #perl6
08:04 rmmm joined #perl6
08:04 DrForr joined #perl6
08:04 ilmari[m] joined #perl6
08:04 ShimmerFairy joined #perl6
08:04 isacloud joined #perl6
08:04 cooper joined #perl6
08:04 chansen_ joined #perl6
08:04 jkva joined #perl6
08:04 NeuralAnomaly joined #perl6
08:04 rodarmor joined #perl6
08:04 huggable joined #perl6
08:04 ugexe joined #perl6
08:04 exodist_ joined #perl6
08:04 kyclark joined #perl6
08:04 jonadab joined #perl6
08:04 [particle]1 joined #perl6
08:04 riatre joined #perl6
08:04 ilbelkyr joined #perl6
08:04 salparadise joined #perl6
08:04 leego joined #perl6
08:04 maddingue joined #perl6
08:04 hoelzro joined #perl6
08:04 protium joined #perl6
08:04 jsimonet joined #perl6
08:04 domm joined #perl6
08:04 risou_ joined #perl6
08:04 timotimo joined #perl6
08:04 jstimpfle joined #perl6
08:04 TeamBlast joined #perl6
08:04 b^_^d joined #perl6
08:04 freeze joined #perl6
08:04 dg joined #perl6
08:04 integral joined #perl6
08:04 rblackwe joined #perl6
08:04 SHODAN joined #perl6
08:05 darutoko joined #perl6
08:05 Sgeo_ joined #perl6
08:05 rjt_pl joined #perl6
08:05 TimToady joined #perl6
08:05 Gothmog_ joined #perl6
08:05 mtj_ joined #perl6
08:05 revdiablo joined #perl6
08:05 obfusk joined #perl6
08:05 krunen joined #perl6
08:05 b2gills joined #perl6
08:05 decent joined #perl6
08:05 sQuEE` joined #perl6
08:05 bhm joined #perl6
08:05 alnewkirk joined #perl6
08:05 rjbs- joined #perl6
08:05 cpage_ joined #perl6
08:05 djbkd joined #perl6
08:05 abruanese joined #perl6
08:05 john51_ joined #perl6
08:05 esh joined #perl6
08:05 luis joined #perl6
08:05 felher joined #perl6
08:05 bpmedley joined #perl6
08:05 sivoais joined #perl6
08:05 Bucciarati joined #perl6
08:05 japhb joined #perl6
08:05 charsbar_____ joined #perl6
08:05 eythian joined #perl6
08:05 nightfrog joined #perl6
08:05 jferrero joined #perl6
08:05 krakan_ joined #perl6
08:05 vcv joined #perl6
08:05 avuserow joined #perl6
08:05 akiym joined #perl6
08:05 Psy-Q joined #perl6
08:05 clkao joined #perl6
08:08 spider-mario joined #perl6
08:11 woolfy joined #perl6
08:11 sivoais joined #perl6
08:13 salparadise joined #perl6
08:16 BuildTheRobots joined #perl6
08:32 labster joined #perl6
08:34 nadim joined #perl6
08:38 mcmillhj joined #perl6
08:39 bioduds hey all
08:39 bioduds just passing by
08:39 bioduds to say
08:39 bioduds I'm drunk!
08:39 bioduds :)
08:39 bioduds thanks for Perl6
08:40 * sjn is sober and like Perl6 too :)
08:41 sjn likes*
08:43 bioduds LOL
08:43 bioduds yeah
08:43 bioduds he must
08:44 bioduds Perl6 is so awesome
08:44 bioduds and I'm not saying it cause I'm drunk
08:46 bioduds what time is it there?
08:46 bioduds im in Brazil
08:47 bioduds its 5:46 AM here
08:47 bioduds you in Europe?
08:50 w4and0er96 after reading perl6 inter site, I find I still confuse about many pl6 code for their 'magic' ops or grammar, to figure out 'all' those seems meaningless, and  I now still code pl6 in a 'C-like' style. Since I'm a student, where can I find a task that can improve my pl6 coding skill and knowledge?
08:53 bioduds w4and0er96 : currently, youtube p6 principles that the guys who made it are spreading
08:53 bioduds check, for instance why they say that perl6 has Math that really works and why
08:54 bioduds also, check how to make you code fully declarative, a thing perl lets you do
08:54 bioduds also, check how grammars work
08:54 bioduds this may begin to show you the new perl6 programming paradigm
08:59 w4and0er96 thx, I'll try it
09:04 FROGGS joined #perl6
09:05 eliasr joined #perl6
09:15 Woodi w4and0er96: maybe try to write some perl6 script or module you want to write, that provides instant learning. also helps improve language with real world usages :)
09:19 stmuk_ yes and exactly what you write matters less than writing sommething
09:34 rindolf joined #perl6
09:39 Pierre_ joined #perl6
09:43 woolfy left #perl6
10:07 bjz joined #perl6
10:10 El_Che w4and0er96: like Woodi and stmuk_ say, I also just picked a small project I needed to do and did it in Perl 6 while having the documentation open
10:10 El_Che w4and0er96: and #perl6 of course :)
10:13 committable6 joined #perl6
10:30 rindolf joined #perl6
10:35 munja joined #perl6
10:47 cognominal joined #perl6
11:00 munja joined #perl6
11:04 obfusk joined #perl6
11:13 kurahaupo joined #perl6
11:18 skarn_ joined #perl6
11:18 skarn_ joined #perl6
11:18 bob777 joined #perl6
11:19 kurahaupo_ joined #perl6
11:20 kurahaupo_ left #perl6
11:28 aries_liuxueyang joined #perl6
11:30 kurahaupo joined #perl6
11:32 kurahaupo_ joined #perl6
11:34 kurahaupo` joined #perl6
11:49 masak greetings, #perl6
11:49 munja hi!
11:50 moritz \o masak, munja
11:54 AlexDaniel joined #perl6
11:54 dalek doc: a5f5ca0 | (Zoffix Znet)++ | doc/Language/unicode_texas.pod6:
11:54 dalek doc: Fix fancy-pants quotes
11:54 dalek doc:
11:54 dalek doc: - Some alternatives do not reference the quote in question
11:54 dalek doc: - Some alternatives are omited
11:54 dalek doc: review: https://github.com/perl6/doc/commit/a5f5ca005c
11:59 FROGGS o/
11:59 timotimo yo FROGGS :)
12:04 masak m: my %names = ma => "sak", mo => "ritz", mu => "nja"; say "hi ", $_, %names{$_} given %names.keys.roll
12:04 camelia rakudo-moar 4578e7: OUTPUT«hi moritz␤»
12:04 masak :)
12:04 moritz \o
12:05 rightfold joined #perl6
12:06 rightfold omg production distribution
12:09 * masak .oO( production is already here, it's just unevenly distributed? )
12:10 Pierre_ joined #perl6
12:11 rightfold > Undeclared routine: use used at line 2
12:11 rightfold Oh I'm an idiot, I missed the "v"
12:20 masak was this `use v6;`?
12:20 masak I find I don't bother most of the time any more.
12:20 dogbert17 o/ #perl6
12:21 masak apparently I put `use v6;` consistently in .t files, and most of the time in bin/ files
12:21 masak but almost not at all in .pm files
12:22 timotimo m: use 6
12:22 camelia rakudo-moar 6e2a55: OUTPUT«5===SORRY!5=== Error while compiling <tmp>␤Undeclared routine:␤    use used at line 1␤␤»
12:22 dogbert17 does anyone have time to look at some, possibly controversial, changes to the 'eqv' doc in operators.pod6 before I commit them :) https://gist.github.com/dogbert17​/d35362c10ad8b54a13c4c13b63dc1b08
12:22 timotimo interesting.
12:26 kurahaupo joined #perl6
12:28 masak today's autopun spotting: https://twitter.com/dmonbee​r/status/773773272639008768
12:29 rightfold masak: "use 6.c;" :P
12:30 bjz joined #perl6
12:33 masak ah, yes.
12:34 MasterDuke does it make sense to remove module from the ecosystem if they've been obsoleted?
12:34 MasterDuke i wrote the hacky List::Combinations because the rakudo builtins were slower, but now they're faster (and lazy if you want)
12:35 timotimo you can deprecate your functions with "is DEPRECATED" iirc
12:35 timotimo iirc it allows you to tell the user what you recommend using instead
12:36 MasterDuke do that, bump the version, then remove entirely after some time has gone by?
12:38 timotimo yeah
12:38 timotimo give it a year or two :P
12:38 MasterDuke ha, i don't think it has all that many users other than me
12:40 timotimo *shrug*
12:40 MasterDuke but ok, that's what i'll do
12:43 dalek doc: 44d6add | (Jan-Olof Hendig)++ | doc/Language/operators.pod6:
12:43 dalek doc: The description of eqv was slightly outdated
12:43 dalek doc: review: https://github.com/perl6/doc/commit/44d6add9d7
12:46 perlawhirl joined #perl6
12:48 rightfold Can I pass a Blob to a native function that takes a Pointer[void]?
12:50 rightfold or CArray[uint8]
12:51 rightfold the documentation says "TBD"
12:52 timotimo you can definitely nativecast a CArray into a Pointer
12:52 timotimo i'm not sure about Blob, though.
12:54 rightfold I suppose I can fill a CArray from a Blob
12:56 timotimo define a binding to memcpy that takes a Blob and a CArray :)
12:56 timotimo actually, you may want to manually memory-manage the thing and use CPointer instead of CArray
12:56 timotimo if all you want to do is pass the thing into a function
12:57 timotimo NativeCall really wants to have a way to pretend an array is a pointer and the other way around
12:57 timotimo that requires some extra care with regards to what kinds of things may have their storage move around in memory.
12:57 timotimo AFK for a bit
12:59 canopus joined #perl6
12:59 rightfold timotimo: got it working: http://lpaste.net/1290423804551495680
13:08 telex joined #perl6
13:23 bjz joined #perl6
13:25 stundenull joined #perl6
13:26 w4and0er96 besides reduce using [op], how can I code equivalently like  a.filter(..).reduce(..).filter(..)?
13:32 moritz w4and0er96: filter is called grep
13:32 moritz w4and0er96: reduce is reduce
13:33 moritz though after a reduce, you typically only have one item left, so not much point in having another grep/filter after it
13:33 canopus joined #perl6
13:33 rightfold is it at all possible to serve two clients simultaneously using IO::Socket::INET? or do I have to use IO::Socket::Async?
13:35 rightfold because I can't read from a socket that was created in another thread
13:35 MasterDuke pretty sure that's either by design or a known limitation
13:40 w4and0er96 moritz: sure, but what if a is array of arrays? at that point I may apply one more grep, although its real world app may rare
13:43 perlawhirl w4and0er96: in most cases i think you're thinking of .map , ie. @AoA.grep( *.elems > 5 ).map( *.sum ).grep( * > 10 );
13:43 w4and0er96 moritz:  got it 'reduce is reduce' :) embarrassed
13:44 w4and0er96 perlawhirl: yes this case appears more often
13:48 moritz m: say ([1, 2, 3], [4, 5], [6, 8]).filter(*.elems %% 2).map(*.reduce(&infix:<+>)).filter(* %% 2)
13:48 camelia rakudo-moar 20ed9e: OUTPUT«Method 'filter' not found for invocant of class 'List'␤  in block <unit> at <tmp> line 1␤␤»
13:48 moritz m: say ([1, 2, 3], [4, 5], [6, 8]).grep(*.elems %% 2).map(*.reduce(&infix:<+>)).grep(* %% 2)
13:48 camelia rakudo-moar 20ed9e: OUTPUT«(14)␤»
13:48 MilkmanDan joined #perl6
13:48 skids joined #perl6
13:52 bob777 joined #perl6
13:55 kaare_ joined #perl6
14:02 titsuki joined #perl6
14:03 robertle joined #perl6
14:04 tadzik wow, cpan's "Panda" namespace is full of stuff
14:12 bjz joined #perl6
14:17 xinming joined #perl6
14:24 kaare_ joined #perl6
14:25 domidumont joined #perl6
14:25 gbarr joined #perl6
14:26 khw joined #perl6
14:28 darutoko- joined #perl6
14:32 iH2O joined #perl6
14:33 w4and0er96 why ((1..5), (1..10)).map(&[+]) produce (15) ? I just thought it #=> ([+] (1..5), [+](1..10)) => (15 55)
14:40 moritz w4and0er96: it doesn't go recursively into sublists
14:40 moritz w4and0er96: instead it numifies each argument, and numifying a range ends up with the number of elements
14:43 darutoko joined #perl6
14:47 iH2O left #perl6
14:48 wamba joined #perl6
14:49 hoelzro are blob literals NYI?
14:50 timotimo tadzik: it is?
14:50 timotimo what's in it?
14:51 Xliff joined #perl6
14:51 Xliff \o
14:51 Xliff Rakudo build process is broken
14:52 Xliff Are folks aware, or should I pastebin my last rakudobrew attempt?
14:52 timotimo uh oh
14:52 timotimo do paste it please
14:53 moritz Xliff: there might be a difference between "rakudo build process is broken" and "my last build failed"
14:54 Xliff Can't locate build/setup.pm in @INC (you may need to install the build::setup module)
14:54 tadzik timotimo: various libraries, seemingly unrelated to one another
14:54 Xliff This is from Configure.pl
14:54 Xliff I will fpaste
14:54 timotimo hmm
14:54 hoelzro m: say :16{abcd}
14:54 camelia rakudo-moar 20ed9e: OUTPUT«5===SORRY!5=== Error while compiling <tmp>␤Malformed radix number␤at <tmp>:1␤------> 3say :167⏏5{abcd}␤    expecting any of:␤        number in radix notation␤»
14:54 shadowpaste "xliff" at 217.168.150.38 pasted "Latest rakudobrew" (22 lines) at http://fpaste.scsys.co.uk/533511
14:56 Xliff And just for shits and grins, I did "cpan install build::setup" and cpan responded with "Whachu talkin' about Willis?"
14:58 Xliff m: say 16 => {abcd}
14:58 camelia rakudo-moar 20ed9e: OUTPUT«5===SORRY!5=== Error while compiling <tmp>␤Undeclared routine:␤    abcd used at line 1␤␤»
14:58 Xliff m: say 16 => <abcd>
14:58 camelia rakudo-moar 20ed9e: OUTPUT«16 => abcd␤»
14:58 Xliff m: say :16{abcd}
14:58 camelia rakudo-moar 20ed9e: OUTPUT«5===SORRY!5=== Error while compiling <tmp>␤Malformed radix number␤at <tmp>:1␤------> 3say :167⏏5{abcd}␤    expecting any of:␤        number in radix notation␤»
14:59 Xliff It could be my local install, but I haven't touched the system perl in ages.
14:59 Xliff And what is build::setup?
15:01 w4and0er96 moritz: what 'numify' means?
15:02 Xliff Attempt to rectify a value to a number
15:02 Xliff s/value/variable/
15:05 firstdayonthejob joined #perl6
15:08 w4and0er96 moritz: i think i got it, thank you >_<
15:09 w4and0er96 and it works by replacing .map(*.sum)
15:09 dalek doc: 56402ee | (Jan-Olof Hendig)++ | doc/Language/syntax.pod6:
15:09 dalek doc: Added a few semicolons to the code examples
15:09 dalek doc: review: https://github.com/perl6/doc/commit/56402eec6d
15:11 Actualeyes joined #perl6
15:14 lichtkind__ joined #perl6
15:17 MasterDuke Xliff: are you using debian? didn't they recently remove '.' from the system @INC due to a CVE?
15:18 Xliff Yes, I am on Debian.
15:18 Xliff And I had no idea they removed .
15:18 Xliff Is there a fix?
15:19 MasterDuke i think there was some talk about it here in the past couple days, maybe search for @INC or debian in the logs?
15:20 MasterDuke i don't use debian, so i don't know if there's a specific fix for it
15:21 timotimo i'm glad rakudo doesn't have . in its normal module search path
15:22 rightfold Me too; lib is more useful :P
15:23 timotimo does python have . in its default search path for import?
15:23 rightfold No
15:25 Xliff *sigh*
15:25 kim1599 joined #perl6
15:25 Xliff OK. Well I am stuck with my current rakudo until this gets fixed.... or until I am vexed enough to fix it myself.
15:25 Xliff Just wanted you all to know.
15:29 timotimo ah, i just now saw you already pasted the error
15:30 timotimo i was still waiting for you to paste ...
15:37 Pierre_ joined #perl6
15:38 Actualeyes joined #perl6
15:40 rgrinberg joined #perl6
15:48 dogbert17 m: dd 123456.split("", :skip-empty) # is this correct behaviour?
15:48 camelia rakudo-moar 20ed9e: OUTPUT«("", "1", "2", "3", "4", "5", "6", "")␤»
15:49 dogbert17 m: dd '123456'.split("", :skip-empty) # string is handled differently
15:49 camelia rakudo-moar 20ed9e: OUTPUT«("1", "2", "3", "4", "5", "6")␤»
15:52 ugexe i think its safe to say thats not correct behavior
15:53 dogbert17 ugexe: should I RT?
15:53 AlexDaniel YES
15:53 AlexDaniel committable6: releases dd 123456.split("", :skip-empty)
15:53 dogbert17 will do
15:53 committable6 AlexDaniel, ¦«2015.10»: Seq $var = ("", "1", "2", "3", "4", "5", "6", "").Seq␤¦«2015.11»: List $var = $("", "1", "2", "3", "4", "5", "6", "")␤¦«2015.12,2016.02,2016.03,2016.04,20​16.05,2016.06,2016.07.1,2016.08.1,HEAD»: ("", "1", "2", "3", "4", "5", "6", "")
15:54 AlexDaniel committable6: releases dd ‘123456’.split("", :skip-empty)
15:54 committable6 AlexDaniel, ¦«2015.10»: Seq $var = ("", "1", "2", "3", "4", "5", "6", "").Seq␤¦«2015.11»: List $var = $("1", "2", "3", "4", "5", "6")␤¦«2015.12,2016.02,2016.03,2016.04,20​16.05,2016.06,2016.07.1,2016.08.1,HEAD»: ("1", "2", "3", "4", "5", "6")
15:54 AlexDaniel ok that's interesting
15:54 ugexe m: dd 1.23456.split(".", :skip-empty)
15:54 camelia rakudo-moar 20ed9e: OUTPUT«("1", "23456")␤»
15:55 AlexDaniel bisectable6: good=2015.10 good=2015.11 .say for ‘123456’.split("", :skip-empty)
15:55 bisectable6 AlexDaniel, On both starting points (good=2015.10 bad=20ed9e2) the exit code is 1 and the output is identical as well
15:55 bisectable6 AlexDaniel, Output on both points: ===SORRY!=== Error while compiling /tmp/XQZ7k7K2ri␤Undeclared routine:␤    good used at line 1␤
15:55 AlexDaniel bisectable6: good=2015.10 bad=2015.11 .say for ‘123456’.split("", :skip-empty)
15:55 bisectable6 AlexDaniel, Exit code is 0 on both starting points (good=2015.10 bad=2015.11), bisecting by using the output
15:55 bisectable6 AlexDaniel, bisect log: https://gist.github.com/2233​8b6147812fb60372920d0cb9bb81
15:55 bisectable6 AlexDaniel, (2015-11-07) https://github.com/rakudo/rakudo/commit/4b8937f
15:55 AlexDaniel dogbert17: ↑ maybe this is relevant
15:56 bjz joined #perl6
15:56 AlexDaniel committable6: 4b8937f^,4b8937f .say for ‘123456’.split("", :skip-empty)
15:56 committable6 AlexDaniel, ¦«4b8937f^»: ␤1␤2␤3␤4␤5␤6␤␤¦«4b8937f»: 1␤2␤3␤4␤5␤6
15:56 dogbert17 AlexDaniel: thx
15:57 AlexDaniel dogbert17: you see, 4b8937f changed the Str.split behavior, so to me it looks like numeric split was just forgotten
15:57 AlexDaniel MasterDuke: damn, I love working with these bots
15:58 rgrinberg joined #perl6
16:02 dogbert17 done, https://rt.perl.org/Public/​Bug/Display.html?id=129242
16:02 dogbert17 the bots got a mention :-)
16:12 dogbert17 interesting, '12345'.split('', :skip-empty)  is a lot slower than  '12345'.comb
16:17 kaare_ joined #perl6
16:19 AlexDaniel after all, .comb is just easier to type ;)
16:20 _slade_ joined #perl6
16:23 setty1 joined #perl6
16:29 dogbert17 indeed, just a bit surprised
16:35 bjz joined #perl6
16:37 domidumont joined #perl6
16:37 Pierre_ joined #perl6
16:37 nebuchadnezzar joined #perl6
16:39 ugexe has everyone got mojolicious working with Inline::Perl5 yet? Zoffix I know you were trying a few months ago...
16:39 ugexe s/everyone/anyone/
16:41 dalek doc: 54bf52f | (Jan-Olof Hendig)++ | doc/Type/Cool.pod6:
16:41 dalek doc: Partial fix for #791
16:41 dalek doc: review: https://github.com/perl6/doc/commit/54bf52fa97
16:46 leont__ joined #perl6
17:10 Timbus joined #perl6
17:15 cdg joined #perl6
17:32 firstdayonthejob joined #perl6
17:48 Ven_ joined #perl6
18:04 Ven_ joined #perl6
18:10 eliasr joined #perl6
18:23 liztormato joined #perl6
18:24 aindilis joined #perl6
18:31 liztormato left #perl6
18:31 silug joined #perl6
18:37 dalek doc: 563b803 | (Zoffix Znet)++ | doc/Type/Cool.pod6:
18:37 dalek doc: Rearrange poorly placed sentence
18:37 dalek doc: review: https://github.com/perl6/doc/commit/563b8030f3
18:47 dalek doc: 3462d89 | (Zoffix Znet)++ | doc/Type/Cool.pod6:
18:47 dalek doc: Indicate types of values given by :v/:p in .split
18:47 dalek doc: review: https://github.com/perl6/doc/commit/3462d89d76
18:49 Ven_ joined #perl6
18:58 noreem joined #perl6
19:01 moritz https://wiki.dlang.org/Voldemort_types
19:03 masak moritz: heh, I correctly guessed the reason for naming them that :)
19:04 masak Perl 6 almost has the same thing, except not enough static typing for the outside scope to take advantage of
19:07 masak argh. I was looking forward to watching https://www.youtube.com/watch?v=MAKhV9wKblk -- but it appears to lack sound :/
19:07 masak looks funny though, with the t-shirt changes :)
19:08 sjn masak: I get sound here
19:09 masak I see. odd. sound works for me for other talks.
19:09 masak guess I'll just try again later, then ;)
19:12 sjn masak: it's only sound on the left channel though
19:12 masak oh! that explains it. my left earphone is b0rk
19:16 poohman joined #perl6
19:19 TimToady or you knocked the plug out halfway
19:20 * TimToady rereads the convo and retracts his addendum
19:21 rgrinberg joined #perl6
19:21 masak TimToady: listening to your keynote now. I'm oddly flattered by the choice of title :P
19:22 masak (and happy that train tracks ended up on the big screen, and not some boring bug hunt or weird macro musing)
19:23 timotimo i hate it when recordings have only one channel with sound and it decides to blow it up to stereo by putting audio onto one ear only
19:24 masak TimToady: "favicon" :)
19:24 TimToady that were it
19:25 TimToady When your brain turns to sponge, some of your words fall into the holes...
19:25 timotimo whoops, now there's sound on zero ears
19:26 geekosaur w-ear-d
19:26 timotimo :)
19:27 awwaiid joined #perl6
19:27 mst TimToady: I'm stealing that excuse to explain my slides
19:28 masak TimToady: nowadays I think "strangely consistent" as a concept comes down to CT's natural transformations, neither more nor less. but the problem is getting to the point of grokking natural transformations :P
19:28 TimToady your much learning has driven you mad :)
19:28 masak yeah, tell me about it
19:29 mst masak: expand CT?
19:29 masak mst: category theory
19:29 rightfold category theory is great
19:29 mst ugexe: 98% sure zoffix did. I could try it with Alien::Rakudo maybe
19:29 mst masak: aha
19:30 masak mst: a zoom-out of group theory and universal algebra that ends up explaining all of math rather well, and providing an alternative/cuter foundation than ZF set theory
19:30 masak mostly, it shows a lot of connections *across* fields (which is also how it got invented)
19:31 masak its slogan is something like "values aren't primary; mappings are"
19:31 timotimo a beautiful buzzing sound in the background
19:31 rightfold masak: "The arrows count."
19:31 masak rightfold: they are the only thing that counts
19:31 masak and someone has described it as "mathematicians finally learning about programming to an interface"
19:32 rightfold Once you know all the arrows, you know all the objects
19:32 rightfold because every object has an identity arrow :p
19:32 masak CT has also been described, often and with emphasis, as "abstract nonsense". last I checked, the practicioners wear that as some sort of badge of honor
19:32 * TimToady is deeply suspicious of any use of the word "natural" since reading C.S. Lewis's Studies in Words
19:33 rightfold https://glot.io/snippets/ei534lx1lq
19:33 masak haven't read that book
19:33 labster joined #perl6
19:33 masak TimToady: but etymologically, the word "natural" in CT is just a formalization of things people were already groping for and partly trying to express with that choice of word
19:34 rightfold PureScript has a natural transformation type in its standard library
19:35 masak rightfold: that quote, "A monad...", is real, except for the provocative "what's the problem?" in the end: http://stackoverflow.com/questions/3870​088/a-monad-is-just-a-monoid-in-the-cat​egory-of-endofunctors-whats-the-issue
19:35 masak (by Saunders Mac Lane)
19:36 rightfold I know :p
19:38 masak there's also "Git, complicated? Of course not! Commits map to isomorphic contours in source-code phase space." -- https://www.reddit.com/r/programming/comments/emb​df/git_complicated_of_course_not_commits_map_to/
19:39 emdashcomma heh
19:39 mst TimToady: I keep forgetting C.S. Lewis wrote things other than the Chronicles of God's Fursona
19:41 * masak .oO( Savior, now with more mane than ever! )
19:50 masak I remember being fond of the Narnia books as a child. I haven't tried reading them as an adult, though.
19:52 BenGoldberg joined #perl6
19:53 mst masak: same, and same. I worry that re-reading them might spoil my nostalgic fondness
19:53 masak quite possibly
19:53 masak I also remember enjoying the (BBC?) TV series version, although I know I wouldn't be able to watch it today :)
19:54 masak partly that's due to the inexorable march of special effects, though
19:54 geekosaur you don't like pepper shakers? :p
19:55 masak thought that was Star Trek
19:55 mst I really don't mind ye olde special effects
19:55 mst then again I've also been known to watch plays
19:56 geekosaur daleks, actually
19:57 geekosaur ST had its own levels of that, though, sure. I'm fairly lax about that, picking on something as old as I am for being old seems like bad plan :p
19:58 geekosaur (tbh I'm usually impressed by such things as "clever" given what they had available at the time)
20:00 * mst has fond memories of a production of '3 men in a boat' that did an amazing job of using a cardboard cutout for the dog
20:03 TimToady .oO("Oh, he knows how to swim, he just can't."
20:03 girafe joined #perl6
20:04 TimToady or was that Connie Willis's take on it
20:10 * arnsholt has only read the Connie Willis version
20:11 arnsholt I suspect I missed quite a few things, not having read the source material first
20:25 labster joined #perl6
20:31 _slade_ joined #perl6
20:32 dalek doc: e6a5d37 | (Jan-Olof Hendig)++ | doc/Type/Cool.pod6:
20:32 dalek doc: Fixed incorrectly defined return value
20:32 dalek doc: review: https://github.com/perl6/doc/commit/e6a5d3725d
20:37 TEttinger joined #perl6
20:59 poohman joined #perl6
21:11 labster joined #perl6
21:13 zacts joined #perl6
21:25 masak nwc10: I was sad about the death of Cube reading your manuscript -- but I will never forgive the lack of compassion with which you kill it off in the talk delivery itself :P
21:25 masak "Cube dies" -- no pause afterwards, on to the next thing
21:26 masak I think I'm going to have to write some Cube VM fanfiction or something to console myself
21:26 timotimo :D
21:27 poohman joined #perl6
21:28 timotimo hm. this points out to me that we don't have sitemaps for most of our perl6 sites; i'm not sure what exactly they allow you to get, but maybe it'd be good to have them for some of our stuff?
21:28 mst yes! it's like web scale, except useful
21:29 timotimo :D
21:29 timotimo well, what sites would sitemaps be good for? perl6.org? docs.perl6.org? our rss feed agregator?
21:30 timotimo examples.perl6.org?
21:30 imcsk8 joined #perl6
21:30 timotimo modules.perl6.org?
21:32 timotimo i expect wordpress (which is what rakudo.org runs) builds sitemaps by itself?
21:32 masak "if you're in a hurry, it's the fastest way to destroy CPAN" -- nwc10++ :D
21:32 masak (removing prototypes from p5)
21:34 timotimo :D
21:39 mst masak: bet you I could auto-patch about 75% of it
21:40 masak mst: sounds oddly tempting
21:48 dogbert17 m: say "1232".rindex('2',-1)
21:48 camelia rakudo-moar b771bc: OUTPUT«Position in rindex out of range. Is: -1, should be in 0..4␤  in block <unit> at <tmp> line 1␤␤Actually thrown at:␤  in block <unit> at <tmp> line 1␤␤»
21:48 masak m: say "1232".rindex('2',*-1)
21:48 camelia rakudo-moar b771bc: OUTPUT«Cannot resolve caller rindex(Str: Str, WhateverCode); none of these signatures match:␤    (Cool:D $: Cool $needle, *%_)␤    (Cool:D $: Cool $needle, Cool $pos, *%_)␤    (Str:D $: Str:D $needle, *%_)␤    (Str:D $: Str:D $needle, Int:D $pos, *%_)␤ …»
21:49 masak m: say "1232".index('2',*-1)
21:49 camelia rakudo-moar b771bc: OUTPUT«Cannot resolve caller index(Str: Str, WhateverCode); none of these signatures match:␤    (Cool:D $: Cool $needle, *%_)␤    (Cool:D $: Cool $needle, Cool $pos, *%_)␤    (Str:D $: Str:D $needle, *%_)␤    (Str:D $: Str:D $needle, Int:D $pos, *%_)␤  …»
21:49 masak huh.
21:49 dogbert17 m: say "1232".rindex('2',4)
21:49 camelia rakudo-moar b771bc: OUTPUT«index start offset out of range␤  in block <unit> at <tmp> line 1␤␤»
21:49 dogbert17 the first message claims the allowed range is 0..4 which seems to be incorrect
21:56 dogbert17 the problem could possibly be related to https://github.com/rakudo/rakud​o/blob/nom/src/core/Str.pm#L230
21:56 timotimo nah, that's the one that fires when you give it -1
21:57 dogbert17 row 223 then :)
21:58 timotimo the error itself probably comes from inside moarvm, actually
21:58 dogbert17 m: say "1232".rindex('2',-1)
21:58 camelia rakudo-moar b771bc: OUTPUT«Position in rindex out of range. Is: -1, should be in 0..4␤  in block <unit> at <tmp> line 1␤␤Actually thrown at:␤  in block <unit> at <tmp> line 1␤␤»
21:58 timotimo that one just fires if you use a big integer instead of a normal-sized integer
21:58 timotimo m: my $ex = try { "1232".rindex('2', 100) }; say $ex.WHAT
21:58 camelia rakudo-moar b771bc: OUTPUT«(Any)␤»
21:58 dogbert17 but if there are four chars in the string shouldn't the range be 0..3
21:58 timotimo m: my $ex = try { "1232".rindex('2', 100) CATCH { say .WHAT } };
21:58 camelia rakudo-moar b771bc: OUTPUT«5===SORRY!5=== Error while compiling <tmp>␤Two terms in a row␤at <tmp>:1␤------> 3my $ex = try { "1232".rindex('2', 100)7⏏5 CATCH { say .WHAT } };␤    expecting any of:␤        infix␤        infix stopper␤        statement end␤   …»
21:59 timotimo ...
21:59 timotimo m: my $ex = try { "1232".rindex('2', 100); CATCH { say .WHAT } };
21:59 camelia rakudo-moar b771bc: OUTPUT«(AdHoc)␤index start offset out of range␤  in block <unit> at <tmp> line 1␤␤»
21:59 timotimo you see how it's an X::AdHoc?
21:59 timotimo this bug has an additional part where going above the threshold doesn't mention the acceptable range of values
22:00 dogbert17 m: say "1232".rindex('2',4)
22:00 camelia rakudo-moar b771bc: OUTPUT«index start offset out of range␤  in block <unit> at <tmp> line 1␤␤»
22:00 timotimo now we need to decide whether we want rindex to accept $self.chars as a start index and just always return Nil
22:00 timotimo well, -1 really
22:00 timotimo and when you give it more than that it would throw
22:00 timotimo or if the error messages should go with self.chars - 1 instead
22:01 dogbert17 I just tried -1 for fun and was surprised when it said the allowed range was 0..4
22:02 dogbert17 but I agree, when the value is to high, something breaks deeper in the code
22:02 dogbert17 s/to/too/
22:03 dogbert17 when should the code on line 223 fire?
22:05 bjz joined #perl6
22:06 rgrinberg joined #perl6
22:06 bjz joined #perl6
22:07 timotimo m: say "1234".rindex('2', 100000000000000000000000000000)
22:07 camelia rakudo-moar b771bc: OUTPUT«Position in rindex out of range. Is: 100000000000000000000000000000, should be in 0..4␤  in block <unit> at <tmp> line 1␤␤Actually thrown at:␤  in block <unit> at <tmp> line 1␤␤»
22:07 timotimo if we didn't have that code in there, here's what would happen instead:
22:07 timotimo m: use nqp; nqp::rindex("foobar", 100000000000000000000000000000000000000)
22:07 camelia rakudo-moar b771bc: OUTPUT«This type cannot unbox to a native string: P6opaque, Int␤  in block <unit> at <tmp> line 1␤␤»
22:07 timotimo er, oops
22:07 timotimo m: use nqp; nqp::rindex("foobar", "foo", 100000000000000000000000000000000000000)
22:07 camelia rakudo-moar b771bc: OUTPUT«Cannot unbox 127 bit wide bigint into native integer␤  in block <unit> at <tmp> line 1␤␤»
22:08 timotimo ^- this unhelpful error
22:08 dogbert17 aha, thx for explaining, so which code handles the case when the position is just a bit too large then?
22:09 dogbert17 m: say "1232".rindex('2',17)
22:09 camelia rakudo-moar b771bc: OUTPUT«index start offset out of range␤  in block <unit> at <tmp> line 1␤␤»
22:10 itaipu joined #perl6
22:10 _slade_ joined #perl6
22:11 timotimo that's inside MoarVM
22:12 timotimo in the implementation of the rindex op (probably in src/string/ops.c) there's an MVM_exception_throw_adhoc (or how it's spelled)
22:13 dogbert17 so deep in the c code then
22:14 timotimo actually, we have a MVM_string_check_arg function that does all kinds of checks for us
22:14 timotimo no, that's something else
22:14 timotimo a-ha!
22:15 timotimo in the moarvm code there's already a comment /* maybe return -1 instead? */
22:17 dogbert17 interesting
22:24 cyphase joined #perl6
22:25 labster joined #perl6
22:30 perlpilot_ joined #perl6
22:31 araujo joined #perl6
22:35 kurahaupo joined #perl6
22:37 cgfbee joined #perl6
22:37 obfusk joined #perl6
22:39 cyphase joined #perl6
22:41 obfusk_ joined #perl6
22:43 lizmat joined #perl6
22:43 cgfbee joined #perl6
22:43 benji joined #perl6
22:48 asdfgh joined #perl6
22:48 asdfgh How do I make sure a string matches the format of a domain
22:49 woolfy joined #perl6
22:49 asdfgh <a-z 0-9 stuff>.<domain suffix>
22:51 timotimo the first step would be to look at the exact definition for valid domain names
22:52 timotimo now that domain names can also include some parts of unicode, and now that top level domains can be pretty much anything you want ...
22:53 cyphase joined #perl6
22:53 timotimo but then you're likely going to want character classes; usually one for the first letter in a domain name and one for the rest
22:54 timotimo like, a - is probably not allowed at the very beginning of a domain name, but after that you can even have -- in a domain name (that's what punycode domains expand to, if i'm not mistaken)
22:54 El_Che is "use v6c" a thing. I mean, does it do something?
22:54 timotimo use v6.c you mean?
22:54 El_Che (I know what it's supposed to do, but with only 6c out there, I wonder if it's implemented)
22:54 El_Che yes
22:55 timotimo we have beginnings of "ability to use a 6.d setting" that i haven't looked very closely at
22:55 timotimo you're mostly future-proofing your code at this point, i guess
22:56 El_Che I am writing a blog post about "perl6 for small scripts" and I wonder if it's should be there
22:56 asdfgh How would I match a string against that though timotimo
22:59 timotimo m: say "foobar.domain" ~~ / (<[a-z]>+)+ % '.' /
22:59 camelia rakudo-moar b771bc: OUTPUT«5===SORRY!5=== Error while compiling <tmp>␤Unsupported use of - as character range; in Perl 6 please use .. for range, for explicit - in character class, escape it or place it as the first or last thing␤at <tmp>:1␤------> 3say "foobar.domain" ~~…»
22:59 timotimo m: say "foobar.domain" ~~ / (<[a..z]>+)+ % '.' /
22:59 camelia rakudo-moar b771bc: OUTPUT«「foobar.domain」␤ 0 => 「foobar」␤ 0 => 「domain」␤»
22:59 * timotimo tired already
23:05 Unavowed_ joined #perl6
23:06 cyphase joined #perl6
23:09 itaipu joined #perl6
23:22 cyphase joined #perl6
23:22 kyclark_ joined #perl6
23:36 cyphase joined #perl6
23:52 cyphase joined #perl6

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

Perl 6 | Reference Documentation | Rakudo