»ö« 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.
Geth doc: eea0dd0879 | (Michal Jurosz)++ | doc/Type/DateTime.pod6
Fix output of Instant method example in DateTime.p6
01:38
synopsebot Link: doc.perl6.org/type/DateTime
doc: b8873a3688 | cfa++ (committed using GitHub Web editor) | doc/Type/DateTime.pod6
Merge pull request #2628 from mj41/mj-dt-instant

Fix output of Instant method example in DateTime.p6
cpan-p6 New module released to CPAN! Font-FreeType (0.1.4) by 03WARRINGD 02:23
jmerelo releasable6: status 05:09
releasable6 jmerelo, Next release will happen when it's ready. 9 blockers. 174 out of 306 commits logged
jmerelo, Details: gist.github.com/09c99b65792af0d149...df22cde9eb
jmerelo .tell moritz perl6.org seems to be down 05:35
yoleaux jmerelo: I'll pass your message to moritz.
jmerelo .tell timotimo: *.perl6.org seems to be down 05:36
yoleaux jmerelo: What kind of a name is "timotimo:"?!
jmerelo .tell timotimo *.perl6.org seems to be down
yoleaux jmerelo: I'll pass your message to timotimo.
Geth doc: 782a7de40e | (JJ Merelo)++ | doc/Type/Any.pod6
Example for categorize refs perl6/doc#1731
06:08
doc: 048d6e05c5 | (JJ Merelo)++ | doc/Type/Any.pod6
Adds example for classify refs #1731
synopsebot Link: doc.perl6.org/type/Any
doc: e390f35632 | (JJ Merelo)++ | doc/Type/Any.pod6
Adds reduce, refs #1731
synopsebot DOC#1731 [open]: github.com/perl6/doc/issues/1731 [docs] Many methods in Any docs are wrong
Geth doc: 832eac7044 | (JJ Merelo)++ | doc/Type/Any.pod6
Reflow and fixing definitions, refs #1731
06:30
synopsebot Link: doc.perl6.org/type/Any
doc: f5d17a2bfe | (JJ Merelo)++ | doc/Type/Any.pod6
Some reflow and corrections
doc: 218b7f1825 | (JJ Merelo)++ | doc/Type/Any.pod6
Eliminates protos closes #2629
cpan-p6 New module released to CPAN! Algorithm-Evolutionary-Simple (0.0.6) by 03JMERELO 08:00
New module released to CPAN! Font-FreeType (0.1.5) by 03WARRINGD
lizmat drops a pin 10:17
did we lose yoleaux ?
discord6 <Vendethiel> Hasn’t it been several months already? 10:22
jmerelo lizmat: looks like it 10:23
perl6.org has been acting up lately.
This morning the domains did not work...
lizmat yoleaux reacted to me on the 14th of Feb 10:25
which is less than a week ago?
moritz jmerelo: what exactly was the error?
when I checked, things worked
jmerelo moritz: it didn't respond, simply 10:32
moritz: it lasted a few minutes. Check the log circa 7am 10:33
lizmat clickbaits p6weekly.wordpress.com/2019/02/18/...dy-thanks/ 11:31
tadzik I got chills reading the first sentences. I'm glad it's just about the domain 11:33
lizmat wow, I was so **not** going for that thought 11:35
although you could argue it is an end of an era
Juerd Had similar chills yesterday :) 11:39
lizmat shit, so **not** I was going for :-( 11:40
tadzik I blame my grim mood; it's not really implying that in any way, the wording is perfectly appropriate: happy, and a bit nostalgic :) 11:43
El_Che lol 11:44
" In the past week he has passed
"
masak .oO( that's a nice Andy Lester (aka PETDANCE) you have there. would be a shame if something were to... happen to it ) 11:50
El_Che do you ack? 12:09
lizmat acks all the time 12:10
masak I was an occasional `ack` user until I found total happiness with `git grep` 12:17
jmerelo masak: you probably don't do much outside repos. 12:33
masak: I don't either :-)
masak I do, a few. I've been known to `git init` a project that I downloaded, just so that I can `git grep` it 12:35
jmerelo masak: :-) 12:37
tadzik :D 12:39
timotimo i expect searching through a mildly compressed blob of everything that's in the repo but in a single file can be quite efficient 12:40
jmerelo timotimo: git is supposed to be a content-addressable filesystem that poses as a source control system. Thus efficiency. 12:46
timotimo there's no gain if your blob files are just the same files again but with "blob" in front 12:47
which is why git has packfiles
nwellnhof p6: say Date.new('2019-01-01') + -1 13:12
camelia 2019-01-00
nwellnhof p6: say Date.new('2019-01-01') - 1 13:12
camelia 2018-12-31
lucasb github.com/rakudo/rakudo/blob/mast...#L223-L240 13:17
lucasb ah, I can't understand those multis... need coffee first :) 13:20
what's the point of nqp::eqaddr($d.WHAT,Date) when parameter $d already is Date:D? to make sure it won't work with subclasses of Date? 13:23
moritz correct 13:27
SmokeMachine guifa: how is your translation module going? I've being playing with something like this: 13:57
lizmat twitter.com/perlcon/status/1097828513388904449 # cheaper rooms at PerlCon 2019 13:57
SmokeMachine www.irccloud.com/pastebin/xhBULlDs/ 13:57
El_Che lizmat: you'll have to do the laundy and serve breakfast :) 13:59
lizmat are you sure you want breakfast from me? or have me do your laundry ?
El_Che it's a cheaper room for a reason, probably :) 14:05
jkramer Ahoy 14:26
Can someone help me understand what's happening here? dpaste.com/28MZAPA 14:27
Somehow the result of the gather is completely different from what I'm take'ing 14:28
lucasb do you want to create 2-elem arrays from the list of words? 14:32
jkramer Also this looks like the loop is iterated again after it was already finished? dpaste.com/0X1C3JF 14:34
lucasb: Well I actually want to do something more complex but I made this poor-man's rotor to illustrate the problem
jkramer Ahh, looks like I need to clone the stuff I'm taking or it'll return @x itself. Is that intentional? 14:38
lucasb "iterated again after it was already finished" test('foo bar baz'.words.&test) <-- called twice, no?
jkramer Oops yeah true
Ok so when I do "take @x" and then modify @x, that also modifies the @x that I've already taking outside the gather? 14:39
lucasb dunno, possibly :) can you try @x<> ? 14:40
jkramer You mean "take @x<>"?
lucasb yes, the zen slice
jkramer That returns (["baz"], ["baz"]).Seq 14:41
This seems weird, I'm relatively sure I've been take'ing arrays like this in the past and had no problems. 14:42
lucasb m: sub f(@a) { my @x; gather { for @a { @x.push: $_; take @x[*] } } }; dd f([1,2,3]) 14:45
camelia ((1,), (1, 2), (1, 2, 3)).Seq
lucasb m: sub f(@a) { my @x; gather { for @a { @x.push: $_; take @x[] } } }; dd f([1,2,3])
camelia ([1, 2, 3], [1, 2, 3], [1, 2, 3]).Seq
lucasb hmm, I was expecting @x<> to just do what I want :) 14:46
lucasb jkramer: but yeah, .clone seems to work 14:46
guifa SmokeMachine: barring a more robust testing module (and nailing down exactly how I want to have people call it), it’s pretty much done 14:55
Well, that and the absence of the two built in functions — but I’m working on those, there’s just a LOT of work that has to get done first. I just finished last night a full BCP47 parser 14:56
Who would have thought that “en-Shaw-US-t-es-Hebr-ES-u-ca-islamic-x-foo-bar-hahahaha” is a valid language code? 15:00
jnthn It's just an identifier :P
guifa (American English, written in the Shaw script, as transformed [translated] from Peninsular Spanish written in Hebrew script that uses the Islamic calendar and has private tags of “foo” “bar” and “hahahaha”) 15:01
jnthn: I know hahaha, it’s still a bit insane how detailed the tags were. 15:02
discord6 <Rogue> isn't that how you send all your communications?
<Vendethiel> I installed a module to a specific location with zef —to=.perl6 install .... I seem to see the module there. But I have no idea what the incantation is for p6 to pick it up. use lib ‘.perl6’; doesn’t work (which makes sense, it wants to be use compunit or w/e). 15:07
guifa Any preferences on naming? Should the BCP47 module return a class “Locale” or “LanguageTag” ? 15:08
LanguageTag makes more sense because of all the extra information they can hold beyond just language/region/script, but in practice many people use Locale (and a lot of other frameworks use that term) 15:09
discord6 <Rogue> Well, name it what it ought to be, imo 15:10
SmokeMachine Vandethiel: have you tried 6pm? 15:14
sena_kun Vendethiel: perl6 -I$path where $path should be, like, /your/absolute/or/a/local/path/lib 15:15
SmokeMachine Vandethiel: github.com/FCO/6pm 15:20
discord6 <Vendethiel> SmokeMachine: I'm too scared of my sysadmisn to annoy them yet again :-). I'll try -I first 15:33
guifa For the META6.json file inside of “provides” do I include a list of each class (all or exported only?) and their associated file? Or do just the (sub)modules with their filename regardless the number of classes/roles contained within?
discord6 <Vendethiel> sena_kun: seems like -I does the same thing as use lib. Doesn't work. 15:34
<Vendethiel> I'm keeping that 6pm link though, I definitely want to use that later...
sena_kun guifa, just a "submodule"/file 15:35
so if you have A.pm6 and class B, class C, class D there, you only write "A": "A.pm6".
sena_kun or, rather, `: "lib/A.pm6", but you get the idea, I hope. :) 15:38
discord6 <Vendethiel> yeah no, -I definitely doesn't work, even if I try to use some other $HOME I know works 15:53
sena_kun hmm, that's odd to me, as it works with e.g. locally stored modules(e.g. clonned from github). On the other hand, zef likely precompiles it, so something other might be necessary in order to use the module. 15:55
discord6 <Vendethiel> yeah, that's the issue for sure. I just don't know how to solve it. 16:05
<Vendethiel> maybe create a repo manually. 16:06
sena_kun you can probably open an issue for the zef repo with the question. 16:14
jmerelo releasable6: status 16:24
releasable6 jmerelo, Next release will happen when it's ready. 6 blockers. 175 out of 308 commits logged
jmerelo, Details: gist.github.com/b89f1c81d1dbc661a3...ea07c43ad4
discord6 <Vendethiel> I'm not sure it's a zef issue at all. I think it's a perl 6 issue. I just don't know how to tell rakudo where to look for precompilde modules. 16:25
jmerelo That's so a zef issue. 16:27
discord6 <Vendethiel> I don't run zef when I run perl6 16:28
jmerelo Yep, but it's intimately related to how zef works. All the CompUnit thing is a bit tangled between zef and Rakudo 16:31
In that particular case, you are looking for a CompUnit path. That's not documented, but if I remember correctly the path includes a call to NQP::sha1 16:32
jnthn I think you'd perhaps have to use -Iinst#/the/path if it's an installation repository
jmerelo At any rate, zef's (and thus rakudo's) advice to that kind of thing is: don't. All details of actual storage places are implementation-dependent and you should not take care of that.
jnthn Rather than a file system one 16:33
I think --to=... will assume there's to be an installation repo there, not a filesystem one 16:34
Whereas -I defaults to a filesystem one
discord6 <Vendethiel> jnthn: I just figured it out... Yup, need inst# 16:37
<Vendethiel> oh note, use lib 'inst#foo'; also works. 16:38
<Vendethiel> jnthn++ ugexe++ # blogpost was helpful too 16:39
jmerelo Which blogpost? 16:40
jnthn I think zef and perl6 are making sensible individual choices on defaults here, but it does mean one has to be aware that there's multiple kinds of repository. 16:41
discord6 <Vendethiel> advent of code blogpost
<Vendethiel> argh. I have deps installed for my own user, so --install-to=... doesn't install them -- they're technically "present"... 16:44
Geth ecosystem: mtw++ created pull request #428:
Add Bio::ViennaNGS
16:49
El_Che pretty sure you all have seen this: betanews.com/2019/02/19/google-dev-tld/ 16:59
in case rakudo, raku, perl 6 domains need to be squattered
hahainternet doesn't have the money yet 17:00
Geth doc: 7f98d42ea0 | (JJ Merelo)++ | doc/Type/Any.pod6
Replaces and moves invert, refs #1731
17:03
doc: e642731b9c | (JJ Merelo)++ | doc/Type/Any.pod6
Adds rotor refs #1731
synopsebot Link: doc.perl6.org/type/Any
El_Che Oh joy: perl6channel.dev €9,720.16 Renews at €9.71/yr 17:06
hahainternet El_Che: it goes down each day 17:06
domains.google/tld/dev/ to see the actual prices
instead of that crap news article 17:07
jmerelo El_Che: WTAF
hahainternet in 9 days it'll be $0
jmerelo hahainternet: we'll wait then. 17:08
hahainternet jmerelo: i'll be buying mine on feb 22nd
for $350
El_Che "You appear to be in a country where Google Domains is not yet available."
oh joy
hahainternet El_Che: que?
perl6.dev will be £82/year 17:09
due to premium status
slightly annoying
vrurg hahainternet: not to mention the downpayment. 17:13
hahainternet vrurg: see above 17:15
Geth doc: 201056003c | cfa++ | xt/code.pws
Spelling.
17:16
guifa Okay I *think* I have everything uploaded to github for anyone who wants to play around with BCP74 17:52
SmokeMachine: I’ll try to get Fluent added to github sometime tomorrow. Basically, signature for localization is going to be something similar to 17:54
sub localize (Str $message-id, LanguageTag $language, *%variables —> Str) { … } 17:56
github.com/alabamenhu/BCP47 17:57
jmerelo guifa++ 17:58
And guifa++ extra on the asturianu dictionary :-) 17:59
guifa jmarelo: thanks! reminds me I need to publish my massive update to the dictionary 18:17
Xliff gist.github.com/Xliff/395ac11d29c3...ed552bde6d 19:04
hahainternet Xliff: very nice 19:06
Xliff The library itself is kinda raw and just barely supported, but if I can get in contact with the upstream maintainer, I'm willing to contribute back to it.
I've been waiting for a scriptable spreadsheet for ages. 19:07
Well.... scriptable with Perl6.
Xliff I still think I may end up making a P6 interface for Google Sheets if someone doesn't get to it. 19:07
hahainternet i wish i had the time to contribute 19:08
Xliff Gist now shows script used to make the screenshot. 19:09
Ulti so this is blocking me from building on macOS, does anyone have some advice "GNU tools detected, despite this not being a GNU-oriented build." 19:11
hahainternet Ulti: i don't know for sure 19:14
but did you install coreutils through brew or similar?
the default tools in macos are BSD, but it's common to install the GNU ones
jmerelo Xliff: you do that!
hahainternet so i expect you've got 'incorrect' paths set
Xliff jmerelo: What? Google Sheet iface for P6? 19:19
Ulti hahainternet: yeah I but this was working as recently as yesterday and I've not touched my tooling
jmerelo Xliff: yay!
Ulti could be paths
*shrug*
Xliff jmerelo: Possibly. If the muse strikes me.
hahainternet Ulti: i don't have a mac and haven't for years, see what's in "echo $PATH" 19:20
jmerelo Xliff: if she does not, _I_ might :-)
hahainternet Ulti: and if it was working a day ago, you can bisect with git
so pick a time you know it worked, check out that version, see if it does :)
Xliff I'm so involved with GTK stuffs, that might make a nice diversion.
jmerelo Xliff: no, really, that kind of thing would be really useful. gist might be gone any day...
Xliff jmerelo; gist will be gone, what? 19:21
hahainternet he means if you commit your code upstream, or make your own libraries, they will persist
i think :)
Xliff Well, the code exists here:
github.com/Xliff/p6-GTKSheet 19:22
I need to get a README.md up.
jmerelo Xliff: it's a service that might or might not be there soon for publishing our stats and whetever.
Xliff++ 19:23
Ulti hahainternet: yeah its not the version in git either so its probably something my side
guifa Bad practice to add coercion types to Str for module classes? 20:27
Or is that an generally accepted use of augment? 20:28
lizmat guifa: augment should be avoided as much as possible 20:31
it still has various issues, specifically if you're trying to augment something more than once or have nested augments 20:32
I don't recall the specifics, but if there's another way to do it, you should use that :-)
guifa Ha, noted. I guess it seems weird that we can write classes to define their own coercion methods, but can’t really defined how things can coerce into them. 20:33
Just going be lots of multi sub/methods for now :-) 20:34
lizmat guifa: yeah, I wonder if we should have a .COERCE method API for that as well 20:35
guifa Then again, it could also have the oddity that A defines its own coercion to B, and B also defines a coercion for A into B. I suppose there would just need to be a tie breaker in that case 20:36
Xliff Would anyone find P6 bindings for GTKSourceView interesting? 20:40
wiki.gnome.org/Projects/GtkSourceView
TreyHarris In starting to package up a module for upload, I noticed that my use of META6.pm6 meant that every time I made any change to my META6, the resulting json's order got shuffled. Is there an easy way to keep it stable so I don't have so many useless diff lines? Digging about the code in META6 didn't show me a 'sort' option or something... 21:36
If there's a standard way to stably order JSON, I don't know it 21:37
moritz have you looked it jq supports that? 21:38
TreyHarris moritz: Looks like it might... I need to remind myself how to use jq as a passthrough, then I should just have to slap `-S` onto it 21:40
moritz jq -S . < yourfile
works even without the . :D 21:41
TreyHarris heh, yup. thanks--I use jq to extract data into human-readable form a lot more often that to spit out JSON 21:42
Xliff Is there a limit to the size of a Perl6 enum? 21:47
AlexDaniel Xliff: test it? 21:50
Xliff Yeah... working on that now. :P
AlexDaniel: perl6 -I../cairo-p6-paths/lib -I../p6-Pango/lib -I../p6-GtkPlus/lib -e 'use GTK::Compat::KeySyms; say GdkKeySymbols.enums.elems' # 2270 21:59
AlexDaniel Xliff: is it how many millions of values are there? 22:00
Xliff 2270 values in one enum. 22:01
AlexDaniel I'm kidding of course, but 2270 values is of course not a problem
Xliff github.com/Xliff/p6-GtkPlus/blob/m...eySyms.pm6 22:02
AlexDaniel but I do wanna know if there's a limit that you can hit before you run out of memory…
Xliff What would be the point of such a large enum? If it pushed the limits of memory, it couldn't be used! %) 22:03
Scripts that use it gotta live somewhere.
AlexDaniel well, I have a machine with 64G of RAM at home… 22:04
El_Che AlexDaniel: and does it run a terminal just fine? 22:05
AlexDaniel El_Che: not really, no
Xliff Mine is still 32.
El_Che oh noes
Xliff I need $$$ to go to 64. :P
AlexDaniel El_Che: I'm disappointed by how fast that gets used up for disk cache
Xliff Although 32G is treating me just fine. No where even close to running out of memory.
El_Che AlexDaniel: it's thrown away as needed, isn't it? 22:06
Xliff AlexDaniel: My VM uses 12G and I have it running all the time. 22:07
Still have about half the 32G left.
AlexDaniel: Oh! Check out my issue on #whateverable. I can't get sake to run a test-bot 22:08
Xliff lunch & 22:09
rindolf hi all 22:30
AlexDaniel: wow, 64 gb
rindolf has 3 gb on this laptop 22:31
and 8 gb on my desktop box
El_Che rindolf: what do you run on the laptop? Win7 or Linux? 22:33
rindolf El_Che: linux 22:34
El_Che: fedora 29 x64 22:35
El_Che Gnome? Or something lightweight? 22:38
I have a 11y old small laptop I use sometimes with 2gb ram
I run ubuntu with gnome on that
but I would probably be annoyed by its speed for everyday stuff 22:39
(I tried some more lightweight desktop environment, but I couldn't get used to them)
AlexDaniel El_Che: yes, of course, but if I'm doing some stuff with a lot of data, I don't want to be pulling from the drive 22:42
AlexDaniel El_Che: around 200G would make me happy I think 22:44
doesn't sound that unrealistic nowadays
El_Che I was very happy with a 249MB disk not so long ago, you brat :) 22:46
AlexDaniel or maybe very large and crazy fast SSDs will make me equally happy 22:47
El_Che why choose!
rindolf El_Che: i use xfce there 22:53
El_Che rindolf: good choic 22:54
e