🦋 Welcome to the former MAIN() IRC channel of the Raku Programming Language (raku.org). This channel has moved to Libera (irc.libera.chat #raku)
Set by lizmat on 23 May 2021.
lizmat . 08:44
tellable6 2021-08-03T21:51:53Z #raku-dev <vrurg> lizmat what was the reason to make Scalar.WHICH work against $!descriptor in 329adf8c239c2325d6bcb6c5949501dac52ee132? Why self isn't acceptable?
melezhik weekly: news.ycombinator.com/item?id=28064404 18:30
notable6 melezhik, Noted! (weekly)
melezhik I've dropped an asccinema if someone wants to see a real example of work - asciinema.org/a/428954 19:41
dwarring m: say Int ~~ Numeric; say uint ~~ Int; say uint ~~ Numeric; 22:26
camelia True
True
False
tellable6 2021-01-23T15:21:09Z #raku-dev <Xliff> dwarring Does LibXML expose xmlNsPtr to Raku? If so, what compunit do I need to load to get it? Thanks.
moon-child dwarring: yeah, there are some weird interactions with native types and the class hierarchy. Not sure if it's intentional 22:28
dwarring bugworthy?
Hadn't noticed that before, I'll put in a ticket 22:31
moon-child wait...what? 22:33
oh 22:34
nevermind, I misread the source
dwarring .tell Xliff 'use LibXML::Raw imports xmlNs as class native xmlNs
tellable6 dwarring, I'll pass your message to Xliff
moon-child more and more mysteries... 22:37
m: say Numeric ~~ Cool; say uint ~~ Cool; say uint ~~ Numeric
camelia True
True
False
dwarring .tell Xliff constructor is xmlNs.new: :$URI, :$prefix 22:38
tellable6 dwarring, I'll pass your message to Xliff
dwarring ^^ doesn't seem logical 22:39
moon-child bootstrap.c/BOOTSTRAP.nqp:4051 'Roles pretend to be narrower than certain types for the purpose of type checking' 22:40
following is a hash containing Numeric and Real, but not Cool or Int 22:41
and, indeed, uint !~~ Real (even thought uint ~~ Int ~~ Real). So I would guess that's related 22:42
dwarring ahh, so intentional 22:44
moon-child I think it's an unintended consequence of something else 22:45
dwarring r: say uint.^mro 22:52
camelia Can't open perl script "/home/camelia/rakudo-j-inst/bin/eval-client.pl": No such file or directory
((uint) (Int) (Cool) (Any) (Mu))
moon-child m: say Int.^mro 22:55
camelia ((Int) (Cool) (Any) (Mu))
vrurg m: say int.HOW.^name; 23:00
camelia Perl6::Metamodel::NativeHOW
dwarring raised ticked github.com/rakudo/rakudo/issues/4485 23:02
moon-child m: say "\v" 23:11
camelia 5===SORRY!5=== Error while compiling <tmp>
Unrecognized backslash sequence: '\v'
at <tmp>:1
------> 3say "\7⏏5v"
expecting any of:
argument list
double quotes
term
moon-child why not?
mykhal maybe because it has ambiguous regex meaning, like e.g. \s, unlike e.g. \t 23:51