🦋 Welcome to Raku! raku.org/ | evalbot usage: 'p6: say 3;' or /msg camelia p6: ... | irclog: colabti.org/irclogger/irclogger_log/raku
Set by ChanServ on 14 October 2019.
notagoodidea if it possible to construct standalone signature object and Signature object, can we provide them to a subroutine at declaration? 01:40
thowe OK, I think I blew away rakudobrew and installed rakubrew 01:56
Now to try to rememeber anything about per... I mean Raku
When I do rakubrew available, what do the "D" labels by some versions mean?
Geth doc: 945e4a4ecf | Coke++ | doc/Type/Metamodel/PrivateMethodContainer.pod6
Don't test compile these methods in the metamodel

  ... it breaks the metamodel and tests then fail
03:47
linkable6 Link: docs.raku.org/type/Metamodel::Priv...dContainer
[Coke] m: $*RAKU.compiler.verbose-config<Raku><version>.split('-') 03:59
camelia MVMArray: shift expected string register
in block <unit> at <tmp> line 1
[Coke] ^^ github.com/Raku/doc/issues/3757
gist.github.com/Whateverable/34a96...4dbd0f6d35 04:04
which is this commit: github.com/rakudo/rakudo/commit/2c...32098f3ed0 by lizmat 04:05
lizmat m: $*RAKU.compiler.verbose-config # golfed 10:27
camelia MVMArray: shift expected string register
in block <unit> at <tmp> line 1
lizmat [Coke]: github.com/rakudo/rakudo/commit/ed6e2c8b0e 10:32
patrickb .tell rba A new rakubrew release (v15) is ready for upload. The website itself can also be updated. (As always: rooster.uber.space/patcloud/index....JLQDZcjbf) 11:49
tellable6 patrickb, I'll pass your message to rba
patrickb ping rba ^
tellable6 2020-12-29T17:31:00Z #raku <tony-o> patrickb winpass branch was merged - i need a little more time to look at the user-config stuff
notagoodidea If we can declare single signature object, can we provide them to a function at declaration time? 12:03
lizmat not using Raku syntax, afaik 12:04
should be possible to do using the MOP, because that's what the raku parser does as well :-) 12:05
but it would probably require creating the subroutines from scratch as well using the MOP, so probably pretty difficult
notagoodidea mm, I feel that don't grasp enough of Raku to try to mess with the MOP.
lizmat when the RakuAST branch lands, that should probably become a lot easier, but that will take at least until mid 2021 12:06
notagoodidea I was hoping to do something like : ` my $sig = :(Int $a, Int $b); sub foo &sig {*}` or in the like 12:07
With RakuAST, there is the macro project also? That will be easier with macro lisp-style if available.
lizmat yes, the RakuAST branch is also intended to make macro's really work in Raku 12:10
it was one of the reasons for starting that project
guifa2 What would be a good name for a Yes/No prompt module? IO:YesNo? Prompt::YesNo? Or something else for the TLD? 13:01
notagoodidea Prompt::YesOrNo ? Is it only for prompt or it is generalized to work with GUI or TUI like Ncurses? 13:03
timotimo is it like a terminal thing or GUI or adaptive or something?
guifa2 CLI and only for prompting yes / no — trying to take advantage of CLDR's stuff 13:07
So English would pop out: '[y/n] ', and process accordingly. Spanish would have '[s/n] ', Korean '[예/아니요] ', etc 13:08
notagoodidea timotimo: The other day about the where clause, I found in the docs the Str $foo? where { !$foo.defined or $foo eq "foo" } for more robust optional positional argument + where clause without default values. 13:09
timotimo right 13:12
tbrowder hi, is anyone here using Cro behind a reverse proxy on a public https front end on Apache? if so, care to share the pertinent chunk of html conf file (suitably sanitized)? thnx 15:12
moritz tbrowder: perlpunks.de/paste/show/5fec9980.1b32.307 15:15
tbrowder: the interesting bits are likely AllowEncodedSlashes On, ProxyPass "/" "127.0.0.1:10000/" nocanon and matching ProxyPassReverse 15:17
the cro application is *very* simple, a datetime conversion for a sci fi game with its own date format
alert.tauguide.de/
disclaimer: I've cobbled that together until it worked, haven't expanded any effort on reduing it to a minimal config 15:18
the `ProxyPass /.well-known !` is related to Let's Encrypt ACME challenges 15:21
guifa2 And it's done: github.com/alabamenhu/Intl-CLDR/pull/1/ 15:39
Intl::CLDR goes zoom zoom with massive speed and efficiency improvements. 15:40
notagoodidea guifa2: congrats! 15:46
lizmat guifa++ 15:50
Geth ecosystem/alabamenhu-patch-2: 4a4e1707ef | L'Alabameñu++ (committed using GitHub Web editor) | META.list
Add Intl::Format::List to the ecosystem
15:53
ecosystem: alabamenhu++ created pull request #573:
Add Intl::Format::List to the ecosystem
guifa2 travis-ci.com/github/Raku/ecosyste.../211314342 <-- is this expected for modules with external module dependencies ? 15:58
tony-o littlebenlittle: you might have a look at Grammar::Tracer 16:32
melezhik I am looking for a free/very cheep server(s) to Spin up a test Sparky instance for dog fooding - github.com/melezhik/sparky/issues/9 , any ideas, feedback I'd appreciate cc rba 17:00
cheep -> cheap 17:01
tony-o melezhik: please check out data::dump - the module should be fixed now 17:26
tbrowder moritz: thanks! so it looks like your cro server is running at <127.0.0.1:10000>, am i reading that correctly? 17:47
moritz tbrowder: correct 18:06
tbrowder moritz: i think that's enough to start experimenting with cro on the backend, thnx so much! 18:08
tbrowder melezhik: try digital ocean 18:10
melezhik tbrowder ++ 18:12
tony-o , cool thanks!
tbrowder vultr is cheaper, but i think do has much more support and docs 18:13
melezhik ok, thanks ... will take a look at both ... 18:16
moritz hetzner is a German low-cost hosting company, they also have some cloud-y offering 18:22
www.hetzner.com/cloud starts at 0.5c/h 18:23
tbrowder m: my $s = 'un'; say $s.contains('u'); 18:26
camelia True
jmerelo .tell guifa2 IO::Prompt? IO::Boolean? 18:44
tellable6 jmerelo, I'll pass your message to guifa2
guifa2 jmerelo: the travis build failed because it's missing an external dependency 18:51
jmerelo guifa2: right. I didn't drill down to search which was which. That something was missing was clear, anyhow.
guifa2 jmerelo: should I expect it to fail in that case? I wasn't sure and didn't want to merge the PR if not 18:52
jmerelo guifa2: of course. If it does not find it, it will simply fail.
guifa2 ah okay, I didn't know if it held onto all modules in the ecosystem (or built required dependencies as needed) 18:53
jmerelo guifa2: it uses zef to try and install the dependencies, and clones the module (from the META6.json source) to try and install it, failing if it does not.
Basically tries to find out what would happen if you would try to install it once accepted into the ecosystem. 18:54
guifa2 yeah, that's weird that it says it can't find Intl::CLDR then
it's clearly in the ecosystem
(although I have to up my ulimit -n to install it, which might be the problem) 18:55
jmerelo guifa2: let me have a look. Sometimes it happens because it's not available _in that phase_ 18:56
guifa2 alright, I'm about to be afk, but let me know what you see. Whatever stuff is happening here may be an issue for the future modules I'm pulling out of Intl::CLDR 19:02
jmerelo guifa2: cool module, too :-) 19:03
guifa2 jmerelo: oh the cooler stuff is yet to come
jmerelo guifa2: I can't install Intl::Cldr, there's an error 19:06
jmerelo guifa2: you've got a PR. Going AFK again now. 19:13
guifa2 jmerelo: I just did an uninstall and reinstall and the error for Intl::CLDR was obvious. Arg this is what happens when I don't try clean installs
jmerelo guifa2: :-) 19:14
guifa2: no problem. I love your README.md with the quotations in Asturianu :-) Should do something with mine, making quotations in Ubedí (which is not a thing, I know, but still...)
guifa2 jmerelo: I'm trying to add little quotes here and there. I think Camões is best for DateTime 19:15
"Mudam-se os tempos, mudam-se as vontades" ;-)
jmerelo guifa2: contraposed to "Il gatopardo", "Everything must change so that everything remains the same" 19:16
Haven't read Camoes. I don't think I've read anything by a Portuguese author.
guifa2: that's the thing with us peninsulars, we kind of ignore each other. Or rather we ignore the Portuguese, while they mostly know everything about us. 19:17
guifa2 also that PR I'm going to nuke the whole Intl::Numbers namespace instead, that's some of the stuff that's getting yanked out and put into new modules, so it should be in the META6.json at all (but the META6 is autogenerated now based on all module files, and I always forget to go back and remove stuff)
jmerelo anyway, really going AFK now. Have a nice evening :-)
melezhik moritz, yeah I heard about hetzner 19:35
thanks
Xliff \o 21:59
Are there any decent Matrix classes for Raku?
Or have shaped arrays matured to the point I can take slices, yet?
m: my @a[2; 3]; @a = [ [1, 1, 3]; [2, 3, 4] ]; @a.gist.say; 22:00
camelia [[1 1 3]
[2 3 4]]
Xliff m: my @a[2; 3]; @a = [ [1, 1, 3]; [2, 3, 4] ]; @a.gist.say; @a[ *; 2].gist.say
camelia [[1 1 3]
[2 3 4]]
Partially dimensioned views of shaped arrays not yet implemented. Sorry.
in block <unit> at <tmp> line 1
Xliff :(
is this on anyone's radar? 22:01
m: my $c = 3; my @a[$c]; 22:02
camelia ( no output )
Xliff OK, well that works. ;)
m: my @a = Array.new( shape => [2, 3] ); 22:05
camelia ( no output )
Xliff m: my @a = Array.new( shape => [2, 3] ); @a.shape.say;
camelia (*)
Xliff m: my @a = Array.new( shape => (2, 3) ); @a.shape.say; 22:06
camelia (*)
Xliff m: my @a[2; 3]; @a = [ [1, 1, 3]; [2, 3, 4] ]; @a.shape.say
camelia (2 3)
Xliff m: my $a = Array.new( shape => (2, 3) ); $a.shape.say; 22:07
camelia (2 3)
Xliff \o/
MasterDuke Xliff: lizmat is doing a bunch of stuff on her faster-slice-access rakudo branch 22:14
lizmat Xliff: you might want to try with use v6.* 22:15
still a wip
Xliff m: use v6.*; my @a[2; 3]; @a = [ [1, 1, 3]; [2, 3, 4] ]; @a.shape.say
camelia Don't know setting RESTRICTED
at gen/moar/ModuleLoader.nqp:249 (/home/camelia/rakudo-m-inst-2/share/perl6/lib/Perl6/ModuleLoader.moarvm:previous_setting_name)
from gen/moar/ModuleLoader.nqp:254 (/home/camelia/rakudo-m-inst-2/share/perl6/lib/…
Xliff ? 22:16
Oh. branch... LOL
lizmat++
lizmat Xliff: no, the partial slices stuff is largely already implemented in 6.e.PREVIEW
camelia is just not set up for that
Xliff Got it. Thanks. 22:17
guifa2 . o O ( if the insane perf increases that lizmat's gotten are just the WIP … ) 22:18
Xliff Well... I wrote a quick little implementation anyways. Feel free to fork and play: 22:19
repl.it/@Xliff/AdmiredMinorMiddleware#main.raku
perryprog Nice thought bubble, guifa2
Xliff guifa2: What benchmark info did you get that from? 22:20
guifa2 Xliff: from her PRs and updates on the weekly
per rakudoweekly.blog/2020/12/07/2020-...haping-up/ for instance, "Fortunately, thanks to some extensive extra-curricular digging by Jonathan Worthington and some additional tuning by Elizabeth Mattijsen, the performance of shaped arrays is now almost on par with normal arrays, which means it is up to 60x as fast as before" 22:22
and it's not the first time I've seen a PR like that
Geth ecosystem: 4a4e1707ef | L'Alabameñu++ (committed using GitHub Web editor) | META.list
Add Intl::Format::List to the ecosystem
ecosystem: 4e700de836 | L'Alabameñu++ (committed using GitHub Web editor) | META.list
Merge pull request #573 from Raku/alabamenhu-patch-2

Add Intl::Format::List to the ecosystem
patrickb How would I duplicate a list in NQP? 23:40
nqp::clone($some_list) # duh 23:48