»ö« 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.
00:00 dmol left 00:01 pecastro left 00:12 xenoterracide_ left 00:14 kurahaupo left 00:31 xenoterracide joined 00:41 RangerMauve joined
RangerMauve Hey, what do sockets inherit from? I see here in an example that I can read from a socket using $mysocket.recv. 00:47
Also, is there a way to onlt read from a socket if it has data buffered?
diakopter RangerMauve: sounds like a Perl 5 question... (this is the Perl 6 channel) 00:49
(I'd help you with your question if I knew the answer, however) 00:50
RangerMauve diakopter: Would there be a difference?
diakopter the languages are extremely different; very few similarities in fact
RangerMauve I'm making my program with Perl6 so I'd probably need to know the Perl6 way of doing things.
diakopter oh?
which Perl 6 implementation..
RangerMauve Rakudo, I think it was called 00:51
diakopter do you know how recent/new it is?
perl6 --version
00:52 cognominal left
RangerMauve Lemme see 00:52
diakopter hm, I don't see sockets on doc.perl6.org/
RangerMauve version 2012.10 built on parrot 4.6.0 revision 0
diakopter oh, it's very old
RangerMauve diakopter: This is what I was looking at:
perldoc.perl.org/IO/Socket.html 00:53
diakopter that's the documentation for Perl 5; it's not applicable to Rakudo
RangerMauve An echo server I made seemed to work. But I guess that was just a coincidence
diakopter I think in that (year-old) version of Rakudo the APIs were similar 00:54
RangerMauve HMM
diakopter (yours is Oct 2012)
RangerMauve Yeah, I'm using windoze and just used an MSI that I found
diakopter there's a more recent .msi here rakudo.org/downloads/star/ 00:55
RangerMauve Cool, I'll try that out then 00:56
diakopter I can't promise it'll work better or even identically 00:58
however, we'll be much more likely to reproduce crashes/bugs you encounter
RangerMauve Well, I guess I'll just have to figure out how it'd work. Thanks for the help by the way. 00:59
So how would I go about networking with Perl6, then?
diakopter rj: say Socket 01:01
camelia rakudo-jvm e22ac2: OUTPUT«===SORRY!=== Error while compiling /tmp/C6D_Lr7tIH␤Undeclared name:␤ Socket used at line 1␤␤»
diakopter rj: say IO
camelia rakudo-jvm e22ac2: OUTPUT«(IO)␤»
diakopter rp: say IO
r: say IO 01:02
camelia rakudo e22ac2: OUTPUT«(IO)␤»
diakopter RangerMauve: I don't know what the current state of sockets is
RangerMauve Heh, fair enough
diakopter you might go poling through here feather.perl6.nl/syn/ 01:03
er, plking
er, poking
RangerMauve The echo server I had set up works just fine
diakopter RangerMauve: colomon pointed me to the source here; it could be helpful: github.com/rakudo/rakudo/blob/nom/.../Socket.pm 01:04
RangerMauve diakopter: THis is what I was using. pastebin.com/F03xfs6Y
colomon RangerMauve: I'm trying to figure out who has been working on that code. 01:05
diakopter
.oO( the blind leading the blind, by pointing.. )
01:06
<- blind
RangerMauve Heh
colomon looks like jnthn, FROGGS, donaldh, moritz have been the ones hacking IO::Socket.pm 01:08
diakopter lizmat too
in IO anyway
also labster
colomon most of those are European, hence probably asleep now.
RangerMauve Well I guess I can just lurk. I'm a night dweller so it might be morning for them soon enough. :D 01:09
So how is perl in terms of asynchronous stuff? Is multithreading a thing? 01:13
diakopter perl 5 can do threads, but not the direct-memory-sharing kind, if it was compiled with that configured. Only rakudo with the JVM backend can effectively use threads in Perl 6 right now 01:16
RangerMauve Hmm 01:17
I guess I could set up my own event loop.
diakopter there are plenty of nifty things for Perl 5 that help with that
but as far as firing async operations such that you can return to your event loop, only rakudo-jvm can do that well right now 01:18
(it has its own worker threadpool with event loops, ish)
RangerMauve Hmm, I've been using Javascript with Node.js a lot lately so I've gotten myself stuck in a Node.js mindset. :P 01:19
lee_ in that case you may like AnyEvent on perl 5
diakopter if you don't want to use the JVM backend of Rakudo, I'd recommend exploring the myriad possiblities with Perl 5 right now
yes, look into AnyEvent 01:20
RangerMauve I guess I could do that, then.
01:20 FROGGS_ joined 01:21 c1sung left 01:24 FROGGS left 01:27 c1sung joined
jnap RangerMauve: not sure what you want to do with evented code, but in the last stable release of Catalyst webframework we added provisional support for eventloops (anyevent and others). If you are trying to learn it, I'd be happy to do my best if I can get some help with more code examples, shake it out a bit, etc 01:30
RangerMauve jnap: My project for learning perl6 is going to be making some sort of multiplayer game, and I was planning on using newline delimited JSON to send data between clients and the server. 01:32
So, so far I'm thinking I'll have a game update loop that looks like: read JSON messages from sockets, update game state, send messages to clients about new game state. 01:33
jnap Sounds like fun, I'm into game myself. If you decide to try this on the Perl5 side I would say Mojolicious probably has the most baked support for doing websockets and so forth, for this kind of app, if you plan on server to browser client. But if you want to get involved, as I said I'd love for someone to beat on the support for this in Catalyst, see if we can improve it! 01:36
I also hang out on irc.perl.org#catalyst
not that I want to take you from P6, I too am excited to see async coming to Perl in a baked in manner. 01:37
RangerMauve Oh, this wouldn't be web based. The game is going to be command-line based. :D
01:37 c1sung left
jnap is onew reason I started to lurk here :) 01:37
oh, interesting
RangerMauve I'll check it out though
jnap anyevent, io-async and POE are the more popular event loop thingies 01:38
I would say, on the P5 side
RangerMauve I'll take a look at those, too 01:40
01:44 c1sung joined 01:51 grondilu left 01:57 c1sung left 02:02 c1sung joined 02:40 jnap left 02:43 jnap joined
labster oh, hi all. No, I'm not working on IO::Socket, even if I should be. 02:43
02:44 jnap left
labster colomon: can you tell me what is causing File::Find::Duplicates to fail tests? I started working on getting rid of the bitrot yesterday. 02:45
colomon labster: I don't know? ARe you not seeing failures locally?
Looking at the smoker report… looks like it wasn't finding File::Tools until today? 02:46
labster no failures, just warnings.
02:47 Mouq joined
labster Yeah, that was the main thing, because File::Tools got split. 02:47
colomon I'm trying it now. 02:48
retupmoca awww, moarvm doesn't support 'make DESTDIR="/my/path/here/" install' :(
colomon t/00-basic.t (Wstat: 0 Tests: 7 Failed: 6) 02:49
Failed tests: 1-4, 6-7
labster: ^^
labster: hmmm 02:51
not ok 1 - Basic functionality
# got: 't/test-files/foobar.txt t/test-files/foobar-2.txt t/test-files/empty2 t/test-files/empty1'
# expected: 't/test-files/foobar-2.txt t/test-files/foobar.txt t/test-files/empty1 t/test-files/empty2'
ordering issues?
labster maybe 02:52
colomon that's totally it 02:56
you generate @duplicates starting with a hash
labster thinks about how to sort an array in an array 02:57
retupmoca oh - nqp-jvm doesn't support DESTDIR correctly either 02:58
03:20 logie left 03:45 preflex left 03:47 preflex joined, ChanServ sets mode: +v preflex
dalek p: 4904f02 | dwarring++ | examples/rubyish/ (4 files):
added loose 'or', 'and'. line continuation on method signatures and calls
03:53
p: 150e52a | dwarring++ | examples/rubyish/README.md:
README updates
04:06 bbkr_ left 04:10 bbkr joined 04:13 RangerMauve left 04:23 RangerMauve joined 04:28 RangerMauve left 04:34 prevost joined 04:39 prevost left
lue r: say lcm(2,3,4,5); # I feel like this should be a thing. 04:41
camelia rakudo e22ac2: OUTPUT«===SORRY!=== Error while compiling /tmp/uZtnDt91ah␤Undeclared routine:␤ lcm used at line 1. Did you mean '&lc'?␤␤»
moritz lue: [lcm] exists 04:46
lue derp. :) 04:47
04:51 daniel-s_ joined 04:53 BenGoldberg left 04:55 daniel-s left 04:59 kaleem joined 05:41 SamuraiJack_ joined
moritz lue: it's a common fallacy to get so attached to language features that you want to solve everything with language features, instead of actually programming :-) 05:44
s/fallacy/pitfall/ 05:45
TimToady well, one can fall off that wall on the reductionist side as well, and many have... :) 05:50
05:50 wsri left 06:13 kurahaupo joined 06:30 kurahaupo left
Mouq S17: "TODO: how you can access thread attributes inside a thread 06:35
"async {say "my tid is ", +self;}" 06:36
Just as a suggestion, would &?BLOCK be a bad place to potentially put this information?
Although maybe it should be &*BLOCK or something since the tid really isn't going to be determined at compile time :p 06:37
JimmyZ &*TID 06:39
06:41 darutoko joined
Mouq &*THREAD 06:41
Or maybe we could have named asyncs :p 06:42
06:45 kurahaupo joined 06:51 FROGGS_ left
Mouq n: my @a = ([^10],[^10 >>+>> 10]); @a[||(0;2),||(1;3)].say 07:03
camelia niecza v24-98-g473bd20: OUTPUT«Unhandled exception: Slicels NYI␤ at /home/p6eval/niecza/lib/CORE.setting line 1536 (die @ 5) ␤ at /home/p6eval/niecza/lib/CORE.setting line 3554 (prefix:<||> @ 4) ␤ at /tmp/DLDXWyovrl line 1 (mainline @ 5) ␤ at /home/p6eval/niecza/lib/CORE…»
07:23 [Sno] left 07:24 FROGGS joined 07:43 xenoterracide left 07:44 kaleem left 07:48 go|dfish left 07:50 Maddingue left, kaleem joined 07:53 fhelmberger joined, go|dfish joined 07:56 sqirrel joined, Maddingue joined 08:00 Maddingue left 08:01 Maddingue joined
hoelzro доброе утро, #perl6! 08:07
08:09 darutoko left
timotimo γuτεν μοργεν, #περλ6 08:23
08:36 darutoko joined 08:43 dmol joined 08:44 denis_boyun joined 08:45 dansamo joined 08:47 zamolxes left 08:48 zamolxes joined 08:50 denis_boyun left
jnthn Mouq: S17 needs some work to try and bring it in line with current reality. I'd not trust it too much... :) 08:51
08:51 dakkar joined 08:52 [Sno] joined 08:58 wsri joined
dalek rlito: bd84de4 | (Flavio S. Glock)++ | / (3 files):
Perlito - perl6 - tree grammar modules
09:07
09:08 dayangkun_ joined 09:10 denisboyun joined 09:11 dayangkun left
dalek rlito: b60f756 | (Flavio S. Glock)++ | / (3 files):
Perlito5 - perl6 - apply subroutine refactoring
09:21
rlito: 66a0327 | (Flavio S. Glock)++ | / (2 files):
Perlito5 - perl6 - __PACKAGE__
09:29
09:29 fglock joined 09:31 FROGGS_ joined
fglock p56: sub mysub { my $x = shift; my $y = shift; $x + $y } 09:32
camelia p5-to-p6 : OUTPUT«sub main::mysub {␤ my $x = shift(@_);␤ my $y = shift(@_);␤ $x + $y␤}␤»
fglock not updated yet
09:32 FROGGS left 09:35 daxim joined
dalek rlito: c3c420e | (Flavio S. Glock)++ | / (2 files):
Perlito5 - perl6 - sub cleanup
09:35
fglock p56: sub mysub { my $x = shift; my $y = shift; $x + $y } 09:36
camelia p5-to-p6 : OUTPUT«sub main::mysub ($x?, $y?, *@_) {␤ $x + $y␤}␤»
fglock yay
FROGGS_ cool 09:37
09:38 xorp left, kaleem left
JimmyZ hot 09:38
09:39 kaleem joined, xorp joined 09:40 grondilu joined, grondilu left, grondilu joined
moritz fglock++ 09:42
fglock the refactoring is implemented here: github.com/fglock/Perlito/blob/mas...Grammar.pm
moritz p56: sub mysub { my ($x, $y, @rest) = @_; } 09:43
camelia p5-to-p6 : OUTPUT«sub main::mysub {␤ my($x, $y, @rest) = @_␤}␤»
fglock that one is more complicated, because it needs to scan the sub for other uses of @_ 09:44
moritz yes, thought so
fglock I'll try to do it later
09:44 sqirrel left
jnthn p56: package Foo { sub bar { my $x = shift; $x } } 09:45
camelia p5-to-p6 : OUTPUT«{␤ class Foo;␤ sub Foo::bar ($x?, *@_) {␤ $x␤ }␤}␤»
jnthn Instead of main::bar or Foo::bar, it may be cleaner to just emit "our sub bar ..." 09:46
fglock yes, that was the last commit - not live yet
jnthn ah, cool
fglock does it need 'our'? 09:47
jnthn fglock++
moritz fglock: yes
subs are lexical by default in p6
fglock ok - adding
jnthn Yeah, if it's gonna be an accurate translation it wants it, I think
FROGGS_ why don't you just have an *@_ signature? always?
jnthn However, lexical subs from Perl 5 can have their "my" stripped as it's the default :)
moritz git pulls on p6eval@host07:~/Perlito
jnthn r: sub foo { say @_ }; foo(1,2) 09:48
camelia rakudo e22ac2: OUTPUT«1 2␤»
jnthn FROGGS_: Mentioning @_ in a signatureless sub implies a *@_
FROGGS_ hmmm, interesting 09:49
jnthn: I thought I made that explicitly for v5
dalek rlito: a2918cb | (Flavio S. Glock)++ | / (2 files):
Perlito5 - perl6 - our sub
09:51
jnthn FROGGS_: For v5 I guess you need it whether or not the @_ is mentioned, though?
JimmyZ r: sub foo { say shift @_ }; foo(1,2)
camelia rakudo e22ac2: OUTPUT«1␤»
jnthn r: sub foo { }; foo 1 09:52
camelia rakudo e22ac2: OUTPUT«===SORRY!===␤CHECK FAILED:␤Calling 'foo' will never work with argument types (int) (lines 1, 1)␤ Expected: :()␤»
jnthn perl: sub foo { }; foo 1
perl5: sub foo { }; foo 1
oh, I thought we had an evalbot for Perl 5...
p5eval: sub foo { }; foo 1
p5eval jnthn: No output
jnthn Anyway, that's not an error in Perl 5.
But it is in 6 09:53
fglock maybe I should add *@_ always
jnthn So you'd need to compile different in v5 :)
fglock: You could, maybe
fglock: I guess it gives people a signature to edit... :) 09:54
And it's more accurate in the "sub that doesn't mention @_" case, which I guess is unusual (in so far as a sub that just throws away any arguments it gets is an oddity)
fglock it is common to have methods that get $_[0] but don't use it 09:56
dalek rlito: 68a48a3 | (Flavio S. Glock)++ | / (2 files):
Perlito5 - perl6 - sub has *@_ signature by default
09:57
FROGGS_ jnthn: ahh, now I got it, yes 09:58
jnthn: since "shift" implies using @_, I have to always install *@_ 09:59
jnthn fglock: Probably too common ;-) But yeah, agree.
FROGGS_: oh yeah, I forgot implicit :)
10:03 kurahaupo_ joined 10:05 denisboyun left 10:07 kurahaupo left 10:08 atroxaper joined
atroxaper Hello #perl6 ! 10:08
Is it going to release jvm-R* this month? 10:10
moritz probably not, still too much missing (for example NativeCall) 10:12
atroxaper Ok. Thank you moritz for answer. And for you work!) 10:14
moritz you're welcome. 10:15
dalek rlito: 890d83b | (Flavio S. Glock)++ | / (2 files):
Perlito5 - perl6 - my sub
10:16
jnthn Yeah, we haven't get NativeCall so far along as we probably want for an R* release. Did get the debugger mostly fixed up for JVM, at least...plus some other spectest fixes. 10:17
10:18 kurahaupo_ left 10:19 kurahaupo joined
atroxaper jnthn, cool! 10:19
10:22 kurahaupo_ joined, kurahaupo left 10:23 kurahaupo joined, kurahaupo_ left
jnthn Today's "I'm glad I proofread this" moment: "...pooping from a stack" 10:25
daxim insert freud trollface here 10:26
10:26 kurahaupo left 10:27 kurahaupo joined 10:35 kaleem left 10:36 kurahaupo_ joined, kurahaupo left 10:38 pernatiy left, kurahaupo joined 10:39 kurahaupo__ joined, kurahaupo left 10:40 kurahaupo_ left 10:44 kurahaupo joined, kurahaupo__ left 10:58 kurahaupo_ joined, kurahaupo left, kurahaupo_ left, kurahaupo joined 10:59 Mouq left 11:07 kurahaupo left, kurahaupo_ joined
dalek rlito: a3b2e64 | (Flavio S. Glock)++ | / (4 files):
Perlito5 - js - exists with array index
11:09
11:10 daniel-s_ left 11:11 daniel-s_ joined 11:12 atroxaper left, kurahaupo_ left, kurahaupo joined 11:24 FROGGS_ left 11:30 pecastro joined 11:31 pecastro_ left 11:41 kurahaupo_ joined, kurahaupo left 11:48 denis_boyun joined 11:57 zakharyas joined 12:01 cognominal joined
dalek rlito: 9863afb | (Flavio S. Glock)++ | / (2 files):
Perlito5 - perl6 - sub refactoring - check args fix
12:07
rlito: 8dbed68 | (Flavio S. Glock)++ | TODO-perlito5:
Perlito5 - perl6 - TODO list
12:15
12:20 skids left, denis_boyun left 12:25 FROGGS joined
mathw jnthn: haha. Great one to leave on a slide at an important conference, that... 12:28
12:31 pernatiy joined, kurahaupo joined, kurahaupo_ left 12:32 kurahaupo left 12:33 kurahaupo joined, gshank left
FROGGS r: my $num = 123.456789; say $num.round(1e-5) 12:37
camelia rakudo e22ac2: OUTPUT«123.45679␤»
FROGGS j: my $num = 123.456789; say $num.round(1e-5)
camelia rakudo-jvm e22ac2: OUTPUT«123.45679000000001␤»
FROGGS k, still existent
j: my $num = 123.456789; say $num.round(1e-4) 12:38
camelia rakudo-jvm e22ac2: OUTPUT«123.4568␤»
dalek rlito: 2120983 | (Flavio S. Glock)++ | / (3 files):
Perlito5 - perl6 - TODO list; special variables fix
12:46
12:46 PacoAir joined 12:48 ajr joined, ajr is now known as Guest29033 13:00 kurahaupo_ joined, kurahaupo left 13:06 kurahaupo_ left, kurahaupo joined 13:07 kurahaupo_ joined, kurahaupo left 13:15 kurahaupo_ left, kurahaupo joined 13:18 lowpro30 joined 13:20 denis_boyun joined 13:22 kurahaupo left, kurahaupo_ joined 13:25 kurahaupo joined, kurahaupo_ left 13:27 lowpro30 left, kurahaupo left 13:28 kurahaupo_ joined 13:29 gshank joined 13:31 CharellKing joined 13:35 kurahaupo_ left 13:36 kurahaupo joined 13:37 cognominal left 13:39 lowpor03 joined 13:49 lowpro30_ joined 13:51 lowpor03 left 13:52 bluescreen10 joined 13:55 skids joined 14:03 logie joined
japhb__ How relocatable are rakudo-parrot and rakudo-jvm once I have done 'make install'? 14:04
I want to do builds in a separate dir from final location, and then only after I've got all the panda modules installed and so on, swizzle a symlink to the ready-to-go tree. 14:05
But I'm curious how well that works (or doesn't). 14:06
jnthn Is that not just having two side-by-side installs?
--prefix=rakudo/install/parrot vs --prefix=rakudo/install/jvm ?
You can't just copy the binaries to a new location, though...they end up with paths embedded. 14:07
diakopter well if you know where it will be relocated to... just mimic the dir structure
jnthn The JVM one is closer to relocatable in so far as you can hack the perl6.sh, but I think it still embeds some paths somewhere 14:08
moritz rakudo on parrot's relocatibility is 0.
FROGGS +0 or -0 ? 14:10
moritz yes
jnthn What a point to float :P 14:11
japhb__ jnthn: well, I don't want there to be a long window of time where everything is half-built; I want to still be able to go about my daily routine (using Perl 6 programs normally) while the new version builds, installs modules, and so on. So prefix alone won't do it, I think.
FROGGS one problem that possibly never vanishes is that %*CUSTOM_LIB has the paths when (pre)compiling a module, same for %*ENV and others... 14:12
japhb__ >.<
FROGGS unless it would serialize relative paths 14:13
jnthn japhb__: Have it do it while you sleep? ;-) 14:14
japhb__ FROGGS: relative paths would definitely help, yes.
jnthn japhb__: Or, do it in a VM and rsync the output :)
(to the same paths)
:)
japhb__ Oh hmmm, that's an interesting idea.
Kindof a heavy hammer.
jnthn Yeah
14:15 kurahaupo left, kurahaupo_ joined
tadzik japhb__: what's your use-case? 14:15
did you consider building a new version of rakudo in rakudobrew and then switching it?
14:16 kaare_ joined
japhb__ tadzik: I have two: one I mentioned above, and one of wanting to share a common build that I curate with other people who don't want to think about building Rakudo and panda and all the right modules -- they just want to use my scripts. 14:16
tadzik ah 14:17
well, rakudobrew covers the first one
diakopter japhb__: why can't you fake up the dirs beforehand like I said 14:18
jnthn japhb__: You could also always just build the new on in rakudo-parrot-abc123 14:19
japhb__ heading for bus & # But will respond to above when I get there.
jnthn japhb__: And then delete the previous one after twizzling the symlink
diakopter japhb__: okay, here's a better alternative 14:20
fake up the directories in a place *where* you know you will have control/access to
install to there
tar up and copy to destination
then symlink them from their ultimate destination
14:20 kurahaupo_ left
tadzik or run sed -i on all binaries and replace the paths inside. What can go wrong :) 14:20
14:20 kurahaupo joined
tadzik I used to do that with chrome 14:21
14:22 kurahaupo_ joined, kurahaupo left
diakopter <.> 14:22
14:24 bluescreen10 left 14:26 bluescreen10 joined
jnthn oh wow, I might just have done my slides and will actually get some Perl 6 tuits today... :) 14:26
colomon jnthn++ 14:33
14:33 donaldh joined
japhb__ bak # Ah, that sad day when the morning sunshine no longer quite makes it to the bus stop ... 14:33
14:34 bluescreen10 left 14:35 benabik left
japhb__ A variant of jnthn's idea was my first one ... build in .../rakudo-`git describe`/ and do all my panda installs into that, and then when I'm done update .../rakudo-parrot/ and .../rakudo-jvm/ symlinks. 14:37
14:37 donaldh left
jnthn japhb__: Morning sunshine? I live in Scandinavia... :P 14:37
japhb__ jnthn: You still get it. Only for less of the year, probably. :-) 14:38
jnthn Yeah, and I'm not actually far enough north for it to be too extreme. :)
japhb__ Well, assuming your stop isn't on the north side of a hill.
jnthn Getting to the bit of the year where I'll most likely walk to teaching work in darkness and leave it in darkness, however...
japhb__ bleah. That time will come soon enough for me, too. 14:39
jnthn The worst bit is when you then have the immense misfortune to get put in a classroom with no windows...
Thankfully, there are few of those. 14:40
japhb__ Yeah, no non-artificial light all day can be a serious bummer. 14:42
14:51 Guest29033 left 14:52 zakharyas left 15:03 kurahaupo joined, kurahaupo_ left 15:04 ajr joined, ajr is now known as Guest13015, Guest13015 is now known as ajr_ 15:12 kurahaupo left, kurahaupo_ joined
dalek rlito: 3ce38e5 | (Flavio S. Glock)++ | / (2 files):
Perlito5 - perl6 - while; <>
15:13
15:14 lowpro30_ left 15:16 benabik joined, lowpro30 joined 15:17 araujo left 15:18 araujo joined 15:20 kurahaupo joined, kurahaupo_ left, CharellKing left 15:25 kurahaupo left 15:26 [Sno] left 15:28 dayangkun_ left
diakopter japhb__: well, Reveal bulbs are pretty close! 15:31
I like 'em anyway
15:36 kurahaupo joined 15:37 kurahaupo left 15:40 kurahaupo joined 15:42 dayangkun_ joined 15:44 leo2007 joined 15:45 leo2007 left 15:49 larks_ is now known as larks, larks left, larks joined
pmichaud Reveal++ 15:49
15:56 jnap joined 15:59 fhelmberger left 16:06 kurahaupo left, kurahaupo joined
japhb__ Yeah, Reveal does help a lot. Still not the same as the big light bulb in that big blue room. 16:06
pmichaud today the big blue room is pretty gray though. and someone left the sprinklers on. 16:10
japhb__
.oO( Stop playing frisbee in the big blue room! You're going to hit the sprinklers again! )
16:13
16:13 dakkar left 16:32 kurahaupo_ joined, kurahaupo left 16:33 xenoterracide joined 16:36 fhelmberger joined 16:37 dayangkun__ joined 16:41 dayangkun_ left 16:42 kurahaupo_ left, kurahaupo joined 16:43 [Sno] joined 16:49 kurahaupo_ joined, kurahaupo left 16:53 hexcoder joined 16:58 ajr_ left
hexcoder r: " #`{ comment }" 16:58
camelia rakudo e22ac2: OUTPUT«===SORRY!===␤no ICU lib loaded␤»
hexcoder n: " #`{ comment }" 16:59
camelia niecza v24-98-g473bd20: OUTPUT«===SORRY!===␤␤Undeclared routine:␤ 'comment' used at line 1␤␤Unhandled exception: Check failed␤␤ at /home/p6eval/niecza/boot/lib/CORE.setting line 1502 (die @ 5) ␤ at /home/p6eval/niecza/src/STD.pm6 line 1147 (P6.com…»
hexcoder std: " #`{ comment }"
camelia std a0bcfb1: OUTPUT«===SORRY!===␤Undeclared routine:␤ 'comment' used at line 1␤Check failed␤FAILED 00:01 121m␤» 17:00
17:00 fglock left
TimToady weird 17:00
doesn't do that with my local STD 17:02
hexcoder its from the comments.t test file from rakudo star
TimToady oh, wait, double quotes 17:03
jnthn j: " #`{ comment }"
camelia rakudo-jvm e22ac2: OUTPUT«===SORRY!=== Error while compiling /tmp/1S3gaMvZsa␤Undeclared routine:␤ comment used at line 1␤␤»
17:03 ajr joined
hexcoder but there its commented out, not even marked as todo 17:03
TimToady there aren't comments inside double quotes
jnthn Aye, the error is right
rj gets it right, it seems
No clue what rp is doing there
17:03 ajr is now known as Guest44261
hexcoder ok, thanks. 17:03
TimToady jnthn: maybe it thinks ` is outside of ASCII :) 17:04
.u
yoleaux Search for a Unicode character by codepoint, name, or raw character
hexcoder this is from the comments.t file: # TODO: # ok eval(" #`{ comment }") fails with an error as it tries to execute # comment() before seeing that I meant #`{ comment within this string. 17:05
jnthn Bogus test, at a guess... 17:06
oh...
Probably OK test but wants single quotes there
[Coke] appreciates the shout out to his company's industrial side earlier in the day. :)
jnthn Not double
hexcoder i will try
ack, thats it 17:07
17:08 Guest44261 left 17:09 kurahaupo_ left, kurahaupo joined
[Coke] rp failed again today. 17:13
(daily spec run)
hexcoder :r " #`\{ comment \}" 17:14
TimToady you coded the hex wrong :)
hexcoder oops. 17:15
r: " #`\{ comment \}"
camelia ( no output )
hexcoder better
grondilu r: say #`\{ comment \} "Hello" 17:19
camelia rakudo e22ac2: OUTPUT«␤»
grondilu r: say #`\{ comment } "Hello"
camelia rakudo e22ac2: OUTPUT«␤»
grondilu r: say #`{ comment } "Hello"
camelia rakudo e22ac2: OUTPUT«Hello␤»
17:21 zby_home_ joined
hexcoder r: say "Hello#`\{which means hello in plain english\}" 17:21
camelia rakudo e22ac2: OUTPUT«Hello#`{which means hello in plain english}␤»
grondilu does not work in a string litteral 17:22
hexcoder hmm, that is no real comment
ok, by design?
grondilu r: say "Hello{#`{which means hello in plain english}}"
camelia rakudo e22ac2: OUTPUT«Hello␤»
17:23 kurahaupo_ joined, kurahaupo left
hexcoder ah, ++ 17:23
grondilu also, notice that you don't need the backslashes
hexcoder yep 17:24
grondilu backslashes are for unspaces, which are an other story.
hexcoder yes, I see
17:36 pernatiy left
hexcoder sometimes I get 'SORRY ... no ICU lib loaded' as the only output. Does that mean, parsing has succeeded? Is this a compile time error, or a run time error? 17:36
I know this is a unicode lib... 17:37
grondilu you run rakudo star?
hexcoder yes
grondilu do you have libicu-dev?
which OS anyway?
hexcoder I have to look...
not installed seperately... 17:38
Should I install it?
grondilu yes
17:38 ajr_ joined
hexcoder Ubuntu 17:38
grondilu apt-cache search libicu 17:39
moritz no ICU loaded can be both compile time and run time
hexcoder thanks! ++
libicu-dev is listed by apt-cache... 17:40
17:43 kurahaupo_ left, kurahaupo joined 17:53 spider-mario joined 17:57 iSlug joined 17:58 fhelmberger left 18:00 daxim left 18:01 rurban left 18:03 rurban joined
rurban there's a known issue with latest icu, github.com/parrot/parrot/issues/1014 18:03
jdv79_ jnthn++ # blog post 18:05
18:14 dansamo left 18:17 kurahaupo left 18:19 darutoko left 18:23 xinming left 18:24 xinming joined
nwc10 "Ruby is a dying language." says rubini.us/2013/10/15/introducing-rubinius-x/ 18:32
This is news to me.
diakopter I suspected it..
only 1,645 jobs with Ruby in the title on indeed.com ... 18:33
13,570 for Java 18:34
340 for Perl
454 for VB.NET 18:35
3,585 for C#
1,191 for Python
4,271 for PHP 18:36
3,129 for C++
2,189 for JavaScript or JS 18:37
2,743 for HTML or CSS 18:39
335 for JQuery
18:40 SamuraiJack_ left 18:41 fhelmberger joined
diakopter 2,496 for iOS; 2,415 for Android 18:45
18:48 spider-mario left
diakopter 2 for lisp 18:50
18:51 spider-mario joined
[Coke] GAH. 18:55
diakopter 24 for MUMPS 18:56
18:56 iSlug left
[Coke] Please gist those. 18:57
(if you still want to collect them. I'm done. ;)
diakopter ok. from the rubinius x post: "In general, anything inspired by Perl should be removed.." 18:58
19:00 fhelmberger left
diakopter stevan_: you're a TRAIL 19:02
stevan_ "a" or "on" 19:03
nwc10 I am not familiar with Ruby, but I've been told someone who is, whose judgement I trust on this, that a problem with Ruby is that it takes many of the magic global variables from Perl, but *has no local* to enable code to safely protect itself from global modifications of them.
stevan_ nwc10: it also has no strict mode 19:04
nwc10 likewise, the new refinements feature (or "feature") seems to have way to much global
lexical is tractable to read. Global is not.
stevan_ and object attributes magically appear when you first use them, instead of making you declare them, ... which i really dont like 19:05
diakopter stevan_: my absurd joke pointing out your typo isn't cute anymore when you pretend it's spelled correctly
timotimo rubinius x is basically Ruby6, right?
lue hello, world! o/
nwc10 stevan_: is there a fundamental reason for not having strict? (I believe I understand the reason why it's a "feature" of Python that Python can't have strict)
timotimo: I'm not sure. I'm not sure what to make of it 19:06
stevan_ nwc10: no idea
diakopter: I am just quoting the Changes file, which also has the typo
as was said in #p5mop "wouldn't be a stevan release without one"
diakopter AOH
stevan_: hey what irc network is that; some tor one? 19:12
timotimo ruby is a bit late to the party of "purging perl" 19:21
tadzik maybe it's because it's dying, so they're trying to come up with something cool 19:22
timotimo ah
tadzik like mimicking python :P
timotimo python is dying? 19:23
tadzik no, python is hosting the purging perl party
timotimo ah
stevan_ diakopter: irc.perl.org 19:25
jnthn It's curious $$ and $1 are mentioned. $$ is quite clearly mis-hufmanized... $1 probably ain't, unless you are discouraging regex use heavily :)
diakopter stevan_: erm #p5mop ??
stevan_ diakopter: yes
oh, #p5-mop, sorry
diakopter *cry*
stevan_: so, uh, how does one install this 19:28
<- kindof stupid
stevan_ cpanm --dev mop
you know, I should tweet that
19:28 araujo left
diakopter <- now slightly less stupid 19:28
19:29 araujo joined
diakopter erm, it's ppm installing MinGW64 19:30
stevan_ uhm
that might be an issue
ask rafl in #p5-mop about windows support on twigils
diakopter C:\Perl64\bin\perl.exe -x C:\Perl64\bin/ppm.bat install MinGW64
is what cpanm launched 19:31
stevan_ no idea, I don't use windows
19:32 hexcoder left 19:34 SamuraiJack_ joined
pmichaud good afternoon, #perl6 19:34
jnthn o/ pmichaud
moritz \o
Util o/ 19:36
(and, #ps now) 19:37
pmichaud does /join #parrotsketch
oh! and I can even report that I did something!
19:37 denis_boyun left
jnthn pmichaud++ 19:38
lue wonders what purpose pmichaud had for announcing his joining of a channel...
19:42 SamuraiJack_ left 19:43 prevost joined 19:44 prevost left
Util lue: I had just said "#ps now", which meant that the weekly meeting in #parrotsketch had started, so he was replying to me, in a way. 19:59
lue Util: oh, okay. 20:00
20:02 pernatiy joined
Ulti wonders if a lot of rosetta code stuff should be available via modules.perl6.org 20:02
20:04 denis_boyun joined
Ulti I guess most of the more useful tasks like Runge-Kutta are already modules 20:05
Util Ulti: My Math::Quaternion module came from my Quaternion rosettacode post, by request (of Colomon, I think).
Ulti: If you made a list of RC tasks whose Perl 6 solutions should be modules, it would start the conversation about who wants to tackle which piece. 20:07
colomon Util++
timotimo sounds like wikipedia article list of lists of lists 20:09
en.wikipedia.org/wiki/List_of_lists_of_lists 20:10
20:11 denis_boyun_ joined 20:12 denis_boyun left
Ulti Util sounds like a plan 20:13
Util Ulti++
timotimo wow, nickcolor.pl doesn't see a reason to give ulti and util different colors
20:13 bluescreen10 joined
Ulti rosettacode.org/wiki/LZW_compression#Perl_6 for example could be good if it was bufs instead of strings 20:13
jnthn Yes, I was just like, "why is that guy talking to himself" :P 20:14
Ulti :]
timotimo that would also make the code on rosettacode automatically tested (by proxy)
even better would be rosettacode download support for panda :P
Ulti thats doable 20:15
just magic a module that exports all the subs
Util Ulti and timotimo: Be advised that Ingy has made inroads towards some of that. Full download and extract of all RC code for all tasks for all languages. 20:16
github.com/acmeism/RosettaCodeData
Ulti not sure all of the rosetta examples stand alone or only have code in the code blocks though
timotimo except the code in rosettacode isn't fit to be re.... yes
Ulti Util: cool
20:16 denis_boyun_ left
Ulti I'll watch that repo 20:16
Util: have you seen the language colour bar on that repo! :D 20:18
lue timotimo: same for me with Ulti/Util coloring :/ 20:19
timotimo it doesn't fit and i can't scroll it :(
Util Ulti: I had not noticed. *Pretty* Thanks!
20:26 ajr_ left
Ulti wow ok so Ingy has solved the extracting part o__O 20:29
20:44 kaare_ left 20:49 benabik left, zby_home_ left 20:50 benabik joined
Util Ulti and timotimo: See Ingy talk about it here: 20:53
www.youtube.com/watch?v=WwtyQh4IfbA...5awFKXunZX
(YAPC::NA::2013 Lightning Talks Day 2)
RC is discussed from 50:25 to 51:10, but you should really watch from 45:45 - 51:10 for maximum hilarity.
Ulti thanks a lot, watching now :) 20:55
20:58 bluescreen100 joined, spider-mario left 21:01 bluescreen10 left 21:09 skids left 21:35 lowpro30 left 21:39 hexcoder joined 21:43 DarthGandalf left 21:45 PacoAir left, DarthGandalf joined 22:06 benabik left 22:09 benabik joined 22:10 bluescreen100 left
dalek p: 8ca5f43 | dwarring++ | examples/rubyish/ (4 files):
added rubyish fractal tree example
22:17
22:32 colomon left 22:33 benabik left 22:34 colomon joined 22:48 Mouq joined 22:49 dmol left 23:23 hexcoder left
dalek rl6-roast-data: 147d4cf | coke++ | / (2 files):
today (automated commit)
23:24
23:26 fgomez joined
[Coke] nqp: say(nqp::concat("hi","hi")); say (nqp::concat_s("hi","hi")); 23:41
camelia nqp: OUTPUT«Confused at line 2, near "say (nqp::"␤current instr.: 'panic' pc 14748 (src/stage2/gen/NQPHLL.pir:5229) (src/stage2/gen/NQPHLL.nqp:279)␤»
[Coke] nqp: say(nqp::concat("hi","hi")); say(nqp::concat_s("hi","hi"));
camelia nqp: OUTPUT«hihi␤hihi␤»
[Coke] ... why do we have 2 concat opcodes in nqp-p?
diakopter one used to modify the original input register I think, on parrot 23:42
[Coke] not now, though. 23:43
diakopter maybe stil does
[Coke] they're both registered the same way, now.
QAST::Operations.add_core_pirop_mapping('concat', 'concat', 'Sss', :inlinable(1));
diakopter ok; probably the _s is a fossil then
[Coke] QAST::Operations.add_core_pirop_mapping('concat_s', 'concat', 'Sss', :inlinable(1));
23:44 fgomez left
diakopter [Coke]: if I had to guess, I'd guess that they needed the _s around for bootstrap purposes 23:45
for a while, or something.
[Coke] likely. 23:46
github.com/perl6/nqp/issues/138
23:49 BenGoldberg joined
[Coke] looks like it doesn't appear anywhere in rakudo/nqp 23:50
23:53 xenoterracide left
[Coke] why does moar have "iscoderef" in addition to "isinvokable" ? 23:57