Perl 6 language and compiler development | Logs at colabti.org/irclogger/irclogger_log/perl6-dev | For toolchain/installation stuff see #perl6-toolchain | For MoarVM see #moarvm
Set by Zoffix on 27 July 2018.
00:18 Deathfloof joined 00:23 Deathfloof left 00:45 sivoais left 00:48 sivoais joined
MasterDuke jnthn, timotimo: any suggestions for how to use nqp::radix_I in nqp itself? right around here github.com/perl6/nqp/blob/master/s...r.nqp#L91, in the new Int() method i've added in my branch 01:48
timotimo unsure. radix_I is for big integer types, and the only thing in the entirety of nqp that does something with _I ops is src/HLL/sprintf.nqp 02:00
MasterDuke but it doesn't actually use radix_I 02:01
it's used in some of the tests, which is where i got that `nqp::knowhow().new_type(:repr("P6bigint"))`
m: "12000000000000000000000000000000000001" ~~ /\d+/; say $/.Int 02:02
camelia 12000000000000000000000000000000000001
MasterDuke this is one of the things that's breaking after a new change i made on my branch
calling nqp::intify on "12000000000000000000000000000000000001" gives 9223372036854775807 02:03
and calling nqp::radix() gives 7461185575651901440
timotimo m: say 9223372036854775807.base(16) 02:09
camelia 7FFFFFFFFFFFFFFF
timotimo m: say 7461185575651901440.base(16) 02:10
camelia 678B74C000000000
timotimo dunno why that happens, but i'm sure there's some reason 02:14
but i'm not sure how nqp's match role should support .Int on very big numbers
MasterDuke m: use nqp; say(nqp::from_I("12000000000000000000000000000000000001", Int)) 02:15
camelia ===SORRY!===
No registered operation handler for 'from_I'
MasterDuke m: use nqp; say(nqp::fromstr_I("12000000000000000000000000000000000001", Int))
camelia 12000000000000000000000000000000000001
timotimo if the method Int would take the type as an argument, that'd work totally fine 02:16
MasterDuke github.com/perl6/roast/blob/master...ject.t#L30
timotimo is NQPMatchRole actually what does that? 02:17
surely there's some class it gets mixed into inside rakudo
and that can just .Int the .Str
MasterDuke Capture
which doesn't have its own .Int
oops, github.com/rakudo/rakudo/blob/mast...tch.pm6#L1 02:19
timotimo OK, would it work to just give that an Int method? 02:20
MasterDuke trying that now
oh, i just tried by removing Int() and Num() from NQPMatchRole, but i think those do get called during the nqp compile... 02:22
oh, or what about just doing `method Int() { self.Str.Int }` in NQPMatchRole? 02:28
timotimo i'm not sure if the .Str will already be hllized to perl6 after the .self.Str call 02:34
i.e. it might give a nqp-style string
and that wouldn't know how to make a perl6 Int either
i'm going to sleep. good luck! 02:36
i'm not sure if you can check if an hll is registered or not, otherwise you could try nqp::hllizefor on the Str to turn it into a perl6 string which *does* have an .Int method that can do it right
m: use nqp; nqp::hllizefor(1, "florb")
camelia ( no output )
timotimo m: use nqp; nqp::hllizefor("florb", 1)
camelia This type cannot unbox to a native string: P6opaque, Int
in block <unit> at <tmp> line 1
timotimo it'll just silently fail? 02:37
m: use nqp; nqp::hllizefor(1, "florb").DUMP.say
camelia 1
timotimo m: use nqp; nqp::hllizefor("bleep", "florb").DUMP.say
camelia "bleep"
timotimo *shruuuuuug*, you can potentially hllizefor it with perl6 in the Int method there and call .Int on the result. if it results in a rakudo Str it'll be cool, otherwise it'll just give bogus numbers i guess? 02:38
good night/day!
MasterDuke thanks, i'll give that a shot. later... 02:42
timotimo++, that worked 04:15
05:33 Ven`` joined 05:42 Ven`` left 08:27 Ven`` joined, Ven`` left
lizmat Files=1267, Tests=88061, 410 wallclock secs (21.44 usr 6.65 sys + 2952.91 cusr 231.52 csys = 3212.52 CPU) 09:38
09:40 yoleaux left 09:56 tyil left 09:57 tyil joined 10:31 scovit left
[TuxCM] test is running, but it might be higher than normal: system update pending reboot and I am working at home 10:58
Rakudo version 2018.12-306-gf56e0756f - MoarVM version 2018.12-109-g80d86d590
csv-ip5xs0.744 - 0.809
csv-ip5xs-206.217 - 6.748
csv-parser22.246 - 22.730
csv-test-xs-200.440 - 0.480
test7.828 - 8.232
test-t1.932 - 2.379
test-t --race0.873 - 0.883
test-t-2033.110 - 33.116
test-t-20 --race10.078 - 11.619
11:14
12:26 j3nnn1 joined 12:55 lucasb joined 13:12 AlexDani` joined 13:14 AlexDaniel left 13:19 AlexDani` is now known as AlexDaniel 13:25 tyil left 13:37 tyil joined, llfourn_ left, tyil is now known as Guest91383
Geth rakudo: lizmat self-assigned Adding/subtracting negative values to/from Date github.com/rakudo/rakudo/issues/2707
91ca827523 | (Elizabeth Mattijsen)++ | src/core/Date.pm6

Fixes R#2707.
13:39
synopsebot R#2707 [open]: github.com/rakudo/rakudo/issues/2707 [regression][⚠ blocker ⚠] Adding/subtracting negative values to/from Date
Geth roast: 67d9ff0294 | (Elizabeth Mattijsen)++ | S32-temporal/Date.t
Add tests for R#2707
13:50
synopsebot R#2707 [open]: github.com/rakudo/rakudo/issues/2707 [regression][⚠ blocker ⚠] Adding/subtracting negative values to/from Date
13:51 llfourn joined
AlexDaniel lizmat++ 13:51
13:57 Guest91383 left
Geth roast: 2a41c2c031 | (Elizabeth Mattijsen)++ | S32-temporal/Date.t
Additional test for R#2707
14:06
synopsebot R#2707 [closed]: github.com/rakudo/rakudo/issues/2707 [regression][⚠ blocker ⚠] Adding/subtracting negative values to/from Date
14:09 tyilanmenyn joined 14:12 tyilanmenyn is now known as tyil
Geth nqp: 19abefc15c | (Aleks-Daniel Jakimenko-Aleksejev)++ | tools/build/MOAR_REVISION
[MoarVM Bump] 04982f6e9 Fix thinko in merge of […]

MoarVM bump brought: github.com/MoarVM/MoarVM/compare/2...g04982f6e9
14:16
¦ nqp: version bump brought these changes: github.com/MoarVM/MoarVM/compare/2...g04982f6e9 14:17
rakudo: 5b62bb1b58 | (Aleks-Daniel Jakimenko-Aleksejev)++ | tools/build/NQP_REVISION
[NQP Bump] 19abefc15 [MoarVM Bump] 04982f6e9 F […]

NQP bump brought: github.com/perl6/nqp/compare/2018....g19abefc15
¦ rakudo: version bump brought these changes: github.com/perl6/nqp/compare/2018....g19abefc15
16:45 MasterDuke left
vrurg jnthn: sorry, but may ask for a bit more of your attention for ticket 2698? 17:07
20:05 lucasb left
jnthn vrurg: Sorry, my bits of Perl 6 time today went on hunting release blockers, and didn't have any free moments to look at it this evening; will try tomorrow 22:20