»ö« Welcome to Perl 6! | perl6.org/ | evalbot usage: 'perl6: say 3;' or rakudo:, niecza:, std:, or /msg p6eval perl6: ... | irclog: irc.perl6.org/ | UTF-8 is our friend!
Set by sorear on 4 February 2011.
00:00 geekosaur left, eviltwin_b is now known as geekosaur 00:02 mj41 left 00:08 pmurias left 00:10 ksi left 00:13 eviltwin_b joined 00:14 geekosaur left, molaf left 00:17 tokuhirom joined 00:18 envi_ joined 00:21 tokuhirom left 00:25 allbery_b joined, allbery_b is now known as geekosaur 00:26 dorlamm joined, dorlamm left 00:27 tty234 left, molaf joined 00:28 eviltwin_b left 00:31 eviltwin_b joined, geekosaur left 00:32 clairvy left, clairvy joined 00:35 icovnik joined, envi_ left 00:36 clairvy left 00:46 allbery_b joined, allbery_b is now known as geekosaur 00:48 allbery_b joined 00:49 geekosaur left, eviltwin_b left 00:50 replore_ joined 00:52 eviltwin_b joined, eviltwin_b is now known as geekosaur 00:54 allbery_b left 00:55 smash left 01:00 eviltwin_b joined, geekosaur left 01:02 linguini left, linguini joined 01:09 allbery_b joined 01:10 allbery_b is now known as geekosaur 01:11 eviltwin_b left 01:15 benabik joined 01:22 worr joined 01:23 eviltwin_b joined 01:24 geekosaur left 01:27 simcop2387 left 01:28 simcop2387 joined 01:40 icovnik left 01:44 eviltwin_b left 01:49 Alias joined 01:51 hypolin joined 01:53 geekosaur joined 01:57 worr left 02:05 linguini left 02:08 ribasushi left 02:09 eviltwin_b joined, geekosaur left 02:10 eviltwin_b is now known as geekosaur 02:15 geekosaur left, eviltwin_b joined 02:16 eviltwin_b is now known as geekosaur 02:19 packetknife left 02:22 lichtkind left 02:23 geekosaur left, eviltwin_b joined 02:24 eviltwin_b left 02:25 geekosaur joined 02:29 Guest67404 left 02:32 abercrombie joined
dalek odel: fe6b2b0 | diakopter++ | lua/runtime/ (3 files):
minor efficiency improvements
02:33
odel: 98852e3 | diakopter++ | lua/runtime/Try.lua:
_
02:39
02:40 geekosaur left, eviltwin_b joined 02:41 eviltwin_b is now known as geekosaur 02:48 ribasushi joined 02:50 djanatyn left 02:51 Tene left 02:52 djanatyn joined 02:53 Tene joined, Tene left, Tene joined 02:54 ribasushi_ joined 02:55 Trashlord left, ribasushi left, ribasushi_ is now known as ribasushi 02:59 Trashlord joined 03:00 geekosaur left 03:01 eviltwin_b joined, eviltwin_b is now known as geekosaur 03:03 eviltwin_b joined, geekosaur left, eviltwin_b is now known as geekosaur 03:10 geekosaur left 03:19 geekosaur joined, cognominal_ left 03:21 satyavvd joined 03:23 cognominal joined 03:24 cognominal left, cognominal joined 03:32 geekosaur left, eviltwin_b joined, eviltwin_b is now known as geekosaur 03:33 cooper left 03:35 wolfman2000 joined 03:37 geekosaur left 03:38 geekosaur joined 03:41 geekosaur left, eviltwin_b joined, eviltwin_b is now known as geekosaur 03:45 cooper joined 03:47 geekosaur left, eviltwin_b joined 03:48 eviltwin_b is now known as geekosaur 03:53 geekosaur left, eviltwin_b joined, eviltwin_b is now known as geekosaur 03:54 clairvy joined 04:03 clairvy left, clairvy joined 04:07 clairvy left 04:08 abercrombie left 04:17 geekosaur left, eviltwin_b joined, eviltwin_b is now known as geekosaur 04:22 geekosaur left, eviltwin_b joined 04:23 eviltwin_b is now known as geekosaur 04:29 mishin joined
mishin Hi perl 6, i try Gabor presentation www.youtube.com/watch?v=2M3f3uAqMWg...re=related abot perl 6 irc 04:32
rakudo:say 44*33 04:33
perl6: say 33*22
p6eval pugs b927740, rakudo 198513, niecza v11-22-gbebf7a0: OUTPUT«726␤»
04:51 mkramer joined 04:52 mkramer left 05:07 Trashlord left 05:08 daniel-s joined, Trashlord joined 05:11 mkramer joined 05:13 orafu left, orafu joined 05:14 geekosaur left, eviltwin_b joined, eviltwin_b is now known as geekosaur 05:17 mishin left 05:19 geekosaur left, eviltwin_b joined 05:20 eviltwin_b is now known as geekosaur 05:21 kaleem joined 05:22 geekosaur left, clairvy joined, geekosaur joined
japhb .u PLUS MINUS 05:23
phenny U+00B1 PLUS-MINUS SIGN (±)
05:26 Trashlord left, Trashlord joined 05:28 molaf left 05:33 kaleem left 05:34 kaleem joined 05:35 kaleem left, kaleem joined 05:41 kaleem left 05:42 kaleem joined, kaleem left, kaleem joined
diakopter . 05:43
sorear good * #perl6 05:45
diakopter o/
05:46 Vlavv` left 05:47 geekosaur left 05:51 geekosaur joined 06:00 wk left 06:01 Trashlord left, Trashlord joined
moritz \o 06:15
phenny moritz: 08 Nov 22:20Z <jnthn> tell moritz I created the bigint branch in Rakudo. It needs the bigint branch of NQP installed. It's ready to start switching to use the new ops and triaging.
06:17 geekosaur left, geekosaur joined 06:18 rhr left 06:22 cosimo left 06:26 eviltwin_b joined, geekosaur left, eviltwin_b is now known as geekosaur
sorear o/ moritz 06:26
06:28 Trashlord left, Trashlord joined 06:30 rhr joined 06:34 Trashlord left, Trashlord joined 06:36 koban joined, Reaganomicon left 06:47 Woodi left 06:59 geekosaur left 07:00 eviltwin_b joined 07:11 geekosaur joined 07:13 wtw joined
dalek p/bigint: 6426a56 | moritz++ | src/ (2 files):
nqp_bigint_bool op (checks != 0)
07:14
07:15 eviltwin_b left 07:17 geekosaur left, eviltwin_b joined, Woodi joined 07:24 Sarten-X left 07:32 Vlavv_ joined
jnthn moritz: Did the normal istrue not work? 07:38
morning, btw :)
moritz: I didn't expect us to need an nqp_bigint_bool style op 07:39
cognominal morning 07:40
07:40 Vlavv_ left
tadzik morning 07:40
jnthn for example, this already Just Works: 07:41
> if 0 { say "lol" }
Nil
> if 1 { say "lol" }
lol
07:42 wk joined
tadzik lol 07:45
07:49 mishin joined, Vlavv_ joined
jnthn commute time, bbs 07:51
07:54 geekosaur joined
moritz jnthn: it unboxes to int, which might fail when an Int is too big to unbox losslessly into an int 07:55
I mean, the bool test might fail
07:55 mberends joined 07:56 geekosaur left 07:57 allbery_b joined, eviltwin_b left 08:07 alim joined 08:15 carlin joined 08:17 simcop2387 left, simcop2387 joined 08:30 geekosaur joined 08:32 geekosaur left 08:33 geekosaur joined, allbery_b left
moritz perl6: say 2 ** 20 08:39
p6eval pugs b927740, rakudo 198513, niecza v11-22-gbebf7a0: OUTPUT«1048576␤»
08:39 geekosaur left 08:40 mj41 joined
moritz perl6: say 2 ** 20 * 1.8 08:42
p6eval pugs b927740, rakudo 198513: OUTPUT«1887436.8␤»
..niecza v11-22-gbebf7a0: OUTPUT«9437184/5␤»
08:46 geekosaur joined, flight16 joined
moritz nqp: say(pir::lcm__Iii(50, 45)) 08:49
p6eval nqp: OUTPUT«error:imcc:syntax error, unexpected IREG, expecting '(' ('$I102')␤ in file '(file unknown)' line 40␤␤»
moritz nqp: say(pir::lcmd__Iii(50, 45))
p6eval nqp: OUTPUT«error:imcc:syntax error, unexpected IREG, expecting '(' ('$I102')␤ in file '(file unknown)' line 40␤␤»
dalek p/bigint: 1db0ea8 | moritz++ | src/ (2 files):
fix a few ops, moritz--
08:51
08:58 Vlavv_ left 08:59 risou_awy is now known as risou 09:08 flight16 left 09:19 eviltwin_b joined, geekosaur left 09:22 flussence left 09:25 flussence joined 09:29 mj41 left 09:35 dakkar joined 09:37 eviltwin_b left 09:43 mj41 joined 09:45 jrockway left, jrockway joined 09:46 geekosaur joined, envi_ joined 09:52 simcop2387 left 09:53 eviltwin_b joined, geekosaur left 09:55 simcop2387 joined 09:57 cognominal left 09:59 cognominal joined 10:02 hypolin left, Khisanth left 10:09 replore_ left 10:21 simcop2387 left 10:22 Khisanth joined, simcop2387 joined
dalek kudo/bigint: fb5b1b9 | moritz++ | / (2 files):
start to switch to bigint ops

This breaks spectest horribly, and I do not understand the failure mode It says "get_boxed_ref could not unbox for the given representation" in sub infix:<->, but when I test infix:<-> in isoluation, I cannot reproduce that failure mode
10:22
10:25 mishin left 10:28 dakkar left, dakkar joined 10:40 simcop2387 left
jnthn Wow. Took me a couple of hours to get from the door of $dayjob to my keyboard today :) 10:41
moritz: Oh. I bet the failure you're seeing is due to scalar containers not being removed first. 10:42
10:43 simcop2387 joined
moritz jnthn: that's what I thought first too, but I did write infix:<-> as nqp::sub_I(nqp::p6decont($a), nqp::p6decont($b)); 10:43
jnthn moritz: (too big to unbox losslessly) but 0 will always unbox to 0, and I assume everything else will unbox to non-zero even if it does overflow?
moritz: yeah, that should handle it 10:44
moritz I'm not sure what mp_get_int() does on overflow 10:45
jnthn guesses MAX_INT or so 10:47
Would have to check
10:47 eviltwin_b left
moritz oh 10:49
it bit-ors all digits
jnthn ok
So
moritz erm
no
jnthn It's never going to be zero
moritz stupid
res = DIGIT(a,i);
while (--i >= 0) {
res = (res << DIGIT_BIT) | DIGIT(a,i);
}
jnthn suspects moritz isn't stupid, but sometimes he doesn't quite C so well ;)
moritz DIGIT_BIT is about 60
jnthn ah 10:50
moritz so it shifts it, ignores overflow, and bit-ors the least significant digit to it
jnthn *nod*
moritz so, could be 0
jnthn yeah :/
Will have to ponder this a bit. But it needs to be some kinda upgrade to the boolification protocol 10:52
Rather than an op
moritz: curious, does it only fail for infix:<->? 10:53
(in the spectest)
Or was that just an example?
10:53 alvis left
moritz jnthn: that's how all the backtraces look like 10:54
seems to be triggered by a rather common operation
likely something in Test.pm
10:57 simcop2387 left
jnthn would be curious to see the full backtrace 10:58
10:58 alvis joined
moritz jnthn: gist.github.com/be33fed37436cab21d6c 10:59
10:59 simcop2387 joined
jnthn is_runtime? 10:59
moritz oh, is_runtime is part of the backtrace printer, I think
jnthn hmm, meta-fail
yeah
11:00 envi_ left
jnthn Does @array.end actually work? 11:00
moritz oh, because I'm stupid
running with --ll-exception shows that it's from postfix:<++> 11:01
and that contains nqp::add_I(nqp::p6decont($a), 1)
and since add_I is a nqp_bigint_add__PPP, it boxes 1 to a parrot Integer, I supose
and can't unbox it to bigint
jnthn brb, lunch 11:02
11:04 eviltwin_b joined 11:09 daxim joined, simcop2387 left 11:11 simcop2387 joined 11:12 icovnik joined 11:13 eviltwin_b left 11:17 geekosaur joined, ab5tract joined 11:21 Mowah_ joined 11:38 mberends left 11:48 alim left 11:56 simcop2387 left 11:59 simcop2387 joined 12:03 clairvy left, clairvy joined 12:04 satyavvd left 12:08 clairvy left, azatoth_work joined 12:09 azatoth_work left 12:10 mkramer left
jnthn back 12:11
moritz: I'm surprised if it's emitting a 1 there rather than the boxed object.
Would be worth checking the code to see... 12:13
12:14 Patterner left 12:16 Psyche^ joined, Psyche^ is now known as Patterner 12:20 geekosaur left 12:26 bluescreen10 joined 12:38 Mowah_ left 12:39 koban left, mkramer joined, mkramer left
shinobicl hi 12:47
12:48 envi_ joined 12:49 alim joined 12:50 envi_ left, envi_ joined 13:04 molaf joined 13:05 molaf left 13:11 geekosaur joined 13:16 geekosaur left, eviltwin_b joined 13:21 benabik left 13:22 alim left
dalek kudo/bigint: 88158ac | moritz++ | src/core/Int.pm:
a few fixes, still completely broken
13:23
13:23 kaleem_ joined 13:24 kaleem left 13:31 eviltwin_b left
jnthn moritz: Still the infix:<-> issue? 13:31
Those p6box_i should really not be needed...if they are, some code-gen thingy is busted. 13:33
Will investigate this evening, anyways.
13:35 geekosaur joined
moritz jnthn: gist.github.com/1351446 that's the current status 13:37
I've added a nqp::p6decont around the 'self' in Int.Bool (because I didn't know what else to try), no luck so far 13:38
maybe adding more diagnostics to the get_boxed_ref error would make things a bit clearer 13:39
jnthn well, self shouldn't ever be in a container though
moritz thought so, but wasn't sure
jnthn What does Int.Bool look like? 13:40
moritz multi method Bool(Int:D:) {
nqp::p6bool(nqp::bool_I(nqp::p6decont(self)));
}
thing is
$ ./perl6 -e 'say ?3'
Bool::True
works
jnthn say ?(my $x = 3) 13:41
?
moritz same
jnthn say 3.Bool ?
moritz also works
jnthn hm. wtf. :S
moritz it seems all the errors come from loading/using Test.pm
so it might be codegen thing
jnthn And...only in some cases? 13:42
Or use Test always fails?
moritz 'use Test;' fails
... if precompiled
otherwise it's dog slow, but at least 'use Test; plan 3' seems to work 13:43
jnthn oh!
It's only a pre-compilation bug, then?
moritz seems like
jnthn ah
OK, that's a really good hint. 13:44
13:45 arnsholt_ is now known as arnsholt
moritz I've now manually deleted the Test.pir dependency from Makefile and running a spectest 13:46
much less epic failure :-)
jnthn aha 13:47
moritz (so far only 2 subtests failig in S02-literals/radix.rakudo, no surprise here)
literal handling isn't updated to bigints yet
13:47 alim joined
jnthn yeah 13:47
moritz $ ./perl6 -e 'my $fac = 1; $fac *= $_ for 1..30; say $fac' 13:48
265252859812191058636308480000000
niecza: my $fac = 1; $fac *= $_ for 1..30; say $fac
p6eval niecza v11-22-gbebf7a0: OUTPUT«265252859812191058636308480000000␤»
moritz \o/
13:49 ruoso left, ruoso joined
fsergot hi #perl6 o/ 13:49
jnthn moritz: yay! 13:50
13:52 clairvy joined, clairvy left
[Coke] moritz: yay. 13:53
Does this need testing on windows ?
moritz [Coke]: it's not yet in a state where you can run 'make spectest' 13:54
13:55 fhelmberger left
[Coke] hokay. 13:55
moritz but when it is, we'll need the testing, yes 13:56
13:56 clairvy joined 13:59 clairvy left, Sarten-X joined
[Coke] if I checked out the branch in rakudo, would --gen-parrot DTRT? 14:00
moritz nope
hm, or maybe
[Coke] kicks off a regular windows build, it's been months. 14:01
14:01 clairvy joined
jnthn Not yet. 14:01
14:01 clairvy left 14:02 fsergot left, fsergot joined
moritz jnthn: I've bumped NQP_REVISION to something in the nqp/bigint branch 14:02
(in the rakudo/bigint branch)
so it should work after all
14:02 clairvy joined, benabik joined
jnthn moritz: ah, ok, I missed that :) 14:05
14:05 clairvy left
moritz (wasn't in a commit message, I think) 14:05
[Coke] jnthn: I can't build on windows. whoops. 14:06
14:06 clairvy joined
jnthn [Coke]: I do it every day ;) 14:07
14:07 clairvy left
jnthn [Coke]: What compiler? 14:07
What Perl?
14:07 clairvy joined
[Coke] VS 2010 express, AS perl. 14:07
dies in nqp.
jnthn Ah. :/
That's normally a winning combination.
[Coke] (ugh. and remaking after the failure in nqp remakes /everything/)
jnthn On bigint branch?
[Coke] jnthn: yes, I switched to it on your advice. ;) 14:08
jnthn: nope.
jnthn Really odd
Oh
14:08 clairvy left
[Coke] nom on rakudo. 14:08
jnthn How does it explode?
moritz what's the error?
[Coke] getting there. ;)
jnthn And is there an old libparrot.dll in your nqp directory?
[Coke] gist.github.com/1351532 14:09
14:09 clairvy joined
[Coke] nothing matching libparrot under nqp\ 14:10
I could probably stand to do a real clean of rakudo and try again.
jnthn [Coke]: Try
copy install\bin\libparrot.dll nqp
(from the Rakudo directory)
[Coke] jnthn: argh, too late. ;) 14:11
I'll let you know if it dies after a clean start.
14:11 clairvy left 14:12 clairvy joined
[Coke] arggggh. can't use raw --gen-parrot when you're going over an http proxy. 14:12
14:14 geekosaur left, clairvy left 14:15 geekosaur joined, clairvy joined, clairvy left 14:16 clairvy joined
dalek kudo/bigint: 513f055 | moritz++ | src/core/Int.pm:
switch more ops to bigint
14:17
14:17 clairvy left 14:18 clairvy joined
moritz nom: say (-3.6).Int 14:18
p6eval nom 198513: OUTPUT«-3␤»
moritz nom: say (-3.6).perl 14:19
p6eval nom 198513: OUTPUT«-18/5␤»
14:19 clairvy left
moritz nom: say (-18 div 5) 14:19
p6eval nom 198513: OUTPUT«-3␤»
14:19 clairvy joined
japhb Am I correct in assuming that nqp::substr(), because it produces a native string, creates a GCable, whereas nqp::ord(), because it produces a native int, does not? 14:21
14:21 clairvy left
jnthn japhb: yes 14:21
[Coke] jnthn: same failure on a clean build.
jnthn [Coke]: Try the copy I suggested
then nmake again in nqp directory 14:22
japhb jnthn, great, thanks.
14:22 clairvy joined
japhb sees a few places to trade off a couple nqp:: ops against a GCable, which feels like a net win 14:22
14:22 clairvy left, localhost left
japhb (of course, profiling will tell) 14:23
14:23 clairvy joined
jnthn :) 14:23
Creating less garbage is generally good :)
14:24 localhost joined, clairvy left
[Coke] jnthn: that did it. evil; nqp should be linking against the install dir. 14:25
14:25 sayu joined, clairvy joined
japhb jnthn, yeah, that was my thought. Especially because in these spots, the substring was only being used to compare against a single-character constant string, and then thrown away. 14:26
[Coke] jnthn++
14:26 geekosaur left, clairvy left, geekosaur joined 14:27 clairvy joined
[Coke] gist.github.com/1351578 # rakudo build failure 14:27
(making another copy of libparrot.dll...) 14:28
14:28 clairvy left, clairvy joined
jnthn japhb: Yeah, that's a bit of a waste 14:29
14:29 clairvy left 14:30 clairvy joined 14:34 kmwallio joined, clairvy left 14:35 clairvy joined 14:36 geekosaur left, clairvy left, clairvy joined
[Coke] opens a ticket on the libparrot copying. 14:38
14:38 clairvy left
[Coke] jnthn: are you getting spectest failures? 14:38
(and/or hanging tests?)
14:39 clairvy joined
jnthn [Coke]: No hangs on 64 bit. On 32 bit, yes... 14:39
14:39 clairvy left
jnthn [Coke]: Thus the bigint work ;) 14:39
14:39 geekosaur joined 14:40 clairvy joined, clairvy left 14:41 clairvy joined 14:46 overrosy left, clairvy left 14:47 clairvy joined, fsergot left, fsergot joined 14:48 overrosy joined 14:49 eviltwin_b joined, geekosaur left, clairvy left, clairvy joined 14:50 fhelmberger joined 14:58 bluescreen10 left 14:59 clairvy left 15:00 clairvy joined 15:04 clairvy left 15:10 clairvy joined 15:15 pmurias joined
pmurias awwaiid: hi 15:15
15:15 clairvy left, kfo_ joined, geekosaur joined
awwaiid hiya 15:16
I pulled your change last night and pushed up a new release :)
pmurias thanks 15:17
15:18 eviltwin_b left, sayu left
pmurias what namespace should the GDB backend go into Devel::ebug::GDB or Devel::ebug::Backend::GDB? 15:19
15:19 geekosaur left, eviltwin_b joined, kfo left 15:22 clairvy joined
awwaiid Devel::ebug::Backend::GDB 15:23
tadzik I'd go for Devel::Debug :)
awwaiid tadzik, Devel::ebug already exists, and is cute bcause then it is perl -d:ebug
15:24 ab5tract left, clairvy left, geekosaur joined
awwaiid pmurias, one thing that I haven't poked at yet are all of the plugins. Looks like there is a 1-to-1 correspondence between Devel::ebug::Plugin::* and Devel::ebug::Backend::Plugin::* . We'll probably have to make that more resiliant and modular for backends that don't support each plugin, is my guess. 15:26
15:27 eviltwin_b left, sayu joined 15:29 thou joined
pmurias awwaiid: printing an appropriate error message seems to be the best we can do 15:29
15:32 clairvy joined 15:34 wtw left
awwaiid yes, I think so. But not crash. 15:36
15:36 clairvy left
awwaiid bbiab, $work 15:36
moritz jnthn: I've traced at least one of the failures in arith.rakudo to bad literal -> number conversion, so that seems like the next area to work on after the codegen thing 15:40
15:40 geekosaur left, eviltwin_b joined
jnthn moritz: ok 15:41
moritz: Thsoe may be related though
(since it's something to do with literals in the code gen that fails)
(or so it looks like)
sorear good * #perl6 15:43
moritz the fanciest number literal in Test.pm is 1_000_000 :-) 15:44
\o sorear
15:46 clairvy joined 15:47 eviltwin_b left, clairvy left 15:49 drbean left 15:52 clairvy joined 15:53 geekosaur joined, clairvy left
jnthn decommute & 15:54
15:54 clairvy joined 15:59 clairvy left, clairvy joined 16:04 wk left, clairvy left 16:06 kaleem_ left, geekosaur left, eviltwin_b joined 16:09 clairvy joined 16:10 icovnik left 16:11 sayu left 16:12 daniel-s left, clairvy left 16:15 geekosaur joined, DarthGandalf joined 16:16 clairvy joined 16:18 eviltwin_b left, clairvy left, kaleem joined, clairvy joined 16:26 overrosy left, clairvy left 16:27 clairvy joined 16:28 overrosy joined 16:29 odoacre left, mkramer joined 16:30 Alias left, clairvy left 16:31 clairvy joined
jnthn home 16:31
16:31 clairvy left 16:32 clairvy joined 16:34 kaleem left, clairvy left, kaleem joined 16:35 clairvy joined 16:36 mkramer left, clairvy left 16:37 clairvy joined
dalek p/bigint: 302cc17 | jnthn++ | src/ (2 files):
Merge branch 'bigint' of github.com:/perl6/nqp into bigint
16:48
jnthn oops, rebase fail 16:51
16:51 clairvy left
jnthn moritz: Seems I forgot to push 71c9c2b last night 16:52
16:52 clairvy joined
jnthn moritz: It may help with $weird-issue 16:52
(with Test.pm) 16:53
moritz: Yeah, seems to 16:54
16:54 clairvy left, alim left 16:55 clairvy joined 16:57 geekosaur left, clairvy left, eviltwin_b joined 16:58 clairvy joined 17:08 wk joined, clairvy left, clairvy joined
japhb Man perlcabal.org/syn/S02.html#Literals is a lot of work ... 17:11
17:11 clairvy left 17:12 clairvy joined
tadzik TimToady action figure: joindiaspora.s3.amazonaws.com/uplo...1165c.jpeg 17:12
17:13 MayDaniel joined, clairvy left
colomon awesome! 17:13
tadzik indeed
I'd buy that
17:13 clairvy joined
tadzik odd that I can link to an image, but can't link to a diaspora post 17:13
17:16 geekosaur joined, clairvy left 17:17 clairvy joined
colomon I assume it's a custom one-off figure? 17:18
17:18 eviltwin_b left, clairvy left
tadzik no idea 17:18
17:19 clairvy joined 17:24 MayDaniel left, clairvy left 17:25 mj41 left, clairvy joined 17:26 opmenow joined 17:29 opmenow left
moritz it's #phaers time 17:30
17:30 am0c joined
jnthn hands moritz an s :) 17:31
17:32 geekosaur left, clairvy left, wolfman2000 left, geekosaur joined, bluescreen10 joined 17:33 clairvy joined 17:34 icovnik joined, clairvy left 17:35 clairvy joined
moritz nom: '(a)' ~~ /'(' ~ ')' <alpha> / and say $<alpha> 17:39
p6eval nom 198513: OUTPUT«Any()␤»
moritz nom: '(a)' ~~ /'(' <alpha> ')' / and say $<alpha> 17:40
p6eval nom 198513: OUTPUT«=> <a>␤␤»
jnthn moritz: If you got chance to check - did my latest nqp patch help with the Test.pm issue for you? 17:41
17:41 clairvy left, clairvy joined
jnthn nom: 'a,a,a' ~~ /<alpha> ** ','/ and say $<alpha> 17:41
p6eval nom 198513: OUTPUT«=> <a>␤ => <a>␤ => <a>␤␤» 17:42
moritz jnthn: haven't checked yet 17:43
jnthn k
moritz: Any idea why loads of trig tests fail? 17:44
17:44 clairvy left
moritz jnthn: probably because Rat literals with many digits don't work 17:45
17:45 clairvy joined
moritz and Num too 17:45
jnthn nom: say -1.56079666010823
p6eval nom 198513: OUTPUT«-1.56079666010823␤»
moritz $ ./perl6 -e 'say -1.56079666010823'
-2.00571435998317
jnthn heh, yes
moritz on the bigint branch
jnthn wonders wtf causes that... 17:46
japhb Don't know if it applies to the main parse, but since I noticed it in Str.Numeric: Is nqp::radix() fixed to not just carry a FLOATVAL internally in the bigint branch? 17:47
17:47 clairvy left 17:48 clairvy joined
jnthn nom: say 554474183 / 276447232 17:49
17:49 clairvy left
p6eval nom 198513: OUTPUT«2.00571435998317␤» 17:49
17:49 clairvy joined 17:50 eviltwin_b joined, geekosaur left, clairvy left 17:51 clairvy joined
moritz jnthn: nqp::radix should be upgraded to use bigint, I think 17:52
17:52 clairvy left
moritz erm, meant japhb 17:52
17:53 geekosaur joined, clairvy joined
jnthn nom: my $x = 1; $x +&= 2; say $x; 17:54
p6eval nom 198513: OUTPUT«0␤»
japhb moritz: yeah, a lot of stuff in Str.Numeric gets a lot slower if nqp::radix is unreliable. :-)
jnthn > my $x = 1; $x +&= 2; say $x;
17:54 clairvy left
jnthn Bool::False 17:54
wtf...
> my $x = 1; say $x +& 2; say $x;
grr
nom: my $x = 1; say $x +& 2
p6eval nom 198513: OUTPUT«0␤»
17:54 clairvy joined 17:55 risou is now known as risou_awy, eviltwin_b left, clairvy left
jnthn > my $x = 1; say $x +& 2 17:55
Bool::False
hm :)
moritz uhm
moritzfail, probably
jnthn nqp::p6bool(nqp::bitand_I(nqp::p6decont($a), nqp::p6decont($b)))
that shoudln't bool, right? :)
moritz right 17:56
just nqp::bitand(...)
bitand_I
17:56 clairvy joined
jnthn fixing 17:56
moritz sorry 'bout that
jnthn: nqp patch helped
jnthn OK good 17:57
How does arith.t fail for you, occ?
Here it doesn't even compile
moritz iirc it failed two tests, one of them at least due to the literals 17:58
oh, and it seems to emit extra debug info (wtf?) 17:59
ok 125 - Inf**NaN
3
not ok 126 - Modulo zero dies and is catchable# TODO modulo by zero
0
the 3 and 0 shouldn't be there
dalek kudo/bigint: 7b75f75 | jnthn++ | src/core/Int.pm:
Remove accidental boolification.
18:02
18:02 clairvy left, clairvy joined
jnthn ok, I have some dinner, then I'll look at literals. 18:06
18:07 kaleem left 18:11 dakkar left 18:18 eviltwin_b joined, geekosaur left 18:19 clairvy left 18:20 clairvy joined, clairvy left, eviltwin_b is now known as geekosaur 18:21 clairvy joined 18:29 vmspb joined, clairvy left, clairvy joined 18:34 wolfman2000 joined, clairvy left 18:35 clairvy joined 18:37 dual joined, clairvy left 18:38 clairvy joined, Vlavv_ joined 18:52 simcop2387 left, clairvy left, clairvy joined 18:53 simcop2387 joined 18:58 mj41 joined 19:01 Trashlord left, clairvy left 19:02 clairvy joined 19:07 bluescreen10 left, clairvy left, clairvy joined 19:08 vmspb left, Trashlord joined, clairvy left 19:09 clairvy joined, clairvy left 19:10 clairvy joined 19:13 vmspb joined, clairvy left, clairvy joined 19:16 carlin left, clairvy left 19:17 clairvy joined 19:22 bluescreen10 joined 19:26 ulfffff joined 19:34 mikemol left, mikemol joined 19:35 mj41 left, clairvy left 19:36 clairvy joined
masak evening, #perl6 19:36
masak missed #phasers bŭ some margin tonight
19:37 mj41 joined
masak by* 19:37
19:38 jdhore1 joined 19:39 jdhore left, clairvy left, ulfffff left 19:43 ksi joined, clairvy joined 19:44 fridim_ joined, clairvy left 19:45 clairvy joined
jnthn o/ masak 19:46
19:46 clairvy left 19:48 daxim left 19:51 clairvy joined 19:52 plobsing left 19:55 plobsing joined, clairvy left, geekosaur left
dalek odel: a7073fd | diakopter++ | lua/ (15 files):
more minor optimizations
19:57
20:00 geekosaur joined, clairvy joined 20:01 ab5tract joined 20:03 MayDaniel joined, clairvy left
jnthn oh ffs 20:07
Parrot's ops2c parser can't handle case 'b':
that is, a case statement with a non-integer
20:08 clairvy joined, Trashlord left
tadzik eww 20:10
jnthn There's 15 minutes wasted. :/ 20:11
It can't handle a cast to unsigned char either :/ 20:12
20:12 clairvy left, Trashlord joined 20:13 clairvy joined 20:24 clairvy left, fsergot left 20:25 clairvy joined 20:29 mj41 left, clairvy left 20:31 clairvy joined 20:32 Lorn left, clairvy left 20:33 clairvy joined 20:47 vmspb left, clairvy left 20:48 clairvy joined 20:51 nebuchadnezzar left
jnthn oh huh 20:51
20:51 clairvy left
jnthn We handle <integer> using nqp_radix 20:51
Which...goes via a floating point conversion
20:52 clairvy joined 20:53 nebuchadnezzar joined, clairvy left
jnthn How was this ever going to handle big integer literals :/ 20:53
benabik jnthn: Poorly.
20:54 clairvy joined 20:56 bluescreen10 left
jnthn Heck, I guess it doesn't even do sizable 64-bit integers properly. 20:58
jnthn didn't realize the "just float it" mentality had seeped this deep :(
[Coke] float it specifically as a data type, or more as a stylistic "just do whatever works for now" ? 21:03
jnthn [Coke]: The data type. 21:04
japhb: ping
21:14 shinobicl left, clairvy left, clairvy joined 21:24 shinobicl joined, clairvy left 21:25 clairvy joined
japhb jnthn, pong 21:26
jnthn japhb: I'm currently looking at the number handling. I believe you're looking at similarish stuff. 21:27
japhb: Have you been looking at nqp::radix?
japhb: I'm currently working on a version that works with bigint rather than float...
I'm then planning to use it from the grammar too 21:28
Does this sound reasonable?
japhb jnthn, I noted that nqp::radix was likely wrong because of carrying things as FLOATVAL, which I mentioned earlier. I figured you or moritz would most likely need to rewrite it in that branch, so I've been hands-off. I'm working on Str.Numeric(), which uses nqp::radix() a lot, but I'm working around the lack of precision for now. 21:29
21:29 clairvy left
jnthn japhb: OK. I see it outputs three things 21:29
masak 'night, #perl6 21:30
jnthn japhb: Which of those do you use?
o/, masak
japhb It makes sense to me to use it in the grammar too; it looked like pretty tight code.
jnthn, all three.
And I'm using all the flags, too. :-)
21:30 clairvy joined
japhb But I'm happy to refactor if it makes your life easier. 21:30
(That is, after all, half of what I'm doing anyway.) 21:31
jnthn OK, that means I need to hand the lot of them back :)
My idea is that you'll give in one extra argument
which is the target type
Int in our case.
japhb As opposed to?
jnthn So you'd get three (Perl 6) Int objects back
Today it hands back Parrot floats. 21:32
japhb I meant, as opposed to what else would you ask for after the rewrite?
Wow, English fail there. Hopefully you know what I meant.
When would you not ask for Int, in other words? 21:33
jnthn japhb: Well, it's more than I'm showing the op in nqp_bigint.ops 21:34
21:34 clairvy left
jnthn japhb: Which doesn't know about Perl 6's Int type. 21:35
er, shoving
not showing :)
21:35 clairvy joined
jnthn Just a layer thing :) 21:36
japhb Ah, I get it.
nodnod
jnthn Anyway, from your perspective it should be pretty easy to switch, and you'll get better precision.
moritz \o
jnthn o/ moritz
japhb jnthn, excellent, thank you.
jnthn japhb: Thanks for the context on how the ops is being used 21:37
21:37 clairvy left
jnthn japhb: oh, one more thing... 21:37
The second output value...base
japhb yes ...?
jnthn If this was to be a Rat, would that be the denominator? 21:38
And the first thing the numerator?
Or am I mis-thinking?
21:38 clairvy joined
jnthn oh hm 21:38
yeah, I think I am :)
japhb It is used when handling '123.456'
jnthn oh
Does the op parse the .?
jnthn doesn't see that
japhb The '456' would return 1000 as the base
jnthn oh, I see 21:39
japhb It tells you how much to divide the fractional part to make a num, or multiply the int part to make a Rat
Does that make sense?
jnthn Yes, very much so
So this can go a long way to replacing radcalc too 21:40
OK, seems good.
japhb goes to look at radcalc ...
jnthn Anyway, standardizing the grammar and .Numeric on such an op seems sane.
21:40 clairvy left
jnthn moritz: Feel free to review japhb++ and my discussion to make sure it makes sense to you too ;) 21:41
21:41 clairvy joined
japhb It looks like radcalc does more than nqp::radix but less than Str.Numeric. :-) 21:42
21:42 clairvy left
moritz correct 21:42
21:43 clairvy joined
moritz jnthn: will do the review tomorrow 21:43
japhb Oh, interesting way to calc the radix in a '0n' style prefix.
21:43 clairvy left
moritz note that the tommath string parsing function can handle different bases, but doesn't offer the same flexibility as nqp::radix 21:44
japhb I note in passing that radcalc allows uppercase (e.g. '0X') prefixes, but TimToady seemed to dislike that.
21:44 clairvy joined
jnthn moritz: OK. I'm going to be a bit time-limited tomorrow; I may push what I have tomorrow and you can pick it up tomorrow if you like. 21:45
21:45 clairvy left
jnthn er, push tonight :) 21:45
moritz ok
moritz -> sleep
21:45 clairvy joined
japhb 0/ 21:45
heh, I have a tall head today apparently 21:46
moritz jnthn: one more thing, the ops2c not liking (unsigned char) is probably fixed in newest parrot
jnthn moritz: ah, ok
21:46 clairvy left
moritz in 53994ea940f93311b57f28fc0964707bddf0b947 21:46
moritz -> really sleep
jnthn o/
21:46 skangas left 21:47 clairvy joined 21:49 skangas joined, clairvy left 21:50 clairvy joined 21:51 Lorn joined, clairvy left, clairvy joined 21:54 Lorn left, clairvy left 21:55 clairvy joined, clairvy left 21:57 kboga joined 22:03 clairvy joined 22:06 mattp_ left, clairvy left 22:07 mattp_ joined
dalek p/bigint: bb5f116 | jnthn++ | src/ops/nqp_bigint.ops:
bigint variant of the nqp radix op.
22:09
jnthn OK, that needs tests etc, but I don't have concentration for it tonight. 22:10
kboga hello jnthn, sorry to bother you. I was wondering if you were planning on making the slides that accompanied your latest talk on "optimizing Rakudo" available on the net?
jnthn kboga: yes, certainly
kboga awesome, thanks :)
22:11 Lorn joined 22:16 clairvy joined 22:18 MayDaniel left, MayDaniel joined 22:21 PZt left, clairvy left 22:23 MayDaniel left 22:24 ab5tract left, mattp_ left, clairvy joined, mattp_ joined, clairvy left 22:31 kmwallio left, clairvy joined 22:32 benabik left 22:35 Lothar left, Lothar joined, clairvy left 22:38 aloha left 22:39 clairvy joined 22:40 aloha joined
jnthn I blug: 6guts.wordpress.com/2011/11/09/slid...rl-6-talk/ 22:42
22:42 clairvy left
jnthn kboga: ^^ 22:42
22:45 PZt joined 22:46 Chillance joined 22:49 clairvy joined
jnthn sleep & 22:51
22:51 clairvy left
kboga good night, and thanks again 22:52
22:54 icwiener joined 22:56 clairvy joined 23:02 fridim_ left, clairvy left 23:03 clairvy joined 23:06 ksi left, clairvy left 23:07 clairvy joined
sorear good * #perl6 23:07
23:13 bazqux joined, clairvy left, clairvy joined
japhb o/ sorear 23:16
23:16 clairvy left 23:17 clairvy joined 23:24 clairvy left, clairvy joined 23:32 clairvy left 23:33 am0c left 23:34 clairvy joined, envi_ left 23:41 clairvy left 23:42 clairvy joined, wolfman2000 left, kboga left 23:43 clairvy left 23:44 clairvy joined, clairvy left 23:46 clairvy joined, clairvy left, alim joined, clairvy joined 23:51 icovnik left, clairvy left 23:52 clairvy joined 23:55 whiteknight joined 23:56 whiteknight is now known as Guest68707, clairvy left, clairvy joined 23:59 nsh left, clairvy left, phenny left, clairvy joined