»ö« 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:06
mcmillhj joined
00:09
lancew joined
00:11
mcmillhj left
00:21
mcmillhj joined
|
|||
ryn1x | Does anyone know if there is a way to run a GUI app built with GTK::Simple without having a shell open? | 00:22 | |
00:23
stee left,
stee joined
|
|||
skids | Make a custom desktop icon for it maybe? | 00:25 | |
ryn1x | Ok. That's what I was thinking.. | 00:26 | |
00:42
mcmillhj left
00:48
mcmillhj joined
|
|||
ryn1x | Yeah that works... just a shell script calling the perl6 script with an "&" at the end. | 00:54 | |
00:56
raynold joined,
mcmillhj_ joined
00:58
mcmillhj left
01:01
mcmillhj_ left
01:06
mcmillhj joined
01:20
markong left
|
|||
Geth | doc/car-grant-midrat: 824d7800b0 | (Zoffix Znet)++ | doc/Type/MidRat.pod6 [CaR Grant] Document MidRat type |
01:25 | |
doc/car-grant-midrat: ccfafecbc7 | (Zoffix Znet)++ | doc/Type/MidRat.pod6 [CaR Grant] Do not offer :U .Rat/.FatRat coercers on MidRat To be consistent with similar coercers on other numerics |
01:34 | ||
doc/car-grant-midrat: b1b494d3d0 | (Zoffix Znet)++ | doc/Type/MidRatStr.pod6 [CaR Grant] Document MidRatStr |
01:39 | ||
01:43
Khisanth left
01:46
mcmillhj_ joined
01:47
ilbot3 left
01:51
mcmillhj_ left
01:52
mcmillhj left
01:53
molaf left
01:55
ilbot3 joined,
ChanServ sets mode: +v ilbot3
02:01
mcmillhj joined,
Khisanth joined
02:06
molaf joined,
mcmillhj left
02:32
Kaiepi left
02:34
Kaiepi joined
02:35
ufobat___ joined
02:36
lancew left,
mcmillhj joined
02:38
ufobat_ left
02:41
mcmillhj left
02:49
mcmillhj joined
02:54
HaraldJoerg left,
mcmillhj left
03:02
hythm_ joined
|
|||
hythm_ | m: grammar Pkg { regex TOP { <name>'-'?<ver>? }; regex name { [<alnum>+]+ % '-' }; token ver { [<digit>+]+ % '.' } }; Pkg.parse('rakudo').say; Pkg.parse('rakudo-1.0.1').say; Pkg.parse('rakudo-star-1.0.1').say; | 03:04 | |
camelia | 「rakudo」 name => 「rakudo」 alnum => 「r」 alnum => 「a」 alnum => 「k」 alnum => 「u」 alnum => 「d」 alnum => 「o」 「rakudo-1.0.1」 name => 「rakudo」 alnum => 「r」 alnum => 「a」… |
||
hythm_ | Is it possible to parse this grammar with token instead of regex for TOP and name? | 03:06 | |
03:11
Zoffix joined
|
|||
Zoffix | .tell [Coke] are you in contact with Mark at TPF? The link to "his blog for April" in last grant update links to SO, not the blog: news.perlfoundation.org/2018/05/gra...l#comments (P.S.: I still have no idea who's *my* grant manager :|) | 03:13 | |
yoleaux | Zoffix: I'll pass your message to [Coke]. | ||
AlexDaniel | hythm_: what happens there is that <name> eats “rakudo-1” | 03:14 | |
hythm_ | Yes | ||
03:16
stee left
|
|||
AlexDaniel | hythm_: token name { [<alnum>+ <!before '.'>]+ % '-' }; | 03:17 | |
this should work | |||
m: gist.github.com/AlexDaniel/6aaeadb...14d9028889 | |||
camelia | 「rakudo」 name => 「rakudo」 alnum => 「r」 alnum => 「a」 alnum => 「k」 alnum => 「u」 alnum => 「d」 alnum => 「o」 「rakudo-1.0.1」 name => 「rakudo」 alnum => 「r」 alnum => 「a」… |
||
AlexDaniel | e: gist.githubusercontent.com/AlexDan...031/foo.p6 | 03:18 | |
evalable6 | AlexDaniel, Successfully fetched the code from the provided URL. | ||
「rakudo」 name => 「rakudo」 alnum => 「r」 alnum => 「a」 alnum => 「k… |
|||
AlexDaniel, Full output: gist.github.com/a382075e8fc435326d...872df79b97 | |||
03:19
mcmillhj joined
|
|||
hythm_ | Thank you :) | 03:19 | |
AlexDaniel | e: gist.githubusercontent.com/AlexDan...494/foo.p6 | 03:20 | |
evalable6 | AlexDaniel, Successfully fetched the code from the provided URL. | ||
「rakudo」 name => 「rakudo」 「rakudo-1.0.1」 name => 「rakudo」 ver => 「1.0… |
|||
AlexDaniel, Full output: gist.github.com/6a263b0b4d60e106fe...a6d5d5f503 | |||
AlexDaniel | ↑ that's probably cleaner | ||
hythm_: there are probably other ways to do that, basically anything that will avoid the need for backtracking will do | 03:21 | ||
Zoffix | m: class Pkg { method parse (Str:D \v) { %(name => .head, version => Version.new(.[1]//'')) with v.flip.split('-', 2)».flip.rotate} }; Pkg.parse('rakudo').say; Pkg.parse('rakudo-1.0.1').say; Pkg.parse('rakudo-star-1.0.1').say; | ||
camelia | {name => rakudo, version => v} {name => rakudo, version => v1.0.1} {name => rakudo-star, version => v1.0.1} |
||
03:22
Zoffix left
03:24
mcmillhj left
|
|||
hythm_ | Grea. Thanks for $<verpart>, that will be helpfull | 03:29 | |
03:29
aindilis left
|
|||
Geth | doc/car-grant-midrat: f4af5a84e9 | (Zoffix Znet)++ | doc/Type/Rational.pod6 [CaR Grant] Document Rational.base-repeating with no args Spec: github.com/perl6/roast/commit/7263105372 Rakudo impl: since before the Christmas |
03:37 | |
doc: fe726428c6 | (Zoffix Znet)++ (committed using GitHub Web editor) | doc/Type/Real.pod6 [CaR Grant] Document Real.rand bridges the numeric This is especially relevant with zero-denominator Rationals |
03:44 | ||
synopsebot | Link: doc.perl6.org/type/Real | ||
03:46
hythm_ left
03:57
mcmillhj joined
04:02
mcmillhj left
04:14
stee joined,
mcmillhj joined
04:15
khw left
04:19
mcmillhj left
04:21
stee left
04:28
AlexDaniel left
04:29
f_u_c_k_y_o_u joined,
f_u_c_k_y_o_u left
04:30
stee joined
04:43
mcmillhj joined
04:48
mcmillhj left
05:00
mcmillhj joined
05:02
aindilis joined
05:05
mcmillhj left
05:11
lasse_ joined
05:12
eliasr left
05:13
lasse_ left
05:14
mcmillhj joined,
raynold left
05:16
sauvin joined
05:17
lasse_ joined
05:18
mcmillhj left
05:30
mcmillhj joined
05:32
skids left
05:34
mcmillhj left
06:03
mcmillhj joined
06:06
vivus-ignis joined
06:08
mcmillhj left
06:21
sena_kun joined
06:35
no1 joined
06:36
no1 left
06:40
sena_kun left
06:41
vivus-ignis is now known as ignis__away
06:44
mcmillhj joined
06:47
espadrine joined
06:50
mcmillhj left
06:55
ignis__away is now known as vivus-ignis
07:04
wamba joined
07:08
jmerelo joined
07:15
Perl6_Fan joined,
vivus-ignis is now known as ignis__away
07:18
Perl6_Fan left
07:20
mcmillhj joined
07:25
mcmillhj left
07:29
ignis__away is now known as vivus-ignis
07:40
Phil21 left,
robertle joined
|
|||
ufobat___ | what is the easiest way to create a $buf from a $blob | 07:44 | |
tobs | m: Buf.new: Blob.new(^4) | 07:47 | |
camelia | ( no output ) | ||
tobs | (modulo say) seems pretty easy to me | ||
07:53
rindolf joined
08:03
mcmillhj joined
08:06
|oLa|1 joined
|
|||
ufobat___ | somehow i managed to get this error: Type check failed in initializing element #0 to Buf; expected uint8 but got Blob[uint8] (Blob[uint8].new(114,9...) | 08:07 | |
08:07
lancew joined
08:08
mcmillhj left
|
|||
ufobat___ | ah i know why | 08:10 | |
oh my! | 08:11 | ||
m: my %data = ( "xx" => Buf.new: "random binary data".encode("latin-1"), b => 1) | |||
camelia | ( no output ) | ||
ufobat___ | m: my %data = ( "xx" => Buf.new: "random binary data".encode("latin-1"), "b" => 1) | ||
camelia | Type check failed in initializing element #0 to Buf; expected uint8 but got Blob[uint8] (Blob[uint8].new(114,9...) in block <unit> at <tmp> line 1 |
||
ufobat___ | that's a pretty confusing error :( | 08:12 | |
08:14
vivus-ignis left
|
|||
cono | m: my %data = ( "xx" => Buf.new("random binary data".encode("latin-1")), "b" => 1) | 08:15 | |
camelia | ( no output ) | ||
tobs | m: say %["xx" => Buf.new: "random binary data".encode("latin-1") ; "b" => 1] | ||
camelia | {b => 1, xx => Buf:0x<72 61 6e 64 6f 6d 20 62 69 6e 61 72 79 20 64 61 74 61>} | ||
08:27
darutoko joined
|
|||
jmerelo | p6: / <?after foo> bar / | 08:46 | |
camelia | ( no output ) | ||
jmerelo | p6: say "foobar" ~~ / (oo) <?after foo> bar /; | ||
camelia | 「oobar」 0 => 「oo」 |
||
08:47
bonsaikitten left
08:49
|oLa|1 left
|
|||
jmerelo | p6: say "atfoobar" ~~ / (.**3) .**2 <?after foo> bar /; | 08:54 | |
camelia | 「atfoobar」 0 => 「atf」 |
||
Geth | doc: a494a4ba7c | (JJ Merelo)++ | doc/Language/regexes.pod6 Adds explanation on zero-width assertions Complements @moritz's addition in 895f932decdfd3f3b3b4b085ee10dbb3014d6f67 and closes #2023. |
09:03 | |
synopsebot | Link: doc.perl6.org/language/regexes | ||
09:14
|oLa| joined
|
|||
jmerelo | May I draw your attention to this? github.com/perl6/doc/issues/2015 It would be good to have uniform terminology through the docs... | 09:20 | |
09:30
vivus-ignis joined
|
|||
jmerelo | squashable6: statujs | 09:44 | |
squashable6 | jmerelo, I cannot recognize this command. See wiki for some examples: github.com/perl6/whateverable/wiki/Squashable | ||
jmerelo | squashable6: status | ||
squashable6 | jmerelo, Next SQUASHathon in 20 days and ≈0 hours (2018-06-02 UTC-12⌁UTC+14). See github.com/rakudo/rakudo/wiki/Mont...Squash-Day | 09:45 | |
09:51
scobra joined
|
|||
scobra | this is kinda a long shot but does anyone have experience with calling a DLL generated by Ada with nativecall? | 09:52 | |
jmerelo | p6: say glob("*.p*) | ||
camelia | 5===SORRY!5=== Error while compiling <tmp> Unable to parse expression in double quotes; couldn't find final '"' (corresponding starter was at line 1) at <tmp>:1 ------> 3say glob("*.p*)7⏏5<EOL> expecting any of: argumen… |
||
jmerelo | p6: say glob("*.p*") | ||
camelia | 5===SORRY!5=== Error while compiling <tmp> Undeclared routine: glob used at line 1 |
||
jmerelo | p6: use IO::Glob; say glob("*.p*") | 09:53 | |
camelia | ===SORRY!=== Could not find IO::Glob at line 1 in: /home/camelia/.perl6 /home/camelia/rakudo-m-inst-2/share/perl6/site /home/camelia/rakudo-m-inst-2/share/perl6/vendor /home/camelia/rakudo-m-inst-2/share/perl6 CompUnit:… |
||
10:07
scobra left
10:10
|oLa| left
|
|||
jmerelo | p6: use IO::Glob; say dir() | 10:10 | |
camelia | ===SORRY!=== Could not find IO::Glob at line 1 in: /home/camelia/.perl6 /home/camelia/rakudo-m-inst-2/share/perl6/site /home/camelia/rakudo-m-inst-2/share/perl6/vendor /home/camelia/rakudo-m-inst-2/share/perl6 CompUnit:… |
||
jmerelo | p6: use say dir() | 10:11 | |
camelia | ===SORRY!=== Could not find say at line 1 in: /home/camelia/.perl6 /home/camelia/rakudo-m-inst-2/share/perl6/site /home/camelia/rakudo-m-inst-2/share/perl6/vendor /home/camelia/rakudo-m-inst-2/share/perl6 CompUnit::Repo… |
||
jmerelo | p6: say dir() | ||
camelia | (".cpanm".IO ".local".IO ".npm".IO ".perlbrew".IO ".rcc".IO ".ssh".IO "Perlito".IO "evalbot".IO "log".IO "nqp-js".IO "p1".IO "p2".IO "perl5".IO "std".IO ".bash_history".IO ".bashrc".IO "mbox".IO ".lesshst".IO "evalbot.log".IO ".cpan".IO "dalek-queue".… | ||
Geth | doc: 380669561e | (JJ Merelo)++ | doc/Language/5to6-perlfunc.pod6 Expand information on globs |
10:15 | |
synopsebot | Link: doc.perl6.org/language/5to6-perlfunc | ||
10:29
lancew_ joined,
lancew left
10:31
vivus-ignis is now known as ignis__away
10:35
rindolf left
10:36
ignis__away is now known as vivus-ignis
10:43
markong joined
10:45
vivus-ignis left
|
|||
jmerelo | I have marked issue #114 in perl6/docs as "Help wanted". There are not that many, but still enough, new tutorial-style pages that glue together several classes on the "Type" directory. | 10:48 | |
Geth | doc: JJ self-assigned Roadmap for our language/ docs github.com/perl6/doc/issues/114 3b9f9625ba | (Zoffix Znet)++ (committed using GitHub Web editor) | doc/Language/5to6-perlfunc.pod6 - Toss useless reference to speculations - dir doesn't offer a lot of Perl 5's glob's features - Refer to ecosystem module that does |
||
jmerelo | I have self-assigned it, since I'm working now on the "Datetime" page. If you want to help, please comment on the issues or self-assign if you've got the privileges. | 10:49 | |
MasterDuke | jmerelo: i don't think you can use any non-core modules with camelia. however, you can with the *ables by something like `use lib ‘data/all-modules/moritz/json/lib/’; use JSON::Tiny` | 10:51 | |
jmerelo | MasterDuke: thanks. I just thought it was core-ish :-) But that's absolutely brilliant. | 10:52 | |
10:57
vivus-ignis joined
10:58
|oLa| joined,
|oLa| left
11:07
lancew_ left
11:08
vivus-ignis left,
rindolf joined
11:16
xiaomiao joined
|
|||
moritz | star: use JSON::Tiny; say from-json '{"foo": 42}' | 11:20 | |
camelia | {foo => 42} | ||
jmerelo | moritz: there's a bot for that? | 11:21 | |
11:21
xiaomiao left
|
|||
moritz | I guess I could give camelia a newer star | 11:23 | |
11:30
Woodi left
11:32
parv joined
11:40
jmerelo left
11:46
pmurias joined
11:55
Zoffix joined
|
|||
Zoffix | .ask tbrowder why is drawing a border on a Pod table considered "bad practice"? What's bad about it? Also, can't get a table to render without that warning github.com/rakudo/rakudo/issues/1821 | 11:56 | |
yoleaux | Zoffix: I'll pass your message to tbrowder. | ||
synopsebot | Link: doc.perl6.org/language/5to6-perlfunc | ||
doc/car-grant-midrat: 0ed7c35a81 | (Zoffix Znet)++ | doc/Type/MidRat.pod6 [CaR Grant] Document MidRat.narrow |
12:03 | ||
doc/car-grant-midrat: 1ee8ba3cc1 | (Zoffix Znet)++ | doc/Language/numerics.pod6 [CaR Grant] Fix pod compilation errors |
|||
doc/car-grant-midrat: 55 commits pushed by 9 authors review: github.com/perl6/doc/compare/1ee8b...74ea22a08c |
|||
12:04
Zoffix left
12:21
eliasr joined
12:23
Khisanth left,
kurahaupo left
12:25
lancew_ joined
12:29
zakharyas joined
12:30
kaare_ left
|
|||
Geth | doc/car-grant-midrat: 020b259377 | (Zoffix Znet)++ | doc/Language/numerics.pod6 [CaR Grant] Document atomicint in Numerics tut |
12:33 | |
12:36
Khisanth joined
12:46
AlexDaniel joined
|
|||
Geth | doc: W4anD0eR96 self-unassigned Document S05 treatment of alternations as atoms for ratchet github.com/perl6/doc/issues/1962 c647731762 | (JJ Merelo)++ | doc/Language/temporal.pod6 This is one of the new pages requested in #114. Doesn't close the issue, does not probably even close the creation of this particular file, but it's a first serviceable version that can be improved with time. |
13:00 | |
13:05
kurahaupo joined
13:06
kurahaupo_ joined
13:07
kurahaupo_ left,
caa51h left
13:08
lancew_ left
13:09
caa51h joined,
mtj_ left,
lancew_ joined
13:10
mtj_ joined
13:21
mienaikage left
13:25
unclechu left,
elcaro[m] left,
wictory[m] left,
Matthew[m] left,
Garland_g[m] left,
mirlur[m] left,
AlexDaniel` left,
ilmari[m] left
13:26
tadzik left,
CIAvash[m] left
13:29
ilbot3 left
13:33
MasterDuke left,
MasterDuke joined
13:36
ilbot3 joined,
ChanServ sets mode: +v ilbot3,
kurahaupo left
13:37
colomon left
13:41
tadzik joined
13:52
lucasb joined
13:56
lancew_ left
|
|||
pmurias | is there a pure js bignum library that is *NOT trash? | 13:58 | |
Juerd | I think you may have better luck with that question in a javascript channel ;) | 14:03 | |
pmurias | Juerd: asked it that there too, but I don't trust their judgements as it seems that libraries with hundreds of dependencies have basic features broken | 14:05 | |
like 4**2 is 10 in bn.js ;) | 14:06 | ||
14:07
lancew joined
|
|||
Juerd | lol | 14:10 | |
That is... creative! | |||
14:16
skids joined
14:18
kaare_ joined
14:22
lucasb left
14:29
lucasb joined
14:30
BenGoldberg joined
|
|||
donpdonp | pmurias: ok i had to see it for myself. > new bn(4).pow(new bn(2)) => <BN: 10> is not what it appears to be. try (4**2)-1 | 14:32 | |
14:37
foo___ joined,
foo___ left
14:38
Matthew[m] joined,
ilmari[m] joined,
AlexDaniel` joined,
unclechu joined,
wictory[m] joined,
mirlur[m] joined,
CIAvash[m] joined,
elcaro[m] joined,
mienaikage joined,
Garland_g[m] joined,
zakharyas left
|
|||
pmurias | donpdonp: ahh, it displayed in hex | 14:43 | |
donpdonp: (4**-2) still suck tho | 14:44 | ||
14:46
pilne left
14:47
pilne joined
15:03
chsanch joined
15:14
lancew_ joined,
lancew left
15:22
xiaomiao joined
15:27
lancew_ left
|
|||
El_Che | I wondered why the go tag on Stackoverflow had a gopher icon while the perl6 one had no camelia: | 15:31 | |
magnet:?xt=urn:btih:49978868c8131d7f520158a36b621f27c395e16c&dn=Marvels.Agents.of.S.H.I.E.L.D.S05E21.1080p.WEB.H264-DEF&tr=udp%3A%2F%2Ftracker.leechers-paradise.org%3A6969&tr=udp%3A%2F%2Fzer0day.ch%3A1337&tr=udp%3A%2F%2Fopen.demonii.com%3A1337&tr=udp%3A%2F%2Ftracker.coppersurfer.tk%3A6969&tr=udp%3A%2F%2Fexodus.desync.com%3A6969 | |||
oo | |||
ps | |||
This one: meta.stackoverflow.com/questions/2...n-on-a-tag | |||
15:31
lancew joined
|
|||
stmuk | hahaha | 15:32 | |
15:33
lancew_ joined
15:36
lancew left
15:39
skids left
15:51
comborico1611 joined
16:07
jmerelo joined
16:23
dogbert11 joined
16:50
kaare_ left
16:51
kaare_ joined
16:52
chsanch left
16:56
xinming joined
16:59
xinming_ left
17:01
xinming_ joined
17:02
xinming left,
mcmillhj joined
|
|||
jmerelo | s: DateTime | 17:02 | |
SourceBaby | jmerelo, Something's wrong: ERR: Cannot resolve caller sourcery(DateTime); none of these signatures match: ($thing, Str:D $method, Capture $c) ($thing, Str:D $method) (&code) (&code, Capture $c) in block <unit> at -e line 6 | ||
jmerelo | grep: DateTime | 17:04 | |
greppable6 | jmerelo, 5431 lines, 134 modules: gist.github.com/0a27848947812a836b...3163b4897f | ||
jmerelo | grep: X::DateTime | ||
greppable6 | jmerelo, 9 lines, 3 modules: gist.github.com/307ec46cef5d2d032f...c58d8e55aa | ||
17:13
mcmillhj left,
lancew_ left
|
|||
jmerelo | p6: my $time-of-day = ".cpan".changed.DateTime.hh-mm-ss but Dateish; say $time-of-day.^name | 17:30 | |
camelia | No such method 'changed' for invocant of type 'Str' in block <unit> at <tmp> line 1 |
||
jmerelo | p6: my $time-of-day = ".cpan".IO.changed.DateTime.hh-mm-ss but Dateish; say $time-of-day.^name | ||
camelia | Str+{Dateish} | ||
jmerelo | I love these lazy afternoons when it's only Camelia and me, swinging in the porch, throwing ASTs at each other... | 17:31 | |
17:41
wamba left
|
|||
Voldenet | a propos 'but' operator, docs for it are not clear | 17:43 | |
jmerelo | Voldenet: these docs.perl6.org/routine/but? | 17:44 | |
Voldenet | yeah | ||
$obj1 vs $obj | |||
jmerelo | $obj2 is "mixed in" | 17:45 | |
Voldenet | I mean, ugh | ||
>Creates a copy of $obj with $role mixed in. | |||
El_Che | what the reason for using "but"? | 17:46 | |
Voldenet | >multi sub infix:<but>(Mu $obj1, Mu $role) is assoc<non> | ||
El_Che | butt I would get | ||
Voldenet | there's no 3$obj at all :) | ||
El_Che | or mixin or add | ||
jmerelo | above? I want it to be Dateish | ||
So it's a String and Dateish stuff is mixed in so I can call Dateish methods. | |||
MasterDuke | El_Che: a play on "but wait, there's more!" maybe? | 17:47 | |
jmerelo | MasterDuke: :-) | 17:48 | |
El_Che | but-but would be more applicable then | ||
jmerelo | In this particular case, you can apply Dateish formatters to the time. | ||
El_Che | it looks like a formula for sutle bugs | 17:49 | |
subtle | |||
jmerelo | p6: my $date = ".cpan".IO.changed.DateTime.yyyy-mm-dd but Dateish; say $date.^name; say $date.daycount; | 17:50 | |
camelia | Str+{Dateish} Invocant of method 'Bridge' must be an object instance of type 'Int', not a type object of type 'Int'. Did you forget a '.new'? in block <unit> at <tmp> line 1 |
||
jmerelo | p6: my $date = ".cpan".IO.changed.DateTime.yyyy-mm-dd but Dateish; say $date.week-year; | 17:51 | |
camelia | Invocant of method 'Bridge' must be an object instance of type 'Int', not a type object of type 'Int'. Did you forget a '.new'? in block <unit> at <tmp> line 1 |
||
jmerelo | p6: my $date = ".cpan".IO.changed.DateTime.yyyy-mm-dd but Dateish; say $date; | ||
camelia | Ambiguous call to 'gist(Str+{Dateish}: )'; these signatures all match: :(Str:D: *%_) :(Dateish:D: *%_) in block <unit> at <tmp> line 1 |
||
jmerelo | Looks like in some cases you can't simply mix in... | 17:52 | |
p6: my $date = ".".IO.changed.DateTime.yyyy-mm-dd but Dateish; say $date; | |||
camelia | Ambiguous call to 'gist(Str+{Dateish}: )'; these signatures all match: :(Str:D: *%_) :(Dateish:D: *%_) in block <unit> at <tmp> line 1 |
||
Voldenet | *cough* what subtle bugs | ||
jmerelo | p6: my $date = ".".IO.changed.DateTime.yyyy-mm-dd; say $date; | 17:53 | |
camelia | 2018-05-12 | ||
El_Che | jmerelo is more persevering than subtle | ||
17:55
kaare_ left
|
|||
jmerelo | El_Che: Stubborn as a Spaniard, I guess... | 17:55 | |
El_Che | hehe | 17:56 | |
Voldenet | p6: my $date = ".".IO.changed.DateTime.yyyy-mm-dd but Dateish; say $date.lc; | 17:57 | |
camelia | 2018-05-12 | ||
jmerelo | Posted to SO, just in case someone wants to have a look stackoverflow.com/questions/503091...sh-strings | ||
17:57
|oLa| joined
|
|||
Voldenet | hacks everywhere :D | 17:57 | |
jmerelo | Voldenet: you can use the Str part, not the Dateish part, I guess. | 17:58 | |
Voldenet | yeah, apparently | ||
p6: my $date = ".".IO.changed.DateTime.yyyy-mm-dd but Dateish; say $date.year; | |||
camelia | (Int) | ||
jmerelo | Voldenet: that's weird... | 17:59 | |
El_Che | jmerelo: you're omnipresent on SO, wow | ||
jmerelo | El_Che: I wouldn't be if there were an order of magnitude more posters... | 18:00 | |
El_Che: but until that happens... | |||
18:01
|oLa| left
|
|||
El_Che | jmerelo: yeah, I reactivated my dead account (for like 8 years) and I made the top 20 :) | 18:01 | |
in 2 days :) | |||
synopsebot | Link: doc.perl6.org/language/temporal | ||
jmerelo | El_Che: exactly my point. | ||
El_Che: it's slowly improving to the point that you needn't say "Another day without any Perl6 question". But still a long way to go... | 18:03 | ||
El_Che | my perl6 production program is running the last month of it life. I was meant to help with the transition to a new cert provider and monitor who needed to switch and warn them. I would be running for 1,5y. I don't dare change the rakudo version it's running | ||
:) | |||
jmerelo | El_Che: if it works... | ||
El_Che | I like keeping stuff up to date | 18:05 | |
18:08
kaare_ joined
|
|||
jmerelo | p6: my $date = ".".IO.changed.DateTime.yyyy-mm-dd but Dateish.new($_); say $date; | 18:09 | |
camelia | Default constructor for 'Dateish' only takes named arguments in block <unit> at <tmp> line 1 |
||
jmerelo | p6: my $date = ".".IO.changed.DateTime.yyyy-mm-dd.Date but Dateish; say $date.week-year; | 18:11 | |
camelia | No such method 'Date' for invocant of type 'Str'. Did you mean any of these? Rat note path take in block <unit> at <tmp> line 1 |
||
kybr | gist.github.com/ad17c2246f693c08ea...e7ab3aa089 | 18:12 | |
that's a question. | |||
MasterDuke | kybr: `.<statement>.say for @match` maybe? | 18:14 | |
kybr | thanks. yes. still has 「」 stuff. what's the story with those? i like them | 18:16 | |
jmerelo | kybr: they are simply funny quotes. | ||
MasterDuke | u: 「」 | ||
unicodable6 | MasterDuke, U+FF62 HALFWIDTH LEFT CORNER BRACKET [Ps] (「) | ||
MasterDuke, U+FF63 HALFWIDTH RIGHT CORNER BRACKET [Pe] (」) | |||
jmerelo | It's a quoting construct: docs.perl6.org/language/unicode_as...-%EF%BD%A2 | 18:17 | |
18:18
kurahaupo joined
18:19
kurahaupo left
|
|||
tobs | I want to interface with a C library that takes ORd flags as an "options" argument. There is `enum` to declare the individual constants, but is there a more verbose type than Int which I can use to type "options" in my signature? | 18:19 | |
18:19
kurahaupo joined,
ChoHag_ joined
|
|||
jmerelo | tobs: do you mean a native type? Like uint32 and things like that? | 18:20 | |
kybr | cool. but are they really there? how do i get a dequoted string? | ||
lucasb | .Str | ||
evalable6 | Use of uninitialized value $_ of type Any in string context. Methods .^name, .perl, .gist, or .say can be used to stringify it to something meaningful. in block <unit> at /tmp/nZ8z9NNIFi line 1 |
||
lucasb | oops, didn't mean to evaluate | ||
kybr: $match<statement>.Str | 18:21 | ||
tobs | jmerelo: no, in my Perl 6 routine's signature, which wraps the C function. The C library is do_sth(void *data, int options) and I hoped I could use sub do_sth(Blob $data, enum Flags $options) | 18:22 | |
18:22
ChoHag left
|
|||
tobs | but if I `+|` enum Flag objects, they obviously lose their enum Flags type | 18:22 | |
kybr | thank you! | 18:23 | |
jmerelo | tobs: right. Did you check out is repr("CStruct")? | 18:25 | |
tobs | Oh, I guess passing bitfields isn't P6y to begin with. I could think about using :named-args for the few flags there are | ||
jmerelo | tobs: that's probably a more p6y way of doing it... | 18:26 | |
tobs | jmerelo: thanks, I'll look at CStruct too. Maybe it does more than its name reveals. | 18:27 | |
jmerelo | tobs++ | ||
18:31
ChoHag_ is now known as ChoHag
18:32
Ben_Goldberg joined,
BenGoldberg left,
Ben_Goldberg is now known as BenGoldberg
|
|||
Geth | doc: 4bb17a8e15 | (JJ Merelo)++ | doc/Language/glossary.pod6 Adds p6y to glossary |
18:33 | |
synopsebot | Link: doc.perl6.org/language/glossary | ||
jmerelo | tobs: just gave us a new term for the glossary | ||
tobs | \o/ | ||
Geth | doc: f43ab2a4ec | (JJ Merelo)++ | doc/Language/temporal.pod6 Fixes pod error |
18:35 | |
synopsebot | Link: doc.perl6.org/language/temporal | ||
18:35
Kaiepi left
18:36
Kaiepi joined
18:37
lancew_ joined
18:38
lucasb left
18:40
kaare_ left
18:43
hythm_ joined
|
|||
hythm_ | how to match regex but exclude the ones end with hyphen or dot, I tired this but it doesn't seem to work token <a> { <b>+ & <-[\-\.]>$ | 18:47 | |
moritz | hythm_: the problem is that for &, all branches must match the same text | 18:48 | |
hythm_: so maaybe <b>+ & .* <-[\-\.]>$ | |||
jmerelo | hythm_: you might want to have a look at zero-width assertions docs.perl6.org/language/regexes#Ze...Assertions | ||
moritz | hythm_: or <b>+ <!after <[.-]>> $ | 18:49 | |
also, let me plug a book I wrote on this: smile.amazon.com/dp/1484232275/ :-) | 18:50 | ||
18:52
wamba joined
|
|||
hythm_ | Thanks moritz. I tried .* <[\-\.]>$ but no luck | 18:52 | |
m: grammar Pkg { token TOP { <name>'-'?<ver>? & .* <-[\-\.]>$ }; token name { [<.alnum>+ <!before '.'>]+ % '-' }; token ver { [$<verpart>=<.digit>+]+ % '.' }}; Pkg.parse('rakudo').say; Pkg.parse('rakudo-').say | 18:53 | ||
camelia | Nil Nil |
||
18:56
Kaiepi left,
Kaiepi joined
|
|||
moritz | hythm_: oh, it needs to be regex, not token | 18:58 | |
hythm_: because .* first tries to use all characters, and needs to backtrack to give up one character for the negated char class | 18:59 | ||
TOP, that is | 19:00 | ||
hythm_ | Oh, I think I will lleave it with token then and trim extra chars in the actions method | 19:03 | |
19:05
tomaw joined
|
|||
moritz | hythm_: option with token: token TOP { [<name>'-'?<ver>?] <!after <[.-]> > }; | 19:09 | |
19:12
vivus-ignis joined
19:13
darutoko left
|
|||
hythm_ | that wil do it. thanks moritz | 19:14 | |
19:14
zachk joined,
zachk left,
zachk joined
|
|||
moritz | so, has anybody consumed SSE (server-sent events) with Perl 6 yet? | 19:14 | |
19:19
jmerelo left
|
|||
moritz | cro.services/docs/reference/cro-htt...ient_side) looks promising, kinda | 19:26 | |
19:27
hythm_ left
19:37
athenot joined
19:38
lancew_ left
19:42
athenot left
19:46
Kaiepi left,
vivus-ignis is now known as ignis__away
19:54
thundergnat joined
|
|||
thundergnat | m: my $r=.99999999999999999; say $r.Rat; say $r.perl; say $r.FatRat; # certainly less than awesome, but is it a bug? | 19:55 | |
camelia | 1 <99999999999999999/100000000000000000> 1 |
||
19:58
itaipu joined
|
|||
thundergnat | Should reduced Rats ever have any trailing zeros in their fractional part? There isn't anything in roast checking for or testing it, and there isn't anything in the synopses either. | 19:58 | |
19:58
ignis__away is now known as vivus-ignis
|
|||
thundergnat | m: say for 7/250378, 17/85099, 100/99953873, 777777/222222222, 331/20687744, 336/336005, 5/277777 | 19:58 | |
camelia | 5===SORRY!5=== Error while compiling <tmp> Unsupported use of bare "say"; in Perl 6 please use .say if you meant to call it as a method on $_, or use an explicit invocant or argument, or use &say to refer to the function as a noun at <tmp>:1… |
||
thundergnat | m: .say for 7/250378, 17/85099, 100/99953873, 777777/222222222, 331/20687744, 336/336005, 5/277777 | 19:59 | |
camelia | 0.0000280 0.000200 0.000001000 0.00350000 0.000016000 0.0010000 0.0000180 |
||
19:59
Ven`` joined
|
|||
MasterDuke | thundergnat: fyi, github.com/rakudo/rakudo/issues/1818 | 20:01 | |
thundergnat | Heh, I SWEAR that wasn't there when looked for bug reports... | 20:02 | |
Ok, it's only 19 hours old. | |||
MasterDuke | heh, yeah | 20:03 | |
thundergnat | FWIW the Stringification speedup I've been working on 'fixes' those things, but I wasn't sure they were considered bugs. | 20:04 | |
Also, is there any spec on the minimum significant digits of precision for FatRats? There ARE tests in roast that specifically checks for 6 digits (same as Rat) but they are all from six years ago (when fatrat stringification was horribly slow). | 20:05 | ||
MasterDuke | no idea | 20:06 | |
thundergnat | There isn't any mention of it in the synopsis either that I can find. | ||
Ven`` | o/ | 20:07 | |
thundergnat | My suspicion is that it was put into roast just to test _something_ event though there wasn't a formal spec, but now roast IS the spec.... | ||
*even | 20:08 | ||
So are we stuck with it forever? | |||
Whats the point of having FatRats if they can't display more precision? (existential questions...) | 20:09 | ||
MasterDuke | it could be changed in 6.d | 20:12 | |
thundergnat: github.com/perl6/6.d-prep | 20:14 | ||
thundergnat: btw, did my most recent comments on github.com/rakudo/rakudo/pull/1807 make sense? | 20:16 | ||
20:16
Ven`` left
|
|||
thundergnat | Yes Thanks for the commentary and critique. It was really helpful. | 20:18 | |
I'm probably going to close that pull request and open a new one based on your suggestions. | 20:19 | ||
MasterDuke | could always just force push | 20:20 | |
20:21
Ven`` joined
20:28
vivus-ignis left
|
|||
MasterDuke | thundergnat: oh, and feel free to disagree with what i said and/or ask for a second opinion. i'm by no means the final arbiter of PRs (and don't have a commit bit, so can't even merge them) | 20:38 | |
thundergnat | NP, I value your input as someone who has seen a bunch of code go by and has some idea of what he is talking about.(or at least can fake it very well...) :-) | 20:39 | |
20:41
|oLa| joined
20:46
vendethiel- joined
20:50
Ven`` left
20:51
rindolf left
20:56
AlexDani` joined
20:57
khw joined
20:58
AlexDaniel left
20:59
lasse_ left
21:00
|oLa| left
21:04
AlexDani` left
21:05
|oLa| joined,
AlexDani` joined
21:11
|oLa| left
21:18
|oLa| joined
21:24
athenot joined
21:30
|oLa| left
21:31
athenot left
21:34
athenot joined
21:38
athenot left
21:55
itaipu left
21:59
athenot joined
22:04
athenot left
22:10
wamba left
22:38
ufobat___ left
22:39
fascinum joined
23:26
pmurias left,
vendethiel- left
23:46
ZeonPeon joined
23:47
ZeonPeon left
23:48
ZeonPeon joined
|