»ö« Welcome to Perl 6! | perl6.org/ | evalbot usage: 'perl6: say 3;' or rakudo:, niecza:, std:, or /msg camelia perl6: ... | irclog: irc.perl6.org | UTF-8 is our friend!
Set by sorear on 25 June 2013.
dalek kudo-star-daily: 3540cec | coke++ | log/ (5 files):
today (automated commit)
00:01
rl6-roast-data: 7a3f74f | coke++ | / (5 files):
today (automated commit)
pippo .tell FROGGS: replaced 'handle->body.encoding_type' with '1' on line 652 of MoraVM/src/io/fileops.c and now it works. 00:02
yoleaux pippo: What kind of a name is "FROGGS:"?!
pippo .tell FROGGS replaced 'handle->body.encoding_type' with '1' on line 652 of MoraVM/src/io/fileops.c and now it works.
yoleaux pippo: I'll pass your message to FROGGS.
pippo .tell FROGGS could be related to the fact that my terminal has LANG=en_US.UTF-8? 00:03
yoleaux pippo: I'll pass your message to FROGGS.
raydiak timotimo: thanks, I'll give it a good polishing pass tonight including those issues 00:48
raydiak jnthn: I agree it ought to stand out more, though I'm not sure making the page even more painfully out of balance is the solution, unless we want it to remain looking 20 years old :) 00:56
raydiak imo, with some better styling, it'll stand out more being set apart than it would inline with the Pod content 00:56
(though I do need to fix the overlap problem too, if I leave the placement as is) 00:57
TimToady p6: gist.github.com/anonymous/8928045 02:09
camelia niecza v24-109-g48a8de3: OUTPUT«「+123.456e10」␤ SIGN => 「+」␤ MANTISSA => 「123.456」␤ EXPONENT => 「e10」␤␤»
..rakudo-parrot 260cd7, rakudo-jvm 260cd7, rakudo-moar 260cd7: OUTPUT«===SORRY!=== Error while compiling /tmp/tmpfile␤Unrecognized regex modifier :my␤at /tmp/tmpfile:3␤------> ⏏:my token MANTISSA { \d+ '.'? \d* | '.'␤ expectin…»
TimToady niecza++ and a rakudobug
masak: ^^^ 02:10
rakudo requires an extra semicolon after the closing brace, rather than relying on the end-of-statement semantics of normal Perl 6 02:11
moritz raydiak: +1 to the search 06:48
timotimo raydiak: thanks. good work otherwise! :) 06:50
raydiak timotimo: I ran out the door w/out proper testing; thanks for being more rigorous than I :) fixed now 06:51
timotimo hah 06:52
i hope i didn't seem too harsh
raydiak not at all, I'm being sincere...appreciate having extra eyes 06:52
timotimo i'm glad :) 06:53
DrEeevil ah, so funny
moarvm tarballs are github'ed again, can't use that stuff at all ever 06:54
silly me!
timotimo has no admin capabilities for that repo, otherwise would try to get rid of these things 06:55
DrEeevil it makes generating tarballs needlessly exciting 06:56
I think I first reported that bug a year ago ...
timotimo maybe not a whole year, but something like that
DrEeevil (but in between github even "lost" their release tarball service for a week and didn't notice)
raydiak moritz: thanks :) is it the plan to keep the styling so...spartan? in trying to figure out how to best work the search into the layout, I decided the problem seems to be basically that it's formatted as a doc instead of a website
DrEeevil timotimo: I hit it with opendylan the first time
I think 06:57
lue raydiak: I think we're waiting for someone to eventually fix that up. 06:57
timotimo oh, ok 06:58
DrEeevil actually even more fun: the tarball has 3dparty/libtommath but not 3dparty/dyncall
that makes compiling a bit more exciting ... *sigh* 06:59
raydiak I was thinking about putting together a stylesheet or perhaps a whole template, if it's not outside the scope of the vision for the project...unless it's *intended* to look and act like a technical manual
lue I'd personally prefer something shinier, after all perldoc seems to do fine with a decent theming :) 07:00
DrEeevil eh. submodules, again. I always let myself get trapped by the obvious ... 07:14
raydiak moritz: oh, and did you get a chance to look at the code? want to make sure there's nothing going on in there that you find objectionable...for one, I added a little more clutter to the root dir of the repo that maybe should live in a separate dir for html-related stuff 07:25
since html/ itself is where the *output* goes...and also I'm concerned about what happens with the current file structure if p6 iteslf gets features named 'index' or 'search' :) 07:27
I feel like I should be writing an e-mail instead at this point 07:28
timotimo write a strongly worded letter! :)
raydiak haha :) just sometimes I stop and look back at what I'm writing and realize I'm flooding 07:30
moritz raydiak: feel free to improve the styling in any way you see fit 07:33
I'm not at all good at that sort of stuff, so I appreciate input from others
masak morning, #perl6 07:41
raydiak good morning masak 07:42
timotimo hello masak! :)
masak raydiak: as to flooding, you're too hard on yourself. look, you're on topic and everything! :)
timotimo agreed. 07:43
moritz raydiak: fwiw I'm all for putting files into html/ if they should be downloaded unmodified by the client 07:45
raydiak timotimo, masak: thank you! I'll not worry so much then...I just have a hard time sensing which side of the line I'm on sometimes; especially since everyone I meet has a different idea of where that is, and I can't see or hear (and have never met) any of you :) 07:47
timotimo that's right. #perl6 strikes me as rather liberal in this regard 07:48
raydiak moritz: most of the new files are being inserted into places, template-style, when the index and search files are generated, so I just threw them in the root next to the existing search_template.html (which no longer exists) 07:49
moritz raydiak: we'll make a deal. You just stop worrying about spamming the channel, and I'll (and maybe others) will tell you if you do cross the line :-)
raydiak #perl6 strikes me as rather liberal in most regards...it's quite...liberating
deal! 07:50
masak we're the community's rewrite of the community :)
moritz raydiak: then maybe a template/ folder would be apropriate
(though for me it's not a blocker 07:51
)
raydiak: also if you /msg me your public ssh key, I can add it so that you can sync the files to feather2 yourself
moritz (feather2 being the host behind doc.perl6.org) 07:52
raydiak moritz: okay, will do, but not before the merge
masak TimToady: just backlogged over your rakudobug highlight. about to start teaching here; will submit later, unless someone beats me to it.
masak TimToady++ # finding bugs through (I assume) RC solutions 07:53
raydiak oh, missed part of that...meant "will do" do moving things into a template dir
raydiak goes to look for his ssh key 07:54
moritz it's usually in one of .ssh/id_{r,d}sa.pub :-) 07:55
raydiak I haven't had to worry about these things much, think I have a diff one on each machine atm
moritz you can also paste me more than one ssh key :-) 07:56
timotimo but never more than one from the same keypair :) 07:57
raydiak I'll just use the one off my VPS for now (though with how reliable it's been lately, that almost makes me a compulsive gambler) 07:59
is the e-mail address part on the end important? 08:00
moritz raydiak: no; that's just any human-readable string to identify the key
I usually just write moritz@hostname # not a real email address, but tells me where the key comes from 08:01
timotimo "moritz@hostname"? that has a certain ring to it! i shall use it for all my keys now, too!
jercos works even better when every machine you use has a working FQDN, and runs an SMTPd at least sufficient to forward mail to a usable address 08:05
dalek c: 8d5a177 | raydiak++ | htmlify.pl:
Support custom head content when calling p2h
08:09
c: 4ae3291 | raydiak++ | / (4 files):
Move search JS into a separate file
doc: ef8185a | raydiak++ | htmlify.pl:
moritz RIP, dalek 08:09
timotimo rip in piece
moritz timotimo: did you mean "ripped in pieces"? :-) 08:10
raydiak tried to ./sync, and then figured out it doesn't work very well if you don't ./htmlify.pl first :P 08:11
oh, and...the URLs look pretty without the .html, but it means all those links won't work without special server config...won't even work at all off a local drive, if I'm not mistaken...???... 08:14
timotimo that's right :( 08:14
raydiak that's not the search, those are the main index links
moritz raydiak: yes, you need content negotiation 08:15
moritz one could write a small p5 (or p6) local web server 08:15
raydiak moritz: would it not be better to have the .html and have it work everywhere without additional complexity? 08:16
or what about generating differently for local html files vs files built for the web?
moritz raydiak: I value nicer URLs for the enduser higher than developer convenience 08:17
raydiak if we're going to make the site shiny, we may want to have some extra/different generation for web-oriented docs vs local ones anyway 08:19
moritz aye 08:20
raydiak so we could just add the .html to the links for local docs only, once we make that distinction in the build process...right? 08:21
moritz aye 08:23
raydiak local disk URLs are pretty much always ugly anyways :) 08:24
(I guess it's not a *U*RL when it points to a local file...) 08:27
timotimo we should deploy webkit.js
raydiak wonders how well that would work on his 5-year-old android phone 08:29
timotimo we should develop a non-sucky hyperlinked text browser for the commandline 08:31
like they used to have in the very beginning
raydiak timotimo: sounds like a job for catui... 08:34
timotimo :) 08:36
catui will be amazing. also it will never exist if i continue at the current pace :)
raydiak well, it's been conceived of, so rate of change is arguably greater than zero, depending on what specifically we're measuring 08:44
timotimo hehe.
i need to do lots and lots and lots of thinking before it makes sense to actually start implementing things 08:45
raydiak it's not a small project, that's for sure 08:49
timotimo i'ven't done anything really big in perl6 so far
it'll surely be a challenge
at least keeping the code running on more and more recent versions of perl6 will be easier from now on than it was, say, starting one year ago 08:50
the big list respec will be very interesting
raydiak I don't follow news very closely...what big list respec? 08:51
timotimo it's old news ;) 08:52
patrick has been meaning to give the whole of S07 a thorough re-think
raydiak anything specific, or does nobody know yet? 08:53
timotimo i don't know the specifics
raydiak I'm thinking about reworking this template I started for a customer who never finished paying for their site: gc.cyberuniverses.com/ 09:02
for the docs 09:03
change the colors and background, etc
timotimo oh my, 3d buttons :)
raydiak just beveling tricks with css
rounded corners are css3, but degrade gracefully to square corners 09:04
timotimo subtlepatterns.com/ ← this is an excellent source for tiling background images, btw
raydiak oh, cool
I won't plagiarize content from random google images results for perl 6 docs, of course :) 09:05
timotimo of course not
raydiak that layout is pretty darn fluid, too...resize your browser down to like 200-300 px wide like a phone, it should still look tolerable 09:06
iirc, it actually did work fine on my phone 09:07
timotimo not bad, aye 09:08
i've only recently started doing some web development with the help of bootstrap
it's a pleasure to have it work properly on any size and still look tolerable in big formats :)
raydiak yeah, that can be a tough balance to find without having separate stylesheets or a separate "mobile version" 09:10
web development is a...unique set of challenges
timotimo it is
raydiak hammering my left-heavy brain against it for years, I am finally starting to grow a sense of aesthetics, though 09:11
timotimo great! :D
raydiak just wish it didn't require so much pain you don't have in most other arenas, like cross-browser compatibility problems, supporting every major browser version back to 10 years ago and so forth 09:12
it's *way* easier than it used to be though...you can pretty safely ditch ie6 support these days :P 09:13
raydiak (broken box model and so forth) 09:13
timotimo aye 09:14
raydiak what is bootstrap?
timotimo twitter bootstrap
a set of css rules and instructions on how they can be combined in proper ways 09:15
very flexible, easy to get started with, looks pretty good (except now every other website looks like twitter bootstrap)
raydiak some people might call this eccentric in this day and age, but I still write it all by hand 09:17
it feels ever so vaguely like sculpting :) 09:18
timotimo that's totally fine
raydiak of course, that only works because I try to limit myself to fairly small-scale stuff 09:20
timotimo :) 09:22
raydiak well, I've had quite enough excitement for one day...and technically that was yesterday b/c it's 1:30 in the morning 09:38
timotimo good night then! :) 09:42
raydiak yep, definitely bed time...thanks for chatting timotimo (and everyone else earlier, of course) 09:43
g'night #perl6
timotimo always a pleasure
jnthn morning o/ 10:04
nwc10 In nqp, is there a way to force (native) integer arithmetic 10:19
nwc10 I'd like to think about integers larger than 2**52 10:19
FROGGS morning
yoleaux 00:02Z <pippo> FROGGS: replaced 'handle->body.encoding_type' with '1' on line 652 of MoraVM/src/io/fileops.c and now it works.
00:03Z <pippo> FROGGS: could be related to the fact that my terminal has LANG=en_US.UTF-8?
FROGGS ?
nwc10 OK. Why isn't it working for the bigger program. 10:20
nwc10 I seem to have a problem somewhere around the keyboard/chair boundary, but I'm not certain 10:20
FROGGS *g*
nwc10 aha 10:21
++ doesn't do ints
so, not my bug, technically
nqp: 'my int $b := 9007199254740992; say($b); ++$b; say($b) 10:22
nqp: my int $b := 9007199254740992; say($b); ++$b; say($b)
FROGGS .tell pippo: the probles it that handle is NULL and then trying to access handle->body explodes on line 652
yoleaux FROGGS: What kind of a name is "pippo:"?!
camelia nqp-parrot: OUTPUT«Confused at line 2, near "'my int $b"␤current instr.: 'panic' pc 15952 (gen/parrot/stage2/NQPHLL.pir:5947) (gen/parrot/stage2/NQPHLL.nqp:425)␤»
..nqp-moarvm: OUTPUT«Confused at line 2, near "'my int $b"␤ at gen/moar/stage2/NQPHLL.nqp:369 (/home/p6eval/rakudo-inst-2/languages/nqp/lib/NQPHLL.moarvm:panic:120)␤ from gen/moar/stage2/NQP.nqp:917 (/home/p6eval/rakudo-inst-2/languages/nqp/lib/nqp.moarvm:comp_unit:346)␤ fro…»
..nqp-jvm: OUTPUT«Confused at line 2, near "'my int $b"␤ in panic (gen/jvm/stage2/NQPHLL.nqp:378)␤ in comp_unit (gen/jvm/stage2/NQP.nqp:922)␤ in TOP (gen/jvm/stage2/NQP.nqp:820)␤ in parse (gen/jvm/stage2/QRegex.nqp:1289)␤ in parse (gen/jvm/stage2/NQPHLL.nqp:1377)␤ in…»
nqp-parrot: OUTPUT«Error while compiling op bind (source text: "int $b := 9007199254740992"): Cannot infer type from '9007199254740992'␤current instr.: '' pc 57075 (gen/parrot/stage2/QAST.pir:21055) (gen/parrot/stage2/QAST.nqp:3632)␤»
..nqp-moarvm, nqp-jvm: OUTPUT«9007199254740992␤9007199254740992␤»
FROGGS .tell pippo the problem it that handle is NULL and then trying to access handle->body explodes on line 652
yoleaux FROGGS: I'll pass your message to pippo.
FROGGS .tell pippo so you just worked around that NULL pointer bug
yoleaux FROGGS: I'll pass your message to pippo.
nwc10 both are 9007199254740992
is that an NQP bug, or an NQP wontfix? 10:23
FROGGS I think it is on jnthn's agenda
jnthn nwc10: It's a "stuff details to doubles"
uh
defaults
FROGGS details to defaults? :P 10:24
jnthn Though ++ if it knows it's got an int shouldn't...
FROGGS p: my int $x; ++$x # maybe this was on the agenda, not sure
camelia rakudo-parrot 260cd7: OUTPUT«Cannot modify an immutable value␤ in sub prefix:<++> at gen/parrot/CORE.setting:4348␤ in sub prefix:<++> at gen/parrot/CORE.setting:1762␤ in block at /tmp/_3iXc_QOVS:1␤␤»
jnthn FROGGS: Yes, that one is 10:25
FROGGS k, I almost thought so
jnthn Hmm. We compile ++ into an add_n... I wonder why.
FROGGS to cope with inf? 10:26
jnthn In NQP? :)
FROGGS knows nothing about NQP :o)
jnthn changes it and sees if anything breaks 10:28
In theory it'll generate better code for any my int $i that you ++...
Hm, seems fine enough in NQP tests 10:30
jnthn And builds a sanity-test-passing Rakudo. 10:33
dalek p: 4ede847 | jnthn++ | src/vm/ (3 files):
Change ++ and -- to always to integer math.

We most often do this on native int variables anyway, so this will generate better code.
10:50
p: 4a81c2a | jnthn++ | src/ (6 files):
Use native types in a few more places.
jnthn nwc10: 4ede847 should help 10:51
nwc10 jnthn: unary negation in nqp converts to a float. 0 - $int does integer negation
jnthn nwc10: You can always be explicit abotu exaclty what you want by using e.g. nqp::neg_i($int) 10:53
nwc10 aha
so there's an NQP op for <= ? 10:59
jnthn nqp::islt_i
uh, le
nwc10 thanks
nwc10 nqp: my int $a := 0x7FFFFFFFFFFFFFFF; say($a) 11:19
that wold be a bug :-(
camelia nqp-parrot: OUTPUT«Error while compiling op bind (source text: "int $a := 0x7FFFFFFFFFFFFFFF"): Cannot infer type from '-9223372036854775808'␤current instr.: '' pc 57075 (gen/parrot/stage2/QAST.pir:21055) (gen/parrot/stage2/QAST.nqp:3632)␤»
..nqp-moarvm: OUTPUT«-9223372036854775808␤»
..nqp-jvm: OUTPUT«9223372036854775807␤»
nwc10 nqp: my int $a := 0x7FFFFFFFFFFFF000; say($a) 11:20
camelia nqp-moarvm, nqp-jvm: OUTPUT«9223372036854771712␤»
..nqp-parrot: OUTPUT«Error while compiling op bind (source text: "int $a := 0x7FFFFFFFFFFFF000"): Cannot infer type from '9223372036854771712'␤current instr.: '' pc 57075 (gen/parrot/stage2/QAST.pir:21055) (gen/parrot/stage2/QAST.nqp:3632)␤»
nwc10 oh sigh, but that one is positive.
so it's ending up as floating point, it seems
jnthn MAST::Op const_i64 11:23
MAST::Local index<8>
MAST::IVal value<-9223372036854775808>, size<64>, signed<1>
It's already been spoiled by the time we get to code-gen...
Oh, it's wrong in the QAST::IVal too 11:24
jnthn Urgh 11:26
Really need to do $dayjob stuff right now, but yeah, the issue is that nqp::radix, which does number parsing, is putting everything in doubles along the way 11:28
FROGGS hmmm, that sounds like we could save something there 11:30
jnthn FROGGS: My suggestion is an extra flag to nqp::radix that tells it to do int 11:31
FROGGS: That is, it already takes flag bits anyway
FROGGS: So it's not a nasty change to do.
nwc10 so it's ending up as floating point, it seems 13:54
(oops) ;-)
nwc10 in nqp, how does one create a BigInt which is holding a value 13:57
FROGGS nwc10: see gist.github.com/FROGGS/64c224637a10fff02e33 13:59
though in rakudo it creates an p6opaque that holds a bigint somehow
jnthn 60-bigint.t has examples of doing both 14:03
nwc10 and no comments. 14:04
FROGGS that is why it is in t/, not docs/ 14:06
FROGGS hides
jnthn Well, the tests all have descriptions, though :P
nwc10 yes, and the one I'm looking at is 'Bit ops (RT 109740)' :-)
FROGGS nqp-m -e 'nqp: my int $a := 0x7FFFFFFFFFFFF000; say($a)' 14:07
9223372036854771712
nqp-m -e 'nqp: my int $a := -0x7FFFFFFFFFFFF000; say($a)'
-9223372036854771712
is this correct now?
jnthn r: say 0x7FFFFFFFFFFFF000
camelia rakudo-parrot 260cd7, rakudo-jvm 260cd7, rakudo-moar 260cd7: OUTPUT«9223372036854771712␤»
FROGGS seems like 14:08
jnthn FROGGS: Can I see le patch?
FROGGS sure
nwc10 nqp: my int $a := 0x7FFFFFFFFFFF0000; my int $b := 0
camelia ( no output )
..nqp-parrot: OUTPUT«Error while compiling op bind (source text: "int $a := 0x7FFFFFFFFFFF0000"): Cannot infer type from '9223372036854710272'␤current instr.: '' pc 57075 (gen/parrot/stage2/QAST.pir:21055) (gen/parrot/stage2/QAST.nqp:3632)␤»
nwc10 nqp: my int $a := 0x7FFFFFFFFFFF0000; my int $b := 0x7FFFFFFFFFFF0001; say($b - $a)
camelia nqp-parrot: OUTPUT«Error while compiling op bind (source text: "int $a := 0x7FFFFFFFFFFF0000"): Cannot infer type from '9223372036854710272'␤current instr.: '' pc 57075 (gen/parrot/stage2/QAST.pir:21055) (gen/parrot/stage2/QAST.nqp:3632)␤»
..nqp-moarvm, nqp-jvm: OUTPUT«0␤»
nwc10 there, without the line break
anyway, what I'm trying to do (as you might have guessed) is use the bigint string parsing code to parse large decimals before converting them back to real native ints 14:09
FROGGS gist.github.com/FROGGS/e608db7d803ba75fcb89
jnthn: ^^
nwc10 but I can't figure out how to make a bigint 14:09
timotimo nwc10: bigints are created by supplying a type object that knows how to box an integer, which translates to: "has a defined method for that in its REPR" 14:12
in rakudo, we use the Int type, which has a "box_target" for native ints
the Int object gets repr'd by a P6opaque, which inlines the body of a P6bigint where the int box target slot is
scratch the "native ints", it must be "ints"
(otherwise big ints wouldn't work)
jnthn nwc10: my $bi_type := nqp::knowhow().new_type(:name('TestBigInt'), :repr('P6bigint')); $bi_type.HOW.compose($bi_type); my $bi := nqp::fromstr_I('123345353') # $bi is a bigint 14:13
uh, sorry 14:14
Final thing should be nqp::fromstr_I('134545', $bi_type)
nwc10 thanks 14:19
FROGGS jnthn: I guess in the MVM_radix() there should be no MVMnum* then, right? 14:24
jnthn FROGGS: uh...probably needs to be those when we parse floating point things 14:30
FROGGS okay, then I leave that unchanged
jnthn FROGGS: I'm a little surprised that patch is enough though...given value is a floating point? 14:31
timotimo aye, that still ought to blow up at some point 14:32
FROGGS :/
I think I see what you mean
jnthn Cleanest code wise is probably to just compute it simultaneously with a num64 and int64 then just pick out the right one at the end. 14:33
jnthn With a bigger refactor/dupe we could do just the needed one. 14:34
pmurias why does radix return a num instead of an int? 14:52
timotimo "because what if it has a decimal point in it?" ;) 14:53
pmurias nqp::radix doesn't handle decimal points 14:54
but isn't the biggest num bigger then the biggest int?
timotimo could very well be. 14:55
pmurias what's the the bit length of num and int in nqp? platform specific? 15:02
timotimo moarvm has MVMnum64 in 6model/reprs/P6num.h 15:03
jnthn Backend specific, and some backends may in turn be platform specific.
pmurias jnthn: so the reason for radix returning a num is that an int might be too small to parse some num constants? 15:04
jnthn pmurias: No, it's that it's also used for parsing floating point, iirc. 15:08
pmurias jnthn: in nqp nqp::radix seems to be used only for parsing ints (according to a quick ack search) 15:17
jnthn: in rakudo nqp::radix_I is used instead
jnthn: and floating points are handled with numify
jnthn pmurias: Hmm. :)
pmurias: In which case I suspect it might want to use ints on backends we know it's 64-bit always... 15:18
Which is Moar and JVM.
pmurias on 32-bit backends the large constants will end up overflowing later on? 15:19
jnthn int can only hold 32 bits there, so yeah, it'll overflow 15:21
nwc10 should have said, I have testcases for integer serialisation, which work on (older) MoarVM and JVM, but Parrot dislikes 15:29
Can only use nqp_set_sc_for_object with a SixModelObject
jnthn Sounds like a consequence of Parrot not really doing 6model 15:30
nwc10 this was my assumption. It dislikes the array 15:30
jnthn Maybe best ot just skip that test on Parrot.
Rather than spend time re-working it 15:31
jnthn The "easy" solution is to just put the array as an attribute in an object and serialize the object, though. 15:31
nwc10 I assumes that this was why all the other tests do that
jnthn Yeah. :)
pmurias should I commit my changes to make nqp::radix return an array of integers? 15:56
(on parrot) 15:57
jnthn pmurias: Does it cause any new test failures? 15:58
pmurias make test for nqp passes 15:59
rakudo doesn't seem to use nqp::radix at all according to ack 16:00
lizmat does ack actually look at .nqp files ? 16:03
pmurias the new version seems to look at everything by default
lizmat nqp::radix_I appears in core settings, it seems 16:05
from src/core/Str 16:06
jnthn Yeah, nqp::radix_I is a different beat 16:08
*beast
dalek p: db30969 | (Pawel Murias)++ | src/vm/parrot/ops/nqp.ops:
[nqp-parrot] Make nqp::radix return an array of integers
16:42
masak lol hi from a train! \o 17:10
nwc10 is it on time?
masak too soon to tell 17:11
TimToady I dunno, it was in the station from two to two to two two...
lizmat hi from a boat 17:12
also too soon to tell it's going to be on time
arrival ~16 hours from now 17:13
TimToady in a navy town, you always call it a ship if it's large enough to carry a boat :)
PerlJam all we need now is someone to say hi from a plane and someone to say hi from an automobile of some sort. 17:14
lizmat ah, hmmm a ship then
definitely large enough to carry a boat :-) 17:15
TimToady hi from the comfy chair
oh wait, mustn't make python jokes here...
masak no, it's ok.
we just hug python people.
TimToady pleads gilcup
masak :P
lizmat nobody expects the comfy chair
perigrin masak: except Chapman ... otherwise 'eww' 17:16
masak reads "The best, because it uses object oriented join. I forgot about it." on p6u, and giggles at this stance 17:17
lizmat is reminded of woolfy shouting "I can hear you!" at FOSDEM, when the Python people in the next booth were claiming Perl was dead :-)
masak haha 17:18
btyler it does seem to be something of a meme
TimToady someone should write a Python to Perl 6 translator
jnthn oooh! 17:19
masak lizmat: now I imagine lizmat fighting Python people with swords, and they are all black knights and refuse to give up even after their arms and legs have been hacked off.
vendethiel Let's do a javascript to perl 6
jnthn That sounds fun :)
masak TimToady: Python 2 or Python 3? :P
vendethiel so you can convert ANY language to perl 6 by compiling them to JS beforehand :P
jnthn ...but I already have plenty of other fun things to do :P
TimToady masak: *and*
masak ...of course.
btyler masak: well, you'd have to have broken unicode handling if you wanted to do python 2...
masak TimToady: "Why is it always or, and never and?" :P 17:20
lizmat masak: imagine woolfy doing that, I'm not the swashbuckling kind, really
TimToady stays out of the woods
masak oops, meant woolfy.
lizmat masak: *phew* :-) 17:21
masak :P
seems the actual lyrics is "Is it always 'or'? / Is it never 'and'?" 17:22
TimToady lizmat goes in more for the razor approach, as long as we're on Sondheim...
dalek kudo-star-daily: 590f6bd | coke++ | log/ (5 files):
today (automated commit)
lizmat :-)
masak and of course, if the Wife were a programmer, she'd say "Is it always 'xor'?"
lizmat ship's captain just announce we're not leaving yet due to high winds
.oO( guess we'll hit the champaign some more )
17:23
TimToady then there's the one where both protagonists both say "Red, red, red, red, red" and neither means anything gory
masak TimToady: sounds more like Rubyists to me...
lizmat I read that somewhere
masak is slightly ashamed he didn't immediately get TimToady's Sweeney Todd reference 17:24
TimToady it's a funny thing 17:26
masak p6: gist.github.com/anonymous/8928045 17:26
camelia niecza v24-109-g48a8de3: OUTPUT«「+123.456e10」␤ SIGN => 「+」␤ MANTISSA => 「123.456」␤ EXPONENT => 「e10」␤␤»
..rakudo-parrot 260cd7, rakudo-jvm 260cd7, rakudo-moar 260cd7: OUTPUT«===SORRY!=== Error while compiling /tmp/tmpfile␤Unrecognized regex modifier :my␤at /tmp/tmpfile:3␤------> ⏏:my token MANTISSA { \d+ '.'? \d* | '.'␤ expectin…»
masak submits TimToady++'s rakudobug
TimToady this is actually not in response to an RC entry, but was a suggestion from TheDamian++ 17:27
vendethiel masak: you can do that ? COOL !
masak vendethiel: yeah, I just learned.
PerlJam vendethiel: apparently only in niecza :) 17:28
TimToady he wants to be able to have internal token declarations so that P6 regexen can be ported to other languages
masak oh, TheDamian++
TimToady and I got to point out that it already worked exactly as he suggested, except for the working part (on rakudo)
PerlJam Though S05 says "...you may declare variables in such a routine using a colon followed by any scope declarator parsed by the Perl 6 grammar" and I have to squint a little to make tokens look like "variables" 17:31
jnthn Wow, that's pretty... Or will be once we hunt the bug :)
TimToady: Does throwing in semicolons on the end fix it?
TimToady yes
vendethiel PerlJam: that seems like something I could tackle. What's the repo for camelia ?
jnthn k
TimToady it's just the eol thing 17:32
vendethiel or is that perl6-rel directly ?
jnthn Yeah, I bet we're just missing a check.
lizmat signs off for now
timotimo "perl6-rel"? 17:37
PerlJam vendethiel: I'm not sure what "that" is in your sentence. 17:42
vendethiel PerlJam: url parsing
PerlJam oh! We were apparently talking about different things before. 17:43
Giving a URL to the p6 bot works for all implementations. It's the ":my token foo { ... }" that's novel. 17:44
vendethiel OH 17:45
we were talking about different things most certainly :P
jnthn vendethiel: Feel free to fix the Rakudo bug anyway ;-) 17:46
vendethiel jnthn: I'd if I could :)!
PerlJam And, to be fair(ish) to Rakudo, S05:655 does say "A single statement (up through a terminating semicolon) is parsed as normal Perl 6 code:" So it's not surprising that Rakudo would want that semicolon.
synopsebot Link: perlcabal.org/syn/S05.html#line_655
vendethiel If you have directions, I'll take those too, always good 17:47
tadzik hi from a bar o/
PerlJam tadzik: is the bar currently in motion? ;)
tadzik not a plane, and nobody's even remotely high :)
PerlJam: not quite. But it's pretending to be a boat :P 17:48
PerlJam
.oO( and the people all said "Sit down! Sit down you're rocking the boat!" )
tadzik forgot that "let's meet 1830-1900" actually means "let's meet 19 or later" for some people
timotimo let's meet like it's 1984 17:49
dalek ecs: 999d06d | larry++ | S05-regex.pod:
:my also allows line-final brace
tadzik timotimo: in the only romm without a TV? :)
* room
timotimo that'd be it, yeah 17:50
TimToady PerlJam: and to be fair(ish) to niecza, it's following STD there :) 17:50
PerlJam The great thing about standards is that there are so many to choose from :) 17:51
TimToady some STDs are deadlier than others... 17:51
FROGGS except when they are not? 17:52
tadzik hopes niecza's STD is not lethal
colomon tadzik: I dunno, niecza's not looking too healthy these days. ;( 18:53
timotimo there is now "Python with Braces" 19:04
moritz timtwotdi in python? :-) 19:10
raydiak hi from an enormous, spinning, spherical spaceship 19:24
FROGGS O.o 19:25
raydiak too cryptic? you're here too, FROGGS :) 19:29
FROGGS ahh
*g*
moritz we just happen not to think of it as a ship, generally :-)
FROGGS nor that it is spherical! 19:30
raydiak well it'd be less amusing if it was painfully obvious
if you include the atmosphere as part of it, which it is, it's pretty close...
timotimo moritz: i learnt today: if a boat fits onto it, it's a ship
benabik It's only off by 0.3% 19:32
moritz not visible to the human eye then 19:34
PerlJam raydiak: even with the solar wind, you think the earth-ship-atmosphere is spherical?
raydiak doesn't that make the definition of a boat circular? if a boat doesn't fit on it, it's a boat and not a ship
benabik Most of the solar wind is deflected by the magnetosphere. 19:35
Wouldn't be a terribly pleasant place to stay without it.
PerlJam not to mention the same gravimetric effects that alter the shape of the rocky part also affect the atmosphere.
benabik See also: Mars
raydiak well, I suppose tbh I am clueless about such things 19:38
images.tutorvista.com/cms/images/83...sphere.PNG # there, see? round. :) 19:39
raydiak hides
FROGGS looks like a disc to me :o) 19:40
PerlJam raydiak: do not confuse a model of a physical system with the actual physical system ;)
raydiak oh but I'm so good at being confused... 19:41
raydiak so I suppose it makes some sort of raindrop-looking shape pointing away from the sun or something? 19:43
FROGGS at least the magnetosphere looks like this 19:43
benabik upload.wikimedia.org/wikipedia/comm...dition.jpg 19:44
geekosaur spider vs sauron?
:p
raydiak I'd keep asking questions, but I suspect a search engine could answer all of them, so I'll simply say thank you for correcting my hilariously cartoonish mental model :) 19:46
PerlJam raydiak: nah ... "sphere" is close enough. We're just a bunch of know-it-alls ;) 19:50
raydiak tis karma...2/3rd of a lifetime of doing this to other people is coming back on me now haha 19:53
raydiak brb quick run to the gas station 19:54
FROGGS but please without helmet O.o
dalek p: 5ab5852 | nicholas++ | t/serialization/01-basic.t:
Basic serialization tests for integers.

Start by testing that -258 .. 258 round trip correctly.
19:55
p: 1a559ff | nicholas++ | t/serialization/01-basic.t:
Serialization tests for integers up to 2**62.
p: 5e7f95e | nicholas++ | t/serialization/01-basic.t:
Serialization tests for integers around 2**63, and other interesting values.
p: 05c5d89 | jnthn++ | tools/build/MOAR_REVISION:
Bump MOAR_REVISION for varint serialization fixes.
raydiak back 20:05
raydiak is still reading about the atmosphere 20:14
benabik Spaaaaaaaaaace 20:15
raydiak I don't like that the magnetosphere is considered part of the atmosphere 20:17
benabik raydiak: I think it's more that the boundaries are a little fuzzy. 20:19
raydiak that's definitely part of the problem...maybe my hangup is that the magnetosphere is comprised of bosons, if I understand correctly 20:22
kurahaupo_mobile the most empty parts of space still have a few hundred thousand particles per cubic kilometer
raydiak sure, I guess in some ways you could say that all of space is the earth's atmosphere 20:23
kurahaupo_mobile compared with which, "space" around earth's orbit has many orders of magnitude more "atmospheric pressure" 20:24
raydiak around earth's orbit, or around earth? are we talking about the solar atmosphere, or the terrestrial atmosphere? 20:28
raydiak is creating atmosphere in the space between on-topic conversations :) 20:30
kurahaupo_mobile raydiak: :) 20:33
[Coke] .u 202F 20:57
yoleaux U+202F NARROW NO-BREAK SPACE [Zs] ( )
[Coke] .u 2009 20:58
yoleaux U+2009 THIN SPACE [Zs] ( )
TimToady yer thin space is not thin 20:59
[Coke] trying to trick webex, which INSISTS on converting :) into an emoticon 21:01
TimToady which is silly, since it already is one :) 21:02
FROGGS [Coke]: try ∶)
[Coke] FROGGS++ FROGGS++ FROGGS++ FROGGS++ 21:03
FROGGS hehe
[Coke] TimToady: it's even sillier when "select count(*) from foo" gets an emoticon in it. :P
TimToady emoticon translation belongs to be attached to your compose key 21:04
unfortunately we've reached the stage where your phone thinks it's smart than you are, which, it might be right in some cases... 21:06
*smarter
wouldn't take much to be smarter than me right now...
FROGGS :/ 21:07
FROGGS does a bit v5 just to do something non $dayjobish 21:13
FROGGS ahhh, I always enjoy seeing this list: 21:16
Using /home/froggs/dev/nqp/install/bin/nqp-p (version 2014.01-37-g05c5d89 / Parrot 5.9.0).
Using /home/froggs/dev/nqp/install/bin/nqp-j (version 2014.01-37-g05c5d89 / OpenJDK 1.7.0_51).
Using /home/froggs/dev/nqp/install/bin/nqp-m (version 2014.01-37-g05c5d89 / MoarVM 2014.01-136-g4b1c237).
timotimo :)
FROGGS and I'd love to see a nqp-js on node.js or so :o(
but I know that I probably won't be able to put energy into it nor would I use it heavily 21:18
at least not in near future
FROGGS std: chr(160) ~~ m:P5/\N{NO-BREAK SPACE}/ # I might do this these days 21:46
camelia std 09dda5b: OUTPUT«ok 00:01 140m␤»
FROGGS r: chr(160) ~~ m:P5/\N{NO-BREAK SPACE}/ # I might do this these days
camelia ( no output )
FROGGS huh
r: say chr(160) ~~ m:P5/\N{NO-BREAK SPACE}/ # I might do this these days
camelia rakudo-parrot 260cd7, rakudo-jvm 260cd7, rakudo-moar 260cd7: OUTPUT«False␤»
FROGGS r: say chr(160) ~~ m:P5/\N{NEL}/ 21:47
camelia rakudo-parrot 260cd7, rakudo-jvm 260cd7, rakudo-moar 260cd7: OUTPUT«False␤»
timotimo sounds good to me :)
FROGGS yeah
thing is that it blows up in v5 21:48
FROGGS ohh 21:50
it treats \N in m:P5 as the opposite of \n -.- 21:51
timotimo d'oh :)
jnthn OH \NOES 21:54
FROGGS *g* 21:54
dalek rl6-roast-data: f7b0536 | coke++ | / (4 files):
today (automated commit)
22:35
[Coke] rakudo.jvm has a new failure today 22:36
(and should have none)
jnthn Hmm
timotimo it seems kind of hard to debug a plugin for the debugger %) 22:37
except of course putting print statements all over the place
pippo Hello #perl6 22:56
yoleaux 10:22Z <FROGGS> pippo: the problem it that handle is NULL and then trying to access handle->body explodes on line 652
10:22Z <FROGGS> pippo: so you just worked around that NULL pointer bug
pippo FROGGS: after some testing with gdb. It appears that replacing 'handle->body.encoding_type' with 'body->encoding_type' on line 652 solves the problem. 23:00
pippo It appears that on line 649, uv_run(tc->loop, UV_RUN_DEFAULT), is resetting 'handle' to 0x0. But 'body' keeps the address of the data structure. 23:06
pippo .tell FROGGS after some testing with gdb. It appears that replacing 'handle->body.encoding_type' with 'body->encoding_type' on line 652 solves the problem. 23:10
yoleaux pippo: I'll pass your message to FROGGS.
pippo .tell FROGGS It appears that on line 649, uv_run(tc->loop, UV_RUN_DEFAULT), is resetting 'handle' to 0x0. But 'body' maintains the address of the data structure.
yoleaux pippo: I'll pass your message to FROGGS.
grondilu does rosettacode.org/wiki/Grayscale_image#Perl_6 work for you? I get "Invalid character in ASCII string" with R* 23:14
lue Whoever expected .lines to work on a binary file? 23:25
TimToady suspects it's from a time before we even had Buf 23:30
lue grondilu: it works, you just need a .ppm file. It's not just stuck on working through it with a ppm. 23:31
s/not// 23:32
TimToady the picture is not a ppm file
lue The "write a ppm" file seems to be broken :/ 23:33
$out.printf("%c%c%c", $r*2, $g*2, 255-$r*2); <-- this seems to be the culprit, unless you can write raw bytes to a binary file like that. 23:34
TimToady now *that* one was pre-Buf 23:34
grondilu I did try it with a ppm file, though (made it with imagemagick) 23:35
skids wonders if that little-bigint moar stuff is in the camelia r-m build yet.
lue btw, $out.printf fails anyway, I replaced it with an equivalent printing command that broke.
TimToady you want .write nowadays for bufs
grondilu and with r-m I get "Malformed UTF-8 at line 1 col 1" :/ 23:37
TimToady what version of ppm did you make? 23:38
grondilu P6
lue Huh, am I not allowed to reupload files on RC? 23:39
TimToady no image uploads currently
too much spam
lue :(
[the ppm I generated is brighter than the one uploaded in 2011]
By the way, I fixed the write a PPM script :) rosettacode.org/wiki/Bitmap/Write_a...ile#Perl_6 23:40
grondilu the image I used was upload.wikimedia.org/wikipedia/en/...Lenna.png, converted with 'convert Lenna.p{ng,pm}'
first three lines are P6,256 256, 255. As expected 23:41
timotimo skids: i believ little big int (now known as smallint) is in there by now. the NPQ_REVISION and MOAR_REVISION have been bumped a few times since
lue Whoever wrote the grayscale image script wrote it in a time where you could use mix binary and text conventions carelessly :/ 23:42
grondilu it'd be nice to rewrite it then, as a way to illustrate how to properly open this kind of file. It's not ovious to me how to do it and S16 is not of much help it seems. 23:43
TimToady slurp it and s/// off the "lines" on the front? 23:44
oh wait
well, s/// *ought* to work on bufs, but doesn't 23:45
skids timotimo: thanks. Seems to have fixed at least one of the two's complement problems from libtomath. Still plenty of weirdness though.
timotimo can we .find or something?
lue grondilu: I'm in the process of rewriting
timotimo skids: it introduced "fast paths" for some operations, so maybe the two's complement problems are still there if you go beyond 32 bit integers
TimToady I suppose you could read it in as latin-1...
skids timotimo: yeah, will require quite some thorough tests. 23:46
timotimo i would have suggested finding the first three \n and transforming the string up until there into ASCII
lue I don't like ppm. Its header uses text for things that could easily be binary :/
grondilu ASCII headers for binary files are quite common, aren't they? 23:47
it allows human to get an idea of what they're dealing with.
TimToady like I say, it's perfectly valid latin-1 :)
skids r: :18446744073709551616[1,1].say # r-j found an even different way to break here.
camelia rakudo-parrot 260cd7, rakudo-moar 260cd7: OUTPUT«-9223372036854775807␤»
..rakudo-jvm 260cd7: OUTPUT«9223372036854775808␤»
lue grondilu: in my experience, the only text in binary files is stuff that has to be text, e.g. words. 23:49
And in any case, doesn't change the fact that I think it's stupid :)
grondilu well, I disagree. I think it's nice if you can just type 'head -3 img.ppm' in order to get the properties of the image. 23:50
TimToady this is why we want bufs to act a bit like strings some of the time 23:51
lue doesn't understand why you'd want to waste three bytes for a number that otherwise takes up one :) 23:52
TimToady a buf8 was supposed to act like an ASCII string, with the possibility of high bytes that have no character properties 23:53
we haven't really got there yet
lue is getting troublesome flashbacks to an earlier buf discussion... *shudder*
jnthn TimToady: Supposed to act like it in one what? You can concatenate it, for instance? 23:54
TimToady: What should say $a_buf8 be doing?
s/one what/what ways/
lue This "text header" business would explain why I'm the only one who thinks Buf (or whatever else handles binary IO) shouldn't associate with stringy stuff. 23:55
jnthn
.oO( too tired to English, apparently... )
grondilu lue: losing three bytes does not matter for an image file that is potentially megabytes big 23:56
lue grondilu: I was being silly there. Of course it doesn't make ~that much~ of a difference.
jnthn lue: I think the most important distinction is whether you have a bunch of bytes or a bunch of characters. Defining certain operations on both (such as concatentation) is just like we define + on integers and complex numbers; the semantics are predictable, even if the details of the operation and the result type differ.
lue finds what his problem with Buf was last discussion... 23:57
rosettacode.org/wiki/Grayscale_image#Perl_6 <-- not perfect, but runs 23:58
TimToady concat should work, say should probably fail on a buf without expcicit encoding
*licit
jnthn TimToady: Ah. At the moment it gists to something showing what's in there... 23:58
grondilu Buf could have a gist that uses Base64 or something. 23:58
TimToady oh, for some reason was thinking 'print'
jnthn r: say 'Klockan öl!'.encode('utf-8') 23:59
TimToady say should probably show ascii, \x the rest
camelia rakudo-parrot 260cd7, rakudo-jvm 260cd7, rakudo-moar 260cd7: OUTPUT«Buf:0x<4b 6c 6f 63 6b 61 6e 20 c3 b6 6c 21>␤»
lue Ah, this is it: irclog.perlgeek.de/perl6/2014-01-10#i_8103826
r: say Buf.new((1,2,3))
camelia rakudo-parrot 260cd7, rakudo-jvm 260cd7, rakudo-moar 260cd7: OUTPUT«Buf:0x<01 02 03>␤»
lue r: say (1,2,3).Buf