»ö« Welcome to Perl 6! | perl6.org/ | evalbot usage: 'p6: say 3;' or /msg camelia p6: ... | irclog: irc.perl6.org or colabti.org/irclogger/irclogger_log/perl6 | UTF-8 is our friend! 🦋
Set by Zoffix on 25 July 2018.
00:27 ayerhart left 00:32 ayerhart joined
Xliff m: my $a = False; given $a.so { when True { say 'Boo?'; }; when False { say '?ooB' }; }; 00:33
evalable6 Potential difficulties:
Smartmatch against True always matches; if you mean to test th…
Xliff, Full output: gist.github.com/0ead0ffbba75024f3f...b935fb3e56
Xliff m: my $a = False; given $a { when True.so { say 'Boo?'; }; when False.so { say '?ooB' }; }; 00:34
evalable6 Boo?
Xliff m: my $a = False; given $a.so { when True.so { say 'Boo?'; }; when False.so { say '?ooB' }; };
evalable6 Boo?
Xliff m: my $a = False; given $a.so { when True { say 'Boo?'; }; when False { say '?ooB' }; };
evalable6 Potential difficulties:
Smartmatch against True always matches; if you mean to test th…
Xliff, Full output: gist.github.com/ef5f444b1c564fcf27...7f62f3435a
Xliff m: my $a = False; given $a:so { when True { say 'Boo?'; }; when False { say '?ooB' }; };
evalable6 (exit code 1) 04===SORRY!04=== Error while compiling /tmp/k4tdg5KUnU
Variabl…
Xliff, Full output: gist.github.com/26715b72dee7e3df8c...60b4167ed5
timotimo Xliff: you want "when *.so" and "when *.not" i think 00:40
Xliff So ".so" and ".not" would work? 00:44
Or do you really need the *? 00:45
00:51 Kaiepi left 00:52 Kaiepi joined 00:53 Manifest0 left
squashable6 🍕 uzluisf++ wrote a comment on “Repeating subsections under several sections”: github.com/perl6/doc/issues/2752#i...-489377244 00:57
00:59 Manifest0 joined 01:07 Kaiepi left 01:08 Kaiepi joined
Geth doc: taboege self-unassigned Repeating subsections under several sections github.com/perl6/doc/issues/2752
taboege++ created pull request #2762: Add xtest for copy-pasted camelia invocations
01:09
01:09 molaf left 01:14 Kaypie joined 01:15 Kaiepi left 01:20 Kaypie left 01:21 Manifest0 left 01:22 molaf joined, Kaiepi joined 01:26 Manifest0 joined
Elronnd how come docs.perl6.org/type/IO::Notification only has notifications for file change and rename, not create or delete? 01:26
01:26 netrino left
ugexe because moarvm is built using libuv, and that is a libuv limitation -- docs.libuv.org/en/v1.x/fs_event.html 01:30
if you know of a cross-platform way to handle other events i'm sure libuv would love a PR implementing them 01:33
01:37 syb joined
Xliff ugexe: libuv wraps inotify which has WAY more ops than that. 01:37
Elronnd but doesn't it also support other things? 01:38
kqueue and whatever mac and win32 have
Xliff I think the limitation is more due to the fact that it has to support the union of inotify(Linux), FSEvents(Darwin), kqueue(BSD), ReadDirectoryChangesW(Windows), and event ports(Solaris) 01:39
They got the basics in, but that would be a messy C file with all the #ifdef(s) it would have to support to offer more. 01:40
ugexe: But you're right. That is a PR worth writing. 01:41
Elronnd is the PR 'check if we're on a platform that has this stuff, and if so make it a separate event'?
cause I would totally do that 01:42
01:43 syb left, matiasli1a left
Xliff Elrond: You read my mind. 01:48
Elronnd ok this is kind of annoying 01:49
I'm getting like 8 different events for one file change
probably vim's fault but
Xliff Add some event smothing code for that? 01:50
Elronnd was thinking of manually checking the file hash, but that works too 01:51
Xliff Huh! Looks like they do watch for all the events in libuv! 01:58
github.com/libuv/libuv/blob/v1.x/s...ify.c#L293
But cut them down to the CHANGE/RENAME, here: 01:59
github.com/libuv/libuv/blob/v1.x/s...ify.c#L224
And that gets passed to the callback not long after: github.com/libuv/libuv/blob/v1.x/s...ify.c#L260 02:00
So it's not that libuv can't do it. It's just that its the callback that gets a limited sample of the events. 02:01
02:01 mowcat left 02:02 Manifest0 left 02:09 Manifest0 joined 02:15 Manifest0 left 02:18 snarkyboojum joined 02:20 Manifest0 joined
ugexe github.com/libuv/libuv/pull/1649 02:28
github.com/libuv/libuv/issues/1730
these are also relevant regarding file system events
Xliff YUeah. For OSX 02:30
s/U// 02:31
ugexe #1730 shows a difference between linux/windows/osx and FreeBSD/AIX/smartOS/zos
Xliff True. That is referenced by 1649 which looks to be a pull request for OSX. 02:36
Nevertheless, this is good info to have, if indeed an attempt is made to change libuv. 02:37
Seance[m] sent a long message: < matrix.org/_matrix/media/v1/downlo...FoyYtGaqFt > 02:41
I don't understand postcircumfix in this example, and I didn't gain an effective understanding from the associated docs 02:42
This calls the .sub method stored in the scalar on teh @input array
02:42 snarkyboojum left
Seance[m] I assume it implies a map type behavior? 02:43
02:44 Manifest0 left
ugexe Elronnd: there are a couple things (although they are escaping me atm) that are implemented on only a single platform, so its possible they might accept such a PR 02:44
tobs Seance[m]: yes ». is the hyper method call operator. It is pretty much map but may be parallelised 02:45
Seance[m]: did you not find the documentation about it or was it unclear? We're currently having a documentation squashathon, so if you have any problem/suggestion consider opening an issue at github.com/perl6/doc/issues 02:47
Seance[m] Turns out I was looking at the wrong docs, I was looking up that unicode operator and found postcircumfix, which is distinct from hyper method calls, so it's user error 02:48
I'll read up on the hyper method call operator tobs , thank you
tobs no problemo 02:49
02:50 Manifest0 joined
ugexe there are some slight differences though 02:53
m: .perl.say for ((1..10), (1..10)).map(*.item)
evalable6 1..10
1..10
ugexe m: .perl.say for ((1..10), (1..10))>>.item
evalable6 $(1, 2, 3, 4, 5, 6, 7, 8, 9, 10)
$(1, 2, 3, 4, 5, 6, 7, 8, 9, 10)
02:53 snarkyboojum joined 02:55 kurahaupo left 02:56 kurahaupo joined
lumin Hello guys, what should I do if zef fails to update the p6c mirror? (I guess there is some problem on the server side) 03:02
03:02 Manifest0 left
ugexe lumin: the latest version of zef should not have that issue. `git clone github.com/ugexe/zef.git && cd zef && perl6 -I. bin/zef uninstall zef && perl6 -I. bin/zef install .` 03:05
it changed the mirror 03:06
lumin Ah, ok. I'm just using the one in Debian sid
ugexe there is a hacky way as well 03:07
03:08 zacts left
ugexe do `zef --help`. towards the bottom it will show the configuration file location. you can edit this file so that the first mirror for p6c matches this: github.com/ugexe/zef/blob/e7389737...g.json#L60 03:08
03:08 Manifest0 joined
ugexe if you dont want to edit that file then make a copy of it, put it in ~/.config/zef/config.json, and edit *that* copy 03:10
03:12 Manifest0 left
lumin ugexe: Thanks, after editing that json file for both the cpan and c6p mirror URLs, zef started to work 03:13
so Debian needs an update for its zef package 03:14
ugexe: How likely will zef change it's mirror URL again in the next one or two years? I'm going to update the zef package for Debian Buster 03:17
03:19 Manifest0 joined
ugexe i don't plan on changing it. someone whined about it not being hosted by p6c once before so i changed it back, but i guess thats what i get for being a push over 03:20
lumin got it 03:22
Xliff What is the current status of p6c? 03:24
m: @a = (-10, -9.9, -9.8..10); say @a[*-10..*-1] 03:38
evalable6 (exit code 1) 04===SORRY!04=== Error while compiling /tmp/31ppZ3v9q_
Variable '@a' is not declared
at /tmp/31ppZ3v9q_:1
------> 03<BOL>08⏏04@a = (-10, -9.9, -9.8..10); say @a[*-10.
Xliff m: my @a = (-10, -9.9, -9.8..10); say @a[*-10..*-1]
evalable6 (exit code 1) Effective index out of range. Is: -7, should be in 0..^Inf
in block <unit> at /tmp/dFMrF6VTXL line 1
Xliff m: my @a = (-10, -9.9, -9.8..10); say @a[^5] 03:39
evalable6 (-10 -9.9 -9.8..10 (Any) (Any))
Xliff m: my @a = (-10, -9.9, -9.8...10); say @a[^5]
evalable6 (-10 -9.9 -9.8 -9.7 -9.6)
Xliff m: my @a = (-10, -9.9, -9.8...10); say @a[*-10..*-1]
evalable6 (9.1 9.2 9.3 9.4 9.5 9.6 9.7 9.8 9.9 10)
Xliff m: my @a = (-10, -9.9...10); say @a[*-10..*-1]
evalable6 (9.1 9.2 9.3 9.4 9.5 9.6 9.7 9.8 9.9 10)
03:43 Cabanoss- joined 03:44 Cabanossi left, Cabanoss- is now known as Cabanossi 03:58 veesh left 04:05 veesh joined 04:09 jeromelanteri joined 04:14 dumbintel joined 04:17 snarkyboojum left 04:30 Manifest0 left 04:35 Manifest0 joined 04:42 jeromelanteri left 04:50 hythm joined 04:57 dumbintel left 04:59 Manifest0 left 05:04 Manifest0 joined 05:10 araraloren_ joined 05:15 antoniogamiz joined
squashable6 🍕 taboege++ opened pull request “Add xtest for copy-pasted camelia invocations”: github.com/perl6/doc/pull/2762
🍕 taboege++ edited pull request “Revise :skip-test”: github.com/perl6/doc/pull/2759 05:36
05:47 Manifest0 left 05:52 Manifest0 joined 05:59 antoniogamiz left, Manifest0 left 06:04 Manifest0 joined 06:15 Manifest0 left 06:18 sno left 06:21 Manifest0 joined 06:26 hythm left 06:27 rindolf joined 06:29 jmerelo joined
jmerelo squashable6: status 06:30
yoleaux 4 May 2019 20:00Z <Xliff> jmerelo: Please take a look at: gist.github.com/Xliff/5626c9434f65...b79fd49eb6
squashable6 jmerelo, 🍕🍕 SQUASHathon is in progress! The end of the event in ≈7 hours. See github.com/rakudo/rakudo/wiki/Mont...Squash-Day
jmerelo, Log and stats: gist.github.com/03026f1a146257bc0b...fcd4440651
jmerelo releasable6: status 06:32
releasable6 jmerelo, Next release in ≈12 hours. 1 blocker. 132 out of 279 commits logged (⚠ 2 warnings)
jmerelo, Details: gist.github.com/f52ffaa8194fcdc6c9...90e830c9fb
squashable6 🍕 JJ++ submitted a review on pull request “Addressing #2710 - First draft”: github.com/perl6/doc/pull/2757#pul...-233763867 06:37
🍕 JJ++ merged pull request “Addressing #2710 - First draft”: github.com/perl6/doc/pull/2757 06:38
🍕 JJ++ closed issue “Comment using in enums n…”: github.com/perl6/doc/issues/2710
06:38 Geth left
squashable6 🍕 JJ++ wrote a comment on “Docs for Blob missing ca…”: github.com/perl6/doc/issues/2694#i...-489395844 06:39
06:39 Geth joined
squashable6 🍕 JJ++ wrote a comment on “p6doc does not really work”: github.com/perl6/doc/issues/2705#i...-489396019 06:41
🍕 JJ++ submitted a review on pull request “.Int on Bool objects returns an Int object”: github.com/perl6/doc/pull/2758#pul...-233764073 06:44
Geth doc: df3cd63986 | lukasvalle++ | doc/Type/Bool.pod6
Documentation for ".Int on Bool objects returns an Int object" from github.com/perl6/doc/issues/2632 todo list.
doc: 58a1d0bd96 | (Juan Julián Merelo Guervós)++ (committed using GitHub Web editor) | doc/Type/Bool.pod6
Merge pull request #2758 from lukasvalle/master

  .Int on Bool objects returns an Int object
Thanks!
squashable6 🍕 JJ++ merged pull request “.Int on Bool objects returns an Int object”: github.com/perl6/doc/pull/2758
squashable6 🍕 JJ++ submitted a review on pull request “Revise :skip-test”: github.com/perl6/doc/pull/2759#pul...-233764143 06:46
Geth doc/master: 4 commits pushed by (Tobias Boege)++, (Juan Julián Merelo Guervós)++
squashable6 🍕 JJ++ merged pull request “Revise :skip-test”: github.com/perl6/doc/pull/2759
🍕 JJ++ closed issue “Too many :skip-tests”: github.com/perl6/doc/issues/2738
🍕 JJ++ wrote a comment on “Current version of perl6/doc will not make.”: github.com/perl6/doc/issues/2760#i...-489396510 06:49
06:50 domidumont joined
squashable6 🍕 JJ++ edited issue “Clarify argument of Metamodel::Naming name”: github.com/perl6/doc/issues/2713 06:50
06:52 cpan-p6 left, cpan-p6 joined, cpan-p6 left, cpan-p6 joined
squashable6 🍕 JJ++ wrote a comment on “Clarify argument of Metamodel::Naming name”: github.com/perl6/doc/issues/2713#i...-489396776 06:53
🍕 JJ++ wrote a comment on “Set, Bag and Mix operato…”: github.com/perl6/doc/issues/2761#i...-489396863 06:54
🍕 JJ++ submitted a review on pull request “Add xtest for copy-pasted camelia invocations”: github.com/perl6/doc/pull/2762#pul...-233764480 06:56
🍕 JJ++ closed issue “Create a test to ensure …”: github.com/perl6/doc/issues/2695
Geth doc: 767aec79c8 | (Tobias Boege)++ | xt/camelia-invocations.t
Add xtest for copy-pasted camelia invocations

Resolves #2695. This adds a test xt/camelia-invocations.t which goes through all code blocks and looks for accidental "m:" prefixes from pasting code from IRC where the eval bots react to this prefix.
squashable6 🍕 JJ++ merged pull request “Add xtest for copy-pasted camelia invocations”: github.com/perl6/doc/pull/2762
doc: 775b361783 | (Juan Julián Merelo Guervós)++ (committed using GitHub Web editor) | xt/camelia-invocations.t
Merge pull request #2762 from taboege/xt-camelia-invocations

Add xtest for copy-pasted camelia invocations
07:01 Manifest0 left 07:07 Manifest0 joined
squashable6 🍕 JJ++ edited issue “Non-operators are listed under operators”: github.com/perl6/doc/issues/2267 07:15
07:19 lasse joined
squashable6 🍕 JJ++ wrote a comment on “Set, Bag and Mix operato…”: github.com/perl6/doc/issues/2761#i...-489398566 07:21
🍕 JJ++ labeled issue “Set, Bag and Mix operato…” (docs): github.com/perl6/doc/issues/2761
🍕 JJ++ labeled issue “Set, Bag and Mix operato…” (RFE): github.com/perl6/doc/issues/2761
🍕 JJ++ opened issue “No one talks about braids”: github.com/perl6/doc/issues/2763 07:24
🍕 JJ++ wrote a comment on “No one talks about braids”: github.com/perl6/doc/issues/2763#i...-489398937 07:26
Elronnd can I make it so that run doesn't throw an error when the command it runs returns non-0? 07:36
07:48 Manifest0 left 07:53 Manifest0 joined
jmerelo Elronnd: say what? 08:06
Elronnd: you can catch the error, maybe... But better with an example. 08:07
Elronnd m: run 'exit -1'
evalable6 (exit code 1) The spawned command 'exit -1' exited unsuccessfully (exit code: 1)
in block <unit> at /tmp/r7FJea_wvR line 1
Elronnd I can catch the error, but I'd prefer to just pass a param to run so it doesn't get thrown in the first place
jmerelo Elronnd: you can try and use Proc::Async 08:08
Elronnd:
I meant this docs.perl6.org/type/Proc::Async
Elronnd thanks 08:09
Geth doc: 9cc1e2e320 | (JJ Merelo)++ | doc/Language/operators.pod6
Introduces methodops

According to the consensus in the issue #2267, this seems to be the best way to reflect these non-ops, actually-syntax, constructs. This closes #2267
Also reflow and some small changes, mainly to reflect that methodops are thrown into the mix.
08:10
squashable6 🍕 JJ++ closed issue “Non-operators are listed under operators”: github.com/perl6/doc/issues/2267
08:24 Manifest0 left 08:30 Manifest0 joined 08:33 natrys joined 08:39 |oLa| joined
Elronnd woah, --profile is _neat_! 08:40
08:49 sno joined 08:53 kiwi_34 joined 08:54 kiwi_34 left, hakank joined
masak lol, I *blogged*! strangelyconsistent.org/blog/refact...e-universe 08:56
I did it! there's more to come, but at least this one's out the door
tadzik it made me realise that there's so much noise in my RSS reader that I missed it even though I just finished looking through it :o 08:58
tadzik unsubs a few things 08:59
hakank @masak Excellent!
timotimo yay, a masak blog!
masak .oO( a wild blog post appears! ) 09:03
errands & 09:04
09:10 kensanata joined 09:16 Manifest0 left 09:19 camelia joined 09:20 ChanServ sets mode: +v camelia 09:22 Manifest0 joined 09:23 molaf left 09:41 hankache joined 09:42 Manifest0 left
hankache hello #perl6 09:45
.seen timotimo 09:46
yoleaux I saw timotimo 08:59Z in #perl6: <timotimo> yay, a masak blog!
timotimo yo
hankache Hola timo
timotimo gruetzli
hankache you're still hosting rakudo.org right? 09:47
timotimo well, more or less
it's not actually my server, but i did set some things up there, and i do have root access 09:48
so for all intents and purposes yeah, i am hosting rakudo.org i guess :)
09:48 Manifest0 joined
hankache And I guess that will stay the case until we have figured out a proper infrastructure? 09:49
timotimo probably, yes
hankache cool
timotimo i'm regrettably tied up with other stuff i have to finally do :S
hankache timotimo++ 09:50
timotimo else i'd probably be writing dockerfiles and such so that setting up rakudo.org becomes a one-command affair
jmerelo timotimo: should do the same for perl6 docs. As a matter of fact, I've created an issue to do that...
timotimo it doesn't matter who does it :) 09:51
hankache so I figured out since it might take a while for the people working on the infrastructure to get it done, we might as get something working meanwhile 09:52
everything seems ok except the download part
Basically those links are dead: rakudo.org/files/star rakudo.org/latest/star/win64 rakudo.org/latest/star/win32 rakudo.org/latest/star/macos rakudo.org/latest/star/source 09:53
I've registered rakudostar.com to act as a temporary replacement and host the files 09:54
so now instead of going to rakudo.org/latest/star/source you would go to rakudostar.com/latest/star/source 09:55
so for those 5 urls I need to redirect them to the new ones s/rakudo.org/rakudostar.com 09:56
do you have any idea how can this be achieved? 09:57
is this something that you could do?
timotimo? 10:01
timotimo it's possible, rakudo.org is a perl5 mojo-something web app
github.com/perl6/rakudo.org 10:02
hankache ok will have a look
thanks timo
jmerelo hankache timotimo I do have access to the server too, if you need some help just let me know.
timotimo we can also put all the files onto the actual rakudo.org server 10:03
hankache will it update automatically once I push to git or would you have to do something?
hello jj
jmerelo hi
probably will have to do something. At least docs.perl6.org is updated by hand
timotimo i'll have to ./update-rakudo.org.sh i guess 10:04
though i have some local changes i think?
but i just put some text into templates; not_found.production.html.ep, files.html.ep, exception.production.html.ep
jmerelo timotimo: can you merge them back?
timotimo gist.github.com/timo/d70355064ef01...bef6653efe 10:05
jmerelo timotimo: if you're wary of uploading your private key, maybe create a new Github user specifically for that and use it to upload the changes?
timotimo if we do our job right, these changes will have to be reverted anyway 10:06
hankache indeed 10:07
jmerelo timotimo: create a branch and deploy that branch 10:08
You probably know that temporary changes tend to become permanent, and what's intended as permanent eventually ends up being temporary. 10:09
timotimo i'd really just "git reset --hard" immediately :)
jmerelo So I wouldn't put such a fine distinction between make-it-work hacks and release-ready features.
hankache of so since the hosted version is not the same as the one on GitHub shall we do the changes directly? 10:11
timotimo no
that'd be Very Bad™ :) 10:12
hankache hehehe
timotimo it's basically what i have done
that should tell you enough about how bad it really is
hankache so how do I land my changes then? 10:13
timotimo i can just "git pull" them 10:14
or we give you access to the server as well, that's probably not a bad idea
hankache ok I'll push to GitHub and let you know
timotimo of course jmerelo can also do it
i'm hoping to get into a deep concentration with the issue i'm working on %)
hankache thanks 10:15
jmerelo hankache: I'm going to stick around for a while, so just let me know if you need me to do something.
If I'm out, put a j in front of my nick here and use Telegram. 10:16
hankache jmerelo thanks. Will let you know when ready
10:30 woolfy left, lizmat left 10:33 lizmat joined, woolfy joined 10:34 sena_kun joined
jmerelo squashable6: status 10:50
squashable6 jmerelo, 🍕🍕 SQUASHathon is in progress! The end of the event in ≈3 hours. See github.com/rakudo/rakudo/wiki/Mont...Squash-Day
jmerelo, Log and stats: gist.github.com/a061f705c572729526...41853b9afd
jmerelo Any final push to get the plush Camelia?
lizmat is working on it 10:51
jmerelo realizes push to plush is a nice-sounding slogan
lizmat jmerelo: I'm considering moving the part about operators in setbagmix to Language/operators 10:53
10:58 vrurg left 10:59 vrurg joined 11:00 araraloren_ left, araraloren_ joined
jmerelo lizmat: OK. 11:05
11:09 netrino joined 11:11 pecastro joined
Geth doc: d221923ac9 | (Elizabeth Mattijsen)++ | doc/Language/operators.pod6
Link to creating operators tutorial
11:20
jmerelo lizmat++ 11:24
hankache jmerelo are you still here? 11:38
jmerelo barely 11:39
hankache hola :)
jmerelo hola
let me pull the latest changes. 11:40
hankache I pushed to github.com/perl6/rakudo.org
jmerelo: Thanks. I hope that my fix works
let me know when to test
jmerelo it's pulled now, with timotimo changes applied on top 11:41
hankache: this your commit commit 39034f316ec14dd7c74d9b075eb323d7d3cee0b5
I really have to leave now 11:42
hankache should changes be live now?
jmerelo I think so
Please let me know by telegram if it does not work
but really have to go AFK now
hankache i think the app needs a restart
timotimo i can do it 11:43
jmerelo hankache: I think I've done it now
but if timotimo can check, the better
timotimo well, you've done it now!
jmerelo goes AFK.
11:43 jmerelo left
timotimo yeah, the app.pl process now has only fractions of a second of cpu time spent 11:43
hankache Yeah it's live. But it seems I botched it :(
tobs bisect: gist.github.com/2e95ce969d26d00342...23c1a11dd1 11:44
hankache I hate HTML
bisectable6 tobs, It looks like a URL, but mime type is ‘text/html; charset=utf-8’ while I was expecting something with ‘text/plain’ or ‘perl’ in it. I can only understand raw links, sorry.
tobs bisect: gist.githubusercontent.com/taboege...0/qsort.p6
bisectable6 tobs, Successfully fetched the code from the provided URL
tobs, Bisecting by output (old=2015.12 new=650bbc1) because on both starting points the exit code is 1
Geth doc: 9f5267175b | (Elizabeth Mattijsen)++ | doc/Language/operators.pod6
Add infix C«(&)», infix C«∩» to operators
11:45
bisectable6 tobs, bisect log: gist.github.com/83fb1d9c6edd56b7fd...fc6786bd21
tobs, (2015-12-25) github.com/rakudo/rakudo/commit/07...dc61f84053
tobs, The result looks a bit unrealistic, doesn't it? Most probably the output is different on every commit (e.g. 「bisect: say rand」)
11:47 kensanata left 11:52 kensanata joined 11:55 Sgeo_ left 11:56 Sgeo_ joined
tobs commit: 2018.10 gist.githubusercontent.com/taboege...0/qsort.p6 11:59
committable6 tobs, Successfully fetched the code from the provided URL
tobs, gist.github.com/4f71e6f08335a55d44...035ef9fd4e
hankache .tell timotimo can you please pull from GitHub and restart the app? Thanks 12:00
yoleaux hankache: I'll pass your message to timotimo.
timotimo can do
yoleaux 12:00Z <hankache> timotimo: can you please pull from GitHub and restart the app? Thanks
hankache hopefully this time I get it right
timotimo hum, your stuff may have actually not properly landed 12:01
ah, no, it probably has
restarted
hankache Great. Download section back on track 12:02
timotimo gist.github.com/timo/6df711332f7bd...5bd38e8860 - the local checkout is currently In A State, i'll probably rebase it on origin/master to fix that?
hankache thank you timo for your help
timotimo NP
Geth doc: 7872008531 | (Elizabeth Mattijsen)++ | doc/Language/operators.pod6
Add infix C«(.)», infix C«⊍» to operators
12:04
hankache timotimo yes indeed 12:08
timotimo hankache: gist.github.com/timo/506fb8549634b...38152937c5 - please "git am" this locally - if these changes are even desired in the first place 12:12
hankache timotimo ok 12:13
timotimo otherwise i'll "git reset origin/master" instead
hankache whatever is easier for you
all works 12:14
timotimo i reset'd it
Geth doc: 3de03e7a93 | (Elizabeth Mattijsen)++ | doc/Language/operators.pod6
Add infix C«(|)», infix C«∪» to operators
12:20
squashable6 🍕 taboege++ wrote a comment on “Nativecall function callback syntax”: github.com/perl6/doc/issues/2684#i...-489421407 12:21
12:23 [particle] joined
hankache timotimo would you also be able to pull perl6.org & restart? Last request today I promise. 12:24
timotimo ha, who pulled that repo as root 12:26
should be done 12:27
squashable6 🍕 taboege++ opened issue “xt/examples-compilation.t is too memory-hungry”: github.com/perl6/doc/issues/2764 12:31
hankache timotimo: can you pull & restart perl6.org. I promise it's the last time. For real :) 12:44
timotimo TYVM for your work 12:45
i updated it
hankache timotimo++ Thanks a lot mate. 12:46
12:46 Manifest0 left 12:47 kensanata left 12:51 Manifest0 joined, Geth left 12:52 Geth joined 12:53 rindolf left, AlexDaniel left, AlexDaniel joined 13:02 hankache left 13:11 Manifest0 left 13:12 andreios joined 13:18 Manifest0 joined
Xliff \o 13:19
13:26 mowcat joined
Geth doc: Xliff self-assigned Set/Bag operations should include Mixes too github.com/perl6/doc/issues/2603
Xliff++ created pull request #2765: Operators and SetBabMix page updates
13:30
squashable6 🍕 Xliff++ wrote a comment on “Set, Bag and Mix operato…”: github.com/perl6/doc/issues/2761#i...-489427005 13:34
13:37 molaf joined
andreios where do i report nqp/jvm related bugs? 13:45
timotimo i think the nqp repository is fine for that 13:50
13:53 zacts joined 14:14 dmaestro joined
dmaestro m: 2.2756215391563402e-08.FatRat.nude.say 14:15
camelia (0 1)
dmaestro m: 2.2756215391563402e-06.FatRat.nude.say
camelia (1 439440)
dmaestro m: 2.2756215391563402e-06.FatRat(1e-50).nude.say 14:16
camelia (160351 70464704803)
dmaestro m: 2.2756215391563402e-06.FatRat(FatRat(1,10**50)).nude.say 14:17
camelia (0 1)
dmaestro m: 2.2756215391563402e-06.FatRat(FatRat.new(1,10**50)).nude.say 14:18
camelia (160351 70464704803)
dmaestro m: 2.2756215391563402e-06.FatRat(FatRat.new(1,10**50)).say 14:19
camelia 0.0000022756215
Xliff m: '∖'.uniname.say
camelia SET MINUS
dmaestro m: 2.2756215391563402e-07.FatRat(FatRat.new(1,10**50)).say 14:20
camelia (timeout) 14:21
14:26 jaldhar joined
dmaestro Ran into this edge case where Num -> FatRat conversion hangs completely ^ 14:27
jaldhar Hello. How do I do exponentiation on FatRats? The docs imply ** converts the answer to a Num. 14:28
timotimo yeah, you'll have to work around that at the moment
jaldhar dmaestro: I seem to be getting odd answers too.
timotimo exponentiation on a rational number is just exponentiating the numerator and the denominator separately, right?
jaldhar hmm 14:30
dmaestro m: (FatRat.new(1,1000) ** 20).nude 14:31
camelia ( no output )
dmaestro m: (FatRat.new(1,1000) ** 20).WHAT
camelia ( no output )
dmaestro m: (FatRat.new(1,1000) ** 20).nude.say
camelia (1 1000000000000000000000000000000000000000000000000000000000000)
dmaestro For a FatRat, exponentiation just works. For a Rat, it's a different story 14:32
m: (Rat.new(1,1000) ** 20).nude.say
camelia No such method 'nude' for invocant of type 'Num'. Did you mean any of these?
none
note

in block <unit> at <tmp> line 1
dmaestro m: (Rat.new(1,1000) ** 20).say
camelia 1e-60
timotimo well, you can just upgrade a rat to a fatrat before exponentiation 14:33
dmaestro Yes.
10**50 is an Int, not a Num, I believe, so it's also high precision
As opposed to 1e50 14:34
timotimo yeah, that's literally syntax for Nums 14:37
dmaestro My case is trying to convert a Num to a FatRat with a ridiculously small epsilon - trying to avoid a type check for Num when It can be given either a FatRat or a Num
er, maybe not, just trying to get as much precision from a Num as it has ... maybe reaching too far ... 14:40
Disruptive that it can hang in this computation.
timotimo you can split the num apart into its IEEE defined parts 14:42
dmaestro Ah, didn't think of that :-)
timotimo you can use .write-num64 for that purpose 14:43
m: my buf8 $foo .= new; $foo.write-num64(2.2756215391563402e-06, 0); say $foo 14:44
camelia This type cannot unbox to a native integer: P6opaque, Num
in block <unit> at <tmp> line 1
timotimo m: my buf8 $foo .= new; $foo.write-num64(0, 2.2756215391563402e-06); say $foo
camelia Buf[uint8]:0x<03 3F DE 2B DC 16 C3 3E>
timotimo m: my buf8 $foo .= new; $foo.write-num64(0, 2.2756215391563402e-06); say $foo>>.base(2)
camelia (11 111111 11011110 101011 11011100 10110 11000011 111110)
dmaestro Been pushing the limits of Num's - range of about 1e-323 to 1e308 :-) 14:45
timotimo we're lacking a few arithmetic things on FatRat, like square root or the trigonometric functions ... interested? :P 14:47
dmaestro I've actually got a pretty good routine for sqrt and arbitrary-precision Pi. Plan to release Math::Precise for some of those things, maybe this coming week. 14:48
timotimo cool
14:49 dmaestro left 14:58 Manifest0 left
jaldhar timotimo: how do I use .write-int64 with a Num? The docs are a bit unclear to me it seems. 15:01
timotimo you'd have to turn it into an integer first 15:02
jaldhar timotimo: or maybe that's not what I want.
timotimo if you want the bit pattern of the num according to the IEEE, you'd use write-num64 15:03
jaldhar Here's what I'm trying to do:
constant RAMANUJAN = 𝑒 ** (π * sqrt(163)); RAMANUJAN.say;
evalable6 2.625374126407677e+17
15:03 Manifest0 joined
jaldhar with the output as a rational number but I just can't figure it out. 15:04
(That's Perl Weekly Challenge #2 btw)
timotimo exponentiation with an irrational number is not going to give you a rat, that's a limitation of rakudo
i don't quite get what write-int64 would be used for in this context 15:05
jaldhar timotimo: for ever or just as it is currently implemented? (I'm on 2018.12d)
timotimo i'm not sure if it will become part of the language 15:06
15:06 skids joined
jaldhar timotimo: yeah forget .write-int64. 15:07
timotimo but if you can wait, dmaestro seems to be working on that
at least in module space
jaldhar If only I could get the result as a FatRat I'd know what to do but it looks like I have to figure out another way. 15:08
timotimo you can turn the Num into a FatRat
of course it won't have more precision than the 64bit float had
jaldhar timotimo: the problem is I need 32 digits of precision 15:09
timotimo decimal digits? 15:10
jaldhar timotimo: I guess. The question just says 32 digits.
timotimo ha
m: say 100000000000000000000000000000000.base(2).chars 15:11
camelia 107
timotimo m: say 100000000000000.base(2).chars
camelia 47
timotimo m: say 1000000000.base(2).chars
camelia 30
timotimo m: say 100000000000.base(2).chars
camelia 37
timotimo m: say 10000000000.base(2).chars
camelia 34
timotimo get it to this many decimal places and you'll have 32 binary digits of precision :) :)
15:11 vrurg left
jaldhar timotimo: but somehow I don't think that was intended by the author. 15:13
timotimo most probably not
but you can teach the author a lesson :) :) :)
jaldhar that's true!
timotimo very tongue-in-cheek right here
if you want to reach 32 digits of precision, you'll have to break down the task into pieces that you can use either integer math with, or FatRat math 15:14
m: say sqrt(163)
camelia 12.767145334803704
timotimo m: say sqrt(163).nude
camelia No such method 'nude' for invocant of type 'Num'. Did you mean any of these?
none
note

in block <unit> at <tmp> line 1
timotimo OK
so first you'd probably want an implementation of square root that approximates the result until it's precise enough for the rest of the calculation
jaldhar ok 15:15
timotimo you'll probably want to figure out how precision is affected by exponentiation
i might be on the totally wrong track fwiw
m: e ** 1 15:16
camelia WARNINGS for <tmp>:
Useless use of "**" in expression "e ** 1" in sink context (line 1)
timotimo m: say e ** 1
camelia 2.718281828459045
timotimo m: say e ** 2
camelia 7.3890560989306495
timotimo m: say pi * sqrt(163) 15:18
camelia 40.10916999113252
15:18 zacts left
timotimo m: say (e ** (40.10916 + $_) - e ** (40.10916 - $_)) for (1.0, 0.1, 0.01, 0.001, 0.0001) 15:19
camelia 6.170623962402013e+17
52594513284310656
5.25078330419072e+15
525069666727840
52506958008960
15:19 jmerelo joined
timotimo that's odd 15:19
jmerelo squashable6: status 15:20
squashable6 jmerelo, Next SQUASHathon in 25 days and ≈20 hours (2019-06-01 UTC-14⌁UTC+12). See github.com/rakudo/rakudo/wiki/Mont...Squash-Day
jmerelo squashable6: log 2019-05-04
squashable6 jmerelo, Log and stats: gist.github.com/02ed9ef70783f691e8...403f824948
jmerelo releasable6: status 15:22
releasable6 jmerelo, Next release in ≈3 hours. 1 blocker. 132 out of 280 commits logged (⚠ 2 warnings)
jmerelo, Details: gist.github.com/d8dcee8283886e0296...7fa315ad27
15:23 sno left
jmerelo And the winner is... 15:24
... wait for it ...
github.com/JJ/p6-app-squashathons/...y-2019.csv
jaldhar timotimo: I'm going to step away from this for a while and clear my head. Thanks for the help.
timotimo good luck!
i'm probably not math enough to give more help
or even know if the last bits of advice are good or bad
jmerelo .tell lizmat she's the moral winner. But it wouldn't make a lot of sense that she mails the plush toy to herself.
yoleaux jmerelo: I'll pass your message to lizmat.
jmerelo So, the _actual_ winner is...
.tell tobs you won the hackathon! github.com/JJ/p6-app-squashathons/...y-2019.csv Send your coordinates to lizmat to get the plush Camelia! 15:25
yoleaux jmerelo: I'll pass your message to tobs.
jmerelo .tell xliff you were so close...
yoleaux jmerelo: I'll pass your message to xliff.
tobs yippie \o/
yoleaux 15:25Z <jmerelo> tobs: you won the hackathon! github.com/JJ/p6-app-squashathons/...y-2019.csv Send your coordinates to lizmat to get the plush Camelia!
timotimo congrats!
jmerelo Thanks to all the 12 participants! You've contributed greatly to the quality of the documentation! 15:26
tobs jmerelo++ # organization
Xliff jmerelo: :P # Tease! 15:27
yoleaux 15:25Z <jmerelo> Xliff: you were so close...
jmerelo now that you've got a toe in, hope you can continue helping with that. We really need it
Xliff I know. These things should be longer. 15:28
Friday 0Z to Tuesday 0Z
If that's not too onerous to you.
15:28 andreios left
tobs definitely helped getting a better picture of how the doc repo even works 15:28
Xliff Especially for documentation squashies.
jmerelo tobs++, xliff++ 15:29
Next should be a Rakudo squashathon, I think
but we're open to suggestions.
Xliff Yeah, but you Euro weenies get more time to work. Squashies are geared for your work-hours! =) :p 15:30
jmerelo Xliff: I take offense at the word weenie. We call them wurst over here. 15:31
Xliff OK, you Euro Vurst! :D
Geth doc/master: 9 commits pushed by (Clifton Wood)++, (Juan Julián Merelo Guervós)++
jmerelo goes AFK to the movie theater with daughter to watch Endgame. You can do spoiler now, I'm leaving.
15:32 jmerelo left
Xliff jmerelo: SPOILER! You will LOVE IT. 15:33
timotimo i've got that in front of me, too 15:37
Xliff But what's behind you? 15:38
timotimo at the moment, a cat 15:40
15:43 araraloren_ left
timotimo they want their food 15:44
Xliff Ah. Another cat person. Well met!
timotimo getting up from the desk at this time of day carries with it the danger of being hit by a flying cat 15:45
Xliff LOL! I know the feeling. Mine will sit on the duvet right next to my keyboard and bat me with her paws. 15:46
"Hey! You. FEED ME!"
15:51 zacts joined 15:58 pmurias joined
SqrtNegInf .tell jaldhar You might find this of interest: rosettacode.org/wiki/Ramanujan%27s_constant 15:59
yoleaux SqrtNegInf: I'll pass your message to jaldhar.
16:00 zacts left
jaldhar SqrtNegInf: I'll take a look. Thanks. 16:00
yoleaux 15:59Z <SqrtNegInf> jaldhar: You might find this of interest: rosettacode.org/wiki/Ramanujan%27s_constant
timotimo the cats in this household mostly just vocalize their desire and expectations 16:01
16:12 pecastro_ joined 16:14 pecastro left 16:17 hudo joined 16:34 andreios joined 16:35 andreios left 16:38 zakharyas joined 16:48 andrzejku_ joined 16:52 andrzejku left, andrzejku_ left
Xliff lizmat: On line #7 of Method::Also, might it not be safer to do "meth.package.^add_method(.Str,meth) for @$also;" ?? 16:55
Especially since you do "meth.package.^add_method($also.Str,meth);" on L#10
17:12 Manifest0 left 17:17 Manifest0 joined 17:26 rindolf joined 17:54 MilkmanDan left 17:55 MilkmanDan joined 17:57 MidCheck joined 17:59 vrurg joined 18:14 yqt joined
Xliff m: multi sub ($a, *@props) { say 'SLURPED!' }; my sub a ($a, Int() $b, Int() $c, *@props) { say 'NOT-SLURPED!' }; class A {}; a(A.new, 1, 0, False, True, A.new); 18:23
camelia 5===SORRY!5=== Error while compiling <tmp>
An anonymous routine may not take a multi declarator
at <tmp>:1
------> 3lti sub ($a, *@props) { say 'SLURPED!' }7⏏5; my sub a ($a, Int() $b, Int() $c, *@pr
expecting any of:
h…
Xliff m: multi sub a ($a, *@props) { say 'SLURPED!' }; my sub a ($a, Int() $b, Int() $c, *@props) { say 'NOT-SLURPED!' }; class A {}; a(A.new, 1, 0, False, True, A.new);
camelia 5===SORRY!5=== Error while compiling <tmp>
Redeclaration of routine 'a' (did you mean to declare a multi-sub?)
at <tmp>:1
------> 3nt() $c, *@props) { say 'NOT-SLURPED!' }7⏏5; class A {}; a(A.new, 1, 0, False, True
expecting any …
Xliff m: multi sub a ($a, *@props) { say 'SLURPED!' }; multi sub a ($a, Int() $b, Int() $c, *@props) { say 'NOT-SLURPED!' }; class A {}; a(A.new, 1, 0, False, True, A.new);
camelia Ambiguous call to 'a(A, Int, Int, Bool, Bool, A)'; these signatures all match:
:($a, *@props)
:($a, $b, $c, *@props)
in block <unit> at <tmp> line 1
Xliff m: multi sub a ($a, *@props) { say 'SLURPED!' }; multi sub a ($a, Int $b, Int() $c, *@props) { say 'NOT-SLURPED!' }; class A {}; a(A.new, 1, 0, False, True, A.new);
camelia Ambiguous call to 'a(A, Int, Int, Bool, Bool, A)'; these signatures all match:
:($a, *@props)
:($a, Int $b, $c, *@props)
in block <unit> at <tmp> line 1
Xliff m: multi sub a ($a, *@props) { say 'SLURPED!' }; multi sub a ($a, Int $b, Int $c, *@props) { say 'NOT-SLURPED!' }; class A {}; a(A.new, 1, 0, False, True, A.new); 18:24
camelia Ambiguous call to 'a(A, Int, Int, Bool, Bool, A)'; these signatures all match:
:($a, *@props)
:($a, Int $b, Int $c, *@props)
in block <unit> at <tmp> line 1
Xliff m: multi sub a ($a, *@props) { say 'SLURPED!' }; multi sub a ($a, Int $b, *@props) { say 'NOT SLIRPED' }; a(A.new, 0); 18:28
camelia 5===SORRY!5=== Error while compiling <tmp>
Undeclared name:
A used at line 1
Xliff m: multi sub a ($a, *@props) { say 'SLURPED!' }; multi sub a ($a, Int $b, *@props) { say 'NOT SLIRPED' }; class A { }; a(A.new, 0);
camelia Ambiguous call to 'a(A, Int)'; these signatures all match:
:($a, *@props)
:($a, Int $b, *@props)
in block <unit> at <tmp> line 1
Xliff m: multi sub a ($a, *@props where *.elems > 1) { say 'SLURPED!' }; multi sub a ($a, Int $b, *@props) { say 'NOT SLIRPED' }; class A { }; a(A.new, 0); 18:29
camelia NOT SLIRPED
Xliff Can't slurpy positionals be considered optional? 18:33
m: multi sub a ($a, *@props) { say 'SLURPED!' }; multi sub a ($a, Int $b, *@props) { say 'NOT SLIRPED' }; class A { }; a(A.new);
camelia SLURPED!
Geth doc: 004aa4b460 | (Rafael Schipiura)++ (committed using GitHub Web editor) | doc/Language/operators.pod6
Change markdown syntax to POD6.
Xliff m: multi sub a ($a, *@props) { say 'SLURPED!' }; multi sub a ($a, Int $b, *@props) { say 'NOT SLIRPED' }; class A { }; a(A.new, 0);
camelia Ambiguous call to 'a(A, Int)'; these signatures all match:
:($a, *@props)
:($a, Int $b, *@props)
in block <unit> at <tmp> line 1
Xliff m: multi sub a ($a, *@props) { say 'SLURPED!' }; multi sub a ($a, Int $b, *@props) { say 'NOT SLIRPED' }; class A { }; a(A.new, 0, 0);
camelia Ambiguous call to 'a(A, Int, Int)'; these signatures all match:
:($a, *@props)
:($a, Int $b, *@props)
in block <unit> at <tmp> line 1
18:34 raschipi joined
Xliff m: multi sub a ($a, *@props) { say 'SLURPED!'; @props.elems.say; }; class A { }; a(A.new, 0); 18:36
camelia SLURPED!
1
Xliff m: multi sub a ($a, *@props) { say 'SLURPED!'; @props.elems.say; }; class A { }; a(A.new);
camelia SLURPED!
0
Kaiepi is the squashathon still going on or did i miss it? 18:37
Xliff Kaiepi: Naw. It ended at 9Z
Kaiepi damn
lizmat no plushy for you this time, Kaiepi :-) 18:38
yoleaux 15:24Z <jmerelo> lizmat: she's the moral winner. But it wouldn't make a lot of sense that she mails the plush toy to herself.
Xliff I want a plushiiieeee! 18:39
:)
Oh well... next time.
And I really think squashathon hours should be extended for those of us not on European time.
Otherwise we miss them.
Would also help contributions.
lizmat or come to a Perl event, such as PerlCon, Swiss Perl Workshop, or others like T-Dose
Kaiepi oh well, i already have a plushie 18:40
Xliff lizmat: When's the next one on East Coast, USA?
Kaiepi still fun to participate in though
lizmat Xliff: sorry, no visits to the US for me and Wendy for the foreseeable future
Xliff Ah! OK. :(
Kaiepi sadly i won't be able to go to any perl cons for at least a few years 18:43
lizmat :-( 18:44
Geth doc: f833cc1bdc | (Elizabeth Mattijsen)++ | doc/Language/operators.pod6
Remove now doubly mentioned set operators
18:45
18:51 pmurias left
Xliff I want to go to one when I finally release GTKPlus 18:59
19:02 domidumont left
sena_kun already has an accepted talk and the software is not even released yet. :P 19:03
ufobat_ I've a couple of "overlapping" syubset definitions, can I influence which one should use in favor of others? 19:08
19:09 kaare__ left, kaare__ joined
raschipi ufobat_: Aren't they checked in the order they are defined? 19:13
19:13 pmurias joined
ufobat_ i haven't checked that 19:13
nope the one is not been checked 19:14
Argh, sorry I misread what you wrote
19:16 mowcat left
Geth doc: a7693ac426 | (Elizabeth Mattijsen)++ | doc/Language/operators.pod6
Add infix C«(^)», infix C«⊖» to operators

For now. I still need to investigate the behaviour of a chained (^) operator. It took me a long time to get to the current semantics. Alas, I didn't document properly at the time, so I will need to revisit that. For the record, the semantics of a chained (^) or definitely not the same for an infix (^), especially when Bags/Mixes are involved.
19:19
19:25 Manifest0 left 19:30 Manifest0 joined, sno joined
xinming for @x -> $item { }; <--- In this example, How do we get the remaining items after the $item? 19:34
for example, after we processed 2 $items, then, in block, we call last, But before we call last, I'd like to get the "tail" of unprocessed items.
I know I can have index to do that. Just know wether there is better way. :-) 19:35
lizmat while @x.shift -> $item { }
timotimo is it okay to ... yeah 19:36
lizmat @x will contain unprocessed items after the loop
timotimo only if @x is allowed to be changed, of course
lizmat well, if not, then first copy it.... or start playing tricks with iterators, I guess
timotimo sure 19:38
Geth doc: 430c9fb2d5 | (Elizabeth Mattijsen)++ | doc/Language/operators.pod6
Add infix C«(+)», infix C«⊎» to operators
timotimo can always have a variable that counts up with iterations
lizmat for @x.kv -> $i, $item { }
timotimo well, you'd want the $i after the end of thel oop 19:39
xinming thanks, that way is easy.
the while @x.shift -> $item { }
I had my version with @x.kv -> $idx, $item { } I personally prefer the 'while ...' sollution 19:40
lizmat xinming: please note that that only works that way if the value shifted before the end booleanizes to True
xinming hmm, So, seems the fo r @x.kv -> $i, $item is I want. 19:41
lizmat if not, then probably the .kv -> $index, $value is probably the better solution
xinming As I meet what you mentioned yesterday.
something like;
m: my $x = start { sleep 5 }; if $x { "We won't say".say; };
camelia ( no output )
xinming :-) 19:42
lizmat :-)
19:42 Black_Ribbon joined 19:52 jaldhar left
masak .oO( the end booleanizes the means ) 20:02
20:07 MidCheck left 20:08 ufobat__ joined
lizmat
.oO( if that were only True )
20:08
I mean, on average :-) 20:09
20:10 yqt left 20:11 ufobat_ left
SqrtNegInf Appreciate any feedback over at SO: stackoverflow.com/questions/559941...-vs-perl-6 20:13
20:20 Manifest0 left 20:22 [Sno] joined
Geth doc: 587c4a297f | (Rafael Schipiura)++ (committed using GitHub Web editor) | doc/Type/Failure.pod6
Failure is Nil

According to github.com/rakudo/rakudo/blob/mast...ailure.pm6
20:24
20:24 sno left 20:25 cpan-p6 left, cpan-p6 joined, cpan-p6 left, cpan-p6 joined 20:27 Manifest0 joined 20:28 lasse left 20:32 vrurg left 20:33 vrurg joined 20:40 zacts joined 20:46 Manifest0 left
Geth doc: cf0c5930c3 | (Rafael Schipiura)++ (committed using GitHub Web editor) | doc/Type/Rational.pod6
.Range in some Numeric types.

New feature for 6.d, updates #2632
20:46
20:49 MasterDuke left
Geth doc: ed5b2f39c5 | (Rafael Schipiura)++ (committed using GitHub Web editor) | doc/Type/Int.pod6
Aditional .Range on some Numeric types.

As Int doesn't do Rational. Updates #2632
20:49
20:50 Geth left 20:51 Geth joined, Manifest0 joined
Geth doc: 02d5e3c5d9 | (Elizabeth Mattijsen)++ | doc/Language/operators.pod6
Add infix C«(-)», infix C«∖» to operators

And some other minor fixes for errors I made earlier today
20:57
raschipi lizmat: Are those the last set operators missing? Could you close github.com/perl6/doc/issues/2761 ? 21:03
lizmat closed the ticket, will continue on better documentation in that area 21:04
raschipi lizmat++ 21:09
I assume you're looking into github.com/perl6/doc/issues/2603 ?
Geth doc: rafaelschipiura unassigned from Xliff Issue Set/Bag operations should include Mixes too github.com/perl6/doc/issues/2603
rafaelschipiura assigned to lizmat Issue Set/Bag operations should include Mixes too github.com/perl6/doc/issues/2603

Add infix C«(elem)», infix C«∈», infix C«∉» to operators
21:10
raschipi Also, does your work adresses the 'Sets, Bags, Mixes (aka QuantHashes) and set operators' section on github.com/perl6/doc/issues/2632 ? 21:11
21:21 __jrjsmrtn__ joined
21:23 _jrjsmrtn left
Geth doc: 1a6a52c02f | (Elizabeth Mattijsen)++ | doc/Language/operators.pod6
Add infix C«(cont)», infix C«∋», infix C«∌» to operators
21:31
21:32 Manifest0 left 21:36 Kaiepi left 21:37 Manifest0 joined, Kaiepi joined
lizmat sleep& 21:48
21:48 Manifest0 left 21:50 robertle left, zakharyas left 21:54 Manifest0 joined 21:59 zacts left 22:02 hudo left 22:13 rindolf left 22:21 natrys left, Kaiepi left 22:23 mowcat joined 22:24 mowcat left, mowcat joined 22:25 dustinm` left 22:30 dustinm` joined 22:32 Black_Ribbon left 22:33 Black_Ribbon joined 22:34 Black_Ribbon left 22:37 Kaiepi joined 22:39 Kaiepi left 22:40 Kaiepi joined 22:43 matiasli1a joined
sena_kun m: note [{a => 3, b => 2}]; note [{a => 3, b => 2}][0].^name; 22:48
camelia [a => 3 b => 2]
Pair
sena_kun 6c: note [{a => 3, b => 2}]
committable6 sena_kun, gist.github.com/044ea4b5201277d988...8fca51c5f1 22:49
22:49 netrino left
sena_kun this is what I'd call "very surprising" 22:49
m: note [{a => {a => 3, b => 2}}] 22:50
camelia [a => {a => 3, b => 2}]
sena_kun m: note [{a => {a => 3, b => 2}, b => { c => 1 }}]
camelia [a => {a => 3, b => 2} b => {c => 1}]
timotimo you think? [blorp] always iterates what's inside it to put it into the array, "single-argument rule"
so if you want to prevent that, put a , before the ]
m: say {a => 3, b => 2}.Array.perl 22:51
camelia [:b(2), :a(3)]
timotimo m: say {a => 3, b => 2}.item.Array.perl
camelia [:b(2), :a(3)]
timotimo m: say ({a => 3, b => 2},).Array.perl
camelia [{:a(3), :b(2)},]
timotimo not sure if there's a way with a simple method call
sena_kun timotimo, yup. well, maybe because I was too lazy to check this "single-arg rule" everyone talks about...
it totally looks to me like a "a hash literal inside of an array literal", hence an array of hashes. apparently, I am wrong here... 22:52
timotimo well, the same thing happens with "an array literal inside an array literal"
m: say [[1, 2]].perl
camelia [1, 2]
timotimo m: say [[1, 2],].perl
camelia [[1, 2],]
timotimo one of the things it allows is to use <foo bar baz> but get an Array out of it: 22:53
m: say [<a b c d e>].perl
camelia ["a", "b", "c", "d", "e"]
timotimo m: say [<a b c d e>,].perl
camelia [("a", "b", "c", "d", "e"),]
sena_kun timotimo, are there some particular advantages with this approach?
timotimo i don't remember all the discussions from back when this design was built 22:54
sena_kun ok, never mind then
timotimo it was part of the Great List Refactor which made things flatten a whole lot less on their own, and also removed Parcel from the language
sena_kun just a bit curious what can drive such a thing
raschipi The principle behind it is called DWIM. Do What I Mean. 22:59
And we always said that for every DWIM there's often a WAT.
sena_kun the perspectives are different, so in this case I'd totally say that DWIM is "I want a hash in an array". but, of course, cannot counter a WAT moment part. :) 23:02
timotimo see also the waterbed theory of language design maybe?
sena_kun yup, heard about this one 23:03
Xliff can CStructs do delegation?
23:03 pecastro_ left
sena_kun well, didn't want to blame anything or something like that. just maybe too tired from writing Controls code this late... 23:03
raschipi m: my @a = <1 2 3>; .say for @a; #This should print '1␤2␤3' or '1 2 3'?
camelia 5===SORRY!5=== Error while compiling <tmp>
Two terms in a row across lines (missing semicolon or comma?)
at <tmp>:3
------> 0327⏏5<EOL>
expecting any of:
infix
infix stopper
statement end
s…
timotimo Xliff: delegation is possible, but only to things that can be an attribute inside a CStruct, i.e. you can only delegate to a CStruct inside (with has or HAS) the CStruct 23:04
raschipi m: my @a = <1 2 3>; .say for @a;
camelia 1
2
3
timotimo in particular, you can't use a regular perl6 type like Array or Hash for delegation
raschipi This should print '1␤2␤3' or '1 2 3'?
Xliff timotimo: EXCELLENT! 23:06
timotimo delegation is mostly about autogenerated methods, and method stuff can go into CStruct just fine, because everything related to methods lives in the metaobject rather than the instances themselves 23:11
raschipi m: my @a = <1 2 3>; my @b = <a b c>; .say for @a, @b; 23:12
camelia [1 2 3]
[a b c]
raschipi sena_kun: can you see that it always unwraps one level?
Xliff timotimo: Doesn't work. I get the inscrutable "P6opaque: no such attribute '$!inlined' on type Attribute+{<anon|2>} in a Attribute+{<anon|2>} when trying to bind a value" 23:20
Goes away if I remove the handles trait from the HAS declaration. 23:21
23:23 pmurias left
sena_kun raschipi, I see, thanks. well, for the first case, I'd argue it is ambiguous, that's why I don't like sigils too much when it comes to such things. 23:27
but anyway, sleep&
23:28 sena_kun left 23:33 Manifest0 left 23:38 MasterDuke joined, MasterDuke left, MasterDuke joined 23:41 Manifest0 joined 23:52 Manifest0 left 23:58 Manifest0 joined