🦋 Welcome to the IRC channel of the core developers of the Raku Programming Language (raku.org #rakulang). This channel is logged for the purpose of history keeping about its development | evalbot usage: 'm: say 3;' or /msg camelia m: ... | log inspection situation still under development | For MoarVM see #moarvm
Set by lizmat on 22 May 2021.
Geth nqp: usev6++ created pull request #746:
[JVM] Deal with invalid input in decodertakeline
07:16
dogbert11 m: sub a (int $a) { Blob[int].new($a) }; say a 12; 13:15
camelia Cannot unbox a type object (NQPMu) to int.
in block <unit> at <tmp> line 1
dogbert11 isn't this a bit odd?
timo c: 2021.6 sub a (int $a) { Blob[int].new($a) }; say a 12; 13:19
dogbert11 commitable seems a bit tired 13:20
dogbert11 c: 2021.6 sub a (int $a) { Blob[int].new($a) }; say a 12; 14:49
committable6 dogbert11, ¦2021.6: «Cannot find this revision (did you mean “2021.06”?)» 14:50
dogbert11 c: 2021.06 sub a (int $a) { Blob[int].new($a) }; say a 12;
committable6 dogbert11, ¦2021.06: «Cannot unbox a type object (NQPMu) to int.␤ in block <unit> at /tmp/qUmi0QPUxs line 1␤␤ «exit code = 1»»
dogbert11 c: 2020.05 sub a (int $a) { Blob[int].new($a) }; say a 12;
committable6 dogbert11, ¦2020.05: «Blob[int]:0x<0C>␤»
MasterDuke i think it's because (u)int doesn't have a nativesize, but the explicitly sized native do 15:17
yeah. it's dying here github.com/rakudo/rakudo/blob/mast...f.pm6#L354 15:18
which makes sense given the bisect github.com/rakudo/rakudo/commit/f9...2dea43R350 15:20
dogbert11 MasterDuke: so this is to be expected then? 16:00
MasterDuke i don't think so 16:06
Geth rakudo: MasterDuke17++ created pull request #4605:
Fix gisting a Buf or Blob parameterized with an unsized type
17:24
Geth rakudo: 62c0464651 | (Daniel Green)++ | src/core.c/Buf.pm6
Fix gisting Buf parameterized with an unsized type

The unsized natives don't have their $!nativesize set, so just assume 64-bit for them.
18:21
rakudo: 58f536635b | MasterDuke17++ (committed using GitHub Web editor) | src/core.c/Buf.pm6
Merge pull request #4605 from MasterDuke17/fix_trying_to_gist_a_buf_parameterized_with_unsized_type
dogbert17 ah, MasterDuke++ 19:31
m: use nqp; say nqp::istype(Cool, Cool) 19:38
camelia 1
dogbert17 m: use nqp; say nqp::istype(Cool:U, Cool:U)
camelia 1
dogbert17 m: use nqp; say nqp::istype(Cool:D, Cool:D)
camelia 0
MasterDuke seems a little surprising 19:47
dogbert17 perhaps there's a reasonable explanation 19:55
Geth rakudo/Str.substr-between: 827bb9aeb6 | (Elizabeth Mattijsen)++ | 2 files
Add a Str.substr-between method

Returns the substring that is between the two given strings in a string. Effectively a shortcut to:
   with $string.match(/ '$before' <( .*? )> '$after') {
   .Str
... (6 more lines)
19:58
rakudo: lizmat++ created pull request #4606:
Add a Str.substr-between method
19:59
rakudo: MasterDuke17++ created pull request #4607:
Use better default for nativesize in Buf/Blob gist
20:02
rakudo/Str.substr-before: 4c08f455b4 | (Elizabeth Mattijsen)++ | 2 files
Add a Str.substr-before method.

Returns the substring that is before a given string in a string. Effectively a shortcut to:
   with $string.match(/ .*? )> '$before') {
   .Str
... (6 more lines)
20:23
rakudo: lizmat++ created pull request #4608:
Add a Str.substr-before method.
20:24
rakudo/Str.substr-after: 5e1139c3cb | (Elizabeth Mattijsen)++ | 2 files
Add a Str.substr-after method

Returns the substring that is after a given string in a string. Effectively a shortcut to:
   with $string.match(/ '$after' <( .* /) {
   .Str
... (6 more lines)
20:41
rakudo: lizmat++ created pull request #4609:
Add a Str.substr-after method
ugexe im not sure im convinced that is something that needs huffmanizing via spec 21:04
lizmat that's why they're pull requests :-) 21:05
Geth rakudo/Str.rinse: 2809fcc361 | (Elizabeth Mattijsen)++ | 2 files
Remove all occurences of given string from the string

Returns the substring that cleansed of the given string. Effectively a shortcut to:
   $string.subst($dirt, :global);
but a bit faster. At least this may be more semantically pleasing.
21:09
rakudo: lizmat++ created pull request #4610:
Remove all occurences of given string from the string
21:10
lizmat and that concludes my PR stream for today :-) and this month :) 21:11
Geth rakudo: e99e27426c | (Daniel Green)++ | src/core.c/Buf.pm6
Use better default for nativesize in Buf/Blob gist

Instead of just picking 64 bits if the type doen't have a populated nativesize, use the size that the Rakudo compiler was built with.
  Kaiepi++
21:22
rakudo: 580b3ba790 | MasterDuke17++ (committed using GitHub Web editor) | src/core.c/Buf.pm6
Merge pull request #4607 from MasterDuke17/use_better_default_for_nativesize_in_buf_gist