🦋 Welcome to the MAIN() IRC channel of the Raku Programming Language (raku.org). 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 6 September 2022.
00:00 reportable6 left 00:03 reportable6 joined 00:37 razetime joined 01:07 razetime left 01:08 razetime joined 01:58 kaskal left 02:03 kaskal joined 03:03 linkable6 left, bloatable6 left, squashable6 left, tellable6 left, nativecallable6 left, notable6 left, unicodable6 left, quotable6 left, evalable6 left, coverable6 left, greppable6 left, benchable6 left, sourceable6 left, releasable6 left, statisfiable6 left, committable6 left, bisectable6 left, shareable6 left, reportable6 left, greppable6 joined, statisfiable6 joined, nativecallable6 joined, unicodable6 joined 03:04 benchable6 joined, coverable6 joined, releasable6 joined, bisectable6 joined, frost25 joined 03:05 squashable6 joined, sourceable6 joined, bloatable6 joined, shareable6 joined, reportable6 joined, quotable6 joined 03:06 linkable6 joined, frost25 left, frost25 joined, frost25 is now known as frost, notable6 joined, committable6 joined, tellable6 joined, evalable6 joined 03:29 swaggboi left 03:40 frost left 04:40 committable6 left, statisfiable6 left, quotable6 left, sourceable6 left, bisectable6 left, evalable6 left, benchable6 left, squashable6 left, releasable6 left, tellable6 left, nativecallable6 left, bloatable6 left, greppable6 left, reportable6 left, notable6 left, linkable6 left, coverable6 left, unicodable6 left, shareable6 left 04:41 reportable6 joined, benchable6 joined, committable6 joined, evalable6 joined, bisectable6 joined 04:42 tellable6 joined, sourceable6 joined, bloatable6 joined, squashable6 joined, coverable6 joined, statisfiable6 joined 04:43 linkable6 joined, releasable6 joined, notable6 joined, nativecallable6 joined, unicodable6 joined, shareable6 joined, greppable6 joined, quotable6 joined 05:28 Xliff joined
Xliff \o 05:28
Hello night owls... here's a question for you:
What's the best method to determine if the callable you are using is being run from a class?
05:35 kst left 05:40 jpn joined
moritz what do you mean? 05:41
code shouldn't care where it's being called from, that hurts composability 05:42
xinming nemokosch, Yea, with space, it'll work, So is |(<<blabla $bleble>>) What I mean is, I think we should make |<...> work as expected as |<<...>> , So things can be consistent. 05:43
|<...> work as expect, But |<<...>> doesn't cause inconsistency, Which make me feel strange.
05:53 siavash joined 05:59 jpn left 06:00 reportable6 left 06:02 reportable6 joined 06:03 abraxxa joined 06:16 sena_kun joined
Xliff moritz: It does if your use case cares about where the code is being run. 06:23
It has nothing to do with composability if the actions occur at runtime so I do not believe that is an issue.
moritz: So if you have an answer to my issue, I would appreciate if you could share it. :) 06:24
06:30 jpn joined
moritz Xliff: I still haven't fully understood the question. Do you want to know if the caller is a class body, at compile time? 06:39
Xliff No. If the caller is in a class body at RUN time. 06:40
moritz but the class body isn't executed at run time
class X { foo() } # foo is called at compile time, no? 06:41
06:52 sena_kun left
Xliff No, but methods are. 07:09
So I want to know if a method is being called by another method or a sub.
So... so far I have this: callframe(0).code; 07:10
And if its a sub, callframe(0).code.package === GLOBAL
That's my progress in the time since I asked the question. And I think that's going to be it for me, tonight.
lizmat m: class X { say "foo" }
camelia foo
Xliff \o lizmat! 07:11
lizmat m: class X { say "foo" }; BEGIN "before"
camelia foo
lizmat m: class X { say "foo" }; BEGIN say "before"
camelia before
foo
lizmat m: class X { say "foo" }; INIT say "before"
camelia before
foo
lizmat the class body is run as part of the mainline, so *after* INIT
moritz ^^
m: say "running"; class X { say "foo" }; INIT say "before" 07:12
camelia before
running
foo
Xliff moritz: If you have anything further to add, just drop it with a "Xliff:" prefix or a .tell and I'll get it. Hopefully I'll write a blog post about what I am trying to do if I'm successful.
moritz ok, it turns out my mental model of raku is quite of sync with reality 07:14
Geth planet.raku.org: 39c6492600 | (Elizabeth Mattijsen)++ | perlanetrc
Hopefully finally fix feed of Anton and Steve
07:18
07:21 jpn left
Geth planet.raku.org: d5fd3e7a1c | (Elizabeth Mattijsen)++ | perlanetrc
Perhaps wordpress URLs need a trailing slash?
07:22
07:23 jpn joined 07:48 siavash left 07:49 siavash joined 07:53 Sgeo left 07:57 dakkar joined 08:13 euandreh left 08:14 teatwo joined 08:17 euandreh joined 08:18 teatime left
lizmat ah, that was the trick 08:22
08:23 razetime left 08:42 razetime joined
nemokosch xinming: a way to achieve consistency could be to ban |<...> as well, no joke 08:50
That would be easier to ban because it parses 08:51
08:51 jpn left
RE: raku.org site - I replaced the "fetch blog posts" script with a Raku script, except for "xml_escape" which I'm not sure what it was about and maybe it's not even necessary 08:57
Previously I think the installation of dependencies was ad-hoc, this is definitely an infra question how the dependencies should be resolved 08:58
The whole thing could be turned into a distribution, of course 08:59
There is also a process.pl referenced that possibly doesn't even exist 09:00
09:04 Tirifto left 09:09 jpn joined 09:12 Tirifto joined 09:15 teatwo left 09:16 teatime joined 09:40 teatime left, teatime joined 09:54 razetime left 10:54 reportable6 left, bisectable6 left, unicodable6 left, tellable6 left, linkable6 left, committable6 left, squashable6 left, greppable6 left, quotable6 left, releasable6 left, notable6 left, benchable6 left, sourceable6 left, nativecallable6 left, statisfiable6 left, bloatable6 left, shareable6 left, evalable6 left, coverable6 left, evalable6 joined, sourceable6 joined, committable6 joined, tellable6 joined 10:55 shareable6 joined, benchable6 joined, bloatable6 joined, coverable6 joined, statisfiable6 joined 10:56 reportable6 joined, unicodable6 joined, squashable6 joined, notable6 joined, quotable6 joined, releasable6 joined, nativecallable6 joined, linkable6 joined, greppable6 joined 10:57 bisectable6 joined 11:20 ab5tract left 11:27 jpn left, jpn joined 11:43 andinus left 11:45 andinus joined 12:00 jpn left, reportable6 left 12:01 reportable6 joined 12:02 ab5tract joined 12:14 euandreh left 12:16 ab5tract left
lizmat and yet another Rakudo Weekly News hits the Net: rakudoweekly.blog/2023/08/07/2023-...doc-gamma/ 12:17
12:26 euandreh joined
leont lizmat++ 12:26
12:27 jpn joined 12:39 jpn left 13:14 merp left 13:15 euandreh left, merp joined 13:16 euandreh joined 13:28 jpn joined 13:33 jpn left 13:42 jpn joined 14:06 siavash left 15:22 vamc joined 15:42 bigdata joined 15:45 vamc left
vendethiel lizmat++ 15:46
librasteve I have been fed 15:49
tx xx 2! 15:52
16:12 vamc joined 16:19 vamc left 16:33 abraxxa left 16:44 dakkar left 17:20 rf joined 17:37 jpn left 17:50 MoC joined 18:00 reportable6 left 18:03 reportable6 joined 18:24 MoC left, MoC joined 18:47 abraxxa-home joined 18:53 MoC left 18:54 MoC joined
xinming m: pastebin.com/fCA9kg21 18:55
camelia ===SORRY!=== Error while compiling <tmp>
Confused
at <tmp>:1
------> https:⏏//pastebin.com/fCA9kg21
expecting any of:
colon pair
xinming pastebin.com/fCA9kg21 <-- Hi, is it possible to remove the extra $channel-job-notifier in this script please? The script is running fine, I'm using it ATM. 18:56
But the extra $channel-job-notifier doesn't give me the feeling of "perfect" sollution. 18:57
So asking here for better solutions. 18:58
18:58 abraxxa-home left
xinming It makes me unnatural, So I don't feel ok with the script, Even it is working fine for me. 18:58
18:59 rf left 19:00 abraxxa-home joined
xinming hmm, Ignore me, I just dig from my old codes, and found `my Semaphore $semaphore .= new(3)` 19:10
19:20 abraxxa-home left 19:22 swaggboi joined 19:57 MoC left 19:59 jpn joined 20:04 jpn left 20:13 jpn joined 20:14 teatime left, teatime joined 20:17 rf joined 20:21 jpn left 20:24 swaggboi left 20:27 ab5tract joined 20:51 drakonis joined
drakonis buttondown.email/hillelwayne/archi...-gremlins/ 20:51
i am not the author
rf Where does this person get gremlins from? Besides that I think they liked Raku? 20:59
drakonis en.wikipedia.org/wiki/Gremlin 21:01
21:07 jpn joined
coleman They are mischievous, magical critters 21:11
21:12 rf left, rf joined
nemokosch Gremlins, as in the movie with the funny soundtrack? 21:16
> The documentation is really poor and the heavy reliance on symbols makes it hard to search for things oof 21:33
To be honest, I still think there are some mainstream languages that clearly have worse documentations: Typescript for sure and PHP can also be reasoned 21:34
and the Typescript documentation has the same problem as the Raku documentation, except like you don't even see the effort to define everything that exists in the language 21:35
On the other hand, if I think how much I learned from the documentation, compared to asking things on IRC, reading Github issues, experimenting with code and looking up Rakudo sources, weeell 21:36
especially since the search bar is, let's face it, downright broken 21:37
tonyo the biggest lift i can see is if the docs linked to the implementation in the source, a lot of times i read the docs and then end up having to grep the source for the implementation so i can figure out exactly how to use it the function 21:38
a tool like `go doc` would also be big (for me) but that audience is likely small 21:39
nemokosch I don't like this whole "edging" with the implementation-neutrality, it's getting really tiresome 21:42
the whole language versioning is very much subject to "we are not going to change anything that might be depended on, only horizontally extend Rakudo" attitude 21:43
but I guess if this narrative survived to this day, let's wait until RakuAST at least 21:44
anyway, even if it's announced tomorrow that Rakudo is the specs from now on, mapping concepts to their Rakudo source would be either always incomplete or a tremendous effort when done serously 21:46
22:06 guifa joined 22:25 Xliff left
antononcube I know how to get Gherkins with Raku. 22:40
22:43 jpn left 22:46 Sgeo joined 23:19 kjp left 23:22 kjp joined 23:31 tankf33der joined
tonyo what do you mean by edging with the implementation neutrality? 23:38