»ö« Welcome to Perl 6! | perl6.org/ | evalbot usage: 'p6: say 3;' or rakudo:, or /msg camelia p6: ... | irclog: irc.perl6.org or colabti.org/irclogger/irclogger_logs/perl6 | UTF-8 is our friend! Set by moritz on 22 December 2015. |
|||
00:00
skids joined,
Cabanossi left
00:02
mcmillhj left,
Cabanossi joined
00:11
mcmillhj joined
|
|||
Geth | perl6-most-wanted: 368e2c8384 | (Curt Tilmes)++ (committed using GitHub Web editor) | most-wanted/bindings.md Add LibYAML A private repository for now... |
00:15 | |
00:15
wamba left
00:16
mcmillhj left
|
|||
Geth | Swapped META.info → META6.json in 5 dists in github.com/perl6/ecosystem/commit/b520a57698 | 00:21 | |
00:21
mcmillhj joined
00:28
mcmillhj left
00:31
lizmat_ joined
00:33
lizmat left
00:34
lookatme joined
|
|||
lookatme | morning o/ | 00:35 | |
00:40
mcmillhj joined
00:41
aindilis left
00:45
mcmillhj left
00:46
Cabanossi left
00:47
Cabanossi joined
|
|||
sammers | morning | 00:53 | |
00:59
gdonald left
|
|||
ugexe | uh oh, another person is working on libyaml | 01:04 | |
lookatme | It's a binding for libyaml, why not a pure Perl 6 version ~ | 01:11 | |
01:12
mcmillhj joined,
xiani joined
01:13
xiani left
01:17
mcmillhj left
01:18
Actualeyes joined
|
|||
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: github.com/samcv/IRC-TextColor/pull/2 | ||
samcv | m: :16("0D77").say | ||
camelia | 3447 | ||
samcv | hmm why is it working there | ||
Geth | Swapped META.info → META6.json in 1 dists in github.com/perl6/ecosystem/commit/e5202452fc | 01:21 | |
samcv | .tell Zoffix merged and version bumped :) thank you | 01:23 | |
yoleaux | samcv: I'll pass your message to Zoffix. | ||
01:27
mcmillhj joined
01:32
mcmillhj left
|
|||
TEttinger | samcv: octal? | 01:34 | |
samcv | turns out it was just a space i couldn't see easily in the error message | ||
TEttinger | oh ok | ||
samcv | causing the parse error :) | ||
Geth | ecosystem: ea943b372e | (Curt Tilmes)++ | META.list Add LibYAML to ecosystem See github.com/CurtTilmes/perl6-libyaml |
01:35 | |
ugexe | lookatme: i think they are both bindings? | ||
ingy: tony-o ^ | 01:36 | ||
01:43
mcmillhj joined
01:46
ilbot3 left,
kybr joined
01:48
ilbot3 joined,
ChanServ sets mode: +v ilbot3
|
|||
lookatme | ugexe, yeah, I found another libyaml, it's a binding :) | 01:52 | |
01:53
mcmillhj left
01:59
kybr left
02:03
mcmillhj joined
02:06
dj_goku joined,
dj_goku left,
dj_goku joined
02:08
mcmillhj left
02:11
noganex_ joined
02:15
noganex left,
kybr joined
02:31
Cabanossi left
02:33
Cabanossi joined
02:34
ChoHag joined
02:42
mcmillhj joined
02:47
mcmillhj left
02:55
aindilis joined,
mcmillhj joined
02:59
mcmillhj left
03:08
TEttinger left
03:20
mcmillhj joined
03:22
kaare_ joined
03:25
mcmillhj left
03:30
Cabanossi left
03:32
Cabanossi joined,
mcmillhj joined
03:37
mcmillhj left
03:46
dbac joined
03:54
zapwai left
|
|||
SmokeMachine | how do I do something like (|) for Maps? | 03:55 | |
sorry, (+) | 03:56 | ||
03:59
mcmillhj joined
04:02
curan joined,
kybr left,
kybr joined
04:04
mcmillhj left
04:23
AndyDee left
04:24
LeCamarade joined
04:28
khw left
04:35
cyphase left
04:37
mcmillhj joined,
CIAvash joined
04:38
cyphase joined
04:41
mcmillhj left
04:58
BenGoldberg left
05:03
geekosaur left
05:05
geekosaur joined,
mcmillhj joined
05:09
vendethiel left
05:10
mcmillhj left
05:11
poohman joined
05:17
Cabanossi left,
Cabanossi joined
05:18
xiaomiao left
05:20
xiaomiao joined
05:23
rindolf joined
05:29
mcmillhj joined
05:31
lowbro joined,
lowbro left,
lowbro joined
05:33
skids left
05:34
mcmillhj left
05:41
mcmillhj joined
05:42
domidumont joined
05:45
mcmillhj left
05:48
wamba joined
05:49
domidumont left
05:51
domidumont joined
05:59
Cabanossi left
06:00
mcmillhj joined
06:02
Cabanossi joined
06:05
mcmillhj left
06:06
salv0 left
06:07
lookatme left
06:08
lookatme joined,
titsuki_ joined,
lookatme left
06:10
titsuki left,
lookatme joined,
lookatme left
06:12
lookatme joined
06:16
mcmillhj joined
06:22
domidumont left,
xtreak joined
06:24
mcmillhj left
06:25
aborazmeh joined
06:26
aborazmeh left,
aborazmeh joined
06:31
mcmillhj joined
06:36
mcmillhj left
06:39
pochi joined
06:44
Cabanossi left
06:46
Cabanossi joined
06:49
darutoko joined
06:53
poohman left,
poohman joined
06:59
poohman left
07:01
sammers left
07:02
mcmillhj joined
07:03
g4 joined
07:06
sammers joined
07:10
mcmillhj left
07:13
Actualeyes left
07:15
labster left
07:28
aborazmeh left
07:29
parv joined
07:33
Actualeyes joined
07:34
labster joined
07:36
mcmillhj joined
07:43
domidumont joined
07:44
mcmillhj left,
xtreak_ joined,
xtreak left
07:46
zakharyas joined,
aborazmeh joined,
aborazmeh left,
aborazmeh joined,
zakharyas left,
ufobat joined,
domidumont1 joined
07:47
zakharyas joined
07:49
domidumont left
07:51
aborazmeh left
07:52
mcmillhj joined
07:53
lookatme left,
lookatme joined
07:55
wamba left
07:57
mcmillhj left
07:58
zakharyas left
08:02
pmurias joined
|
|||
lizmat_ | And a new Perl 6 Weekly hits the Net: p6weekly.wordpress.com/2017/05/16/...-the-alps/ | 08:08 | |
moritz | lizmat_++ | ||
08:08
lizmat_ is now known as lizmat
08:12
labster left
08:13
zakharyas joined
08:18
eyck joined
08:20
mcmillhj joined
|
|||
nine | lizmat: excellent weekly :) Thank you! | 08:21 | |
08:22
zakharyas left
|
|||
ufobat | :) | 08:24 | |
08:25
dakkar joined
08:26
mcmillhj left
08:31
Cabanossi left
08:32
Cabanossi joined
08:39
mcmillhj joined
08:43
mcmillhj left
|
|||
lookatme | :) lizmat ++ | 08:44 | |
08:45
kurahaupo joined
08:51
El_Che_ is now known as El_Che
08:53
mcmillhj joined
08:58
mcmillhj left
09:01
labster joined
|
|||
eater | lizmat: :D | 09:03 | |
09:03
xtreak_ left
|
|||
pmurias | great to see Perl 6 being integrated into CPAN/CPAN Testers | 09:03 | |
09:03
xtreak joined
09:06
wamba joined
09:12
bjz joined
09:17
mcmillhj joined
09:23
kurahaupo left
09:24
kurahaupo joined
09:25
margeas joined
09:26
mcmillhj left
09:30
Cabanossi left
09:32
Cabanossi joined
09:33
lookatme left
09:58
xtreak left
10:00
Cabanossi left
10:01
zakharyas joined
10:02
Cabanossi joined
10:04
bjz left
10:05
bjz joined
10:08
xtreak joined
10:15
xtreak left,
xtreak joined
10:18
kurahaupo_ joined,
bjz_ joined
10:19
bjz left
10:20
kurahaupo left
10:21
labster left,
kurahaupo_ left
|
|||
Geth | Swapped META.info → META6.json in 2 dists in github.com/perl6/ecosystem/commit/39d8d12776 | 10:23 | |
10:23
kurahaupo joined
10:25
parv left
10:27
xtreak left
10:28
xtreak joined
10:30
dbac left,
Cabanossi left,
xtreak left
10:31
xtreak joined
10:32
Cabanossi joined
10:34
bjz_ left
10:35
bjz joined
11:04
ldeandrade joined
11:08
ldeandrade left,
luiz_lha joined,
luiz_lha is now known as Guest23731
11:09
Guest23731 is now known as luiz_lha
11:19
bjz_ joined
11:22
bjz left
11:43
ChristopherBotto joined
|
|||
ChristopherBotto | o/ Hello everyone! | 11:44 | |
11:46
pochi left
|
|||
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:46 | |
"at /path/to/rakudo-star/home#sources/A9948E7371E0EB9AFDF1EEEB07B52A1B75537C31 (Zef::CLI):565" | 11:47 | ||
Silly me, I should have looked at Zef::CLI first before bring this up... | 11:48 | ||
11:49
pochi joined
|
|||
ChristopherBotto | rest of error message: "------> hen BEFORE { say "===> {$m.<message>}" }⏏<EOL>" | 11:54 | |
11:58
CIAvash left
|
|||
ChristopherBotto | Looks like this currently corresponds to line 633. I'll create an issue at github.com/ugexe/zef. | 11:59 | |
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:00 | ||
nine | :) | 12:02 | |
12:30
Cabanossi left
12:31
Cabanossi joined
12:32
raschipi joined
12:45
raschipi left
12:54
ChristopherBotto left
12:55
curan left
12:59
Cabanossi left
13:00
mcmillhj joined
13:02
Cabanossi joined,
cdg joined
13:06
xtreak left,
xtreak joined
13:10
xtreak left,
xtreak joined
13:12
sufrostico joined
|
|||
ugexe | that seems to be related to the lexical module loading switchover | 13:21 | |
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? | ||
ugexe | yeah | ||
13:33
bjz_ left
13:37
sufrostico left
|
|||
ugexe | pbs.twimg.com/media/C_0XYJDXsAE6QA7.jpg (look at all those camelias...) | 13:37 | |
13:38
sufrostico joined
|
|||
ugexe | skaji must not have gotten his yet when that was taken :( | 13:38 | |
13:39
mr-foobar left
|
|||
ugexe | which btw, skaji upload CPAN::Uploader::Tiny to the perl6 ecosystem to make pause uploading easier | 13:40 | |
13:40
Khisanth left
13:42
mr-foobar joined
13:48
Rawriful joined
13:52
khw joined
13:54
Khisanth joined
13:56
lowbro left
13:59
luiz_lha left
14:01
zakharyas left,
zakharyas joined
14:02
Sound joined,
Sound is now known as Guest83194,
Guest83194 left
14:03
perlpilot left
14:04
Sound_ joined
14:05
zakharyas left
14:11
xtreak left
14:15
Cabanossi left
14:17
Cabanossi joined
14:26
zapwai joined
14:27
cdg left
14:37
g4 left
14:38
perlpilot joined
14:39
kurahaupo left,
kurahaupo joined
15:03
domidumont1 left
15:04
Sound_ left,
Rawriful left
15:05
margeas left
15:06
zakharyas joined
15:08
zakharyas left,
margeas joined,
araujo joined
15:09
araujo left,
araujo joined,
mcmillhj_ joined
15:12
cdg joined
15:17
Cabanossi left
15:19
Cabanossi joined
|
|||
haxmeister | :-P | 15:24 | |
ingy | ugexe: nice job! | ||
ugexe: maybe join #libyaml | 15:25 | ||
15:31
mattp__ left
15:36
salios left
15:48
fatguy joined
15:52
jmerelo joined
15:53
sufrostico left
|
|||
jmerelo | p6: say (1..10).map: rand / * | 15:53 | |
camelia | (0.864792334103887 0.0215020434763217 0.294724351553639 0.204453006488093 0.191500281404292 0.0996034807089102 0.0708473480130957 0.0930594050100398 0.0447751575701964 0.0849774283190815) | ||
jmerelo | This works, but it's a hack | ||
p6: say (1..10).map: rand | |||
camelia | Cannot resolve caller map(Range: Num); none of these signatures match: ($: Hash \h, *%_) (\SELF: █; :$label, :$item, *%_) (HyperIterable:D $: █; :$label, *%_) in block <unit> at <tmp> line 1 |
||
jmerelo | This does not | ||
p6: say (1..10).map( {rand} ) | 15:54 | ||
camelia | (0.00255745694729068 0.708662123083835 0.801211693437442 0.40437869919991 0.782993011507604 0.718728220562455 0.206756778168069 0.149469286293225 0.527926432102567 0.109489980966053) | ||
jmerelo | This works, no problem. | ||
Any help here? | |||
timotimo | jmerelo: the problem is that rand takes an argument | 15:55 | |
so you can't use &rand there, nor *.rand | |||
wait, is rand a term? | |||
m: say rand 1 | |||
camelia | 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 |
||
timotimo | it is | ||
what's much better is this: | |||
m: say rand xx 10 | |||
camelia | (0.820230019047666 0.556328758561595 0.17117771682549 0.977256631588291 0.346367591917418 0.995358741031604 0.408214072111737 0.0843794584208193 0.361742909863419 0.874566600339526) | ||
jmerelo | OK, I got it. | 15:56 | |
Thanks! | |||
geekosaur | obviously we need const >.> | 15:57 | |
timotimo | we do? | ||
geekosaur | .oO { (1..10).map: const rand } | 15:59 | |
timotimo | m: say (1..10).map: { $ = rand } | 16:01 | |
camelia | (0.224666109352278 0.644172622404495 0.719284626726174 0.938137428944897 0.31610749540464 0.105887082393094 0.459039024757223 0.490284257105043 0.358790844470345 0.934767721180529) | ||
timotimo | m: say (1..10).map: { state $a = rand } | ||
camelia | (0.525305023344315 0.525305023344315 0.525305023344315 0.525305023344315 0.525305023344315 0.525305023344315 0.525305023344315 0.525305023344315 0.525305023344315 0.525305023344315) | ||
jmerelo | Cooll :-) | ||
timotimo | there you go | ||
perlpilot | m: say BEGIN {rand} xx 10; | ||
camelia | (0.882102931862404 0.882102931862404 0.882102931862404 0.882102931862404 0.882102931862404 0.882102931862404 0.882102931862404 0.882102931862404 0.882102931862404 0.882102931862404) | ||
timotimo | m: say rand Rxx 10 | ||
camelia | () | ||
timotimo | m: say 10 Rxx rand | ||
camelia | (0.705274517610075 0.870916130054118 0.442735001732596 0.00288293470235081 0.396879707843187 0.0784377934094133 0.0644500210475528 0.898704349623592 0.260033733205117 0.00022029392792176) | ||
timotimo | oh, we propagate that now | 16:02 | |
perlpilot | m: say once {rand} xx 10 | 16:04 | |
camelia | ((Mu) (Mu) (Mu) (Mu) (Mu) (Mu) (Mu) (Mu) (Mu) (Mu)) | ||
perlpilot | I would have thought that one would work too | ||
m: say (once rand) xx 10 | |||
camelia | ((Mu) (Mu) (Mu) (Mu) (Mu) (Mu) (Mu) (Mu) (Mu) (Mu)) | ||
16:05
mcmillhj left
|
|||
perlpilot | m: say (once rand); | 16:05 | |
camelia | 0.886117772825294 | ||
16:05
mcmillhj_ left
|
|||
timotimo | m: say (once 1) xx 10 | 16:06 | |
camelia | ((Mu) (Mu) (Mu) (Mu) (Mu) (Mu) (Mu) (Mu) (Mu) (Mu)) | ||
timotimo | seems to b0rk with anything on the LHS | ||
grondilu | m: say List.elems | 16:09 | |
camelia | 1 | ||
grondilu | ^o_O | ||
perlpilot | I think "BEGIN {rand} xx 10" should behave identically to "once {rand} xx 10" except for the timing of when rand is executed. | ||
grondilu: List is a 1 element list. | 16:10 | ||
grondilu | is it? What is that element? | ||
m: say List[0] | |||
camelia | 5===SORRY!5=== Error while compiling <tmp> List cannot be parameterized at <tmp>:1 ------> 3say List[0]7⏏5<EOL> |
||
perlpilot | m: say "foo".elems; # similar to this | 16:11 | |
camelia | 1 | ||
grondilu | oh | ||
I c | |||
16:12
curt_ joined,
mcmillhj joined,
mcmillhj_ joined
16:18
mcmillhj left,
mcmillhj_ left
16:24
mcmillhj joined,
mcmillhj_ joined
16:29
mcmillhj_ left,
mcmillhj left
16:30
mcmillhj_ joined,
mcmillhj joined
16:36
sufrostico joined
16:44
skids joined
16:45
wamba left
|
|||
haxmeister | so XML::parser::tiny is no longer maintained and fails to install... | 16:46 | |
16:47
dakkar left
|
|||
haxmeister | github.com/afiskon/p6-xml-parser-tiny/issues/17 | 16:48 | |
16:57
TEttinger joined
|
|||
Geth | specs: 8638e717e5 | (Zoffix Znet)++ (committed using GitHub Web editor) | v6d.pod Propose fatalization of all redeclaration warnings |
17:01 | |
17:02
Zoffix joined
|
|||
Zoffix | haxmeister: I take it you gave up with DOM::Tiny? Was there a bug in it? | 17:02 | |
based on commits, looks like xmltiny was still working on Sep 29, 2015 | 17:04 | ||
17:15
k-man left
17:21
zakharyas joined,
AlexDaniel joined
17:22
samcv left
17:23
zacts left,
samcv joined
|
|||
ingy | curt_: are you @CurtTilmes? | 17:29 | |
Zoffix | yup | 17:30 | |
ingy | Zoffix: yup on @CurtTilmes? | ||
Zoffix | ingy: yes, that is the same person | ||
ingy | thx | ||
[Coke] ~~ to ingy | 17:31 | ||
Zoffix | False | 17:32 | |
m: say '[Coke]' ~~ 'to ingy' | 17:33 | ||
camelia | False | ||
Zoffix | m: my \ingy = 42; my \Coke = 42; sub to {@_}; say [Coke] ~~ to ingy | 17:34 | |
camelia | True | ||
ingy | :) | ||
17:38
Rawriful joined
17:40
setty1 joined
17:41
grondilu_ joined
|
|||
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 | |
i didn't expect that to happen | |||
Zoffix | samcv: your Rakudo is too old | 17:43 | |
m: use Test; is-deeply <a a a>.all, <a a a>.all | 17:44 | ||
camelia | ok 1 - | ||
17:44
sufrostico left
|
|||
samcv | i have 2017.04.3-207-g6bb1b5b40 | 17:44 | |
will update | |||
Zoffix | Yeah it was fixed like last Friday or something | ||
samcv | ok :) | ||
17:44
grondilu left
|
|||
Zoffix | samcv: note that you're saying each item of @results is `eqv` to each item of results | 17:45 | |
m: say [eqv] <a a a> # basically this | |||
camelia | True | ||
Zoffix | m: say [eqv] <a a a c> # basically this | ||
camelia | False | ||
samcv | yep. i can see why that bxug could happen | ||
just suprised me ;) | |||
Zoffix gives up on xmltiny | 17:46 | ||
There's a billion of .flat.has and a few of them appear to be wrong now | 17:47 | ||
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 | |||
github.com/zoffixznet/p6-xml-parse...fix-issues if anyone want to pick up the torch | 17:48 | ||
17:48
Zoffix left
17:56
zacts joined
|
|||
curt_ | ingy: Hi, I stepped away -- yes I am @CurtTilmes | 17:58 | |
ingy: I added you to perl6-libyaml -- Feel free to have at it! | |||
ingy: tags aren't really working in it yet | 17:59 | ||
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 | |
curt_: I can chat with you in #libyaml | |||
18:01
Cabanossi left
18:04
Cabanossi joined
|
|||
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. | ||
ugexe | a new nice to have: get grep.metacpan.org/ working with perl6 modules | 18:18 | |
18:19
jonas2 left
|
|||
Geth | doc: d719a9f6cd | (Zoffix Znet)++ | doc/Language/io-guide.pod6 Re-tone prose on $*SPEC avoidance There are some edge cases where using $*SPEC is easier or is only way (e.g. $*SPEC.path), so "won't ever need" is too strong |
18:28 | |
El_Che | ingy: great new, I am a yaml fan for configurations | 18:29 | |
ingy: great news, I am a yaml fan for configurations | |||
18:29
japhb joined
18:33
Sound joined,
Sound left,
Sound joined
18:35
kyclark joined
18:39
cdg left
|
|||
Geth | doc: dfdd845b97 | (Zoffix Znet)++ | doc/Language/io-guide.pod6 [io grant] Add "The Basics" section to TDIOG (Links to currently non-existent IO::CatHandle, but it will exist soon) |
18:41 | |
18:49
domidumont joined
18:52
fatguy left,
espadrine joined
|
|||
Geth | doc: cdc701e758 | (Zoffix Znet)++ | doc/Language/io-guide.pod6 [io grant] Add "What's an IO::Path Anyway?" section to TDIOG |
18:54 | |
18:57
Ven joined,
Ven is now known as Guest52168,
zakharyas left
18:58
st_elmo joined
19:05
wamba joined,
jmerelo left
19:11
domidumont left
19:16
kyclark left
19:21
Zoffix joined
|
|||
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:22 | |
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 | |
I don't see anything in POD6 that would emit an explicit hr tag | |||
Zoffix | OK. Thanks | 19:28 | |
Seems Pod::To::HTML has a bug it renders that as "<p><hr></p>" :/ | |||
TreyHarris | :-/ | ||
19:28
darutoko left
|
|||
TreyHarris | For display purposes, that shouldn't make much difference though | 19:29 | |
Zoffix | Unless you're using a wonky browser that's unhappy with invalid markup :) | 19:30 | |
haxmeister | doesn't <p> add a preceding break? | ||
timotimo | it's a block element by default, so it will in effect do that | ||
19:31
kyclark joined
19:32
raschipi joined,
Cabanossi left
|
|||
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:32 | |
If you mean about margins... yeah, it adds margins, but I want MOAR margin :D | 19:33 | ||
section break | |||
haxmeister | didn't know <p> doesn't require a closing tag :/ | ||
19:33
domidumont joined
|
|||
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? | ||
Zoffix | There's no ambiguity | ||
19:34
Cabanossi joined
|
|||
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 | |
19:35
domidumont left
|
|||
Zoffix returns to writing without any section breaks :) | 19:35 | ||
19:35
Zoffix left
|
|||
haxmeister | sounds pretty wacky to me | 19:35 | |
[Coke] | samcv: 'node-gyp rebuild' just failed for me on a fresh install of node | 19:37 | |
19:38
hythm joined
19:39
Guest52168 left
|
|||
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
|
|||
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:41 | |
19:42
Ven_ joined
|
|||
haxmeister | TreyHarris: no I didn't know that at all... always just assumed I should close them properly. | 19:43 | |
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. | ||
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 | ||
== raschipi | |||
haxmeister | I guess xhtml was a flop then eh?..lol | ||
TreyHarris | validating HTML as a DTD has catastrophic failure patterns | ||
raschipi | Just like Unicode in Perl6 | 19:46 | |
TreyHarris | you ain't wrong... | ||
moritz | that's not very XMLized, right | ||
raschipi | a single malformed byte makes the program die. | 19:47 | |
19:47
Ven_ left
|
|||
moritz | just like it should be | 19:48 | |
just like a single malformed bytes makes every json or yaml or XML decoder die | |||
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 | ||
raschipi | that's DoS right at my fingertips | ||
moritz | raschipi: no more or less than any other input that comes with validation | 19:49 | |
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 | ||
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 | ||
Geth | doc: 0d6d058252 | (Zoffix Znet)++ | doc/Language/io-guide.pod6 [io grant] Add "Writing into files" Section to TDIOG |
19:51 | |
haxmeister | html5 is much nicer though.. so no complaints there | ||
19:52
robertle joined
|
|||
haxmeister | except javascript.. not a fan of that at all | 19:54 | |
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 | ||
hythm | hello, Is that a correct way to handle methods of more than one class, or there is better/shorter way? | ||
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:56 | ||
camelia | a | ||
TreyHarris | A mantle that it probably took from Perl :-) | ||
19:56
jaush joined
|
|||
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
|
|||
hythm | Thanks moritz | 19:58 | |
19:58
Ven is now known as Guest60500
|
|||
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 | ||
camelia | a b |
||
TreyHarris | hythm: unless you meant ^^ | ||
20:01
zakharyas joined
|
|||
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:02 | |
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 | ||
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:05 | |
hythm | TreyHarris actually you are right, I'm just playing around with OO to get familira with it's concepts | 20:09 | |
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 { } | ||
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 | ||
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:12
zakharyas left
20:13
cdg joined
|
|||
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:14 | |
hahainternet | is there a form of Q (or other quoting) that allows multiline word splitting with comments? | 20:15 | |
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 | ||
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? | ||
moritz | m: say <<a b c# a comment hered e>>; | ||
camelia | (a b c d e) | ||
hahainternet | oh that's a lovely use of newline too | ||
moritz | camelia takes  in its input and translates it into real newlines | 20:20 | |
hahainternet | yeah, it solves an obvious problem very elegantly | ||
but, what's the name of <<>> or is it on the quoting page and i missed it? | |||
moritz | no idea | ||
hahainternet | fair nuff :) | ||
thanks very much | 20:21 | ||
moritz | docs.perl6.org/language/quoting#in...on%3A_qqww | ||
hahainternet | heh what an anchor | ||
cheers, as usual perl6 exceeds expectations :) | |||
moritz | the search box on docs.perl6.org did have a "<<>> quote" entry | ||
hahainternet | noted | ||
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.. | ||
Geth | Swapped META.info → META6.json in 1 dists in github.com/perl6/ecosystem/commit/31e51db68e | 20:25 | |
20:25
Guest60500 left
|
|||
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:26 | |
20:27
Ven_ joined
|
|||
TreyHarris shudders at haxmeister | 20:27 | ||
haxmeister | lol | 20:28 | |
javascript and the browser works like one big canvas.. css optional | |||
20:32
trnh joined
|
|||
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:33 | |
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 | |
I think you're throwing out the baby with the bathwater. | |||
haxmeister | lol.. yes, but I'm just being fecetious | ||
and I can't spell today | 20:37 | ||
my ssh is laggy | |||
TreyHarris | you weren't full of feces? | ||
;-) | |||
haxmeister | lol | ||
20:38
labster left
|
|||
haxmeister | in all honesty though, an operating system at this point only needs to be able to launch a browser and save files. | 20:38 | |
it actually makes sense to have a browser as a desktop environment | 20:39 | ||
haxmeister ponders why that hasn't been done yet | 20:40 | ||
20:41
Ven_ left
|
|||
haxmeister imagines x11 root window that is a browser and that's it.. | 20:42 | ||
20:47
committable6 left,
bjz joined
20:48
committable6 joined,
ChanServ sets mode: +v committable6,
Ven_ joined
|
|||
raschipi | haxmeister: Isn't that ChromeOS? | 20:50 | |
haxmeister | is it? | 20:52 | |
geekosaur | pretty much, yes | 20:53 | |
raschipi | At least that's what I think they're going for. | ||
geekosaur | also, uh, X terminals from the 1990s | ||
haxmeister | I need an OS with perl6 as default shell language :D | ||
20:54
st_elmo left
|
|||
geekosaur | (nothing new under the Sun --- X terinals, thin clients, chromebooks...) | 20:54 | |
haxmeister | thin clients have desktops.. | 20:55 | |
I'm saying browser IS the desktop.. of course I'm just on about the widespread abuse of javascript | |||
we got embedded perl6 yet? | 20:56 | ||
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 | ||
haxmeister | oh that's mind bending | ||
but possible... and still possible | 20:58 | ||
21:00
raschipi left
21:02
Cabanossi left
21:04
Cabanossi joined
21:06
jaush left,
Ven_ left
21:07
setty1 left
|
|||
Geth | doc: 68dbbe66f2 | (Jan-Olof Hendig)++ | doc/Type/Any.pod6 Fixed typos |
21:14 | |
doc: a1d7140787 | (Jan-Olof Hendig)++ | doc/Type/Any.pod6 New examples for duckmap. Zoffix++ |
|||
doc: e3ecf3c961 | (Jan-Olof Hendig)++ | doc/Type/Any.pod6 Added method definitions for sort |
|||
21:19
mcmillhj_ left,
mcmillhj left
|
|||
Geth | doc: d6e975fdce | skids++ | doc/Language/list.pod6 Improve list literal docs Mention empty list literal Clear up some confusion on semicolons in literals vs slurpy arglists Document special syntax for putting statement lists in parenthesis |
21:22 | |
skids too hungry to wait for doc rebuild. Will fix anything after grocery run. | 21:27 | ||
21:32
robertle left
21:33
pmurias left
21:37
pmurias joined
|
|||
pmurias | haxmeister: re html embeded you mean in php style on the server or inside a <script lang='perl6'></script> | 21:38 | |
? | |||
21:38
kyclark left
21:40
pmurias_ joined
21:47
mattp_ joined
22:01
Cabanossi left
22:02
zapwai left
22:04
Cabanossi joined
22:07
cpage_ left,
cpage_ joined
|
|||
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 | |
so for example, "HELLO" and "goodbye" | |||
timotimo | you might have to have something like { make "HELLO" } and { make "goodbye" } in your token | 22:10 | |
and then use .ast to recover that value | |||
hahainternet | the token is currently just { :i <{@statements}> } so that's a slight problem | ||
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 | ||
i guess that just shifts the problem to the TOP token however | |||
timotimo | why do you <{@statements}> rather than just @statements? | ||
hahainternet | because i didn't realise just @statements worked :) | 22:12 | |
timotimo | OK | ||
well, after the match succeeds you could grep through @statements for the matched value to find which one matched | |||
sounds terrible, but it'll do | |||
hahainternet | i guess, that's a shame really | ||
cheers for the help timotimo | 22:13 | ||
22:17
labster joined
22:19
MasterDuke_ joined
22:21
raiph joined
22:33
Sound left,
Sgeo left
22:35
Sgeo joined
22:37
mcmillhj joined,
mcmillhj_ joined
22:41
mcmillhj left
22:42
mcmillhj_ left
|
|||
hahainternet | heh .race is still not amazing: bin/moar': double free or corruption (fasttop): | 22:44 | |
22:45
Rawriful left
|
|||
Geth | doc: 9f5a8bdd5d | skids++ | doc/Language/list.pod6 Fix new link to be absolute. |
22:45 | |
22:47
kurahaupo left,
kurahaupo joined
22:49
sufrostico joined
22:50
kurahaupo left,
kurahaupo joined
|
|||
timotimo | yeah, it really isn't | 22:51 | |
jnthn did some work to nail the semantics, but it's still just in that google docs spreadsheet | |||
22:55
kurahaupo left
23:03
Cabanossi left
23:04
Cabanossi joined
23:05
raiph left,
raiph joined
23:21
bjz left
23:24
ufobat left
23:27
cdg left
23:35
rindolf left
23:36
pmurias left,
pmurias_ left
23:44
margeas left
23:51
wamba left
23:56
Actualeyes left
|