»ö« Welcome to Perl 6! | perl6.org/ | evalbot usage: 'perl6: say 3;' or rakudo:, niecza:, std:, or /msg p6eval perl6: ... | irclog: irc.perl6.org/ | UTF-8 is our friend! | YAPC::NA talk submissions due end of Month. Have you submitted your talk?
Set by toddr_ on 18 March 2013.
BenGoldberg p6: say True.cos 00:06
p6eval rakudo ba5e04: OUTPUT«0.54030230586814␤»
..niecza v24-35-g5c06e28: OUTPUT«0.54030230586813977␤»
diakopter p6: say False.cotan 00:07
p6eval rakudo ba5e04: OUTPUT«Divide by zero␤ in method cotan at src/gen/CORE.setting:3564␤ in method cotan at src/gen/CORE.setting:2997␤ in method cotan at src/gen/CORE.setting:2255␤ in block at /tmp/GuNkILSeYI:1␤␤»
..niecza v24-35-g5c06e28: OUTPUT«Inf␤»
diakopter niecza++ 00:08
(I assume)
00:10 thou_ left, thou joined
BenGoldberg Actually, I think that the division by zero might be more correct. Possibly. 00:15
pmichaud good afternoon, #perl6. Happy Easter. :-) 00:16
BenGoldberg p6: say 1/0
p6eval rakudo ba5e04: OUTPUT«Divide by zero␤ in sub infix:<div> at src/gen/CORE.setting:3235␤ in sub infix:<div> at src/gen/CORE.setting:2886␤ in method floor at src/gen/CORE.setting:8460␤ in method Str at src/gen/CORE.setting:8478␤ in method Str at src/gen/CORE.setting:882␤ in method gi…
..niecza v24-35-g5c06e28: OUTPUT«Inf␤»
FROGGS hi pmichaud
BenGoldberg Should division by zero throw an exception, or return infinity? 00:18
pmichaud it actually returns Failure in Rakudo. 00:23
I think TimToady++ would ask what do you want to happen if the division by zero occurs in the guided missile controller :) 00:24
p6: say (1/0).WHAT
p6eval rakudo 2441b0: OUTPUT«(Rat)␤»
..niecza v24-35-g5c06e28: OUTPUT«Num()␤»
pmichaud p6: say (1/0).Num.WHAT
p6eval niecza v24-35-g5c06e28: OUTPUT«Num()␤»
..rakudo 2441b0: OUTPUT«(Num)␤»
pmichaud hmm, interesting.
diakopter p6: say (1/0).Num 00:25
p6eval rakudo 2441b0, niecza v24-35-g5c06e28: OUTPUT«Inf␤»
pmichaud p6: say 1/0e0
p6eval rakudo 2441b0: OUTPUT«Divide by zero␤ in sub infix:</> at src/gen/CORE.setting:3689␤ in sub infix:</> at src/gen/CORE.setting:2881␤ in sub infix:</> at src/gen/CORE.setting:3069␤ in sub infix:</> at src/gen/CORE.setting:2881␤ in block at /tmp/sbjVzXktkV:1␤␤»
..niecza v24-35-g5c06e28: OUTPUT«Inf␤»
pmichaud p6: say (1/0e0).gist
p6eval niecza v24-35-g5c06e28: OUTPUT«Inf␤»
..rakudo 2441b0: OUTPUT«Divide by zero␤ in sub infix:</> at src/gen/CORE.setting:3689␤ in sub infix:</> at src/gen/CORE.setting:2881␤ in sub infix:</> at src/gen/CORE.setting:3069␤ in sub infix:</> at src/gen/CORE.setting:2881␤ in block at /tmp/TFaEZo4NRO:1␤␤»
diakopter p6: say (1 div (my \a=0)).Num
p6eval niecza v24-35-g5c06e28: OUTPUT«Unhandled exception: System.DivideByZeroException: Division by zero␤ at Builtins.divop (Niecza.Constants c, Int32 opc, Niecza.Variable a1, Niecza.Variable a2) [0x00000] in <filename unknown>:0 ␤ at CORE.6a5f7f48-6eb9-4551-ac86-f520337465e6.C1453infix:<di…
pmichaud p6: say (1/0e0).WHAT
p6eval ..rakudo 2441b0: OUTPUT«Divide by zero␤ in sub infix:<div> at src/gen/CORE.setting:3235␤ in sub infix:<div> at src/gen/CORE.setting:2886␤ in block at /tmp/o0OIx7PxSv:1␤␤» 00:26
rakudo 2441b0: OUTPUT«Divide by zero␤ in sub infix:</> at src/gen/CORE.setting:3689␤ in sub infix:</> at src/gen/CORE.setting:2881␤ in sub infix:</> at src/gen/CORE.setting:3069␤ in sub infix:</> at src/gen/CORE.setting:2881␤ in block at /tmp/6bb18Cjqw3:1␤␤»
..niecza v24-35-g5c06e28: OUTPUT«Num()␤»
pmichaud maybe rakudo's failure mode was changed then.
diakopter p6: say (1e0 div 0e0).WHAT 00:27
p6eval rakudo 2441b0: OUTPUT«Cannot call 'infix:<div>'; none of these signatures match:␤:(Int:D \a, Int:D \b)␤:(int $a, int $b)␤ in sub infix:<div> at src/gen/CORE.setting:2886␤ in block at /tmp/LPrQ5i43m0:1␤␤»
..niecza v24-35-g5c06e28: OUTPUT«Unhandled exception: System.DivideByZeroException: Division by zero␤ at Niecza.BigInteger.DivRem (BigInteger dividend, BigInteger divisor, Niecza.BigInteger& remainder) [0x00000] in <filename unknown>:0 ␤ at Builtins.divop (Niecza.Constants c, Int32 opc,…
diakopter at some point, I'd expect it to coerce.. 00:28
esp if it recognizes the num is exactly an int
00:30 thou left, thou joined 00:35 rindolf joined 00:41 colomon joined 00:51 thou_ joined, thou left 00:53 countley left
adu arnsholt: did you mention Clang? 00:54
00:55 drbean left 00:56 drbean joined 01:07 anuby joined 01:08 arlinius joined 01:11 thou_ left, thou joined 01:23 tgt left, Pleiades` left 01:28 Pleiades` joined, FROGGS_ joined 01:31 thou left 01:32 thou joined, FROGGS left 01:37 rindolf left 01:52 thou left, thou joined 01:53 census left 01:57 adu left 02:02 dayangkun left 02:04 preflex left, preflex_ joined 02:05 preflex_ is now known as preflex 02:08 sevin left 02:13 thou left, thou_ joined 02:18 colomon_ joined, colomon left, colomon_ is now known as colomon 02:21 colomon_ joined, colomon left, colomon_ is now known as colomon, labster left, Chillance left, huf left 02:25 apejens_ joined, renormalist left, apejens left 02:28 Chillance joined, anant joined 02:33 bonsaikitten left, thou_ left, thou joined 02:35 bonsaikitten joined 02:37 apejens_ is now known as apejens
diakopter hey guys, check out the silver sponsors on all pages of yapcna.org \o/ 02:38
02:38 labster joined, huf joined 02:39 bonsaikitten left, eviltwin_b joined 02:40 Woodi_ joined, eviltwin_b is now known as allbery_b 02:41 bonsaikitten joined 02:43 geekosaur left, allbery_b is now known as geekosaur 02:44 salv0 joined 02:49 Woodi left, loops left, salv01 left 02:54 thou_ joined, thou left 02:58 BenGoldberg left 02:59 orafu left, orafu joined 03:02 preflex_ joined 03:03 preflex left, preflex_ is now known as preflex, adu joined 03:14 thou joined, thou_ left 03:19 hypolin joined 03:24 Chillance left 03:34 thou_ joined, thou left 03:52 adu left 03:53 adu joined, quester joined 03:55 thou joined, thou_ left 04:15 thou_ joined, thou left 04:17 kaleem joined 04:28 dmol joined 04:31 leprevost left 04:35 thou_ left 04:36 thou joined 04:37 xinming left 04:38 xinming joined 04:39 toddr__ joined 04:40 loops joined 04:48 toddr__ left 04:56 thou_ joined, thou left 05:10 colomon_ joined, colomon left, colomon_ is now known as colomon 05:12 colomon_ joined, colomon left, colomon_ is now known as colomon, quester left 05:15 dmol left 05:16 thou joined, thou_ left 05:17 dmol joined 05:19 tokuhirom joined
timotimo mornin' 05:26
diakopter o/
sorear o/ 05:29
diakopter Camelia is on yapcna.org :) and will be on the t-shirt :D 05:31
(which will test the monochromatic version of Camelia in extremely low resolution on a t-shirt) 05:35
05:37 thou left, thou_ joined 05:38 dmol left 05:40 SamuraiJack joined
timotimo diakopter: that's a strange april fool's joke 05:41
diakopter timotimo: but... I was serious.
see, fooled you! 05:42
no really, it'll be on the t-shirt 05:43
timotimo whoa, you got me! 05:45
diakopter again?
05:46 SamuraiJack_ joined 05:47 SamuraiJack left
timotimo ;) 05:47
i got up early and then i was tired 05:50
i'm not sure if i should be surprised or really not
05:57 thou joined, thou_ left 05:58 census joined 06:06 anant left 06:17 thou_ joined, thou left 06:18 anant joined 06:20 rindolf joined
diakopter r: my $s = 2; my $::s = 3; say $s; say $::s 06:23
p6eval rakudo 2441b0: OUTPUT«2␤2␤»
diakopter rn: my $s = 2; my $::s = 3; say $s; say $::s; $::s = 4; say $s; say $::s; $s = 7; say $s; say $::s; 06:25
p6eval niecza v24-35-g5c06e28: OUTPUT«Potential difficulties:␤ Useless redeclaration of variable $s (see line 1) at /tmp/Db5b2qTORX line 1:␤------> my $s = 2; my $::s ⏏= 3; say $s; say $::s; $::s = 4; say $s;␤␤3␤3␤4␤4␤7␤7␤»
..rakudo 2441b0: OUTPUT«2␤2␤4␤4␤7␤7␤»
06:38 thou joined, thou_ left 06:52 kaleem left 06:58 thou_ joined, thou left 07:04 colomon left, colomon joined 07:18 kaare__ joined, kaare__ is now known as kaare_ 07:19 thou joined, thou_ left 07:39 thou_ joined, thou left 07:41 colomon_ joined, colomon left, colomon_ is now known as colomon 07:49 thou joined, thou_ left 07:51 xinming left 07:54 xinming joined 07:56 p5eval left 07:57 rindolf left 07:58 rindolf joined, p5eval joined 08:05 p5eval left 08:08 p5eval joined 08:09 thou left, thou_ joined 08:13 p5eval left 08:15 p5eval joined, rindolf left 08:16 rindolf joined
anant Doubt - Looking at "Str.HOW.methods(Str)", why does ".methods()" need an argument? Wouldn't it already know it's managing the "Str" type object? 08:18
08:19 drbean left 08:21 drbean joined 08:22 adu left, p5eval left 08:24 anant left, p5eval joined 08:25 anant joined 08:27 rindolf left 08:28 rindolf joined, thou joined, thou_ left 08:29 p5eval left 08:31 p5eval joined 08:37 rindolf left 08:46 asogani_ joined, anant left 08:49 thou_ joined, thou left 08:54 rindolf joined 08:59 FROGGS_ is now known as FROGGS 09:01 thou_ left, thou joined 09:05 thou left 09:06 thou joined 09:09 thou left, thou_ joined 09:11 thou_ left, salv0 left 09:13 salv0 joined, census left 09:14 salv0 left 09:15 salv0 joined 09:16 bloonix left 09:37 spider-mario joined
lizmat good * #perl6! 09:37
reading through S02, I was wondering whether "parens" is a good replacement for "parentheses" 09:38
yes, it is shorter, but "parens" does not occur in my Webster's dictionary
lizmat wonders whether she should s/parens/parentheses/ in the synopses 09:39
masak lizmat: might be a good idea, yes. perldoc seems to use 'parenthesis'/'parentheses' consistently. 09:40
(good * to you too!) :) 09:41
tadzik hello hello
lizmat got talked into giving a presentation at YAPC::NA
an updated version of the talk I gave at FOSDEM 09:42
09:45 SamuraiJack__ joined 09:47 colomon_ joined, colomon left, colomon_ is now known as colomon 09:49 SamuraiJack_ left 09:55 kaleem joined
dalek ast: 03d527f | (Tobias Leich)++ | S04-declarations/our.t:
added tests for our-scoped variables
FROGGS can somebody please review this new test file?
if the test is okay I want to push my rakudopatch 09:58
masak FROGGS: re question on L18: yes. that's one of the main points of 'our' vars, IIUC. 10:05
FROGGS: re question on L23: yes, that is right.
FROGGS masak: thanks!
masak FROGGS: why are you using classes and then calling them 'packages'? :) 10:07
I mean, they are. I was just wondering why you weren't using modules and calling them modules. 10:08
FROGGS hmmm, true 10:09
will change
10:14 anuby left
FROGGS masak: I guess I call them package and will actually use packages :o) 10:15
dalek kudo/nom: ffe441f | (Tobias Leich)++ | / (2 files):
install our-scoped variables in the nextmost package
Heuristic branch merge: pushed 40 commits to rakudo/froggs_multibyte by FROGGS 10:19
masak um, was that branch merge intentional?
diakopter 65 yapc::na talk slots (24 20-min and the rest 50-min), and 97 non-lightning talks submitted so far
masak: I'm guessing cross-branch
FROGGS masak: no, but it doesn't hurt 10:20
masak ok.
just checking.
FROGGS masak: I could delete that branch anyway
dalek ast: 75c8a16 | (Tobias Leich)++ | S04-declarations/our.t:
use packages when we talk about packages
masak FROGGS: test file looks good. 10:22
FROGGS thanks for checking 10:23
masak FROGGS: I didn't really understand what you were testing with the 'eval' one, and what that had to do with 'our' variables.
FROGGS masak: hmmm, I copied that from my.t, the first $e declaration could be 'our' though 10:24
but it is basically the same test as on line 12
10:26 FROGGS_ joined, FROGGS_ left
dalek ast: b0e6796 | (Tobias Leich)++ | S04-declarations/our.t:
remove redundant (and probably misplaced) test
masak FROGGS: yeah, but it doesn't have anything to do with 'our' because there's no 'our' declaration inside. 10:34
only two 'my' declarations.
FROGGS masak: right 10:35
and if it would be 'our' it would be the same test as above
lizmat masak: so it's ok if I go ahead with s/parens/parentheses/ in S0[34568] and S11 10:45
and S12 10:46
diakopter TimToady likes parens 10:49
dunno if enough to want to keep them
dalek ast: cf7ea4f | (Tobias Leich)++ | S04-declarations/our.t:
fudged for niecza
FROGGS lizmat: maybe it is enough if you do "parens (parentheses)" on the first occourance? 10:51
lizmat maybe then better to start a glossary, with terms such as "parens", "numa", "gcd" in them 10:52
numa and gcd I had to look up to make sure what they meant
tadzik numa? 10:53
lizmat see?
tadzik I see that I haven't really read the specs :P
lizmat en.wikipedia.org/wiki/Non-Uniform_Memory_Access
S02, about object identity
tadzik duckduckgo suggested: "Numa Numa (Internet Meme)"
masak :P 10:58
gcd is pretty well-known in math circles, fwiw. 10:59
rn: say 10 gcd 6 11:00
p6eval rakudo 2441b0, niecza v24-35-g5c06e28: OUTPUT«2␤»
masak rn: say 10 lcm 6
p6eval rakudo 2441b0, niecza v24-35-g5c06e28: OUTPUT«30␤»
tadzik masak, masak, did you try pandabrew?
masak tadzik: I did not. I'm a bit... distracted right now by @friends ;) 11:01
will be back to full speed tomorrow afternoon.
tadzik ha, okay :) 11:02
masak r: my %translations = 'cow' => 'vache', 'window' => 'fenêtre'; say %translations<cow> 11:03
p6eval rakudo 2441b0: OUTPUT«vache␤»
11:05 woolfy joined
FROGGS r: @friends 11:12
p6eval rakudo 2441b0: OUTPUT«===SORRY!===␤Variable '@friends' is not declared␤at /tmp/4_iAVOWkyM:1␤------> @friends⏏<EOL>␤ expecting any of:␤ postfix␤»
11:12 ilbot6 left
FROGGS see? 11:12
there is no such thing
11:13 asogani_ left
jnthn is safely back from vacation 11:14
Good afternoon, #perl6
lizmat welcome back, jnthn!
masak: I wanted to be sure gcd in that context wouldn't mean something like "global context destruction" 11:15
FROGGS hi jnthn \o/
masak jnthn! \o/ 11:17
dalek ecza: 65f862c | (Tobias Leich)++ | t/spectest.data:
added S04-declarations/our.t
FROGGS masak / jnthn / moritz (when awake): do you mind if I change rakudo that it will look up 'use v5' as a module too? 11:24
masak I'm not present enough to be able to answer that. 11:26
nwc10 good pm jnthn
jnthn o/ lizmat, FROGG, masak, nwc10 :) 11:27
FROGGS: How exactly are you pondering changing it?
FROGGS: In the actions?
tadzik hooray, jnthn!
lizmat I also wonder: use 5.10 should do the same thing, no? 11:28
jnthn lizmat: I hesitate on that one a bit. 11:29
11:29 pmurias joined
jnthn lizmat: It'd imply a very particular emulation, I guess. 11:29
11:29 pmurias_ joined
arnsholt investigates a NativeCall segfault 11:30
FROGGS jnthn: in the grammar... so that 5.-versions are treated as module usage
11:30 pmurias_ left
pmurias one thing we need to consider is that the spec seems to imply use v5 import the Perl module 11:31
lizmat if the goal is to allow darkpan modules that have "use 5.10" in their code to run transparently on Rakudo, some sort of support for that syntax would be needed, I suppose
FROGGS only in the token statement_control:sym<use>
pmurias re supporting use v5.10,v5.12... we definitly want to support that too, as it's also used to request extra perl features (like 'say') 11:34
FROGGS jnthn: I'll gist the patch later 11:36
jnthn FROGGS: ok :) 11:37
pmurias re 'use v5' being treated like 'use Perl:ver<5.*>' S11:497
FROGGS pmurias: right, all features turned on
jnthn just did a 5 hour timezone shift on top of only 3 hours sleep, and should not be relied on too heavily for sanity today ;)
jnthn: I slept about 1.5 hours... because hacking till 4 a.m. and can't get to sleep because of thinking about how to implement these and that :P 11:38
lizmat remembers being in the flow and is looking forward to being it again soon 11:39
*in it
pmurias FROGGS: a basic 'use v5' as module support can be implemented with a one line change
pastie.org/7267265 11:40
jnthn FROGGS: Yes, I've taken to crashing on the sofa for an hour between leaving the keyboard and trying to sleep, doing something non-programming. Otherwise I would have that kind of problem very regularly.
FROGGS pmurias: true, even a 'v'? '5' '.'? could (something like that)
pmurias: ohh, that looks nice 11:41
bbiab 11:42
dalek ecs: 890758f | (Elizabeth Mattijsen)++ | S02-bits.pod:
Typo fix
11:57 asogani_ joined 11:58 asogani_ is now known as anant
jnthn anant: (answering earlier question) needs an argument so as to support prototype OO systems, where the meta-data is tied up with the object and the HOW is actually just some singleton thingy 12:00
anant jnthn: So this singleton HOW object (seems to be Perl6::Metamodel::ClassHOW.new()) actually inquires the object passed as an argument for meta-data? 12:05
jnthn anant: No, because ClassHOW implements class-based OO. 12:06
anant: It's more if you're implementing an object system along the lines of what JavaScript has, for example.
nwc10 jnthn: nqp-jvm prep still "works" on my machine apart from the 2 usual failures on nqptest 12:10
arnsholt jnthn: Have you ever managed to trash the PMC *allocation data* (which is stored just before the PMC in memory, I think) from NQP's C code?
jnthn arnsholt: Not knowingly... :) 12:12
[Coke] finds a coffee. 12:13
jnthn is going through mail and sees [Coke]++ has been adding loads of tests and closing RTs :) 12:14
[Coke] All the easy ones, anyways. 12:17
I left you all the tricksy bits. :)
12:22 FROGGS left 12:33 stevan_ left, stevan_ joined 12:39 dayangkun joined 12:43 tgt joined
anant jnthn: Bit confused. Which module implements prototype OO in p6? say Str.HOW; say Int.HOW; etc all give Perl6::Metamodel::ClassHOW 12:44
12:46 Gruber is now known as Grrrr 12:56 census joined
census Hi! 12:56
12:58 bruges_ left 12:59 bruges joined 13:01 SamuraiJack__ left
[Coke] looks like new tests caused a niecza hang when running the suite yesterday. 13:02
I just killed the offending test file.
arnsholt anant: AFAIK no-one's implemented prototype OO yet, but it can be done 13:15
13:15 PacoAir joined
anant arnsholt: so the .HOW.methods() taking in an argument is more of a future-proofing thing? 13:17
colomon [Coke]: WHAT WAS IT? 13:18
errr, sorry about the caps lock
moritz anant: no. A metaclass can handle more than one class
so you need to pass in an extra object to let it know which one you're working on 13:19
I don't know if rakudo uses this mechanism, but I'm pretty sure SMOP did 13:20
jnthn I suspect it'll come in rather useful when we get to HLL interop style things
moritz (SMOP being a runtime library for MOP stuff written in C, back in the days)
lizmat Regarding S02L1734-41: square brackets? I don't see any square brackets there ? 13:21
jnthn e.g. for the JVM port to provide access to Java classes, for example.
moritz lizmat: the example with square brackets would be my Hash[Array[Recipe]] %book 13:22
lizmat Parametric types are named using square brackets, so: my Hash of Array of Recipe %book; actually means: my Hash:of(Array:of(Recipe)) %book;
is what it says...
so an omission in S02? 13:23
moritz yes
13:23 adu_ joined
moritz jnthn: at your convenience, please take a look at irclog.perlgeek.de/perl6/2013-03-23#i_6622306 I'm kinda stuck with the EXPORT_hash branch 13:24
anant moritz: Do all objects delegate to the same metaclass instance?
moritz all objects of the same type do, in rakudo
13:25 ilbot6 joined
moritz so in rakudo it wouldn't be necessary to pass in the extra argument right now 13:25
so in some sense it's both for future-proving and past-proving :-)
jnthn: (that branch is in the [email@hidden.address] fork) 13:26
13:26 xinming left, xinming joined
anant as that would explain it needing the object as an argument 13:27
[Coke] colomon: I didn't write it down, sorry. 13:29
dalek ecs: aff4d83 | (Elizabeth Mattijsen)++ | S02-bits.pod:
Added omitted square brackets example with parametric typing.
colomon doh
[Coke] you'll see it in the failures when I post today, though.
anant r: say Int.HOW.methods(); 13:30
p6eval rakudo ffe441: OUTPUT«too few positional arguments: 1 passed, 2 (or more) expected␤ in any methods at src/gen/Metamodel.pm:419␤ in block at /tmp/PtCn_a4cc8:1␤␤»
anant moritz: Rakudo wants that argument ...
moritz yes
but at its current state, it could have been written to not need it, afaict 13:31
anant moritz: which is what was confusing me
moritz anant: I think one motivation was to allow objects with mixins to retain the original type 13:36
jnthn moritz: Note that you can't QAST::WVal something that doesn't already live in an SC
colomon [Coke]: maybe our.t? Lots of changes, and it seems like it's the only one that's changed since the last time I ran make spectest. 13:37
jnthn moritz: Why are you WVal'ing it, ooc? 13:38
colomon jnthn! \o/
moritz jnthn: a type object of a lexical class that I try to import
jnthn moritz: It was actually written as a class? Hmm
moritz jnthn: it looks like this: my class A { }; our sub EXPORT(|) { (A => A).hash }
jnthn moritz: OK, I think I'll have to build the branch. But I'm not sure I have the energy/concentration for it today.
moritz jnthn: ok, no hurry 13:39
jnthn o/ colomon :)
[Coke] colomon: weird. the niecza run is done, I don't see anything new in the diff since yesterday. :( 13:40
jnthn moritz: I do find it very odd that the lexical class would not have had its type object put in an SC, though...
colomon [Coke]: and our.t worked fine when I tried it. :\
[Coke] colomon: there are like 35 failures that are ongoing, btw. 13:41
our.t seems fine, aye.
wonder if it was something that died after generating the "end of test" output. hurm. 13:42
13:42 Chillance joined
colomon [Coke]: yeah, there's the subst.t thing (which I still think is a spec issue, gonna blog about it at some point) and a bunch of misc. failures caused by TimToady++ reworking the return value of if that's it's not clear to me if they are roast bugs or niecza bugs. 13:42
moritz jnthn: I tried also to $*W.add_object every symbol that we import, but that made setting compilation blow up, so I quickly abandoned that approach 13:43
colomon [Coke]: in other words, I've been trying to fix the obvious things, and putting off dealing with the tricky issues until I had more time. :)
moritz jnthn: also it seems that the SC comes from a CompUnit.sc() call. Is it normal to have CompUnits without a SC? 13:44
13:45 kaleem left, cosimo left 13:50 pmurias left 13:52 cosimo joined
PerlJam Any good perl-related AFJs today? 13:57
lizmat YAPC::Hawaii comes to mind 13:58
14:01 bluescreen10 joined 14:13 xilo left 14:26 Patterner left 14:28 Psyche^ joined, Psyche^ is now known as Patterner 14:37 xilo joined 14:44 spider-mario left
dalek rl6-roast-data: 9fbc3ca | coke++ | / (4 files):
today (automated commit)
ast: f637132 | coke++ | S (3 files):
pugs fudge
arnsholt r: (-> { say $^b; say $^a })(1, 2) 15:00
p6eval rakudo ffe441: OUTPUT«===SORRY!===␤Placeholder variable '$^a' cannot override existing signature␤at /tmp/_WDOGpKdaH:1␤------> (-> { say $^b; say $^a }⏏)(1, 2)␤ expecting any of:␤ postfix␤ statement end␤ statement modifier␤ …
arnsholt r: (-> { say $^b; say $^a; })(1, 2)
p6eval rakudo ffe441: OUTPUT«===SORRY!===␤Placeholder variable '$^a' cannot override existing signature␤at /tmp/KCBhD2pFBZ:1␤------> (-> { say $^b; say $^a; }⏏)(1, 2)␤ expecting any of:␤ postfix␤ statement end␤ statement modifier␤ …
moritz r: try eval '-> { say $^b; say $^a; }'; say $!.perl 15:02
tadzik panda lacks a vision
p6eval rakudo ffe441: OUTPUT«X::Signature::Placeholder.new(placeholder => "\$^a", filename => "eval_0", line => 1, column => Any, modules => Array.new(), is-compile-time => 1, pre => "-> \{ say \$^b; say \$^a; }", post => "<EOL>", highexpect => Array.new("postfix", "statement end", "statement …
arnsholt r: (sub { say $^b; say $^a; })(1, 2) 15:06
p6eval rakudo ffe441: OUTPUT«2␤1␤»
moritz tadzik: how about "be an awesome module installer"? 15:08
tadzik that's a good one 15:09
Now I need to think of a way to get there
step one: stop hating the code
I have a couple of ideas, and all of them involve turning stuff upside down and breaking backwards compat. 15:10
I could set up a compatibility layer, I guess
moritz or work on a fork 15:12
15:12 Gwyxx joined
tadzik my thoughts keep circling around a git-like thing 15:13
moritz what's the logical successor to panda? babypanda? bear? :-)
git-like in what way?
tadzik so we have a set of independent tools, like panda-build, panda-fetch, panda-test. They can be nice developer tools
early tests show that panda-build can be even faster than ufo && make
pmichaud p6: "panda".succ.say
p6eval rakudo ffe441, niecza v24-35-g5c06e28: OUTPUT«pandb␤»
tadzik then we can have a Mother Tool, called just 'panda', which saves the user the effort of typing all those things to install stuff 15:14
PerlJam "pan db"? it's a bread database ?
pmichaud it's part of our bread and butter, yes.
tadzik haha
tadzik and then one of the points is to keep those small tools simple 15:15
so no tight-coupling, no more insanity like Panda::Resources etc
[Coke] So, planetsix.perl.org/ is going away. I am trying out planeteria.org/perl6 as a replacement. I noticed recent changes were not reflecting on the front page. I email the admin, get back: "Congratulations, your perl6 feed broke the system!" 15:16
awwaiid p6: say sub { $^a / $^b }.(1, 3); say sub { $^b / $^a }.(1, 3)
p6eval rakudo ffe441: OUTPUT«===SORRY!===␤Two terms in a row␤at /tmp/uSoGNCTyJX:1␤------> say sub { $^a / $^b }⏏.(1, 3); say sub { $^b / $^a }.(1, 3)␤ expecting any of:␤ postfix␤ statement end␤ statement modifier␤ statement mo…
..niecza v24-35-g5c06e28: OUTPUT«0.333333␤3␤»
[Coke] feels bad&happy
15:17 kivutar joined
moritz feels destructive 15:17
tadzik I see things like "1; }" all over my code. I still don't completely get sink context 15:18
moritz [Coke]: do you know know if we'll get redirects to a new site from planetsix?
tadzik: I'm so >.< close to making for-loops eager again
15:19 FROGGS joined
moritz it's just silly to try to make a construct lazy that people don't expect to be lazy 15:19
tadzik moritz: so I'm not the only one?
moritz and then jump through hoops to make it appear to DWYM most of the time
tadzik: not at all
tadzik the point of for, imho, is that it doesn't return results. So I expect side-effects to happen _now_
[Coke] moritz: I don't know if that part of the infrastructure is also going away. Certainly I will blog about it in a feed that appears in sixplanet before it gets shut off.
moritz [Coke]: which time frame are we talking about? 15:20
if it's two weeks or more, I might be able to set up a new system on planet.perl6.org or so 15:21
and then slowly migrate it to perl 6 :-)
15:22 thou joined
[Coke] moritz: I don't know. I assume it's related to: log.perl.org/2013/03/svnperlorg-shu...month.html 15:22
15:22 thou left
pmichaud one can always write 'sink'; at the end instead of '1' 15:22
or even 15:23
sink for @list { ... }
[Coke] sink--
moritz sink do for @list { ... }
pmichaud: but it's still silly
it violates everybody's expectations except TimToady_'s and mine
and mine only because I implemented sink context
pmichaud well, and mine. :) 15:24
although I'm fine with an eager for also.
tadzik :D
15:25 thou joined
pmichaud ooc, because my brane isn't all here at the moment, do we have use cases for the lazy 'for' ? 15:25
[Coke] Is there a doc on sink context other than the specific mentions in the spec (e.g. "Because C<gather> evaluates its block or statement in sink context")
PerlJam pmichaud: when it's acting like map?
pmichaud PerlJam: I mean, like an example :-) 15:26
I suppose statement modifier for
moritz www.debian.org/ # lolcat debian 15:28
tadzik lol. Cat. 15:29
moritz wonders what Cat.lol will return. Probably just a Cat.
[Coke] r: Cat 15:30
p6eval rakudo ffe441: OUTPUT«===SORRY!===␤Undeclared name:␤ Cat used at line 1. Did you mean 'Rat'?␤␤»
[Coke] . o O (Eek!)
pmichaud suggests creating a NYI for Cat 15:36
[Coke] wonders who zbornheimer is.
.oO( a nyi-cat? is that like nyancat? )
15:42 dmol1 joined, kst`` is now known as kst
jnthn pmichaud: I think list comprehensions are the main use case 15:45
jnthn suspects that somewhere on RosettaCode are examples 15:46
[Coke] rakudo: /$'x'/ 15:50
p6eval rakudo ffe441: OUTPUT«===SORRY!===␤Non-declarative sigil is missing its name␤at /tmp/IY9DmuO6ZJ:1␤------> /$⏏'x'/␤ expecting any of:␤ statement list␤ prefix or term␤ prefix or meta-prefix␤»
15:50 tgt left
[Coke] std: /$'x'/ 15:51
p6eval std 86b102f: OUTPUT«===SORRY!===␤Unrecognized regex metacharacter $ (must be quoted to match literally) at /tmp/rRTDyXwWaK line 1:␤------> /$⏏'x'/␤Can't call method "from" on unblessed reference at STD.pm line 53909.␤FAILED 00:00 42m␤»
15:52 tgt joined
tadzik r: sub foo($a = 5) { say $a }; foo(Any) # bug? 16:04
p6eval rakudo ffe441: OUTPUT«(Any)␤»
16:05 xilo left, xilo joined
PerlJam r: sub foo($a = 5) { say $a }; foo(Nil); 16:07
p6eval rakudo ffe441: OUTPUT«Nil␤»
PerlJam I think there's at least one bug here. 16:08
16:08 rurban joined
[Coke] no. no more bugs. stop opening new bugs! ;) 16:09
16:11 FROGGS left 16:19 DarthGandalf left, DarthGandalf joined
[Coke] r: say 292+335+1-65 16:20
p6eval rakudo ffe441: OUTPUT«563␤»
16:21 telex left 16:22 telex joined 16:25 Gwyxx left, tgt left 16:28 FROGGS joined 16:32 tgt joined
[Coke] colomon: no hangs today. 16:50
planeteria.org/perl6 is now up and running. I haven't decided if this is a permanet replacement for planetsix.perl.org/ 16:55
16:59 thou left
timotimo i wonder how many people approximately are on perl.perl6.users, but never on the irc 17:01
17:01 thou joined
[Coke] moritz: we can get the old URL redirecting to the new one. 17:03
17:03 gcole left 17:04 xilo left, xilo joined 17:05 xinming left 17:07 xinming joined, SamuraiJack__ joined
census anybody have a quick sec. just have a general web scraping question (not perl5 specific) if that is ok ... 17:10
tadzik if it's not Perl 5 specific maybe it's at least Perl 6 specific? 17:11
flussence ask away, all my answers will be in PHP
census hahahah
i'm trying to extract information off of a table. 17:12
there's a value in the table that is 0 on the screen. however when i printed the internal contents of the table. it shows up as not having any value. as a result, the ultimate value is that this cell is blank. i ran the code on this table many times so it is not a spuriously bad web connection
in perl 5 lingo, i tried doing a data dumper. 17:13
maybe i'm dumping the wrong thing ... but how can something show up on the screen and not in the raw table.
i do not have this problem with any of the other contents of the table ...
if it would help and would not be unwelcomed ... i could show brief code and/or the results of the data dumper and/or the raw table ...
i meant the table as it appears on the web 17:14
17:16 Vasu joined 17:17 gcole joined 17:21 Vasu left, skids left 17:22 kivutar left
FROGGS jnthn / pmurias: what about that? gist.github.com/FROGGS/5286324 17:23
17:25 census_ joined
dalek rl6-roast-data: 1832362 | coke++ | / (4 files):
today (automated commit)
17:26 census_ left 17:27 census_ joined, census left, census_ left 17:28 census joined, kaleem joined 17:34 kaleem left 17:36 thou left 17:37 thou joined 17:42 spider-mario joined, rindolf left 17:56 SamuraiJack joined 17:57 SamuraiJack__ left 17:59 rindolf joined
[Coke] .u fi 18:03
yoleaux U+FB01 LATIN SMALL LIGATURE FI [Ll] (fi)
18:31 SamuraiJack left
colomon [Coke]: no hangs for me ether 18:33
18:37 lichtkind joined
[Coke] so, all clear. 18:39
except for the failures. ;)
rn: use Test; my $answer = 0; my @x = 41, (42 if $answer), 43; my @y = 41, ($answer ? 18:53
? 42 !! ()), 43; my @z = 41, 43; is @y, @z, "sanity check"; is @x, @y, "if expr o
p6eval niecza v24-35-g5c06e28: OUTPUT«===SORRY!===␤␤Confused at /tmp/KnzlwM0vDE line 1:␤------> 2 if $answer), 43; my @y = 41, ($answer ⏏?␤␤Parse failed␤␤»
..rakudo ffe441: OUTPUT«===SORRY!===␤Two terms in a row␤at /tmp/XHHsmwgeAl:1␤------> 2 if $answer), 43; my @y = 41, ($answer ⏏?␤ expecting any of:␤ postfix␤ infix stopper␤ infix or meta-infix␤ statement end␤ statem…
[Coke] arg.
n false cond";