Perl 6 - the future is here, just unevenly distributed

IRC log for #perl6, 2013-11-30

Perl 6 | Reference Documentation | Rakudo

| Channels | #perl6 index | Today | | Search | Google Search | Plain-Text | summary

All times shown according to UTC.

Time Nick Message
00:01 Tene joined #perl6
00:02 djanatyn joined #perl6
00:02 autumn joined #perl6
00:19 araujo joined #perl6
00:32 rurban1 joined #perl6
00:36 xinming joined #perl6
00:42 xinming joined #perl6
00:45 xenoterracide joined #perl6
00:45 sitaktif joined #perl6
00:47 xinming joined #perl6
00:52 xinming joined #perl6
00:57 xinming joined #perl6
01:02 xinming joined #perl6
01:06 benabik joined #perl6
02:07 xinming joined #perl6
02:24 Ben_Goldberg joined #perl6
02:28 c1sung joined #perl6
02:33 rurban1 joined #perl6
02:55 japhb__ test
02:58 sjohnson japhb__: heh
02:58 sjohnson hi
03:04 xinming joined #perl6
03:05 c1sung joined #perl6
03:16 xinming joined #perl6
03:21 xinming joined #perl6
03:49 xinming joined #perl6
03:52 japhb__ .oO( "On the Choice of Weatherizing Pigments for Storage Facilities Containing Wheeled Conveyances: A Consensus-Based Approach" )
03:52 geekosaur *snrk*
03:54 TimToady I think we can improve that title...
03:54 japhb__ :-D
03:56 xinming joined #perl6
03:58 TimToady japhb__: feel free to add an entry to http://rosettacode.org/wik​i/Distributed_programming when your peanut butter is sufficiently indistinguishable from magic
03:58 lue "We will begin this discussion by first exploring the full implications of the partial removal of all follicular matter present on the being thus referred to as /Bos mutus/."
03:59 TimToady that should come before the discussion
03:59 lue I feel it best occurs right at the start, lest we need to release a "prerequiste" paper.
04:00 japhb__ lue: nice
04:02 xinming joined #perl6
04:02 japhb__ TimToady: re: rosettacode, not a bad idea, thank you.  Trying to pull up the page so I can see what I would put there, but RC seems to be slow at the moment.  Or my net connection is flaking.  :-/
04:02 japhb__ I like the concept of "peanut butter sufficiently indistinguishable from magic"
04:07 xinming joined #perl6
04:13 xinming joined #perl6
04:15 japhb__ Sheesh, RC seems unhappy right now
04:15 TimToady seems fine to me
04:16 lue me as well. Might be just you, or a combination of you and RC.
04:17 * TimToady blames those skinny pipes from Google
04:18 TimToady it's possible you're in an address block that cloudflare doesn't like
04:22 TimToady course, I'm not in the Bay Area at the moment, so maybe we can blame the NorCal intertoobs
04:23 TimToady you haven't perchance had The Big One while you weren't paying attention?
04:24 * TimToady is assuming that japhb__++ is still in that neck-o'the-woods
04:25 xinming joined #perl6
04:27 atroxaper joined #perl6
04:30 xinming joined #perl6
04:35 japhb__ "The Big One"?
04:36 japhb__ Seems to have finally come back OK
04:42 * japhb__ suddenly realizes that TimToady was probably referring to an earthquake -- in which case, no.  :-)
04:49 xinming joined #perl6
04:55 preflex_ joined #perl6
05:33 xinming joined #perl6
05:38 xinming joined #perl6
05:43 xinming joined #perl6
06:16 Juerd joined #perl6
06:24 rurban1 joined #perl6
06:24 Juerd joined #perl6
06:26 SamuraiJack__ joined #perl6
06:32 kaare_ joined #perl6
06:32 Entonian joined #perl6
06:35 Juerd joined #perl6
06:37 hugme joined #perl6
06:46 Juerd joined #perl6
06:52 Juerd joined #perl6
06:59 Juerd joined #perl6
07:04 hugme joined #perl6
07:08 darutoko joined #perl6
07:08 moritz good morning, #perl6
07:10 xenoterracide joined #perl6
07:15 atroxaper joined #perl6
07:25 Juerd_ joined #perl6
07:28 atroxaper joined #perl6
07:46 atroxape_ joined #perl6
07:55 Juerd_ joined #perl6
07:58 moritz http://nimrod-lang.org/talk01/slides.html
08:06 hugme joined #perl6
08:08 woolfy left #perl6
08:09 Juerd joined #perl6
08:12 moritz looks like feather2 is unresponsive
08:12 moritz or just very, very slow
08:15 moritz can anybody remember when Rakudo gained the nice syntax errors /TTIAR detection?
08:17 tadzik joined #perl6
08:18 hugme joined #perl6
08:23 Tene joined #perl6
08:23 Tene joined #perl6
08:24 berekuk joined #perl6
08:26 moritz those with a p6advent account can now preview http://perl6advent.wordpress.com/2013/12​/01/day-01-the-state-of-perl-6-in-2013/
08:27 moritz feedback and fixes welcome :-)
08:27 SevenWolf joined #perl6
08:27 moritz seems that feather2 isn't down or slow, the network connection is just very lagging
08:28 moritz s/lagging/lossy/
08:28 moritz 66% packet loss
08:38 rurban1 joined #perl6
08:39 Juerd joined #perl6
08:43 Woodi hallo today :)
08:46 Woodi how about nqp compiler on moarvm ? mvm is quite new so maybe there is a chance to have sources of nqpc written in moarvmlang ? but looking in the repo I found exactly what someone say, nqp is written in nqplang :) with some parrot ?
08:47 Juerd joined #perl6
08:47 moritz Woodi: I only understood some single words of what you wrote
08:47 moritz not the whole thing
08:47 moritz there is no moarvmlang
08:47 Woodi ok, it probably my mistake :)
08:47 moritz there is a bytecode format
08:48 moritz and the nqp compiler is written in NQP.
08:48 Woodi so nqp emits bytecode of nqp compiler ?
08:49 moritz nqp emits bytecode for moarvm.
08:49 hugme joined #perl6
08:50 Woodi yes, I wanted to say that... so first nqp on moarvm was written in what language ?
08:50 moritz in NQP
08:50 moritz and cross-compiled by one of the other backends
08:51 Woodi oki, let brain postprocess that...
08:54 logie joined #perl6
08:58 Juerd joined #perl6
09:01 tadzik joined #perl6
09:06 Juerd joined #perl6
09:15 Rotwang joined #perl6
09:15 Juerd joined #perl6
09:15 xinming joined #perl6
09:15 daniel-s_ joined #perl6
09:18 rurban1 joined #perl6
09:19 tadzik joined #perl6
09:20 hugme joined #perl6
09:20 xinming joined #perl6
09:21 djanatyn joined #perl6
09:34 araujo joined #perl6
09:36 Juerd joined #perl6
09:39 masak joined #perl6
09:39 masak good antenoon, good #perl6 people (and bots)
09:39 masak I am having trouble today connecting to feather via ssh.
09:40 tadzik joined #perl6
09:40 masak this is following a surprise reboot late last evening.
09:40 masak I skimmed the logs but found nothing about this. anyone have any more details?
09:42 nwc10 masak: Juerd did announce in advance that he was going to reboot them
09:42 nwc10 (at least hours, if not a day)
09:42 masak oki, carry on then.
09:42 masak still doesn't explain why I now can't connect through SSH, though.
09:43 masak more exactly, 50% of the time I reach feather, but then the connection is *veeeery* slow.
09:43 masak maybe some heavy process is running on feather1.perl6.nl?
09:48 berekuk joined #perl6
09:50 hugme joined #perl6
09:51 Juerd joined #perl6
09:56 Juerd joined #perl6
09:58 dmol joined #perl6
10:07 FROGGS[mobile] masak yesterday a simple rp: invocation took 3 minutes, and then it took seconds again
10:08 masak huh.
10:09 kurak0t joined #perl6
10:10 masak joined #perl6
10:14 masak ok, I'm on feather now. but it's extremely laggy.
10:15 FROGGS :/
10:16 hugme joined #perl6
10:19 masak surely someone else is noticing this, too?
10:19 masak joined #perl6
10:27 berekuk joined #perl6
10:34 masak ...and suddenly everything's fine again. never mind.
10:35 PacoAir joined #perl6
10:41 isBEKaml joined #perl6
10:45 isBEKaml left #perl6
10:50 berekuk joined #perl6
10:55 denisboyun joined #perl6
11:00 xinming joined #perl6
11:10 kivutar joined #perl6
11:25 xinming joined #perl6
11:31 SamuraiJack__ joined #perl6
11:33 Baggio joined #perl6
11:37 tgt joined #perl6
11:47 tadzik joined #perl6
11:48 tadzik if feather a bit freenode-disconnecty to you too?
11:49 daniel-s__ joined #perl6
11:52 berekuk joined #perl6
11:53 tgt joined #perl6
12:00 xinming_ joined #perl6
12:03 timotimo o/
12:03 _daniel-s__ joined #perl6
12:08 daniel-s_ joined #perl6
12:08 jnthn Looks like we're missing dalek after the feather stuffs too
12:11 timotimo i'd like a login for the perl6 advent calendar please
12:11 kivutar joined #perl6
12:11 timotimo ah, there's a register button
12:11 jnthn I'm not sure who gives those out...
12:12 timotimo aaw, both timo and timotimo are taken already
12:12 jnthn Try timotimotimo?
12:14 masak tadzik: freenode-disconnecty just about sums it up.
12:14 masak tadzik: but it got a lot better for me about 2 hours ago.
12:15 SamuraiJack__ joined #perl6
12:32 denisboyun joined #perl6
12:40 daniel-s_ joined #perl6
12:42 denis_boyun joined #perl6
12:50 isBEKaml joined #perl6
12:59 isBEKaml joined #perl6
13:22 moritz lots of packet loss
13:23 moritz could anybody please review the advent calendar post for tomorrow?
13:23 jnthn moritz: link?
13:23 moritz jnthn: http://perl6advent.wordpress.com/2013/12​/01/day-01-the-state-of-perl-6-in-2013/
13:23 jnthn 404...
13:24 jnthn oh, maybe I need to log in...
13:24 moritz you do
13:24 moritz 'cause it's not yet published
13:24 isBEKaml It's already advent time? I'm looking forward to it!
13:24 moritz isBEKaml: well, tomorrow :-)
13:24 isBEKaml \o/
13:25 jnthn "There are still some bits missing, mostly notable support "
13:25 jnthn most *notably*
13:25 jnthn parrot probably wants capitalizing
13:26 jnthn On "much faster at runtime", could link a couple of the blog posts folks made talking about that.
13:28 * moritz just remembers one
13:28 jnthn I thought there was the recent one on rendering stuff?
13:28 jnthn And the colomon one longer ago?
13:29 moritz jnthn: I remember the rendering one
13:29 moritz https://justrakudoit.wordpress.co​m/2013/08/02/rakudo-performance/ also
13:30 jnthn So that's two, no? :)
13:31 moritz aye
13:31 moritz ok, linked those two
13:38 jnthn May be worth a general mention that there's been loads of improvements to built-in types/functions too
13:41 atroxaper joined #perl6
13:50 kivutar joined #perl6
14:13 Util joined #perl6
14:14 xenoterracide joined #perl6
14:17 xinming joined #perl6
14:21 berekuk joined #perl6
14:39 xinming joined #perl6
14:49 moritz jnthn: I've added a sentence about those
14:49 moritz though I kinda hope that lizmat++ will make a separate post about Bag/Set/* :-)
14:51 FROGGS[mobile] joined #perl6
14:52 FROGGS[mobile] joined #perl6
14:54 atroxape_ joined #perl6
14:57 berekuk joined #perl6
15:06 xinming joined #perl6
15:19 xinming joined #perl6
15:24 xinming joined #perl6
15:29 xinming joined #perl6
15:32 dmol joined #perl6
15:49 xinming joined #perl6
15:58 Psyche^ joined #perl6
16:03 xinming joined #perl6
16:06 colomon moritz++: nice post.  One tiny note: I think I'd be inclined to end the first sentence ("Welcome to…") with an exclamation point.
16:06 * moritz changes it that way.
16:08 xinming joined #perl6
16:11 Rotwang joined #perl6
16:13 xinming joined #perl6
16:14 sftp_ joined #perl6
16:15 havox joined #perl6
16:20 arnsholt 22.Clojure from the ground up: Macros (aphyr.com)  84 points by llambda 15 hours ago | flag | 14 comments
16:20 arnsholt 23.Pressure builds on Boehner for NSA vote (thehill.com)  3 points by 1337biz 13 minutes ago | flag | discuss
16:20 arnsholt 24.First Draft of a Report on the EDVAC (von Neumann, 1945) [scribd] (sites.google.com)  4 points by ptype 2 hours ago | flag | 1 comment
16:20 arnsholt 25.Ask HN: How do you come back from a failed acquisition? 58 points by droppedcothrow 8 hours ago | flag | 22 comments
16:20 arnsholt 26.Show HN: Probabilistically Generating HN Post Titles (grantslatton.com)  627 points by gamegoblin 1 day ago | flag | 260 comments
16:20 arnsholt 27.How Too Many SMS Messages Can Shut Down Your Nexus Phone (allthingsd.com)  37 points by dsr12 12 hours ago | flag | 16 comments
16:20 arnsholt 28.What I’ve learned in 5 years of running a SaaS (aculo.us)  236 points by rahulroy 1 day ago | flag | 65 comments
16:20 arnsholt 29.IRCCloud (irccloud.com)  94 points by jacobr 19 hours ago | flag | 72 comments
16:20 geekosaur o.O
16:20 arnsholt Whoops
16:20 sjn important news \o/
16:21 timotimo hehe.
16:21 timotimo Hater News ...
16:21 arnsholt Laptop trackpad has buttons close to the edge, and sometimes they get pressed when my laptop is on, you know, my lap
16:22 sjn hey arnsholt, wanna join us wednesday and make some decision about organizing something #perl6-relevant in Oslo next year? :)
16:22 hummeleB1 joined #perl6
16:23 timotimo arnsholt: if the device is separate from the other stuff you may have luck with "xinput disable"
16:23 MikeFair___ joined #perl6
16:23 arnsholt timotimo: Ooh, good tip
16:24 arnsholt I might just disable "both mouse buttons for middle click" outright, since I never use that particular feature
16:25 arnsholt sjn: I think wednesday evening is my one non-busy day next week, so I was sort of hoping to stay home that day
16:26 stevan_ joined #perl6
16:27 sjn arnsholt: don't worry, we don't have a tradition to stress a lot when Oslo.pm is out drinking beers and discussing things :)
16:28 jnthn But with so much good beer, choosing which one to have next is SO stressful!
16:28 xinming joined #perl6
16:28 sjn jnthn: ssh!
16:29 timotimo so i just had an idea for an optimization yet again. if we have a scan followed by a literal, we do boyer-moore, but if we have a scan followed by an alt/altseq of literals, we don't do that.
16:29 sjn jnthn: don't tell him about the Beer Selection Stress Syndrome
16:29 timotimo i wonder how hard it would be to make a boyer-moore derivative that works with multiple needles, matching the first one it finds
16:30 timotimo also, i think it would be nice if we had the same optimization for .*? that we have for scan, maybe for .* with a boyer-moore-from-the-end search, too.
16:34 rurban1 joined #perl6
16:34 xinming joined #perl6
16:35 arnsholt timotimo: I think it should be possible to merge two Boyer-Moore jump tables. For any character, the merged table has the minimum of the value in the two tables
16:36 timotimo i thought something about the same lines, yeah
16:36 arnsholt That increases my prior confidence that the reasoning is correct =)
16:36 timotimo hah, i only thought about it idly ;)
16:37 arnsholt Me too =)
16:41 timotimo now i'm thinking just merging the tables will cause a big performance loss. if instead you use a table per string and always advance the leftmost needle, you'll be correct 100% and you won't get a big penalty if your patterns are unlucky
16:42 arnsholt Yeah, that sound like it'll work as well
16:43 xinming joined #perl6
16:44 timotimo i think making use of .*? + literal should be closer to the top of my list, though
16:44 berekuk joined #perl6
16:48 xinming joined #perl6
16:48 arnsholt Probably an easier optimisation, for sure
16:49 timotimo hopefully :)
16:49 timotimo i'm not yet sure how exactly our capture stack works, so i'll have to read the code for that first.
16:50 jnthn I think I may have described $!cstack in the workshop slides...
16:52 timotimo i probably won't have time for that today
16:53 xinming joined #perl6
16:58 [Coke] joined #perl6
16:58 xinming joined #perl6
17:12 timotimo is there a flag i can read out in the compiler that tells me if we're compiling to serialise a module or directly execute code?
17:12 jnthn yeah
17:12 timotimo that's good
17:12 jnthn But I dunno where.
17:13 jnthn Search for precomp_mode or precompilation_mode or so
17:13 timotimo now that i know it exists, i'll have an easier time looking for it :)
17:13 jnthn Where are you, btw?
17:13 jnthn (when you want to know this)
17:13 timotimo i'm thinking of either the regex compiler or the optimizer
17:13 jnthn If you've a World instance handy I think that knows.
17:14 timotimo i do in the optimizer. not sure about the compiler.
17:14 jnthn yeah, you have one in both of those scenarios.
17:14 timotimo good
17:14 timotimo another thing, is it feasible to build a hot-regex-detection in NQP?
17:14 timotimo so that we can do some extra-expensive optimisations only if the regex is sufficiently hot?
17:15 jnthn We don't statically tend to knwo about hotness
17:15 jnthn that's more a runtime-optimization thing.
17:15 timotimo yes, exactly
17:15 jnthn So best you have is in heuristics
17:16 timotimo i was hoping for run-time statistics gathering
17:16 timotimo keeping the qregex QAST tree around maybe.
17:16 jnthn Ah...that sounds like it'll get costly to keep 'em all around...
17:16 arnsholt We don't really do any run-time fiddling with the executed code ATM, do we?
17:16 timotimo i don't think we do
17:17 jnthn No, that's very much VM-space.
17:17 zakharyas joined #perl6
17:17 45PAARBGG joined #perl6
17:17 arnsholt And JIT-space, I guess?
17:17 jnthn That too
17:17 xinming joined #perl6
17:18 jnthn Though MoarVM will do type specialization stuff before it gets JIT.
17:18 jnthn That will kinda be the input to the JIT...
17:19 TimToady well, you can make a first-order guess that the inside of a loop is hotter than the outside :)
17:20 jnthn Aye. And loop in regex is quantifier, I guess... :)
17:20 timotimo and after scans
17:20 timotimo (though not necessarily if there's a literal following the scan directly)
17:21 TimToady but the basic problem of an interpreter is that anything could be hot in the right circumstances
17:22 timotimo yes
17:22 denis_boyun joined #perl6
17:22 xinming joined #perl6
17:26 jeffreykegler joined #perl6
17:41 denis_boyun joined #perl6
17:49 timotimo berekuk: i like questhub a lot :)
17:50 timotimo especially the way you can re-order your items by dragging and dropping is great
17:50 berekuk timotimo: thanks :D
17:51 timotimo i was also happy to see that it responds well to being displayed on a phone, or with varying browser width
17:51 timotimo but that's probably just bootstrap?
17:52 berekuk no, not just bootstrap, I wrote plenty of responsive media queries myself
17:52 berekuk actually, QH doesn't use bootstrap grid at this point
17:52 FROGGS[mobile] joined #perl6
17:52 timotimo ah, great! :)
17:53 timotimo did you read what i wrote about the chrome developer tool audit?
17:53 berekuk no..
17:53 timotimo let me paste you something
17:54 timotimo https://gist.github.com/timo/e25319572c495761dd60
17:55 timotimo "d" seems to refer to a font from edgefonts.net
17:58 cognominal joined #perl6
17:58 berekuk right. I'd like to get all static stuff on CDN, it'd speed things up significantly
18:10 TimToady moritz: s/lead to/led to/
18:19 TimToady and after the "sad news" you might add that the new plan is to target .NET as an additional backend for rakudo (indeed, the possibility of this is one reason development of niecza has slowed)
18:25 TimToady nr: sleep 0; say "cool"
18:25 camelia rakudo-parrot 1d729f, rakudo-jvm 1d729f, niecza v24-98-g473bd20: OUTPUT«cool␤»
18:30 ssutch joined #perl6
18:34 colomon joined #perl6
18:35 colomon Hasn't the biggest reason for Niecza development stopping simply that sorear++ and to a lesser extent I have been too busy to work on it?
18:35 xinming joined #perl6
18:35 timotimo maybe
18:39 * colomon deeply regrets not having more time to work on p6 at the moment, and hopes things will be better in 2014.
18:43 TimToady wow, a year ago there were only 4 spec changes in December
18:43 colomon this year there haven't been any!  ;)
18:44 TimToady things tend to freeze in December
18:44 colomon this year in November, round these parts.
18:45 TimToady they tender to freezer morer in Decemberer
18:45 ajr joined #perl6
18:49 stevan_ joined #perl6
18:51 FROGGS[mobile] joined #perl6
18:53 xinming joined #perl6
19:00 xinming joined #perl6
19:07 FROGGS joined #perl6
19:09 kivutar joined #perl6
19:13 xinming joined #perl6
19:17 FROGGS does somebody know what happened to dalek?
19:18 TimToady it's resting
19:18 FROGGS :/
19:18 xinming joined #perl6
19:18 lue .oO(Its vision has been impaired!)
19:23 TimToady how do you cherrypick a single commit from a different branch?
19:23 xinming joined #perl6
19:25 FROGGS TimToady: http://ariejan.net/2010/06/10/cherry-pick​ing-specific-commits-from-another-branch/
19:26 FROGGS git cherry-pick 62ecb3 # not more than that as it seems
19:26 TimToady thanks
19:27 FROGGS yw :o)
19:29 xinming joined #perl6
19:30 Mouq joined #perl6
19:30 Mouq o/
19:30 FROGGS o/
19:34 Mouq I'm not really sure what's actually supposed to happen, but there is an interesting difference here:
19:35 Mouq r: my ($a, :$named) = 1, :named<3>; say $named
19:35 camelia rakudo-parrot 1d729f, rakudo-jvm 1d729f: OUTPUT«"named" => "3"␤»
19:35 Mouq r: my ($a, :$named) := 1, :named<3>; say $named
19:35 camelia rakudo-parrot 1d729f, rakudo-jvm 1d729f: OUTPUT«3␤»
19:35 FROGGS I think binding and assignment have different precedence levels
19:36 FROGGS or....
19:36 Mouq r: my (:$named) = (:named<3>); say $named
19:36 camelia rakudo-parrot 1d729f, rakudo-jvm 1d729f: OUTPUT«"named" => "3"␤»
19:36 Mouq r: my (:$named) := (:named<3>); say $named
19:36 camelia rakudo-parrot 1d729f: OUTPUT«2 unexpected named parameters passed (key, value)␤  in block  at /tmp/rZ3OY0l2IH:1␤  in any  at /tmp/rZ3OY0l2IH:1␤  in any  at gen/parrot/stage2/NQPHLL.nqp:1146␤  in any eval at gen/parrot/stage2/NQPHLL.nqp:1133␤  in any evalfiles at gen/parrot…»
19:36 camelia ..rakudo-jvm 1d729f: OUTPUT«2 unexpected named parameters passed (value, key)␤  in block  at /tmp/xaF2NIo7Og:1␤  in any eval at gen/jvm/stage2/NQPHLL.nqp:1086␤  in any evalfiles at gen/jvm/stage2/NQPHLL.nqp:1292␤  in any command_eval at gen/jvm/stage2/NQPHLL.nqp:1196␤  in an…»
19:36 FROGGS what?
19:36 Mouq vOv
19:37 xinming joined #perl6
19:39 timotimo why what?
19:39 timotimo EZ. on the left side of the = you have a signature with a named parameter
19:39 timotimo on the right you have an object that unpacks to .value and .key
19:40 Mouq So that's... correct behaviour?
19:40 timotimo i think so
19:40 timotimo r: my (:$named) := \(:named<3>); say $named
19:40 camelia rakudo-parrot 1d729f, rakudo-jvm 1d729f: OUTPUT«3␤»
19:40 timotimo this is how you do what you meant
19:40 Mouq Ahhh. timotimo++
19:42 timotimo yw :)
19:42 Mouq That also makes the fact that `my ($a, *@a) := 1;` doesn't work more sensible. It's fine with `\1`
19:43 timotimo yup.
19:43 timotimo sometimes i amaze myself with what cool stuff i know about perl6 :)
19:55 xenoterracide joined #perl6
20:01 xenoterracide_ joined #perl6
20:05 Mouq joined #perl6
20:14 xenoterracide_ joined #perl6
20:14 moritz maybe it should just die with "Can only bind Capture objects to a Signature, but you passed in a $.whatitstype"
20:18 ajr_ There are 2 perl6-p in 2013.11:rakudo-star-2013.11/perl6-p and rakudo-star-2013.11/rakudo/perl6-p
20:18 preflex ajr_: you have 1 new message. '/msg preflex messages' to read it.
20:18 ajr_ Is the first one the definitive one?
20:19 moritz ajr_: the definitive one is the one in install/bin/
20:19 TimToady are those just shell scripts?
20:19 moritz no, perl6-p are fakexecutables
20:20 TimToady oh, -j and -m are shell scripts
20:24 moritz aye, and .bat files on weird OSes
20:24 moritz :-)
20:25 ajr_ Thanks, moritz.
20:27 lue r: say "abc \x[FFFE] def"
20:27 camelia rakudo-parrot 1d729f: OUTPUT«===SORRY!===␤Invalid character for UTF-8 encoding␤␤»
20:27 camelia ..rakudo-jvm 1d729f: OUTPUT«===SORRY!===␤Invalid code-point U+0FFFE␤»
20:28 lue If I understand this correctly, that shouldn't be happening: http://www.unicode.org/versions/corrigendum9.html
20:29 moritz lue: yes, that's how it sounds to me too
20:43 Mouq joined #perl6
20:52 xinming joined #perl6
20:53 raydiak moritz: I've been mulling over my entry for the advent calendar, and am wondering if there are any (beginner to intermediate) specific topics you were hoping to see which aren't yet covered.
20:55 TimToady n: say "abc \x[FFFE] def"
20:55 camelia niecza v24-98-g473bd20: OUTPUT«abc \x{FFFE} def␤»
20:56 TimToady ⊙⨀
20:56 TimToady ⧁°⧀
20:57 TimToady funny that niecza uses a p5-ism to indicate that
20:58 xinming joined #perl6
21:00 TimToady pugs: say "abc \x[FFFE] def"
21:00 camelia pugs: OUTPUT«abc \x{FFFE} def␤»
21:00 TimToady well, there's prior art :)
21:04 lue FROGGS: too bad slangs themself don't work in Rakudo yet, or else someone (perhaps I) could have written a day on them, before your v5 slang. :)
21:04 FROGGS :o)
21:06 denis_boyun joined #perl6
21:08 lue r: my int8 $a = 0xFE; say ++$a; # I can guess why this fails, but it still un-DWIMmy to me.
21:08 camelia rakudo-parrot 1d729f: OUTPUT«Cannot modify an immutable value␤  in sub prefix:<++> at gen/parrot/CORE.setting:4270␤  in sub prefix:<++> at gen/parrot/CORE.setting:1732␤  in block  at /tmp/pPGJwLwjlm:1␤  in any  at /tmp/pPGJwLwjlm:1␤  in any  at gen/parrot/stage2/NQPHLL.nqp…»
21:08 camelia ..rakudo-jvm 1d729f: OUTPUT«Cannot modify an immutable value␤  in sub prefix:<++> at gen/jvm/CORE.setting:4259␤  in block  at /tmp/Dq17aeGLLN:1␤  in any eval at gen/jvm/stage2/NQPHLL.nqp:1086␤  in any evalfiles at gen/jvm/stage2/NQPHLL.nqp:1292␤  in any command_eval at gen/j…»
21:09 xenoterracide_ joined #perl6
21:09 TimToady that should fix itself when 6model learns about C pointers as a kind of container
21:09 timotimo lue: NYI :(
21:10 TimToady so we can have a C-style lvalue, basically
21:10 lue timotimo: also NYI,
21:10 lue r: my int8 $a = 0x100;
21:10 camelia rakudo-parrot 1d729f, rakudo-jvm 1d729f: ( no output )
21:10 ggoebel110 joined #perl6
21:10 TimToady the problem being that a C-style pointer is itself a kind of native type
21:10 timotimo i'm looking forward to that. i think that'll also almost immediately give tcompact arrays and such
21:11 TimToady lunch &
21:11 lue one of the brainstorm ideas for the advent describes "unary sort", but I'm never able to actually find out what this means.
21:12 timotimo oh?
21:12 colomon r: say (1, 4, 323, -1, 0).sort(+*)
21:12 timotimo it's easy
21:12 camelia rakudo-parrot 1d729f, rakudo-jvm 1d729f: OUTPUT«-1 0 1 4 323␤»
21:12 colomon lue:  ^^
21:12 timotimo yeah, give sort a callable that only takes one argument
21:12 timotimo and it does the swartzian transformation
21:12 timotimo also, make that callable return a list of comparables to implement sub-sorting
21:12 colomon or we hope it does the swartzian, anyway.  ;)
21:12 colomon (sp?)
21:13 lue Ah. Here I was thinking it was a type of sorting algorithm, like "bubble sort" :)
21:13 lue (Maybe call it "Unary &sort" instead?)
21:14 denis_boyun joined #perl6
21:14 geekosaur Schwartzian
21:15 colomon geekosaur++
21:16 lue Also, the advent reminded me I should make some updates to S32::Temporal. Is linking to Wikipedia an acceptable "see details" link? (There's an RFC too, though it apparently doesn't *exactly* mirror ISO 8601)
21:17 xenoterracide_ joined #perl6
21:18 tgt joined #perl6
21:19 logie joined #perl6
21:20 SevenWolf joined #perl6
21:27 retupmoca nativecall issue: if I do "is native('libz')" I get "Cannot locate native library 'libz.so'"
21:28 retupmoca if I do "is native('libz.so.1')" it works
21:28 retupmoca this may be related to a gentoo linux weirdness as well: https://gist.github.com/retupmoca/7724686
21:29 Mouq joined #perl6
21:29 retupmoca (or rather, "is native('libz.so.1')" works with a bugfix to NativeCall: https://github.com/jnthn/zavolaj/pull/30)
21:31 retupmoca so, long story short, how does NQP currently handle a .so that is a linker script (like in the gist above)?
21:32 lue retupmoca: it doesn't, from what I recall.
21:34 retupmoca ok
21:34 retupmoca are there plans to handle it, ooc?
21:34 rurban1 joined #perl6
21:36 jnthn retupmoca: At present, we (some extension-adding aside) hand things off to dlopen or the OS equivalent fairly directly. I'm guessing those functions are not too aware of linker scripts...
21:36 preflex jnthn: you have 3 new messages. '/msg preflex messages' to read them.
21:38 jnthn retupmoca: Merged your PR; thanks.
21:41 retupmoca jnthn: tyvm - I'll just load .so.1 directly then
21:42 berekuk joined #perl6
21:42 jnthn arnsholt++ may have some more thoughts on this. I'm the original NativeCall guy, but he's done all the hard work of late on it. :)
21:42 stevan_ joined #perl6
21:42 jnthn I'm guessing either somewhere it's spec'd how dynamic loading should interact with linker scripts, or it's not and they're just an annoying mess.
21:42 FROGGS the problem with linker scripts is that you need to locate them
21:43 FROGGS like you would need to locate a common lib when not using dlopen for that
21:44 xinming joined #perl6
21:55 jnthn TimToady: re 73b2fe31, I'd rather we don't leave commented out code hanging around in Rakudo. There's always version control if we want to find what it used to be.
21:56 jnthn timotimo: The setautothreader patch looks good
21:56 moritz retupmoca: re advent, nothing in particular, but there are lots of ideas in https://github.com/perl6/mu/blob/master/m​isc/perl6advent-2013/topic-brainstorming
21:56 moritz (and it's actually PerlJam who seems to manage it this year)
22:00 * lue wonders if there isn't a program or something that can handle the linker scripts without too much issue.
22:01 lue .oO[ Doing work on git-repo'd stuff feels a lot more dangerous without dalek around to tell me if commits have happened since the last time. :) ]
22:02 retupmoca it looks like the error message from dlopen will give you the full path to the file, at which point we could run a regex or something to try and get the real .so
22:06 raydiak moritz: thanks, that list is the spark of creativity I was looking for :)
22:09 timotimo jnthn: thanks :)
22:09 timotimo took me a while to notice $Binder down there ;)
22:21 colomon joined #perl6
22:28 xinming joined #perl6
22:37 rurban1 joined #perl6
22:38 xinming joined #perl6
22:40 rurban2 joined #perl6
22:40 wooden joined #perl6
22:46 lue Since dalek's not around, here are some specs commits I just pushed: https://github.com/perl6/specs/commit/c​32379ef139b153bc380557935f87b09310cb98a and /97c5bc4e47b819b640fc5f815b861d753ed8aa9c
22:50 pdurbin joined #perl6
23:08 colomon joined #perl6
23:16 xinming joined #perl6
23:34 xinming joined #perl6
23:40 xinming joined #perl6
23:43 havox left #perl6
23:49 BenGoldberg joined #perl6
23:52 berekuk joined #perl6
23:54 xenoterracide_ joined #perl6

| Channels | #perl6 index | Today | | Search | Google Search | Plain-Text | summary

Perl 6 | Reference Documentation | Rakudo