Skip to content

Instantly share code, notes, and snippets.

Avatar
☺️
Having fun on #raku on Libera.chat

Whateverable bots Whateverable

☺️
Having fun on #raku on Libera.chat
View GitHub Profile
View result
2023-02-02T06:59:34Z #raku-dev <nine> ab5tract: The Cool type is derived from Any, and contains all the methods that are "cool" (as in, "I'm cool with an argument of that type."). More specifically, these are the methods that are culturally universal, insofar as the typical user will expect the name of the method to imply conversion to a particular built-in type that understands the method in question. For instance, $x.abs implies conversion
View result
2023-02-02T07:11:12Z #raku-dev <nine> ab5tract: "simple" lexicals will be auto generated for you. By default they are considered is-simple-lexical-declaration if they are is-lexical, i.e. if their scope is my or has. Both conditions are overridable. In that case your IMPL-QAST-DECL will be called by the scope's IMPL-QAST-DECLS. If you need more complicated logic, you need to actively call add-generated-lexical-declaration on the scope at an
View result
2023-01-28T19:11:48Z #raku-dev <bartolin> vrurg It seems to happen from at least two places: https://github.com/rakudo/rakudo/blob/c9e391f08c/src/Perl6/Compiler.nqp#L43 and https://github.com/rakudo/rakudo/blob/c9e391f08c/src/Perl6/World.nqp#L619 Do you have a quick idea how the leakage of BOOTStr could be avoided in a clean way?
View result
2023-01-28T19:12:07Z #raku-dev <bartolin> vrurg Another thing I noticed during debugging was that Version.new was once called with "6.e.PREVIEW" and on other occasions with "3.PREVIEW". I made a short gist to show what I mean (this is on MoarVM): https://gist.github.com/usev6/559c96ddc10b5bb81e58fab0aa20ff65
View result
2023-01-28T19:11:29Z #raku-dev <bartolin> vrurg I tried to debug a new problem with the jvm backend: Ít explodes badly if "use v6.e.PREVIEW" is used. If I'm not mistaken, this happens, because Version.new is called with a BOOTStr -- and on the JVM backend coercion to Str fails.
View query
we could use some volunteers to review the new doc site and report bugs. (not in content, but in the new site itself). join us in #raku-doc if you'd like to try it out and report.
View query
old=2020.02 my $foo = $*FOO; say PROCESS::<$FOO>:exists
View query
my %h1{Any} = :foo, :bar; dd %(%h1,)
View query
my %h1{Any} = :foo, :bar; dd %(%h1,)