🦋 Welcome to the MAIN() IRC channel of the Raku Programming Language (raku.org). This channel is logged for the purpose of keeping a history about its development | evalbot usage: 'm: say 3;' or /msg camelia m: ... | Log available at irclogs.raku.org/raku/live.html . If you're a beginner, you can also check out the #raku-beginner channel! Set by lizmat on 8 June 2022. |
|||
00:01
simcop2387 left
00:02
simcop2387 joined
00:06
reportable6 left
00:09
reportable6 joined
00:16
pamplemousse joined
00:19
Sgeo joined
00:33
pamplemousse left
01:20
deoac joined
01:25
deoac left
01:34
frost joined
02:34
reportable6 left,
greppable6_ left,
squashable6_ left,
nativecallable6 left,
releasable6_ left,
unicodable6_ left,
linkable6 left,
bloatable6_ left,
shareable6_ left,
sourceable6_ left,
benchable6_ left,
bisectable6_ left,
evalable6_ left,
coverable6_ left,
notable6 left,
committable6 left,
statisfiable6 left,
quotable6 left,
tellable6 left,
greppable6 joined,
releasable6 joined,
sourceable6 joined
02:35
notable6 joined,
coverable6 joined,
linkable6 joined,
tellable6 joined,
statisfiable6 joined,
bloatable6 joined,
benchable6 joined
02:36
quotable6 joined,
committable6 joined,
bisectable6 joined,
reportable6 joined,
nativecallable6 joined,
evalable6 joined,
shareable6 joined
02:37
unicodable6 joined,
squashable6 joined
02:56
japhb joined,
kjp joined
02:57
lucs_ joined,
Maximus joined,
tib_ joined
02:58
tobs` joined
02:59
Voldenet_ joined,
sjn joined,
KotH_ joined,
ecocode_ joined
03:01
pierrot_ joined,
maettu joined
03:03
synthmeat left,
lucs left,
Scotteh_ left,
mykhal left,
gugod_ left,
donpdonp|z_ left,
kjp_ left,
KotH left,
maettu_ left,
jmcgnh left,
sjn_ left,
japhb_ left,
ecocode left,
pierrot left,
nine left,
Sevalecan left,
tib left,
Voldenet left,
tobs left,
gordonfish left,
corwin left,
leah2 left,
Voldenet_ is now known as Voldenet,
tobs` is now known as tobs,
Maximus is now known as Sevalecan,
tib_ is now known as tib
03:04
donpdonp|z_ joined,
gordonfish joined
03:07
mykhal joined
03:08
jmcgnh joined,
nine joined
03:09
gugod joined
03:12
leah2 joined,
Scotteh joined
03:13
corwin joined
03:14
synthmeat joined
03:49
ajr left
04:05
vrurg_ joined,
vrurg left
04:08
discord-raku-bot left
04:09
discord-raku-bot joined
04:15
vrurg joined,
vrurg_ left
04:35
vrurg_ joined,
vrurg left
04:38
Kaipei left
04:44
vrurg_ left
04:45
vrurg joined
05:04
vrurg left
05:05
vrurg joined
05:15
vrurg_ joined,
vrurg left
06:05
mexen joined
06:07
reportable6 left
06:09
KotH_ is now known as KotH
06:10
reportable6 joined
06:22
Sgeo left
06:51
solitario_ is now known as solitario
07:11
Nemokosch joined
07:13
Nemokosch left
07:26
jmcgnh left
07:30
Nemokosch joined
07:37
jmcgnh joined
07:59
dakkar joined
|
|||
SmokeMachine | lizmat: I was thinking... is there a way on rak to have default parameters? Something like an anonymous tag that would always be applied? like an alias with the same name of the command (`alias rak="rak --my --default --parameters`). Or is that not needed? | 08:15 | |
lizmat | I was thinking about adding default parameters at some point | ||
until then, you could --save all your default parameters in a single option, and always apply that option (either directly or through an alias) | 08:16 | ||
rak --foo --bar --baz --save=d | |||
rak -d ... | 08:17 | ||
SmokeMachine | :+1 | 08:18 | |
👍 | 08:19 | ||
and another question, is there a way of (as you did with --pattern) to have an attribute for the path ran will search on? that way I could do something like: `rak --red ...` and independently of where I am, search on Red repo... | 08:20 | ||
lizmat: ☝️ | 08:21 | ||
lizmat | --files-from= --paths-from= ? | ||
SmokeMachine | thanks! I missed that! | 08:22 | |
and it seems there is something wrong on the list of predefined groups (raku.land/zef:lizmat/App::Rak#--ex...ionsspec), for some reason #ruby is being shown <#ruby> (or I've misunderstood the reason for that). | 08:25 | ||
lizmat: and the last suggestion (sorry for keep bothering you), would that make sense on the documentation, group the parameters by context instead of sorting them alphabetically? | 08:29 | ||
lizmat | well, I see the README as the source of documentation of the module, aka "sub rak" | 08:30 | |
the user documentation I see as what you get with --help | |||
and that *is* grouped by context | |||
see e.g. rak --help input | 08:31 | ||
SmokeMachine | I keep looking more at raku.land/zef:lizmat/App::Rak than at --help, every time I'm on twitter on my phone and I see a new release, I got there to see the news... | 08:33 | |
but that makes sense | |||
lizmat | well, you can check raku.land/zef:lizmat/App::Rak/changes | ||
I hope that rak will be used by people who are not necessarily into raku (yet), so will use --help, or maybe a man page | 08:35 | ||
Nemokosch | where does the changes section come from? | ||
lizmat | it's manually maintained? App::Mi6 forces you to create a new entry before you're allowed to release :-) | 08:36 | |
which I think is a good thing :-) | |||
SmokeMachine | I do... but then I got through the options to remember then | 08:37 | |
sorry, another feature request... could `~` be expanded when `--files-from`? usercontent.irccloud-cdn.com/file/...2%402x.png | |||
Nemokosch | what is App::Mi6 in the first place? 😅 | 08:38 | |
SmokeMachine | lizmat: something seems wrong usercontent.irccloud-cdn.com/file/...8%402x.png | 08:40 | |
Nemokosch: raku.land/cpan:SKAJI/App::Mi6 | 08:42 | ||
Nahita | what's the difference between declarators `package` and `module`? | 08:43 | |
Nemokosch | oh this is interesting | 08:46 | |
Nahita | from design.raku.org/S11.html#Modules, i thought you cannot export from `package`-declared things, but i tried and it works :p | 08:47 | |
08:55
renormalist joined
|
|||
lizmat | Nahita you don't even need a package, you just need a compilation unit | 09:09 | |
to be able to export stuff | |||
SmokeMachine: is that with --files-from or --paths-from ? | 09:11 | ||
SmokeMachine | lizmat: that was with: `rak --files-from=/Users/fernandooliveira/Red/ --save=red` | 09:15 | |
Nahita | so there's no difference between `package { }` and `module { }`? | 09:21 | |
09:28
Kaipei joined
|
|||
lizmat | the difference is in HOW | 09:35 | |
m: dd (package A { }).HOW | |||
camelia | Perl6::Metamodel::PackageHOW.new | ||
lizmat | m: dd (module A { }).HOW | 09:36 | |
camelia | Perl6::Metamodel::ModuleHOW.new | ||
09:43
sena_kun joined
|
|||
Nahita | thanks. i still have no idea what's the difference other than they have different names. | 09:54 | |
Altreus | Er, how do I correctly spell: sub new (%args) ? | 09:55 | |
If I do that, it complains that "too few positionals passed" | 09:56 | ||
I used to do sub new (|%args) so that the provided list got turned into %args but that is obsolete and failed to compile | |||
lizmat | Altreus: %*args ? | 10:04 | |
aka a slurpy hash ? | |||
Altreus | ah, maybe! I try | ||
oh wait, *%args, right? | 10:05 | ||
lizmat | SmokeMachine: 0.46 or rak should have home dir expansion | ||
Altreus: yeah, duh, sorry, too many distractions :-) | |||
Altreus | that's the bunny, thanks :D | 10:06 | |
forgot about slurpy | |||
lizmat | SmokeMachine: with --files-from it expects to get files | 10:11 | |
with --paths-from, it will treat any directories for recursive searches | |||
so I guess you need --paths-from | |||
10:25
spacekookie left,
spacekookie joined
|
|||
SmokeMachine | I've tested with both wit the same result | 10:30 | |
lizmat | what does 'rak --red --list-expanded-options say ? | 10:40 | |
SmokeMachine | usercontent.irccloud-cdn.com/file/...9%402x.png | 10:49 | |
lizmat: ☝️ | 10:50 | ||
lizmat | ok, I think there's one level of indirection that your missing | 10:52 | |
both --files-from and --paths-from take a *file* of which the contents will list either filenames or paths to search | 10:53 | ||
10:55
Kaipei is now known as Kaiepi
|
|||
SmokeMachine | hum... ok, the error makes sense then... is there a way to pass a dir? | 10:55 | |
lizmat | well, put that dir in a file, and mention that file with --paths-from | 10:56 | |
but I just realized that you cannot specify a ~/file with --paths-from yet | |||
but with 0.47 (now on zef) you can | 11:00 | ||
SmokeMachine: so, create a file ~/redpaths with .../Red in it | |||
and then --paths-from=~/redpaths | 11:01 | ||
SmokeMachine | yes, `rak "ResultSeqSeq" --paths-from=<(echo ~/Red/)` seem to work... I'll create the file... | 11:07 | |
thanks | 11:10 | ||
11:24
ilbelkyr is now known as nicole
11:46
Nemokosch left
11:50
discord-raku-bot left,
discord-raku-bot joined
11:51
Nemokosch1 joined
12:04
nine left
12:05
nine joined
12:06
Nemokosch1 left,
Nemokosch joined,
reportable6 left
12:08
reportable6 joined
12:21
frost left
12:34
pamplemousse joined
12:36
pamplemousse left
12:57
lizmat left
13:07
morte_ joined
13:11
frost joined
|
|||
Geth | doc: coke self-assigned Improve "is deprecated" docs github.com/Raku/doc/issues/4102 c00c428629 | Coke++ | xt/01-raku-version.t |
13:21 | |
13:26
pamplemousse joined
13:31
pamplemousse left
13:33
Nemokosch left
13:58
lizmat joined
14:02
frost left
|
|||
[Coke] | with modules.raku.org/dist/Terminal::Sp...rs.pm6#L68 - should I be able to do "Bar.new(:type<foo>)" to set $.type to foo? | 14:08 | |
(no, also my $bar.new; $bar.type = "foo" also doesn't seem to generate the desired result. | 14:10 | ||
... Sorry, the answer to the first is *yes*, the old "are you sure you're running the code you think you are" test. | 14:13 | ||
15:02
evalable6 left,
linkable6 left
15:04
evalable6 joined,
linkable6 joined
|
|||
[Coke] | so whatever zef error I got yesterday about the supporting tools... gone today. did the same 'zef install .' again with no changes, and it is working | 15:43 | |
Wonder if there was a change to one of the deps of . (a git clone of Documentable) as listed in one of the backends... | 15:44 | ||
s/backend/module repos/ | |||
16:04
linkable6 left,
evalable6 left
16:05
evalable6 joined
16:06
linkable6 joined
16:07
Voldenet_ joined
16:09
Voldenet left,
Voldenet_ is now known as Voldenet
|
|||
16:39
dakkar left
17:10
ajr joined
17:32
pamplemousse joined
17:40
pamplemousse left
17:43
pamplemousse joined
17:50
pamplemousse left
18:06
reportable6 left
18:08
nort joined
18:09
reportable6 joined
|
|||
ugexe | [Coke]: afaik that error is a rakudo bug. the zef logic related to that is just github.com/ugexe/zef/blob/7c46ca2d...od#L70-L73 | 18:34 | |
no one has ever been able to reliably reproduce it, but the logic in zef that would lead to that error is basic enough to be confident the problem lies in rakudo somewhere | 18:35 | ||
18:45
lizmat left
|
|||
ingy | `zef install Readline` fails with `===> Testing [FAIL]: Readline:ver<0.1.6>:auth<cpan:fooist>` | 18:53 | |
18:56
pamplemousse joined
|
|||
ingy | where does zef log to? | 18:57 | |
18:58
pamplemousse left
18:59
pamplemousse joined,
pamplemousse left
|
|||
ugexe | you can use `--debug` to get more info | 19:09 | |
[Coke] | at a guess, it needs the dev library installed for readline? | 19:12 | |
19:13
morte_ left
19:14
Kaiepi left,
Kaiepi joined
|
|||
japhb | ingy: Or you can `zef install Terminal::LineEditor` instead ... (*cough* shameless plug *cough*) | 19:33 | |
19:44
lizmat joined
|
|||
lizmat | *phew* that's both my Raku Conference presentations recorded and uploaded | 19:44 | |
japhb | lizmat++ | 20:00 | |
20:00
morte_ joined
20:15
sena_kun left
20:21
sena_kun joined
|
|||
leont still hasn't finished their slides :-s | 20:36 | ||
Nemokosch | saame... | 20:40 | |
long week... | |||
ingy waves to lizmat :) | 20:41 | ||
ugexe: cheers | |||
japhb: awesome | |||
when is/was this Raku conf? | 20:44 | ||
japhb: well that was bizzare... `zef install Terminal::LineEditor` actually worked... | 20:46 | ||
;) | |||
August 8-10 2022, Rīga, PerlCon | 20:48 | ||
Nemokosch | it almost always works | ||
ingy | August 11-13, 2022, Rīga, The Raku Conference | ||
Nemokosch | these were the plans... long ago | ||
in fact, it will be 13-14, and online 🙂 | |||
ingy | wonder if I coulf give a lightning talk from Seattle :D | ||
Nemokosch | why not? | 20:50 | |
japhb | Pretty sure the answer is "yes". :-) | 20:59 | |
21:21
evalable6 left,
linkable6 left,
evalable6 joined
21:23
linkable6 joined
|
|||
ingy | I'm writing a package manager (for 42 languages) so that I can publish modules in 42 languages at once: gist.github.com/ingydotnet/b2ed269...04e8212b3f | 21:32 | |
so maybe I could present that | 21:33 | ||
is `zef test t/` supposed to do what I think?> | |||
Geth | ecosystem: e2327a564c | (Richard Hainsworth)++ (committed using GitHub Web editor) | META.list adding Collection-Plugins It is not being accepted by fez ...... don't know why. |
21:41 | |
leont | ingy: I suspect you want «prove6 -l t» | 21:43 | |
ingy | ah | 21:44 | |
ty | 21:45 | ||
sec | |||
21:47
Kaipei joined
|
|||
ingy | $ zef install App::Prove6 | 21:47 | |
All candidates are currently installed | |||
No reason to proceed. Use --force-install to continue anyway | |||
$ which prove6 | |||
$ | |||
leont: what gives? | 21:48 | ||
leont | That's odd, are you sure your paths are set up correctly | ||
ingy | no | ||
leont | For me it installs to ~/.raku/bin/ | ||
21:50
Kaiepi left
|
|||
ingy | leont: gist.github.com/ingydotnet/6010b37...30f9dfecd3 | 21:51 | |
$ /opt/rakudo-pkg/share/perl6/site/bin/prove6 -lv t | 21:53 | ||
works | |||
21:57
sena_kun left,
sena_kun joined
22:01
pamplemousse joined
22:04
morte_ left
22:15
El_Che left,
El_Che joined
22:16
sena_kun left
|
|||
japhb | ingy: Looks like /opt/rakudo-pkg/share/perl6/site/bin wasn't in your path for some reason, though I'm kinda surprised that /opt/rakudo-pkg/bin was but the site-bin wasn't. (I build from source though, so I don't know if that's a bug in rakudo-pkg.) | 22:23 | |
ingy | japhb: gist.github.com/ingydotnet/5ba14cd...a090d4854c | 22:34 | |
that's how I set up all of raku | |||
suggestions welcome | |||
japhb | ingy: Just add the site bin to where you set up the PATH. Here's how I calculate it in the perl5 script that helps me bootstrap rakudo: | 22:39 | |
my $site = `$raku -e 'print CompUnit::RepositoryRegistry.repository-for-name("site")'`; | |||
my $site_bin = "$site/bin"; | |||
ingy | I set up the path elsewhere. already fixed. | 22:42 | |
was just wondering if that's a same raku/zef setup | |||
*sane | 22:43 | ||
23:04
ajr left
23:05
ajr joined
23:07
Voldenet left
23:20
Voldenet joined
23:22
deoac joined
|
|||
japhb | I'm curious why you turned off testing for zef's self-install -- was that just to save build time? | 23:42 |