Perl 6 - the future is here, just unevenly distributed

IRC log for #perl6, 2017-05-16

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:00 skids joined #perl6
00:02 Cabanossi joined #perl6
00:11 mcmillhj joined #perl6
00:15 Geth ¦ perl6-most-wanted: 368e2c8384 | (Curt Tilmes)++ (committed using GitHub Web editor) | most-wanted/bindings.md
00:15 Geth ¦ perl6-most-wanted: Add LibYAML
00:15 Geth ¦ perl6-most-wanted:
00:15 Geth ¦ perl6-most-wanted: A private repository for now...
00:15 Geth ¦ perl6-most-wanted: review: https://github.com/perl6/perl6-most-wanted/commit/368e2c8384
00:21 Geth Swapped META.info → META6.json in 5 dists in https://github.com/perl6/ecosystem/commit/b520a57698
00:21 mcmillhj joined #perl6
00:31 lizmat_ joined #perl6
00:34 lookatme joined #perl6
00:35 lookatme morning o/
00:40 mcmillhj joined #perl6
00:47 Cabanossi joined #perl6
00:53 sammers morning
01:04 ugexe uh oh, another person is working on libyaml
01:11 lookatme It's a binding for libyaml, why not a pure Perl 6 version ~
01:12 mcmillhj joined #perl6
01:12 xiani joined #perl6
01:18 Actualeyes joined #perl6
01:19 samcv seems i can't convert a string that has leading zeros in the number.. ugh
01:19 yoleaux 14 May 2017 16:35Z <Zoffix> samcv: sent you a pr: https://github.com/samcv/IRC-TextColor/pull/2
01:19 samcv m: :16("0D77").say
01:19 camelia rakudo-moar d76206: OUTPUT: «3447␤»
01:19 samcv hmm why is it working there
01:21 Geth Swapped META.info → META6.json in 1 dists in https://github.com/perl6/ecosystem/commit/e5202452fc
01:23 samcv .tell Zoffix merged and version bumped :) thank you
01:23 yoleaux samcv: I'll pass your message to Zoffix.
01:27 mcmillhj joined #perl6
01:34 TEttinger samcv: octal?
01:34 samcv turns out it was just a space i couldn't see easily in the error message
01:34 TEttinger oh ok
01:34 samcv causing the parse error :)
01:35 Geth ¦ ecosystem: ea943b372e | (Curt Tilmes)++ | META.list
01:35 Geth ¦ ecosystem: Add LibYAML to ecosystem
01:35 Geth ¦ ecosystem:
01:35 Geth ¦ ecosystem: See https://github.com/CurtTilmes/perl6-libyaml
01:35 Geth ¦ ecosystem: review: https://github.com/perl6/ecosystem/commit/ea943b372e
01:35 ugexe lookatme: i think they are both bindings?
01:36 ugexe ingy: tony-o ^
01:47 mcmillhj joined #perl6
01:48 ilbot3 joined #perl6
01:48 Topic for #perl6 is now »ö« Welcome to Perl 6! | https://perl6.org/ | evalbot usage: 'p6: say 3;' or rakudo:,  or /msg camelia p6: ... | irclog: http://irc.perl6.org or http://colabti.org/irclogger/irclogger_logs/perl6 | UTF-8 is our friend!
01:52 lookatme ugexe, yeah, I found another libyaml, it's a binding :)
02:03 mcmillhj joined #perl6
02:06 dj_goku joined #perl6
02:06 dj_goku joined #perl6
02:11 noganex_ joined #perl6
02:15 kybr joined #perl6
02:33 Cabanossi joined #perl6
02:34 ChoHag joined #perl6
02:42 mcmillhj joined #perl6
02:55 aindilis joined #perl6
02:55 mcmillhj joined #perl6
03:20 mcmillhj joined #perl6
03:22 kaare_ joined #perl6
03:32 Cabanossi joined #perl6
03:32 mcmillhj joined #perl6
03:46 dbac joined #perl6
03:55 SmokeMachine how do I do something like (|) for Maps?
03:56 SmokeMachine sorry, (+)
03:59 mcmillhj joined #perl6
04:02 curan joined #perl6
04:02 kybr joined #perl6
04:24 LeCamarade joined #perl6
04:37 mcmillhj joined #perl6
04:37 CIAvash joined #perl6
04:38 cyphase joined #perl6
05:05 geekosaur joined #perl6
05:05 mcmillhj joined #perl6
05:11 poohman joined #perl6
05:17 Cabanossi joined #perl6
05:20 xiaomiao joined #perl6
05:23 rindolf joined #perl6
05:29 mcmillhj joined #perl6
05:31 lowbro joined #perl6
05:31 lowbro joined #perl6
05:41 mcmillhj joined #perl6
05:42 domidumont joined #perl6
05:48 wamba joined #perl6
05:51 domidumont joined #perl6
06:00 mcmillhj joined #perl6
06:02 Cabanossi joined #perl6
06:08 lookatme joined #perl6
06:08 titsuki_ joined #perl6
06:10 lookatme joined #perl6
06:12 lookatme joined #perl6
06:16 mcmillhj joined #perl6
06:22 xtreak joined #perl6
06:25 aborazmeh joined #perl6
06:26 aborazmeh joined #perl6
06:31 mcmillhj joined #perl6
06:39 pochi joined #perl6
06:46 Cabanossi joined #perl6
06:49 darutoko joined #perl6
06:53 poohman joined #perl6
07:02 mcmillhj joined #perl6
07:03 g4 joined #perl6
07:06 sammers joined #perl6
07:29 parv joined #perl6
07:33 Actualeyes joined #perl6
07:34 labster joined #perl6
07:36 mcmillhj joined #perl6
07:43 domidumont joined #perl6
07:44 xtreak_ joined #perl6
07:46 zakharyas joined #perl6
07:46 aborazmeh joined #perl6
07:46 aborazmeh joined #perl6
07:46 ufobat joined #perl6
07:46 domidumont1 joined #perl6
07:47 zakharyas joined #perl6
07:52 mcmillhj joined #perl6
07:53 lookatme joined #perl6
08:02 pmurias joined #perl6
08:08 lizmat_ And a new Perl 6 Weekly hits the Net: https://p6weekly.wordpress.com/2017/05/16/2017-20-crossing-the-alps/
08:08 moritz lizmat_++
08:13 zakharyas joined #perl6
08:18 eyck joined #perl6
08:20 mcmillhj joined #perl6
08:21 nine lizmat: excellent weekly :) Thank you!
08:24 ufobat :)
08:25 dakkar joined #perl6
08:32 Cabanossi joined #perl6
08:39 mcmillhj joined #perl6
08:44 lookatme :) lizmat ++
08:45 kurahaupo joined #perl6
08:53 mcmillhj joined #perl6
09:01 labster joined #perl6
09:03 eater lizmat: :D
09:03 pmurias great to see Perl 6 being integrated into CPAN/CPAN Testers
09:03 xtreak joined #perl6
09:06 wamba joined #perl6
09:12 bjz joined #perl6
09:17 mcmillhj joined #perl6
09:23 kurahaupo joined #perl6
09:25 margeas joined #perl6
09:32 Cabanossi joined #perl6
10:01 zakharyas joined #perl6
10:02 Cabanossi joined #perl6
10:05 bjz joined #perl6
10:08 xtreak joined #perl6
10:15 xtreak joined #perl6
10:18 kurahaupo_ joined #perl6
10:18 bjz_ joined #perl6
10:23 Geth Swapped META.info → META6.json in 2 dists in https://github.com/perl6/ecosystem/commit/39d8d12776
10:23 kurahaupo joined #perl6
10:28 xtreak joined #perl6
10:31 xtreak joined #perl6
10:32 Cabanossi joined #perl6
10:35 bjz joined #perl6
11:04 ldeandrade joined #perl6
11:08 luiz_lha joined #perl6
11:19 bjz_ joined #perl6
11:43 ChristopherBotto joined #perl6
11:44 ChristopherBotto o/ Hello everyone!
11:46 ChristopherBotto After installing RakudoStar 2017.04, I tried running "zef install LibCurl::HTTP" and got the error "Function 'BEFORE' needs parens to avoid gobbling block"
11:47 ChristopherBotto "at /path/to/rakudo-star/home#sources/A9948E7371E0EB9AFDF1EEEB07B52A1B75537C31 (Zef::CLI):565"
11:48 ChristopherBotto Silly me, I should have looked at Zef::CLI first before bring this up...
11:49 pochi joined #perl6
11:54 ChristopherBotto rest of error message: "------> hen BEFORE { say "===> {$m.<message>}" }⏏<EOL>"
11:59 ChristopherBotto Looks like this currently corresponds to line 633. I'll create an issue at https://github.com/ugexe/zef.
12:00 ChristopherBotto Thanks everyone for all you do! There is a lot of hard work and time (paid and unpaid) that goes into Perl 6. It's getting better all the time.
12:02 nine :)
12:31 Cabanossi joined #perl6
12:32 raschipi joined #perl6
13:00 mcmillhj joined #perl6
13:02 Cabanossi joined #perl6
13:02 cdg joined #perl6
13:06 xtreak joined #perl6
13:10 xtreak joined #perl6
13:12 sufrostico joined #perl6
13:21 ugexe that seems to be related to the lexical module loading switchover
13:22 ugexe nine fixed that in zef... so I wonder if it was just an old version?
13:22 nine Shouldn't RakudoStar 2017.04 contain a recent zef?
13:22 ugexe yeah
13:37 ugexe https://pbs.twimg.com/media/C_0XYJDXsAE6QA7.jpg (look at all those camelias...)
13:38 sufrostico joined #perl6
13:38 ugexe skaji must not have gotten his yet when that was taken :(
13:40 ugexe which btw, skaji upload CPAN::Uploader::Tiny to the perl6 ecosystem to make pause uploading easier
13:42 mr-foobar joined #perl6
13:48 Rawriful joined #perl6
13:52 khw joined #perl6
13:54 Khisanth joined #perl6
14:01 zakharyas joined #perl6
14:02 Sound joined #perl6
14:04 Sound_ joined #perl6
14:16 Cabanossi joined #perl6
14:26 zapwai joined #perl6
14:38 perlpilot joined #perl6
14:39 kurahaupo joined #perl6
15:06 zakharyas joined #perl6
15:08 margeas joined #perl6
15:08 araujo joined #perl6
15:09 araujo joined #perl6
15:09 mcmillhj_ joined #perl6
15:12 cdg joined #perl6
15:19 Cabanossi joined #perl6
15:24 haxmeister :-P
15:24 ingy ugexe: nice job!
15:25 ingy ugexe: maybe join #libyaml
15:48 fatguy joined #perl6
15:52 jmerelo joined #perl6
15:53 jmerelo p6: say  (1..10).map: rand / *
15:53 camelia rakudo-moar 84502d: OUTPUT: «(0.864792334103887 0.0215020434763217 0.294724351553639 0.204453006488093 0.191500281404292 0.0996034807089102 0.0708473480130957 0.0930594050100398 0.0447751575701964 0.0849774283190815)␤»
15:53 jmerelo This works, but it's a hack
15:53 jmerelo p6: say  (1..10).map: rand
15:53 camelia rakudo-moar 84502d: OUTPUT: «Cannot resolve caller map(Range: Num); none of these signatures match:␤    ($: Hash \h, *%_)␤    (\SELF: &block;; :$label, :$item, *%_)␤    (HyperIterable:D $: &block;; :$label, *%_)␤  in block <unit> at <tmp> line 1␤␤»
15:53 jmerelo This does not
15:54 jmerelo p6: say  (1..10).map( {rand} )
15:54 camelia rakudo-moar 84502d: OUTPUT: «(0.00255745694729068 0.708662123083835 0.801211693437442 0.40437869919991 0.782993011507604 0.718728220562455 0.206756778168069 0.149469286293225 0.527926432102567 0.109489980966053)␤»
15:54 jmerelo This works, no problem.
15:54 jmerelo Any help here?
15:54 timotimo jmerelo: the problem is that rand takes an argument
15:55 timotimo so you can't use &rand there, nor *.rand
15:55 timotimo wait, is rand a term?
15:55 timotimo m: say rand 1
15:55 camelia rakudo-moar 84502d: OUTPUT: «5===SORRY!5=== Error while compiling <tmp>␤Unsupported use of rand(N); in Perl 6 please use N.rand for Num or (^N).pick for Int result␤at <tmp>:1␤------> 3say rand7⏏5 1␤»
15:55 timotimo it is
15:55 timotimo what's much better is this:
15:55 timotimo m: say rand xx 10
15:55 camelia rakudo-moar 84502d: OUTPUT: «(0.820230019047666 0.556328758561595 0.17117771682549 0.977256631588291 0.346367591917418 0.995358741031604 0.408214072111737 0.0843794584208193 0.361742909863419 0.874566600339526)␤»
15:56 jmerelo OK, I got it.
15:56 jmerelo Thanks!
15:57 geekosaur obviously we need const >.>
15:57 timotimo we do?
15:59 geekosaur .oO { (1..10).map: const rand }
16:01 timotimo m: say (1..10).map: { $ = rand }
16:01 camelia rakudo-moar 84502d: OUTPUT: «(0.224666109352278 0.644172622404495 0.719284626726174 0.938137428944897 0.31610749540464 0.105887082393094 0.459039024757223 0.490284257105043 0.358790844470345 0.934767721180529)␤»
16:01 timotimo m: say (1..10).map: { state $a = rand }
16:01 camelia rakudo-moar 84502d: OUTPUT: «(0.525305023344315 0.525305023344315 0.525305023344315 0.525305023344315 0.525305023344315 0.525305023344315 0.525305023344315 0.525305023344315 0.525305023344315 0.525305023344315)␤»
16:01 jmerelo Cooll :-)
16:01 timotimo there you go
16:01 perlpilot m: say BEGIN {rand} xx 10;
16:01 camelia rakudo-moar 84502d: OUTPUT: «(0.882102931862404 0.882102931862404 0.882102931862404 0.882102931862404 0.882102931862404 0.882102931862404 0.882102931862404 0.882102931862404 0.882102931862404 0.882102931862404)␤»
16:01 timotimo m: say rand Rxx 10
16:01 camelia rakudo-moar 84502d: OUTPUT: «()␤»
16:01 timotimo m: say 10 Rxx rand
16:01 camelia rakudo-moar 84502d: OUTPUT: «(0.705274517610075 0.870916130054118 0.442735001732596 0.00288293470235081 0.396879707843187 0.0784377934094133 0.0644500210475528 0.898704349623592 0.260033733205117 0.00022029392792176)␤»
16:02 timotimo oh, we propagate that now
16:04 perlpilot m: say once {rand} xx 10
16:04 camelia rakudo-moar 84502d: OUTPUT: «((Mu) (Mu) (Mu) (Mu) (Mu) (Mu) (Mu) (Mu) (Mu) (Mu))␤»
16:04 perlpilot I would have thought that one would work too
16:04 perlpilot m: say (once rand) xx 10
16:04 camelia rakudo-moar 84502d: OUTPUT: «((Mu) (Mu) (Mu) (Mu) (Mu) (Mu) (Mu) (Mu) (Mu) (Mu))␤»
16:05 perlpilot m: say (once rand);
16:05 camelia rakudo-moar 84502d: OUTPUT: «0.886117772825294␤»
16:06 timotimo m: say (once 1) xx 10
16:06 camelia rakudo-moar 84502d: OUTPUT: «((Mu) (Mu) (Mu) (Mu) (Mu) (Mu) (Mu) (Mu) (Mu) (Mu))␤»
16:06 timotimo seems to b0rk with anything on the LHS
16:09 grondilu m: say List.elems
16:09 camelia rakudo-moar 84502d: OUTPUT: «1␤»
16:09 grondilu ^o_O
16:09 perlpilot I think "BEGIN {rand} xx 10" should behave identically to "once {rand} xx 10" except for the timing of when rand is executed.
16:10 perlpilot grondilu: List is a 1 element list.
16:10 grondilu is it?   What is that element?
16:10 grondilu m: say List[0]
16:10 camelia rakudo-moar 84502d: OUTPUT: «5===SORRY!5=== Error while compiling <tmp>␤List cannot be parameterized␤at <tmp>:1␤------> 3say List[0]7⏏5<EOL>␤»
16:10 perlpilot m: say "foo".elems;  # similar to this
16:10 camelia rakudo-moar 84502d: OUTPUT: «1␤»
16:11 grondilu oh
16:11 grondilu I c
16:12 curt_ joined #perl6
16:12 mcmillhj joined #perl6
16:12 mcmillhj_ joined #perl6
16:24 mcmillhj joined #perl6
16:24 mcmillhj_ joined #perl6
16:30 mcmillhj_ joined #perl6
16:30 mcmillhj joined #perl6
16:36 sufrostico joined #perl6
16:44 skids joined #perl6
16:46 haxmeister so XML::parser::tiny is no longer maintained and fails to install...
16:48 haxmeister https://github.com/afiskon/p6-xml-parser-tiny/issues/17
16:57 TEttinger joined #perl6
17:01 Geth ¦ specs: 8638e717e5 | (Zoffix Znet)++ (committed using GitHub Web editor) | v6d.pod
17:01 Geth ¦ specs: Propose fatalization of all redeclaration warnings
17:01 Geth ¦ specs: review: https://github.com/perl6/specs/commit/8638e717e5
17:02 Zoffix joined #perl6
17:02 Zoffix haxmeister: I take it you gave up with DOM::Tiny? Was there a bug in it?
17:04 Zoffix based on commits, looks like xmltiny was still working on Sep 29, 2015
17:21 zakharyas joined #perl6
17:21 AlexDaniel joined #perl6
17:23 samcv joined #perl6
17:29 ingy curt_: are you @CurtTilmes?
17:30 Zoffix yup
17:30 ingy Zoffix: yup on @CurtTilmes?
17:30 Zoffix ingy: yes, that is the same person
17:30 ingy thx
17:31 * [Coke] ~~ to ingy
17:32 Zoffix False
17:33 Zoffix m: say '[Coke]' ~~ 'to ingy'
17:33 camelia rakudo-moar 84502d: OUTPUT: «False␤»
17:34 Zoffix m: my \ingy = 42; my \Coke = 42; sub to {@_};     say [Coke] ~~ to ingy
17:34 camelia rakudo-moar 84502d: OUTPUT: «True␤»
17:34 ingy :)
17:38 Rawriful joined #perl6
17:40 setty1 joined #perl6
17:41 grondilu_ joined #perl6
17:42 samcv insane. i have `is-deeply @results.all, @results.all` and it runs the tests like however many times there are elements in the @results arrays
17:42 samcv i didn't expect that to happen
17:43 Zoffix samcv: your Rakudo is too old
17:43 Zoffix m: use Test; is-deeply <a a a>.all, <a a a>.all
17:43 camelia rakudo-moar 84502d: OUTPUT: «ok 1 - ␤»
17:44 samcv i have 2017.04.3-207-g6bb1b5b40
17:44 samcv will update
17:44 Zoffix Yeah it was fixed like last Friday or something
17:44 samcv ok :)
17:45 Zoffix samcv: note that you're saying each item of @results is `eqv` to each item of results
17:45 Zoffix m: say [eqv] <a a a> # basically this
17:45 camelia rakudo-moar 84502d: OUTPUT: «True␤»
17:45 Zoffix m: say [eqv] <a a a c> # basically this
17:45 camelia rakudo-moar 84502d: OUTPUT: «False␤»
17:45 samcv yep. i can see why that bxug could happen
17:45 samcv just suprised me ;)
17:46 * Zoffix gives up on xmltiny
17:47 Zoffix There's a billion of .flat.has and a few of them appear to be wrong now
17:47 Zoffix s/.push/.append/ in Actions fixes one issue. Changing Actions method head to make [$<head_item>>>.ast.map(|*).flat] gets me first 8 actions tests passing and it's not fun anymore so meh
17:48 Zoffix https://github.com/zoffixznet/p6-xml-parser-tiny/tree/fix-issues if anyone want to pick up the torch
17:48 Zoffix left #perl6
17:56 zacts joined #perl6
17:58 curt_ ingy: Hi, I stepped away -- yes I am @CurtTilmes
17:58 curt_ ingy: I added you to perl6-libyaml -- Feel free to have at it!
17:59 curt_ ingy: tags aren't really working in it yet
18:00 ingy curt_: it's great work! I want to use it to make a full stack YAML implementation that mirrors our brand new p5 YAML.pm stuff
18:00 ingy curt_: I can chat with you in #libyaml
18:04 Cabanossi joined #perl6
18:15 haxmeister .tell Zoffix DOM::Tiny seems to work fine, installs ok and parses without error. When I get some time I'll dig more and try to understand the data structure it produces and how to get at it.
18:15 yoleaux haxmeister: I'll pass your message to Zoffix.
18:18 ugexe a new nice to have: get  https://grep.metacpan.org/ working with perl6 modules
18:28 Geth ¦ doc: d719a9f6cd | (Zoffix Znet)++ | doc/Language/io-guide.pod6
18:28 Geth ¦ doc: Re-tone prose on $*SPEC avoidance
18:28 Geth ¦ doc:
18:28 Geth ¦ doc: There are some edge cases where using $*SPEC is easier or
18:28 Geth ¦ doc: is only way (e.g. $*SPEC.path), so "won't ever need" is too strong
18:28 Geth ¦ doc: review: https://github.com/perl6/doc/commit/d719a9f6cd
18:29 El_Che ingy: great new, I am a yaml fan for configurations
18:29 El_Che ingy: great news, I am a yaml fan for configurations
18:29 japhb joined #perl6
18:33 Sound joined #perl6
18:33 Sound joined #perl6
18:35 kyclark joined #perl6
18:41 Geth ¦ doc: dfdd845b97 | (Zoffix Znet)++ | doc/Language/io-guide.pod6
18:41 Geth ¦ doc: [io grant] Add "The Basics" section to TDIOG
18:41 Geth ¦ doc:
18:41 Geth ¦ doc: (Links to currently non-existent IO::CatHandle, but it will
18:41 Geth ¦ doc: exist soon)
18:41 Geth ¦ doc: review: https://github.com/perl6/doc/commit/dfdd845b97
18:49 domidumont joined #perl6
18:52 espadrine joined #perl6
18:54 Geth ¦ doc: cdc701e758 | (Zoffix Znet)++ | doc/Language/io-guide.pod6
18:54 Geth ¦ doc: [io grant] Add "What's an IO::Path Anyway?" section to TDIOG
18:54 Geth ¦ doc: review: https://github.com/perl6/doc/commit/cdc701e758
18:57 Ven joined #perl6
18:58 st_elmo joined #perl6
19:04 wamba joined #perl6
19:21 Zoffix joined #perl6
19:22 Zoffix Is a way to specify a horizontal rule in POD6? Like if I were writing in a book, I'd use centered "\n***\n" between the paragraphs and in HTML I'd use <hr>... Is there a POD6 directive that lets you do something similar? a "section break"
19:27 TreyHarris Zoffix: grepping ALL-MODULES, looks like a "=begin Html\n\n<hr />\n\n=end Html" is the way it's been done so far
19:27 TreyHarris I don't see anything in POD6 that would emit an explicit hr tag
19:28 Zoffix OK. Thanks
19:28 Zoffix Seems Pod::To::HTML has a bug it renders that as "<p><hr></p>" :/
19:28 TreyHarris :-/
19:29 TreyHarris For display purposes, that shouldn't make much difference though
19:30 Zoffix Unless you're using a wonky browser that's unhappy with invalid markup :)
19:30 haxmeister doesn't <p> add a preceding break?
19:30 timotimo it's a block element by default, so it will in effect do that
19:31 kyclark joined #perl6
19:32 raschipi joined #perl6
19:32 Zoffix haxmeister: <p> element cannot contain block level elements, of which <hr> is one, and its closing tag is optional (closed by any block elemnt), so it's '<p></p><hr>' with a dangling </p>
19:33 Zoffix If you mean about margins... yeah, it adds margins, but I want MOAR margin :D
19:33 Zoffix section break
19:33 haxmeister didn't know <p> doesn't require a closing tag :/
19:33 domidumont joined #perl6
19:33 Zoffix haxmeister: and html/body/head are not required at all :) Though I noticed some search engines choke when they're missing
19:34 haxmeister how is that possible?
19:34 Zoffix There's no ambiguity
19:34 Cabanossi joined #perl6
19:34 Zoffix A <title> is invalid in <body> and <div> is invalid in <head>. Once you reach a certain point you know when your head ended
19:35 * Zoffix returns to writing without any section breaks :)
19:35 Zoffix left #perl6
19:35 haxmeister sounds pretty wacky to me
19:37 [Coke] samcv: 'node-gyp rebuild' just failed for me on a fresh install of node
19:38 hythm joined #perl6
19:39 TreyHarris haxmeister: you're probably aware HTML5 is no longer SGML (and pre-XHTML HTML was just barely); the autoclosing is one of the behaviors
19:39 [Coke] (might be a dayjob networking issue)
19:41 labster joined #perl6
19:41 raschipi At least they made these things standard. Much better than before where it was supposed to be SGML but browsers accepted it anyway and there was no way to know how it would behave.
19:42 Ven_ joined #perl6
19:43 haxmeister TreyHarris: no I didn't know that at all... always just assumed I should close them properly.
19:44 haxmeister sounds kind of backwards to me though.. wasn't xhtml supposed to be the next progression in standards??
19:44 TreyHarris Yeah. Otherwise <p> tag handling particularly would be madness, since it went from delimiter to enclosure and HTML in the wild had <p />, and and and... the autoclosing is kind of like rules that make it less important in modern languages to know and consistently use semicolon as a delimiter or as a terminator.
19:45 raschipi No, no one adopted xhtml because it was bad for clients. A single typo would take an entire websites ot.
19:45 TreyHarris haxmeister: no, HTML5 abandoned the move towards XMLization
19:45 TreyHarris == raschipi
19:45 haxmeister I guess xhtml was a flop then eh?..lol
19:45 TreyHarris validating HTML as a DTD has catastrophic failure patterns
19:46 raschipi Just like Unicode in Perl6
19:46 TreyHarris you ain't wrong...
19:46 moritz that's not very XMLized, right
19:47 raschipi a single malformed byte makes the program die.
19:48 moritz just like it should be
19:48 moritz just like a single malformed bytes makes every json or yaml or XML decoder die
19:48 haxmeister well I abandoned the idea of designing webpages for a living 15years ago when the world decided you needed to have a team and code in 6 different languages to compete..lol
19:48 raschipi that's DoS right at my fingertips
19:49 moritz raschipi: no more or less than any other input that comes with validation
19:50 haxmeister you know.. if it would just die, how many hackings would have been prevented?.. I can think of a few
19:50 raschipi It should do validation but use the other option the standard gives
19:50 TreyHarris It's good for reasons beyond validation. It's simpler. The standard HTML5 skeleton is basically exactly the same as the first HTML you ever learned to write if you learned HTML back at the dawn of the Web. They jettisoned all the cruft that had accumulated mostly just for syntactic reasons
19:51 Geth ¦ doc: 0d6d058252 | (Zoffix Znet)++ | doc/Language/io-guide.pod6
19:51 Geth ¦ doc: [io grant] Add "Writing into files" Section to TDIOG
19:51 Geth ¦ doc: review: https://github.com/perl6/doc/commit/0d6d058252
19:51 haxmeister html5 is much nicer though.. so no complaints there
19:52 robertle joined #perl6
19:54 haxmeister except javascript.. not a fan of that at all
19:55 TreyHarris haxmeister: well, in practice, it seems like JS is more and more becoming a target language for better languages to compile down to.
19:55 haxmeister javascript is the most widely abused language in the world
19:55 hythm hello, Is that a correct way to handle methods of more than one class, or there is better/shorter way?
19:55 hythm m: class A { method a() { say <a> }  }; class B {  method b() { say <b> } }; class C { has $.h1 handles A; has $.h2 handles B }; C.new(:h1(A.new), :h2(B.new)).a;
19:55 camelia rakudo-moar 84502d: OUTPUT: «a␤»
19:55 TreyHarris A mantle that it probably took from Perl :-)
19:56 jaush joined #perl6
19:57 haxmeister there are whole pages that are generated using javascript these days.. that's just tacky
19:57 moritz hythm: your example looks about right to me
19:58 Ven joined #perl6
19:58 hythm Thanks moritz
20:00 haxmeister welcome to web 3.0: <p><script>{300 lines of javascript}</script> and that is how webpages are made
20:00 TreyHarris m: class A { method a() { say <a> }  }; class B {  method b() { say <b> } }; class C is A is B { }; C.new().a; C.new().b
20:00 camelia rakudo-moar 84502d: OUTPUT: «a␤b␤»
20:00 TreyHarris hythm: unless you meant ^^
20:01 zakharyas joined #perl6
20:02 TreyHarris haxmeister: much of HTML5 was designed so that HTML/CSS/JS each do their respective things without taking over the roles of the others, but that doesn't mean people actually follow that design (especially since for awhile yet they currently still need to interoperate with older browsers)
20:04 TreyHarris There was a period when it seriously looked like HTML5 would eliminate the style attribute to at least force CSS to be kept separate. But the transition would have been too hard so that idea was dropped.
20:04 hythm TreyHarris, I did not mean to inherit whole classes, but was thinking that there might be a shorter way: As I dont think I will make use of $.h1 and $.h2 attributes after that
20:05 TreyHarris hythm: if you never rever to the attributes, then except in typing terms how is your class not a subclass of both? I mean, TMTOWTDI of course
20:09 hythm TreyHarris actually you are right, I'm just playing around with OO to get familira with it's concepts
20:11 TreyHarris hythm++
20:11 hythm I wanted to see if there is different syntaxs, instead of using an attribute, may be a trait "handles"  class C handles A,B { }
20:11 hythm but again, it is not so much differnt than just inherits it with "is" trait
20:12 moritz right, delegation only makes sense if you delegate *to* something
20:12 TreyHarris Your instincts are right, I think; classes should generally be used for "has-a" relationships and roles should be used for "does" relationships. It would be very weird to create an attribute that "but"s a role just to delegate to it. It's less weird to do the same with a class
20:13 cdg joined #perl6
20:14 TreyHarris particularly since multiple inheritance opens up much more potential for clashes of things you're not meaning to pay any attention to, while taking on several roles does not (usually)
20:15 hahainternet is there a form of Q (or other quoting) that allows multiline word splitting with comments?
20:16 hythm Right, I  was just reading this few minutes ago, Role will throw compile time error for duplicate names ^^
20:16 hahainternet actually i don't really care whether it splits words as i can do that trivially, but i'd like to comment some lines
20:18 haxmeister TreyHarris: with javascript, css isn't even needed which is sad. I think it could be better if the role of javascript was scaled back a bit.
20:18 moritz hahainternet: << .. >> should work
20:19 hahainternet moritz: what's their name so i can read the docs?
20:19 moritz m: say <<a b c␤# a comment here␤d e>>;
20:19 camelia rakudo-moar 84502d: OUTPUT: «(a b c d e)␤»
20:19 hahainternet oh that's a lovely use of newline too
20:20 moritz camelia takes ␤ in its input and translates it into real newlines
20:20 hahainternet yeah, it solves an obvious problem very elegantly
20:20 hahainternet but, what's the name of <<>> or is it on the quoting page and i missed it?
20:20 moritz no idea
20:20 hahainternet fair nuff :)
20:20 hahainternet thanks very much
20:21 moritz https://docs.perl6.org/language/quoting#index-entry-quote_qqww-quote_%3C%3C_%3E%3E-quote_%C2%AB_%C2%BB-Word_quoting_with_interpolation_and_quote_protection%3A_qqww
20:21 hahainternet heh what an anchor
20:21 hahainternet cheers, as usual perl6 exceeds expectations :)
20:21 moritz the search box on docs.perl6.org did have a "<<>> quote" entry
20:21 hahainternet noted
20:22 TreyHarris haxmeister: well, as you noted, you could technically have a page consisting of nothing but javascript. but I don't think there's obvious ways to "scale that back". Unlike HTML and CSS, JS is a Turing-complete programming language, and its raison d'être is changing the DOM, which is munging what the literal HTML and CSS says, so.... *shrug*
20:22 haxmeister hahainternet: I've been quite excited by perl6 lately too..
20:25 Geth Swapped META.info → META6.json in 1 dists in https://github.com/perl6/ecosystem/commit/31e51db68e
20:26 haxmeister TreyHarris: I think a full melding of html and javascript might be the alternative solution.. or just javascript for that matter.. why not just javascript right?
20:27 Ven_ joined #perl6
20:27 * TreyHarris shudders at haxmeister
20:28 haxmeister lol
20:28 haxmeister javascript and the browser works like one big canvas.. css optional
20:32 trnh joined #perl6
20:33 haxmeister just preventing the loading of new content by javascript would be helpful.. though I know a lot of people who would be bitterly dissappointed at me for mentioning that
20:36 TreyHarris "preventing the loading of new content"? so search box autofill, mail, messaging and live-update apps that don't work by polled page reloading, alerting like on GitHub when the onsreen content has become invalid since it was loaded... you think getting rid of all those would be an improvement? JS would be limited to a glorified client-side form-sanitizer
20:36 TreyHarris I think you're throwing out the baby with the bathwater.
20:36 haxmeister lol.. yes, but I'm just being fecetious
20:37 haxmeister and I can't spell today
20:37 haxmeister my ssh is laggy
20:37 TreyHarris you weren't full of feces?
20:37 TreyHarris ;-)
20:37 haxmeister lol
20:38 haxmeister in all honesty though, an operating system at this point only needs to be able to launch a browser and save files.
20:39 haxmeister it actually makes sense to have a browser as a desktop environment
20:40 * haxmeister ponders why that hasn't been done yet
20:42 * haxmeister imagines x11 root window that is a browser and that's it..
20:47 bjz joined #perl6
20:48 committable6 joined #perl6
20:48 Ven_ joined #perl6
20:50 raschipi haxmeister: Isn't that ChromeOS?
20:52 haxmeister is it?
20:53 geekosaur pretty much, yes
20:53 raschipi At least that's what I think they're going for.
20:53 geekosaur also, uh, X terminals from the 1990s
20:53 haxmeister I need an OS with perl6 as default shell language :D
20:54 geekosaur (nothing new under the Sun --- X terinals, thin clients, chromebooks...)
20:55 haxmeister thin clients have desktops..
20:55 haxmeister I'm saying browser IS the desktop.. of course I'm just on about the widespread abuse of javascript
20:56 haxmeister we got embedded perl6 yet?
20:57 haxmeister html embedded Imean..
20:57 geekosaur actually I could really make this worse. SCO, before the assets were sold to Novell and the name was sold to the asses, released an X server that ran in a browser
20:57 haxmeister oh that's mind bending
20:58 haxmeister but possible... and still possible
21:04 Cabanossi joined #perl6
21:06 jaush left #perl6
21:14 Geth ¦ doc: 68dbbe66f2 | (Jan-Olof Hendig)++ | doc/Type/Any.pod6
21:14 Geth ¦ doc: Fixed typos
21:14 Geth ¦ doc: review: https://github.com/perl6/doc/commit/68dbbe66f2
21:14 Geth ¦ doc: a1d7140787 | (Jan-Olof Hendig)++ | doc/Type/Any.pod6
21:14 Geth ¦ doc: New examples for duckmap. Zoffix++
21:14 Geth ¦ doc: review: https://github.com/perl6/doc/commit/a1d7140787
21:14 Geth ¦ doc: e3ecf3c961 | (Jan-Olof Hendig)++ | doc/Type/Any.pod6
21:14 Geth ¦ doc: Added method definitions for sort
21:14 Geth ¦ doc: review: https://github.com/perl6/doc/commit/e3ecf3c961
21:22 Geth ¦ doc: d6e975fdce | skids++ | doc/Language/list.pod6
21:22 Geth ¦ doc: Improve list literal docs
21:22 Geth ¦ doc:
21:22 Geth ¦ doc: Mention empty list literal
21:22 Geth ¦ doc:   Clear up some confusion on semicolons in literals vs slurpy arglists
21:22 Geth ¦ doc:   Document special syntax for putting statement lists in parenthesis
21:22 Geth ¦ doc: review: https://github.com/perl6/doc/commit/d6e975fdce
21:27 * skids too hungry to wait for doc rebuild.  Will fix anything after grocery run.
21:37 pmurias joined #perl6
21:38 pmurias haxmeister: re html embeded you mean in php style on the server or inside a <script lang='perl6'></script>
21:38 pmurias ?
21:40 pmurias_ joined #perl6
21:47 mattp_ joined #perl6
22:04 Cabanossi joined #perl6
22:07 cpage_ joined #perl6
22:09 hahainternet i'm parsing a simple string in a grammar, where a token can be one of a small number of values, but case insensitive, the parsing is successful, but i'd like to recover the original case of the token that matched, rather than the input string
22:09 hahainternet so for example, "HELLO" and "goodbye"
22:10 timotimo you might have to have something like { make "HELLO" } and { make "goodbye" } in your token
22:10 timotimo and then use .ast to recover that value
22:10 hahainternet the token is currently just { :i <{@statements}> } so that's a slight problem
22:11 timotimo ah
22:11 hahainternet i assume i could use some fancy meta type stuff to programmatically add a bunch of tokens to a grammar
22:11 hahainternet i guess that just shifts the problem to the TOP token however
22:11 timotimo why do you <{@statements}> rather than just @statements?
22:11 hahainternet because i didn't realise just @statements worked :)
22:12 timotimo OK
22:12 timotimo well, after the match succeeds you could grep through @statements for the matched value to find which one matched
22:12 timotimo sounds terrible, but it'll do
22:12 hahainternet i guess, that's a shame really
22:13 hahainternet cheers for the help timotimo
22:17 labster joined #perl6
22:19 MasterDuke_ joined #perl6
22:21 raiph joined #perl6
22:35 Sgeo joined #perl6
22:36 mcmillhj joined #perl6
22:37 mcmillhj_ joined #perl6
22:44 hahainternet heh .race is still not amazing: bin/moar': double free or corruption (fasttop):
22:45 Geth ¦ doc: 9f5a8bdd5d | skids++ | doc/Language/list.pod6
22:45 Geth ¦ doc: Fix new link to be absolute.
22:45 Geth ¦ doc: review: https://github.com/perl6/doc/commit/9f5a8bdd5d
22:47 kurahaupo joined #perl6
22:49 sufrostico joined #perl6
22:50 kurahaupo joined #perl6
22:51 timotimo yeah, it really isn't
22:51 timotimo jnthn did some work to nail the semantics, but it's still just in that google docs spreadsheet
23:04 Cabanossi joined #perl6
23:05 raiph joined #perl6

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

Perl 6 | Reference Documentation | Rakudo