00:30
crnlskn left
01:14
crnlskn joined
02:30
arkiuat left
02:33
arkiuat joined
03:49
disbot8 is now known as disbot
06:15
crnlskn left
07:01
icovnik joined
07:03
arkiuat left
07:17
arkiuat joined
07:26
arkiuat left
07:27
crnlskn joined
07:55
arkiuat joined
08:00
arkiuat left
08:07
dakkar joined
08:28
arkiuat joined
08:32
arkiuat left
09:03
arkiuat joined
09:08
arkiuat left
09:36
arkiuat joined
09:41
arkiuat left
10:03
arkiuat joined
10:08
arkiuat left
10:22
arkiuat joined
10:28
arkiuat left
10:40
arkiuat joined
10:44
arkiuat left
|
|||
disbot | <antononcube> Well, the other, regression part of "stargazer" is handled by "Math::Fitting", to a point. It does not produce fitting "p-value tables", and that is low in my priority list. | 10:57 | |
11:03
arkiuat joined
11:12
arkiuat left
11:36
arkiuat joined
11:41
arkiuat left
12:04
arkiuat joined
12:09
arkiuat left
|
|||
icovnik | hello, I have a question about raku module usage | 12:16 | |
I installed Template6 with zef and now I want to change that module | 12:17 | ||
disbot | <librasteve> sure - what's your question | ||
<librasteve> hi! | |||
<librasteve> change? how? | |||
icovnik | I found it installed in a directory containing rakudo | ||
I changed it - but it didn't run my changes | 12:18 | ||
I suspect the module is precompiled or cached somewhere | |||
disbot | <librasteve> zef uninstall Template6 / zef install Template6 | 12:19 | |
icovnik | So my question is: how to remove that installed module from cache, OR how to cache it with my modifications OR how to install it locally and use that instead of "system-wide" module | ||
disbot | <librasteve> find the .precomp subdirectory and delete it | 12:20 | |
<librasteve> rakubrew is great for having multiple (local) environements | 12:21 | ||
<librasteve> rakubrew.org | 12:22 | ||
<librasteve> otherwise you can tell zef where to put your modules (check out the readme in raku.land) | 12:23 | ||
icovnik | OK, I will try | 12:26 | |
Is there some mechanism like PERL5LIB in raku? | |||
and/or setting current path where to find modules inside raku script? | 12:27 | ||
disbot | <librasteve> i often work on module code, when you are in the module root dir, you can run raku -I. script (where the script has use Module;) or specify the include path instead of the . | ||
<librasteve> oh yeah there''s an ENV for that too | 12:28 | ||
<librasteve> docs.raku.org/programs/03-environm...le_loading | 12:29 | ||
<librasteve> RAKULIB | |||
icovnik | I found .raku/precomp directory and also /path/to/raku/share/perl6/site/precom - which to delete? | 12:30 | |
the .../raku/.../site/precomp seems to be the correct one | |||
but what does the ~/.raku directory do? | |||
disbot | <antononcube> @icovnik I assume you know what you doing Raku programming wise. I would suggest the following: (1) Uninstall "Template6" with zef uninstall Template6. (2) Find the code base of "Template6" and Git-clone it. (3) Program your changes. (4) Install the updated package with zef install . --force-install executed in the directory of the Git-clone of "Template6". | ||
<librasteve> @antononcube - yeah that's what I do (explained better) | 12:31 | ||
<librasteve> ++ | |||
<librasteve> probably that's the dir where your raku is installed ;-) | 12:32 | ||
icovnik | @antononcube: OK, understand | ||
but I really don't know what I am doing Raku-programming-wise :) | |||
disbot | <librasteve> yeah probably not good to mess with the precomps (since that is automated) - the precomps are hashed so that when you make a source change locally (as Aoton says) the change and all the deps are recompiled automatically | 12:33 | |
<antononcube> Hmm.. then even more so, use a Git clone. | 12:34 | ||
icovnik | librasteve: well my raku is downloaded as binary tar.gz, extracted in place - and that's it. I set PATH to raku binaries and use it like that. The directory got set somehow automatically, maybe by zef? | ||
disbot | <librasteve> sorry I am not sure how that works exactly... | 12:35 | |
icovnik | no problem | 12:36 | |
12:36
arkiuat joined
|
|||
icovnik | I will try the git-clone version | 12:36 | |
this is only a minor problem, what I want to do is change Template6 a bit (I came from Perl+Template Toolkig) to be more like I expect it to be | 12:37 | ||
disbot | <librasteve> good luck! | 12:38 | |
icovnik | thanks | ||
disbot | <librasteve> yeah TT is a good thing! | ||
icovnik | true, I use it all the time | 12:39 | |
well one more question | |||
how to coerce (is that the right name for this?) a parameter for new object? | 12:40 | ||
12:40
arkiuat left
|
|||
disbot | <librasteve> can you share some code? | 12:41 | |
<antononcube> Filed an issue: github.com/raku-community-modules/.../issues/33 | |||
<librasteve> please | |||
icovnik | I have a class: class Node { has IO::Path $.path; method process {...} }; | ||
I use it in script and pass the path to it from command line as an argument | |||
disbot | <librasteve> so Node.new( path => 'file'.IO) should work | 12:42 | |
icovnik | and if I pass it a directory, it gets "/" on the end of the arg | ||
yes, that works | |||
but what I want - each time I create new Node object, I want it to remove trailing slash | 12:43 | ||
I managed to do it inside method new (IO::Path $path) {...} | |||
but it doesn't look... right to me | 12:44 | ||
12:45
arkiuat joined
|
|||
icovnik | I'd like something like "coerce" option in Perl's Moo | 12:45 | |
disbot | <antononcube> @icovnik It is better if you forget Perl. | 12:46 | |
<antononcube> ... when working with Raku. | |||
icovnik | @antononcube that would be quite hard after 20 years of Perl and 3 days of Raku :) | ||
disbot | <antononcube> Raku and Perl are separated by common ideas and cultural baggage. | 12:47 | |
<librasteve> class MyNode { has $.file; has $.dir; method new { Node.new( $!dir.subst( //$/, '') ... maybe (dunno) | 12:48 | ||
crnlskn | feels vaguely like an XY problem to me; why is important that the IO attribute itself does not contain the trailing slash? | 12:49 | |
disbot | <antononcube> @icovnik Ok. At least read docs.raku.org/language/5to6-nutshell , but I am not sure it covers OOP. | 12:50 | |
<antononcube> Mm... not just the "nutshell" guide. Here are all of them: docs.raku.org/language/5to6-overview | 12:51 | ||
12:54
arkiuat left
|
|||
disbot | <antononcube> @librasteve Do you use TT (Template Toolkit) ? | 12:54 | |
<librasteve> used to back in the day - I just like the way the syntax flows - I have done a bit of crotmp recently (which is a lovely new syntax from jnthn) that feels very perl/raku natural | 12:59 | ||
<librasteve> of course, at heart I am allergic to templates and like to write Air::Functional html | 13:00 | ||
<librasteve> harcstack.org/ shows that a bit | |||
13:20
lizmat_ joined
13:22
arkiuat joined,
tbrowder_ joined
|
|||
icovnik | sorry, real life attacked me right now | 13:27 | |
13:27
arkiuat left
|
|||
icovnik | the trailing slash is important (I think) because I use it next to create sub-directory paths and use that in web | 13:27 | |
and I don't want paths like /dir1/dir2//file.html (note the double slash) | 13:29 | ||
13:29
librasteve_ left,
thowe left,
lizmat left,
tbrowder left,
tbrowder_ is now known as tbrowder
13:30
lizmat_ left,
thowe joined,
lizmat joined
|
|||
icovnik | now after studying docs for IO::Path I know there is something like "some/path".IO.add("subdir") but currently all of this didn't "click" in my head | 13:31 | |
so I feel like some lumberjack in china shop | 13:32 | ||
so much to learn | |||
OK, thank you all, you have given me some information to process | 13:34 | ||
13:37
librasteve_ joined
13:45
arkiuat joined
13:54
arkiuat left
13:55
arkiuat joined
|
|||
icovnik | heh I need more help, really basic | 13:56 | |
I encountered this: ".return with %!data{$query};" | |||
how to get info about "with"? | |||
e.g. don't want the info about "with", but how to get that info by myself? | 13:57 | ||
I tried to search on docs.raku.org/ but "with" is too broad search term | |||
crnlskn | it's the 8th item under the "composite" heading in the search results for me | 14:04 | |
14:04
arkiuat left
|
|||
crnlskn | the list being scrollable is a bit non-obvious | 14:04 | |
14:05
arkiuat joined
|
|||
icovnik | oh, I saw that but it didn't seem to be what I was looking for | 14:07 | |
14:07
icovnik left,
icovnik joined
|
|||
icovnik | oh, I saw that but it didn't seem to be what I was looking for | 14:07 | |
14:10
arkiuat left
|
|||
crnlskn | it should be; `with orwith without` in language/control is exactly where those keywords are explained :) | 14:10 | |
icovnik | yes, I found it, thak you | 14:11 | |
...thank you of course | 14:12 | ||
14:31
crnlskn left
14:37
arkiuat joined
14:42
arkiuat left
14:45
arkiuat joined
14:50
arkiuat left,
crnlskn joined
14:51
arkiuat joined
|
|||
disbot | <antononcube> @icovnik Use LLMs -- later models know Raku very well. | 14:52 | |
<librasteve> I share your thoughts about the searchbox on docs.raku.org - a new version of the dos site is underway - please raise an issue here github.com/Raku/doc-website/issues to share your concern with the team | 15:06 | ||
<librasteve> my worry is that since raku has many very english words as operators - my, our, has, with and so on that any good search will need to be designed for raku. We really need some careful hand curation of the searchbox results that recognizes and priorotizes these. Anyway, please share back the link to your new issue here and we can all add our thoughts | 15:09 | ||
15:16
disbot9 joined
15:17
disbot left,
disbot9 is now known as disbot
|
|||
disbot | <nahita3882> old website seems to do better for search purposes; i wonder why/how they changed it | 15:58 | |
<nahita3882> this is new^ | |||
<nahita3882> cdn.discordapp.com/attachments/768...9aff1& | |||
<nahita3882> ^this is old | 15:59 | ||
<nahita3882> cdn.discordapp.com/attachments/768...e1774& | |||
<nahita3882> from 2023 | |||
16:09
icovnik left
16:15
jmcgnh left
16:17
icovnik joined
16:26
arkiuat left
16:28
arkiuat joined
16:30
jmcgnh joined
16:36
dakkar left
18:13
arkiuat left
18:15
arkiuat joined
18:29
arkiuat left
18:30
arkiuat joined
18:35
arkiuat left
|