»ö« 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 logie joined 00:01 logie left 00:03 anaeem1_ left 00:06 dmol left 00:13 ren1us left, rurban joined 00:17 rurban left 00:26 rindolf joined 00:35 BenGoldberg joined 00:39 raiph left 00:43 jlaire left 00:46 rurban joined 01:06 emilper left 01:07 klapperl_ joined 01:08 FROGGS left 01:09 Su-Shee_ joined 01:10 woosley left, klapperl left 01:12 Su-Shee left 01:13 hoverboard joined 01:14 hoverboard left 01:16 woosley joined, woosley left 01:17 woosley joined 01:21 FROGGS joined 02:01 aindilis left 02:03 xiaomiao left 02:04 shachaf joined 02:05 shachaf left, xiaomiao joined 02:11 rindolf left 02:20 grondilu left 02:29 noganex_ joined 02:32 noganex left 02:34 shachaf joined, shachaf left 03:03 woosley left 03:09 carlin left 03:14 hoverboard joined
xiaomiao bpaste.net/show/411842/ amusing nqp-2014.06 build failure 03:22
03:25 xragnar left, woosley joined 03:26 xragnar joined
TimToady haven't seen that one, but I would suspect that it needs to have configure run again 03:29
I usually do that just by saying: . config.status
then it reruns Configure with the same arguments you had before 03:30
or try a fresh checkout (unless this was a fresh checkout, in which case I am clueless)
03:52 hoverboard left 03:58 [Sno] left 04:02 kaare_ joined 04:06 estrabd left 04:07 estrabd joined 04:24 brrt joined 04:33 dalek left 04:34 dalek joined, ChanServ sets mode: +v dalek 04:35 PerlJam left 04:38 dalek left 04:40 dalek joined, ChanServ sets mode: +v dalek, xenoterracide left 04:42 PerlJam joined 04:44 sivoais_ is now known as sivoais, sivoais left, sivoais joined 04:47 dalek left 04:51 kaare_ left, pmichaud left 04:55 [Coke] left, hugme left 04:56 tadzik left 04:57 pmichaud joined, [Coke] joined, rurban left, tadzik joined 05:04 kaare_ joined 05:05 hugme joined, ChanServ sets mode: +v hugme, dalek joined, ChanServ sets mode: +v dalek 05:09 kaare_ left 05:10 gfldex joined 05:13 dalek left, dalek joined, ChanServ sets mode: +v dalek 05:14 brrt left, tadzik left 05:17 PerlJam left 05:18 vendethiel joined
vendethiel o/ 05:19
yoleaux 26 Jun 2014 21:45Z <timotimo> vendethiel: "Just enter submit to evaluate the code you typed." that "enter submit" sounds weird/wrong
26 Jun 2014 21:46Z <timotimo> vendethiel: i'm not sure if this is the right thing to tell a newbie, but the reason why { say "hello world!" } only outputs "hello world!" and not 1 (the return value of say) is because that piece of code wrote something to stdout and then the return value will not be printed
05:19 masak joined, masak is now known as Guest82600, brrt joined
vendethiel timotimo: yeah, not sure if it's good to tell newbees 05:19
05:21 hoverboard joined 05:22 orafu left 05:23 hugme left 05:24 brrt left, PerlJam joined 05:25 dalek left, Guest82600 left 05:27 masak_ joined 05:28 rurban joined 05:29 rurban1 joined 05:31 tadzik joined 05:32 rurban left 05:33 rurban1 left 05:34 hugme joined, ChanServ sets mode: +v hugme 05:35 [Sno] joined 05:39 SamuraiJack_ joined, dalek joined, ChanServ sets mode: +v dalek 05:46 kaleem joined 05:47 hugme left 05:48 ponbiki left 05:53 hugme joined, ChanServ sets mode: +v hugme 06:05 kurahaupo left 06:07 fhelmberger joined, rindolf joined 06:10 labster joined 06:12 fhelmberger left 06:16 dalek left 06:18 dalek joined, ChanServ sets mode: +v dalek 06:23 dayangkun left, anaeem1_ joined 06:26 kaare_ joined
ChoHag When should attributes be referred to as $.foo, and when as <sigil>!foo ? 06:26
06:29 hugme left 06:30 thou left 06:32 FROGGS left 06:33 masak_ left, dalek left, pmichaud left, [Coke] left, tadzik left, Util left 06:34 PerlJam left 06:47 ponbiki joined, ponbiki is now known as Guest23372 06:53 dmol joined 06:55 lizmat_ joined, Guest23372 is now known as ponpon 06:56 FROGGS joined, labster_ joined 06:58 labster left, lizmat left, lizmat_ left 06:59 virtualsue joined 07:00 lizmat joined 07:01 hugme joined, ChanServ sets mode: +v hugme, labster_ left 07:06 igorsutton joined 07:07 lizmat_ joined
moritz ChoHag: $.foo is a method call, so an indirection 07:09
ChoHag: from outside, you always need the indirection, because the attribute itself is private
07:10 lizmat left, labster joined, hoverboard left
moritz ChoHag: from inside a class, it's basically your choice, though for write operations you need the ! form, unless the accessor is rw 07:12
07:13 labster left 07:16 Ven joined 07:17 virtualsue left 07:18 lizmat_ left 07:22 lizmat joined 07:25 SamuraiJack_ left 07:28 SamuraiJack_ joined, Ven left 07:31 rurban joined, Ven joined 07:34 zakharyas joined 07:35 pdcawley joined, rurban left 07:46 kurahaupo joined 07:48 brrt joined 07:50 Ven left 07:51 Rounin left 08:00 darutoko joined 08:02 Rounin joined 08:07 lizmat_ joined, lizmat left, Su-Shee_ is now known as Su-Shee 08:09 pecastro left 08:16 bloonix joined 08:18 anaeem___ joined 08:19 fhelmberger joined, anaeem1_ left 08:20 jjk left 08:23 pdcawley left 08:25 pdcawley joined 08:32 rurban joined 08:37 rurban left 08:42 pdcawley left 08:43 pdcawley joined, mr-foobar left 08:45 mr-foobar joined 08:49 rom1504 joined 08:52 rom1504 left, lizmat joined 08:55 lizmat_ left 09:01 brrt left 09:07 virtualsue joined 09:17 Ven_ joined 09:33 rurban joined 09:37 yakudza joined, rurban left 09:42 bakedb joined 09:49 pecastro joined 09:50 bakedb left, bakedb joined 09:53 bakedb left, denis_boyun_ joined 09:58 BenGoldberg left 10:09 spider-mario joined 10:12 tadzik joined 10:21 Ven_ left 10:34 rurban joined 10:38 rurban left
ChoHag Can I tell if an attribute has been set (either with an accessor, internally by the class or at initialisation) as opposed to using its default value? 10:48
FROGGS ChoHag: only when you create a Proxy, and do something in its STORE method 10:49
but that is ugly
ChoHag: why do you care? would it be a problem when somebody sets something that is identical to the default value? 10:50
ChoHag On a related not, can I set attributes (or methods) on attributes?
Probably not.
That is - it probably doesn't matter. 10:51
I can apply my own trait to an attribute but I can't, among other things, tell if an attribute has had that trait applied to it.
FROGGS I guess introspecting applied traits is on the roadmap... 10:55
10:55 uniejo joined
colomon smoke test ran much longer last night, but still ended with 11:07
Segmentation fault (core dumped)
FROGGS :/ 11:10
ChoHag Given a class which has %.foo, how would I set foo to the perl 5 equivalent of: { a => { a1=>1, a2=>2 }, b => { ... } }? 11:11
I'm still getting my brackets mixed up in perl 6.
FROGGS m: class Bar { has %.foo is rw }; my $foo = Bar.new( :foo(a => { a1=>1, a2=>2 }, b => { ... }) ); say $foo 11:17
camelia rakudo-moar f445f8: OUTPUT«Bar.new(foo => ("b" => -> ($_? is parcel) { #`(Block|140372044679712) ... }, "a" => {"a1" => 1, "a2" => 2}).hash)␤»
FROGGS note that the { ... } is not a hash, but Code
11:35 rurban joined 11:39 rurban left 11:46 vendethiel left 11:51 SamuraiJack_ left 11:54 kill joined, kill is now known as amkrankruleuen, amkrankruleuen left, amkrankruleuen joined 12:05 uniejo left 12:12 sergot joined
sergot hi o/ 12:17
sjn \o 12:18
12:18 xiaomiao left 12:20 lue left
nwc10 At least there's some good news to temper the continuing delays in SpaceX launching their next soft landing test: spacecollege.org/isee3/isee-3-statu...ccess.html 12:20
12:20 xiaomiao joined
nwc10 (oh, and 6 satellites. Apparently that's the official reason for the launch) 12:21
12:24 lizmat left 12:31 uniejo joined 12:33 lue joined 12:37 rurban joined, lue left 12:38 uniejo left 12:41 rurban left 12:49 rurban joined 12:51 lue joined, jnap joined, uniejo joined 12:55 Ven joined 13:06 molaf joined 13:08 rindolf left 13:14 SamuraiJack_ joined
Ven It's a pretty quite day :-) 13:15
timotimo quiet* 13:16
13:20 FROGGS left 13:21 kaare_ left
TimToady hackathon hasn't started yet :) 13:23
13:23 anaeem___ left 13:24 anaeem1_ joined
timotimo would appreciate someone verifying my claims in the p6l mail i just sent 13:26
right now i'm not in a position to properly verify with an actual rakudo 13:28
13:28 anaeem1_ left 13:30 guru joined, guru is now known as Guest45018 13:31 rurban left, Guest45018 is now known as ajr_
Ven timotimo: It's quite a day, too ;) 13:37
timotimo: perl6-language ? 13:38
timotimo yes
Ven The most recent seems to be " [perl6/specs] 2d0d5a: Some more elaboration about CompUnit class" ?
timotimo oh
sorry, i meant p6u 13:39
13:39 awwaiid joined
Ven timotimo: perl6-users ? I don't see a message from you there, either 13:39
unless you're kamil Lu/lage
timotimo did my message not make it through? 13:40
i got the bounce
Ven Well, I'm browsing the "archives", so it might be why
timotimo ah
p6u is so low-traffic that it's very worth it to subscribe
Ven It's there on G groups :) 13:41
timotimo fair enough, i guess?
i can see my reply in there
"15 minutes ago" 13:42
groups.google.com/d/msg/perl.perl6...l4yMVCdkgJ
Ven timotimo: yep, `is` works
timotimo the question is: does "is" work like i explained? :)
Ven well, yes, else I wouldn't have said so 13:43
timotimo thank you :)
Ven I admit I havn't checked google groups for a while, probably like 6 months 13:45
13:49 btyler joined 13:52 fhelmberger left 13:54 igorsutton left
Ven m: role A { method foo { say 1 } }; A.new.foo 13:56
camelia rakudo-moar f445f8: OUTPUT«1␤»
Ven being able to `new` roles seems kinda confusing, uh
moritz m: role A { method foo { say 1 } }; say A.new.WHAT === A 13:57
camelia rakudo-moar f445f8: OUTPUT«True␤»
13:57 lizmat joined
TimToady interesting 13:58
Ven TimToady: that's not by design ?
TimToady arguably role A and class A are two different things
but with the pun, I don't think it's terrible to confuse them
Ven we a lisp/6 now :) ?
timotimo if you can't confuse them, the pun didn't work
TimToady a punnable role is really just a way to write a composable class, in a sense 13:59
the dicey bit is that the role is immutable, and the class is mutable, so it could diverge over time from its role 14:00
timotimo OOP is hard, let's go shopping
TimToady monkey typing will change the class, not the role 14:01
timotimo we already have trouble with monkey typing changes not applying everywhere they ought to
TimToady well, that's mostly because the bootstrap abstraction leaks
14:03 woolfy joined 14:04 rindolf joined 14:05 FROGGS joined 14:12 zakharyas left 14:15 anaeem1_ joined 14:19 anaeem1_ left 14:20 Alula_ left 14:22 Alula_ joined
hoelzro morning #perl6 14:29
Ven o/ 14:31
TimToady \o 14:33
14:33 woolfy left, woolfy joined
Ven There's no IO::Path#move ? Where is IO::Path anyway :( 14:33
timotimo "rename"? 14:34
Ven timotimo: yeah, but it's not in IO::Path.^methods nor in the doc.perl6, so I got confused. 14:35
timotimo oh
.^methods(:all)? :P
14:40 xdoctor left, labster joined
btyler is feather.perl6.nl having trouble? a panda rebootstrap just failed because it got connection refused while pulling feather.perl6.nl:3000/projects.json 14:40
moritz btyler: not feather having trouble in general, just the web service behind :3000 being dead 14:42
tadzik: ^^ please restart :-)
Ven timotimo: no. not even
moritz tadzik: and please make that web service something installable, I hate to 'su' as your user to restart it 14:43
14:45 bluescreen10 joined
btyler moritz: thanks 14:46
Ven moritz: you were the one who originally created the p5-to-p6 guide, right ?
did you present it at some conference ? 14:47
14:47 treehug88 joined
Ven or maybe the "idioms" advent posts 14:47
14:47 labster left, woolfy left 14:48 lizmat left
moritz Ven: I didn't conference-present it, no 14:48
Ven moritz: do you think that could be interesting ?
I'm starting to think it'd be
14:52 kaleem left 14:54 synopsebot joined
tadzik moritz: done 14:55
moritz: hmm, I can chmod stuff :P
15:01 lizmat joined 15:02 telex left 15:04 woolfy joined, telex joined
TimToady rosettacode.org/wiki/Events#Perl_6 15:06
lizmat finally arrived in the hackathon room 15:09
(and is off for some Chai Tea Latte)
colomon \o/ 15:10
15:11 thou joined 15:16 labster joined 15:20 labster left 15:23 raiph joined 15:24 [Sno] left
lizmat is back 15:24
colomon o/
colomon \o
happy hacking!
raiph p5eval: sub foo { 0, 1, 2 }; my @bar = foo; say $bar[1] # just checking 15:25
15:26 denis_boyun_ left 15:28 labster joined 15:29 kaleem joined 15:30 btyler_ joined
Ven HOLIDAYS. yay 15:31
15:31 Ven left 15:32 btyler left 15:34 newbie_Perl6 joined 15:38 btyler_ left
lizmat raiph: $ perl -E 'sub foo { 0, 1, 2 }; my @bar = foo; say $bar[1]' 15:40
1
15:43 newbie_Perl6 left 15:45 newbie_Perl6 joined 15:46 lizmat_ joined
raiph Thanks lizmat++ I was trying in a local shell but getting nowhere. (I needed -E, not -e.) 15:47
15:47 lizmat left 15:49 newbie_Perl6_ joined
hoelzro is the star release going out anytime soon? 15:50
15:51 newbie_Perl6 left 15:52 psch joined
psch hi #perl6 15:52
lizmat_ m: sub a ($a,:$b) { say $a; say $b }; my $s = ("foo", b => 2); say $s.perl; a(|$s) # what am I doing wrong here ? 15:53
camelia rakudo-moar f445f8: OUTPUT«$("foo", "b" => 2)␤Too many positional parameters passed; got 2 but expected 1␤ in sub a at /tmp/xfnw4RGGsF:1␤ in block at /tmp/xfnw4RGGsF:1␤␤» 15:54
15:54 newbie_Perl6_ left
timotimo m: sub a ($a,:$b) { say $a; say $b }; my $s := \("foo", b => 2); say $s.perl; a(|$s) 15:54
camelia rakudo-moar f445f8: OUTPUT«Capture.new(list => ("foo",), hash => {"b" => 2})␤foo␤2␤»
lizmat_ timotimo++ 15:55
15:56 labster left 15:58 newbie_Perl6 joined, hoverboard joined, lizmat_ is now known as lizmat 16:00 masak joined 16:01 newbie_Perl6_ joined
moritz tadzik: don't chmod stuff; put it into /usr/local/pandaserver or so, and write an init script for it 16:03
tadzik: and maybe we should run it as a separate user account
16:03 newbie_Perl6__ joined
moritz providing shared services fro a private user account just asks for trouble 16:04
16:04 newbie_Perl6 left, Akagi20__ joined 16:06 newbie_Perl6_ left, Akagi201_ left 16:08 Akagi20__ left 16:09 newbie_Perl6__ left 16:10 labster joined, uniejo left 16:13 btyler joined 16:18 user3 joined 16:20 user3 left 16:21 lizmat left
jdv79 jnthn: awesome 6guts post as usual. thanks! 16:29
16:31 molaf_ joined, user3 joined 16:33 kaleem left 16:34 molaf left 16:36 hoverboard left 16:38 pecastro left
cognominal jnthn++ 16:38
16:41 virtualsue left 16:48 virtualsue joined 16:51 FROGGS left 16:52 labster left 16:53 mr-foobar left, mr-foobar joined 16:57 vendethiel joined 16:58 FROGGS joined 16:59 xinming_ joined
vendethiel o/ from home. 17:00
17:00 mr-fooba_ joined 17:02 mr-foobar left, xinming left 17:03 mr-fooba_ is now known as mr-foobar 17:04 [Sno] joined
vendethiel .u arrow 17:05
yoleaux U+02C2 MODIFIER LETTER LEFT ARROWHEAD [Sk] (˂)
U+02C3 MODIFIER LETTER RIGHT ARROWHEAD [Sk] (˃)
vendethiel .u up arrow
yoleaux U+02C4 MODIFIER LETTER UP ARROWHEAD [Sk] (˄)
U+02F0 MODIFIER LETTER LOW UP ARROWHEAD [Sk] (˰)
U+034E COMBINING UPWARDS ARROW BELOW [Mn] (◌͎)
vendethiel .u ⇧ 17:06
yoleaux U+21E7 UPWARDS WHITE ARROW [So] (⇧)
vendethiel .u ⌃
yoleaux U+2303 UP ARROWHEAD [So] (⌃)
17:09 Akagi201_ joined 17:10 virtualsue left, SamuraiJack_ left 17:11 user3 left 17:14 Akagi201_ left 17:15 dolmen left 17:18 rurban_ left 17:26 hoverboard joined
ChoHag How can I return a hash which is lazily generated from a list where the key of the hash is the list element and the value calculated from it? 17:28
vendethiel I'm not sure we have lazy hashes (?)
17:28 uniejo joined
ChoHag Well, something that looks hash-like. 17:29
17:34 ajr_ left 17:38 vendethiel left, uniejo left
nnunley ChoHag: It looks like you'd need something that implements the the Associative and Positional roles (like a PairMap) Possibly delegating to a Hash for memoized values? 17:40
17:41 broquaint left 17:42 rurban joined
raiph m: sub lazypairs (@list) { @list.map: { $_ => $_ + 1 } }; say lazypairs(^Inf)[3] # ChoHag: A lazy hash doesn't make sense to me. Perhaps you mean a lazily generated list of pairs? 17:45
camelia rakudo-moar 82af72: OUTPUT«3 => 4␤»
17:46 Akagi201_ joined 17:51 Akagi201_ left, uniejo joined 17:53 Mouq joined 17:58 xinming_ left 17:59 xinming joined
Mouq ChoHag: Maybe something like sub lazyhash (@lazy-pair-list) { @lazy-pair-list does role { method postcircumfix:<{ }> ($key) { $.first(*.key == $key) } } }, except that method postcircumfix doesn't work anymore... 18:00
(it's spelled `sub postcircumfix:<...>` now) 18:01
18:01 user3 joined 18:04 uniejo left 18:06 japhb_ left 18:10 japhb left 18:11 raiph left 18:12 cognominal left, cognominal joined 18:14 uniejo joined 18:16 Rotwang joined
ChoHag I basically just want an attribute which is a hash whose values are calculated only when they're needed. 18:16
But the keys are known in advance. 18:17
18:17 Rotwang left, Rotwang joined 18:22 thou left 18:23 thou joined, lizmat joined
tadzik moritz: yeah, you're right. It was supposed to be a temporary solution and all :P 18:24
18:28 vendethiel joined 18:30 rindolf left
Mouq ChoHag: Ohhh 18:34
18:36 virtualsue joined
timotimo my %foo is default({ ... }); perhaps 18:36
lizmat m: my %foo is default( {} ); say %foo<a>.perl 18:37
camelia rakudo-moar 82af72: OUTPUT«{}␤»
lizmat m: my %foo is default( {a => 1} ); say %foo<a>.perl
camelia rakudo-moar 82af72: OUTPUT«{"a" => 1}␤»
FROGGS ahh, a blōg by jnthn++ 18:38
weird that I don't get a mail when I follow him :/
timotimo that's not what i meant :) 18:39
m: my %foo is default( -> { rand }); say %foo<a>; say %foo<b>; say %foo<a>
18:39 itz joined
camelia rakudo-moar 82af72: OUTPUT«-> () { #`(Block|140024295223472) ... }␤-> () { #`(Block|140024295223472) ... }␤-> () { #`(Block|140024295223472) ... }␤» 18:39
timotimo doh.
that doesn't thunk
18:43 user3 left, Rotwang left, virtualsue left, Rotwang joined
timotimo FSVO thunk 18:44
TimToady rosettacode.org/wiki/Draw_a_clock#Perl_6 <-- more braille graphics 18:45
18:46 Rotwang left
timotimo now do an analog clock! 18:46
18:47 Sqirrel joined
rjbs Cute! 18:49
btyler TimToady: awesome!
FROGGS TimToady: I also thought about doing it, but my version would not be that cool :o) 18:50
18:50 Rotwang joined 18:51 darutoko left
rjbs Curious about ( qx/stty size/.words ) -- there is no newline left in $cols because we've split on \s+, basically? 18:51
18:51 Rotwang left
rjbs Can I make perl6-m accept a program to run from stdin? 18:53
18:54 Rotwang joined, guru joined
Mouq rjbs: .words is actually more like .comb(/\S+/) 18:54
btyler echo "'hi'.say" | perl6 # simple way worked for me: not the case for you, rjbs?
18:54 guru is now known as Guest57024, Guest57024 is now known as ajr_
rjbs btyler: I only arrived at that a minute ago, but in a fit of brain-fever used > instead of | 18:55
btyler: so now I'm recompiling :)
btyler: I had previously tried "./perl6 -" and "./perl6 -- -"
Well, it'll get me a month-newer rakudo and moar, anyway.
18:55 virtualsue joined
btyler rjbs: ah, yes, the brain-fever :) know that one well 18:56
FROGGS TimToady++ # I run it right now, it is awesome!
btyler (also, off topic, but 1.21 jiggawatts and perl5 @ 20 were both awesome talks, rjbs++) 18:57
rjbs btyler: Oh, I'm very glad you enjoyed them, tahnks!
Thanks, eevn.
Oh, nevermind. :)
FROGGS rjbs++ # only watched the awesome 5@20 yet, but started to watch the other one... 18:58
I've only watched a few talks in total, but I think your's are the most entertaining :o) 18:59
rjbs Well, thanks! I was pretty happy with how they turned out. I was also unhappy that once again I didn't manage to get a lightning talk together. Maybe for OSCON…
TimToady++ # That's a nice clock. 19:02
19:09 colomon left 19:11 gjb_ joined, gjb_ is now known as japhb 19:13 virtualsue left 19:15 japhb_ joined 19:16 Sqirrel left 19:24 matija left, matija joined 19:25 matija left, matija joined, mr-foobar left 19:26 mr-foobar joined 19:29 virtualsue joined 19:33 broquaint joined 19:34 labster joined 19:35 araujo left, treehug88 left
Ulti is there any plans to just have thinly wrapped C like ASCII strings in Perl6? 19:41
is a Buf closer to this than Str?
19:42 yeltzooo4 joined 19:43 yeltzooo left, ggherdov left, Psyche^_ left, petercommand left
lizmat Buf and native arrays, afaik 19:43
19:43 Psyche^ joined
lizmat native arrays being NYI, afaik 19:43
19:43 _sri joined 19:44 ggherdov_ joined, ggherdov_ is now known as ggherdov, petercommand joined
Ulti moarvm uses 32 bits per character atm right? 19:45
I guess that is a #moarvm question 19:47
19:47 uniejo left
labster jnthn++ for blog, TimToady++ for a nice clock 19:47
19:50 ponpon is now known as ponbiki
Ulti oh actually my program isn't really /that/ big in memory footprint its just the runtime overhead... that's not so bad 19:51
and if I can easily quarter the value I'm seeing that is usable 19:52
19:54 brrt joined 19:55 pecastro joined 20:02 brrt left 20:06 uniejo joined 20:09 kaare_ joined 20:12 immortal left 20:17 uniejo left 20:20 japhb_ left, japhb_ joined
vendethiel m: say (6,).perl; say @(6).perl; 20:21
camelia rakudo-moar 82af72: OUTPUT«(6,)␤(6,).list␤»
Mouq tadzik: github.com/tadzik/steroids/pull/2
20:21 ggherdov left, ggherdov joined 20:24 uniejo joined 20:28 rurban1 joined
vendethiel Okay, so, I have a dilemna. 20:28
Do I show `join ',', @a` or `@a.join(',')` ??
moritz the answer is clearly "yes" 20:29
lizmat whatever you feel more comfortable with
I feel the latter is slightly more perl6y
vendethiel moritz: thanks.
jercos personally I'd prefer the latter, or join(',', @a)
leaving joins open-ended like that feels off, possibly from perl5 habit 20:30
vendethiel uh ?
moritz if it's the last statement in a line, I prefer the @a.join: ',' form
20:30 erkan joined, erkan left, erkan joined
vendethiel I'm not showing the : stuff 123 lines into the tutorial :P 20:31
TimToady open-ended join ',', ... is for when ... is long 20:32
vendethiel uh² ? 20:33
so, @a.join ?
TimToady talking about end-weight 20:34
vendethiel is getting lost
TimToady short things want to be before long tings
vendethiel that was probably a terrible question to ask, anyway
psch did you show .split or split before? 20:35
i.e. if you're mostly doing method-y stuff, stay with methods, if not, don't
jercos I guess the existance of say sorta eliminates the odd case of |print join ",", @a, @b, "\n"| "oh whoops, gotta add parens on that join."
psch and add a "most of those also work as sub/methods" somewhere
TimToady and one sometimes wants to avoid having parentheses that go many lines
vendethiel psch: I only showed say
TimToady so, for instance, something like: say join ',', gather for @stuff { blah, blah, blah, take blah, blah } 20:36
puting an entire gather into () is a bit crufty, just to put a .join(',') at the end 20:37
psch i'd actually go with join ',', @a first and mention that it also works as method
but that's just how i imagine it to flow well, ymmv 20:38
20:39 labster left
vendethiel psch: that could be a good time to introduce readers to methods, though 20:40
20:40 labster joined
psch yeah, that's why i said you show the sub and transition to "it also works as method" :) 20:41
i.e. "here, that's say... we also have join... oh btw, those (and many more) also work as methods" 20:42
20:47 obra_ joined, krunen_ joined
psch i guess it might also depend on your audience; clog says it's "p5 to p6 for non-p5ers", which i understand as "there is programming knowledge but we don't know what kind", that about right? 20:48
vendethiel psch: not much programming knowledge 20:49
let me update it to my working version
20:49 [Coke] joined
vendethiel maybe I should ask for more programming knowledge, but meh. 20:49
[Coke] .
vendethiel o/ [Coke]
20:49 uniejo left
vendethiel psch: scriptogr.am/vendethiel/post/and-pe...came-forth 20:50
20:50 ClarusCogitatio left
psch hi [Coke] 20:51
vendethiel I'm struggling not to add an explanation about what OO is
20:51 uniejo joined, kurahaupo left 20:52 _sri left, R0b0t1 left, krunen left, obra left
psch vendethiel: as for content, i think the transition works pretty well as you have it 20:55
Mouq found OO made much more sense when he started using Perl 6 than it did when he was using Perl 5
psch the plenks don't work for me, but that might be cultural :)
vendethiel psch: plenks ? 20:56
20:56 ClarusCogitatio joined
psch en.wikipedia.org/wiki/Plenk 20:56
i guess it is a german thing
20:57 _sri joined
psch basically, whitespace before punctuation 20:57
vendethiel psch: ooooh. Alright.
That's just an habit because I'm french. Fixing.
20:58 _sri left, R0b0t1 joined
psch i think you should add a basic OO introduction with examples though, otherwise methods probably don't make that much sense 21:01
vendethiel yeah, yeah. 21:02
21:02 _sri joined 21:04 lizmat_ joined, uniejo left, woolfy left, lizmat left 21:06 lestaway joined 21:07 kaare_ left 21:09 lizmat joined 21:10 lizmat_ left 21:11 labster left, lestrrat left, lestaway is now known as lestrrat, bluescreen100 joined 21:13 cognominal left, lizmat_ joined, cognominal joined 21:15 Akagi201_ joined, lizmat left 21:16 bluescreen10 left 21:18 uniejo joined 21:20 woolfy joined, uniejo left, Akagi201_ left 21:22 immortal joined, immortal left, immortal joined 21:25 retupmoc1 joined, segomos_ joined 21:26 TimToady_ joined, amkrankr1leuen joined, firnsy_ joined, firnsy_ left, firnsy_ joined, petercom1and joined, FOAD_ joined 21:27 apejens_ joined, pecastro_ joined 21:31 erkan left, pecastro left, petercommand left, ggherdov left, Rotwang left, amkrankruleuen left, yakudza left, hugme left, stux left, sjohnson left, apejens left, segomos left, timotimo left, REPLeffect left, atrodo left, yogan left, tokuhirom left, muraiki left, go|dfish left, firnsy left, FOAD left, retupmoca left, TimToady left, FOAD_ is now known as FOAD 21:32 stux joined 21:34 uniejo joined 21:36 hugme joined, ChanServ sets mode: +v hugme 21:37 sjohnson joined, muraiki joined 21:38 yakudza joined 21:39 go|dfish joined 21:40 spider-mario left 21:41 araujo joined 21:56 itz left 21:57 virtualsue left 21:59 uniejo left 22:01 uniejo joined, virtualsue joined 22:02 itz joined, BenGoldberg joined 22:09 rurban1 left 22:10 gfldex left, dmol left, rurban1 joined 22:11 rurban1 left
tadzik Mouq: thanks :) 22:19
psch smartmatch tr/// returns the distance now \o/ 22:21
i'm not really happy with my implementation though
(also, it's not yet PR-ready, tr/// against implicit $_ doesn't return the number of changed characters)
but the fact that a stand-alone tr/// doesn't do what it should might mean i've been doing it wrong all along 22:24
22:25 ajr_ left
Mouq ++psch :) 22:30
mr-foobar lol
Mouq tadzik: np :)
mr-foobar oops, wrong channel 22:31
22:33 uniejo left 22:35 virtualsue left
BenGoldberg m: .ord.say for "ρ℮гןб".comb; .&uniname.say for "ρ℮гןб".comb 22:36
camelia rakudo-moar 8de0fd: OUTPUT«961␤8494␤1075␤1503␤1073␤GREEK SMALL LETTER RHO␤ESTIMATED SYMBOL␤CYRILLIC SMALL LETTER GHE␤HEBREW LETTER FINAL NUN␤CYRILLIC SMALL LETTER BE␤»
22:36 firnsy_ is now known as firnsy, orafu joined
vendethiel psch: would you mind telling me what you think about the section I added ? 22:40
I kinda think I'm not doing a good job at explaining at all
22:42 rurban1 joined
psch vendethiel: the progression seems ok to me 22:45
wording is a bit awkward in places, and habits are hard to break as we know ;)
vendethiel psch: don't you feel like I'm going all-out on totally unrelated stuff ? 22:46
psch: you don't put a space before ! either, right?
22:46 rurban1 left
psch vendethiel: yeah, 'Neat !' looks really weird to me :) 22:47
vendethiel (and the wording is awkward because I'm a terrible engrish speaker. I can try to pretend, but it falls off pretty quickly)
oh, really :P ?
I thought it was a saying 22:48
psch i mean 'Neat !' compared to 'Neat!' :)
vendethiel Oh :)
psch as a word it's fine, it fits with the tone you're writing in
similarly 'Great !'
vendethiel Alright, fixed those.
psch also, i think 'modelize' isn't really used anymore 22:49
and you used '(to) model' before, so you should stick with that
masak '♞, #perl6
psch night masak 22:50
22:50 Ben_Goldberg joined, BenGoldberg left, Ben_Goldberg is now known as BenGoldberg
psch vendethiel: in general, i think explaining perl6 for people without any programming knowledge can't be easy unless you constrain yourself to specific concepts you want to teach 22:50
vendethiel psch: do you think I'm going in the wrong direction ? 22:51
Or, other people here, for that matters.
psch not the wrong direction per se, but the nature of the beast just means that many sub-concepts that apply to the concepts you want to teach also apply to other concepts 22:52
i.e. the part about 'is rw'
vendethiel which is definitely why I feel like I'm going all out.
yeah, don't wanna talk about containers
psch you need to show it for mutable attributes, but you don't have to show it for lvalue subs
so that shouldn't come yet, imho
vendethiel I'll just leave the "Important" part then
as a "note"
psch ...that was poor wording on my part; your &increment isn't actually an lvalue sub :) 22:53
vendethiel I'll start writing the XinYminutes tomorrow, then, that should make my vision clearer 22:54
Mouq vendethiel++ 22:55
psch vendethiel++
BenGoldberg m: say 3 ∗ 5;
camelia rakudo-moar 8de0fd: OUTPUT«===SORRY!=== Error while compiling /tmp/Sl28DuGaGV␤Two terms in a row␤at /tmp/Sl28DuGaGV:1␤------> say 3 ⏏∗ 5;␤ expecting any of:␤ postfix␤ infix stopper␤ infix or meta-infix␤…»
vendethiel g'night and thanks, #perl6 22:56
psch .u ∗ 22:57
yoleaux U+2217 ASTERISK OPERATOR [Sm] (∗)
psch BenGoldberg: cheeky
.u *
yoleaux U+002A ASTERISK [Po] (*)
BenGoldberg Sorry, I just discovered the unicode confusables www.unicode.org/Public/security/rev...ummary.txt and I'm having too much fun :) 22:58
m: say 1􏿽xCD􏿽xBE say 2; 22:59
camelia rakudo-moar 8de0fd: OUTPUT«===SORRY!=== Error while compiling /tmp/2R80YMOgAc␤Two terms in a row␤at /tmp/2R80YMOgAc:1␤------> say 1⏏􏿽xCD􏿽xBE say 2;␤ expecting any of:␤ postfix␤ infix stopper␤ infix or meta-infix…»
23:14 PerlJam joined, Alina-malina left, Alina-malina joined 23:17 jnap left 23:18 jnap joined
lizmat_ yuck 23:19
23:19 lizmat_ is now known as lizmat
psch hm, doc.perl6.org/routine/%2F%2F also doesn't work 23:19
lizmat the semi-colon is not what it seems to be
psch i guess that means the webserver doesn't have (an equivalent to) ALLOW_ENCODED_SLASHES set
23:20 woolfy left, SevenWolf joined, btyler left
lizmat dinner& 23:20
23:20 lizmat left
jnthn .u 1 23:21
yoleaux U+0031 DIGIT ONE [Nd] (1)
jnthn Hm, so which char was it... :) 23:22
.u say 1􏿽xCD􏿽xBE
yoleaux U+0020 SPACE [Zs] ( )
U+0031 DIGIT ONE [Nd] (1)
U+0061 LATIN SMALL LETTER A [Ll] (a)
23:23 Possum joined
jnthn o.O 23:23
psch .u 􏿽xCD􏿽xBE
yoleaux U+037E GREEK QUESTION MARK [Po] (􏿽xCD􏿽xBE)
psch jnthn: lizmat spoiled it? :P
although yoleaux should probably name all of them..? 23:24
BenGoldberg yoleaux seems to be limited to outputing three lines.
jnthn oh, duh :) 23:25
BenGoldberg: Yes, I was more confused by which 3 it picked :)
BenGoldberg .u say 23:26
yoleaux U+0DC1 SINHALA LETTER TAALUJA SAYANNA [Lo] (ශ)
U+0DC2 SINHALA LETTER MUURDHAJA SAYANNA [Lo] (ෂ)
U+0DC3 SINHALA LETTER DANTAJA SAYANNA [Lo] (ස)
BenGoldberg headscratches.
.u a
yoleaux U+0061 LATIN SMALL LETTER A [Ll] (a)
23:26 mr-foobar left
BenGoldberg .u s 23:26
yoleaux U+0073 LATIN SMALL LETTER S [Ll] (s)
BenGoldberg oh, I see, those were letters with 'say' in their names. 23:27
23:27 mr-foobar joined 23:29 lizmat joined
segomos_ does nativecall handle mapping objects to the perl6 class? as in if i have a c library that returns a c struct, do i need to implement the p6 class to inherit CStruct and have the same order or names or both? 23:29
jnthn Names don't matter; types and order does. 23:30
It's not about inheritance, but rather representation.
23:30 woolfy joined 23:31 hoverboard left
BenGoldberg I hope your c library function doesn't actually return a struct ... returning a pointer to a struct seems a little more likely. 23:32
segomos_ so if i have a char* should i use a str or an opaquepointer ?
BenGoldberg: it's libxml2 - it does return the pointer 23:33
jnthn Depends.
If it's actually string data, then str
23:33 jnap left
zengargo1le TimToady: that clock is rather neat, needs U+2800 BRAILLE PATTERN BLANK between characters. otherwise they end up touching or squished together sometimes (at least in my terminal/font/...). 23:35
segomos_ so if i want to read a char* with other data i should probably use a Buf? 23:36
actually it looks like i can't do much with it if i have opaquepointer 23:38
23:43 rurban1 joined 23:47 rurban1 left 23:52 rindolf joined 23:53 Alina-malina left 23:54 Alina-malina joined 23:56 virtualsue joined
jnthn segomos_: Right; it's opaque. :) You may have better luck with a CArray[int8] or so. 23:56
sleep & 23:59