»ö« | perl6.org/ | nopaste: paste.lisp.org/new/perl6 | evalbot usage: 'perl6: say 3;' or rakudo: / pugs: / std: , or /msg p6eval perl6: ... | irclog: irc.pugscode.org/ | UTF-8 is our friend! Set by diakopter on 25 January 2010. |
|||
pmurias | diakopter: is that what you want? | 00:01 | |
00:01
rgrau left
00:02
rgrau joined,
constant joined
|
|||
diakopter | pmurias: I guess, but I don't see any spectests displaying that syntax | 00:04 | |
pmurias | diakopter: it's specced in the synopses | 00:05 | |
my int16 @array[100]; | |||
sleep& | |||
00:05
pmurias left
|
|||
diakopter | I don't see that anywhere in S02 | 00:07 | |
00:08
eiro joined,
REPLeffect left
|
|||
diakopter | besides, how would you enforce that push/pop/unshift/shift/splice don't operate on a fixed-length Array? | 00:08 | |
pugs: my Int @array[100]; say @array.elems; | 00:09 | ||
p6eval | pugs: OUTPUT«0» | ||
diakopter | rakudo: my Int @array[100]; say @array.elems; | 00:10 | |
p6eval | rakudo 1d4928: OUTPUT«Confused at line 10, near "[100]; say"in Main (file <unknown>, line <unknown>)» | ||
00:10
Limbic_Region joined
|
|||
diakopter | .sigh | 00:10 | |
Limbic_Region | long time no chat diakopter - how's life? | 00:11 | |
00:12
_ash left
|
|||
diakopter | Limbic_Region: ok | 00:14 | |
elf: my Int @array[100]; say @array.elems; | 00:16 | ||
p6eval | elf 29594: OUTPUT«syntax error at (eval 124) line 3, near ";->postcircumfix__91_32_93" at ./elf_h line 5881» | ||
diakopter | mildew: my Int @array[100]; say @array.elems; | ||
p6eval | mildew: OUTPUT«Can't open perl script "mildew": No such file or directory» | ||
diakopter | mildew-js: my Int @array[100]; say @array.elems; | ||
p6eval | mildew-js: OUTPUT«Can't open perl script "mildew": No such file or directory» | ||
diakopter | ng: my Int @array[100]; say @array.elems; | ||
p6eval | ng b8201f: OUTPUT«0» | ||
diakopter | :| | 00:17 | |
00:17
nihiliad left
00:18
krunen joined
00:23
wu1 left
|
|||
diakopter | pugs: my Int @array[-1]; say @array.elems; | 00:26 | |
p6eval | pugs: OUTPUT«0» | ||
diakopter | pugs: my Int @array[-33]; say @array.elems; | ||
p6eval | pugs: OUTPUT«0» | ||
diakopter | pugs: my Int @array[-33,-66]; say @array.elems; | ||
p6eval | pugs: OUTPUT«0» | ||
diakopter | augh | ||
I finally found S09. | 00:28 | ||
00:29
lumi left,
lumi joined
|
|||
diakopter | TimToady: can the length of a fixed-size array be defined with a runtime value? my $a = rand(99); my int @vals[$a]; | 00:34 | |
std: my $a = 99.rand; my int @vals[$a]; | 00:36 | ||
p6eval | std 29594: OUTPUT«ok 00:01 107m» | ||
diakopter | std doesn't mind it | ||
TimToady | in a meeting, but you'd need a BEGIN in there somewhere | 00:37 | |
current spec assumes a compile-time $a, I think | 00:39 | ||
would be possible to relax that to elaboration time, I suppose | |||
00:40
athaba left,
meppel joined
|
|||
diakopter wants compact arrays of runtime-defined fixed length | 00:40 | ||
TimToady | assuming the constructors support it, shouldn't be too hard to hook to the declarative syntax | 00:42 | |
diakopter | seems like there should be a property (or attribute) on Array that specifies whether it's fixed-length | ||
, too | |||
or better, whether it's not fixed-length | |||
00:43
lichtkind_ joined
|
|||
diakopter | std: my buf @array[@@array] | 00:44 | |
p6eval | std 29594: OUTPUT«ok 00:01 106m» | ||
00:44
lestrrat is now known as lest_away
00:45
meppl left
00:48
drbean joined
00:50
mssm left
00:51
Baggiokwok joined
00:52
jferrero left
00:55
Chillance joined
|
|||
lichtkind_ | anybody alive here? | 01:00 | |
01:01
lichtkind left
01:05
ihrd joined
01:07
eternaleye joined
01:11
lichtkind_ left,
lumi left,
lichtkind joined,
lumi joined
|
|||
lichtkind | anybody here? | 01:12 | |
01:18
meppel left
01:19
Chillance left
01:20
ihrd left
01:21
lest_away is now known as lestrrat
01:27
wjl_ left
01:30
japhb left
01:32
wayland76 joined
|
|||
wayland76 | When's the next release? | 01:33 | |
diakopter | wayland76: of? | 01:34 | |
rakudo? the january one was skipped. | |||
01:34
lichtkind left
01:35
colomon__ joined
|
|||
wayland76 | Ah, ok, so Februiary is the next Rakudo release (and yes, that was what I was asking; thanks for anticipating :) ) | 01:38 | |
01:40
colomon___ joined,
araujo left
01:46
lumi left,
lumi joined
01:52
LaVolta joined
01:53
colomon left,
colomon___ is now known as colomon,
japhb joined
01:58
colomon__ left
02:01
nihiliad joined
02:11
agentzh joined
02:21
Baggiokwok left
02:24
justatheory left
02:26
cdarroch left
02:30
lumi left,
lumi joined
02:34
yahooooo joined
02:36
orafu left
02:37
orafu joined
03:11
quietfanatic joined
03:33
araujo joined
03:38
araujo left
03:40
araujo joined
03:44
lumi left,
lumi joined
03:45
Limbic_Region left
03:48
niros left,
ab5tract left
03:51
Ouse26698 left
03:55
ShaneC left
04:02
nihiliad left
04:18
abokgb joined
04:20
eternaleye left,
eternaleye joined
04:21
abokgb left
04:23
eternaleye left,
eternaleye joined
04:31
pnate joined
04:34
PZt left
04:37
hercynium left
|
|||
Tene | is augment lexically scoped in rakudo? | 04:40 | |
04:41
araujo left
04:44
lestrrat is now known as lest_away
|
|||
sjohnson | damn abokgb | 04:46 | |
wasting my precious bandwidth | |||
04:49
jql joined
04:54
lest_away is now known as lestrrat
04:59
lestrrat left,
yinyin_ joined
05:01
lestrrat joined
05:05
lumi left,
lumi joined
05:15
stephenlb left
05:28
pnate left
|
|||
diakopter | sigh | 05:36 | |
at least those don't make it to moritz_'s ilbot irclog | 05:37 | ||
05:50
eternaleye left
05:55
eternaleye joined
|
|||
diakopter | TimToady: may I add the mention of my int @fixed_length[$a]; to S09? | 05:59 | |
06:04
araujo joined
06:08
Baggiokwok joined
06:13
rgrau left
06:38
Su-Shee joined
06:39
diakopter sets mode: +o Su-Shee
06:41
Baggiokwok left
07:08
wu1 joined
07:15
kaare joined,
kaare is now known as Guest55775
07:19
cjk101010 joined
07:23
yinyin_ left
07:24
yinyin joined,
yinyin_ joined,
yinyin left
07:25
lumi left,
lumi joined
07:29
rgrau joined
07:37
c0tt0 joined,
cottoo left
07:39
ckruse joined
07:40
cjk101010 left,
ckruse is now known as cjk101010
07:44
LaVolta left
07:54
drbean left
08:06
ejs joined
08:09
iblechbot joined
08:11
lumi left,
lumi joined
08:21
wu1 left
08:27
wu1 joined
08:29
[particle]1 joined
08:38
ejs left
08:45
[particle] left
08:49
ejs joined
08:58
wayland76 left
08:59
ejs1 joined
09:07
ejs left
09:11
jan__ joined
09:18
Porsbo joined,
Porsbo left
09:19
jan__ left
09:21
wu1 left
09:22
dakkar joined
09:25
jan_ left
09:26
drbean joined
09:28
nncl joined
09:29
nncl left
09:35
meppl joined
09:36
nadim_ left,
Guest85607 left
09:39
Chazz joined,
Chazz is now known as Guest46244
09:42
lestrrat is now known as lest_away
|
|||
sjohnson | fuckin versions!!! | 10:04 | |
*shakes first in air* | 10:05 | ||
10:07
drbean left
10:09
mssm joined
10:10
lumi left
10:11
lumi joined
10:12
broquaint left
|
|||
moritz_ | good morning | 10:16 | |
can't we somehow disallow these CTCP VERSION requests? | |||
moritz_ is not very familiar with IRC and channel modes | |||
sjohnson | i will look into it | 10:20 | |
from what i can tell from Freenode docs | 10:21 | ||
it might not be doable | |||
where is that friendly ircop angel who hangs around here... | |||
kloeri_ or something | |||
10:22
renormalist|work left
10:23
renormalist|work joined,
yinyin_ left,
Guest46244 left,
jjore left,
stepnem left,
Helios left,
mssm left,
jjore joined,
mssm joined
10:24
Helios joined
10:25
Chazz joined,
renormalist|work left,
renormalist|work joined,
Chazz is now known as Guest52934
10:30
stepnem joined
10:31
renormalist|work left
10:32
renormalist|work joined
10:42
wu1 joined
11:01
patspam left
11:10
jan_ joined,
jan_ left
11:11
bbkr left
11:16
lumi left,
lumi joined
11:17
jan_ joined
11:18
iblechbot left
|
|||
sjohnson | moritz_: tomorrow, when Seven is migrated to (ircd) | 11:28 | |
+C will disable these annoying CTCP's for chans | |||
moritz_ | sjohnson: thanks | 11:29 | |
11:29
pdcawley joined
|
|||
sjohnson | no worries | 11:34 | |
11:37
LaVolta joined
11:38
mjk joined
11:43
pmurias joined
11:51
payload left
11:52
drbean joined
12:22
macae joined
12:23
stepnem left
12:27
SmokeMachine joined
12:30
stepnem joined
12:36
payload joined
12:38
LaVolta left,
LaVolta joined
12:48
c0tt0 left,
c0tt0 joined,
bluescreen joined
12:49
am0c left
12:52
payload left
12:53
payload joined
12:55
lumi left,
lumi joined
13:01
am0c joined
13:06
ihrd joined
13:07
ihrd left
13:09
SmokeMachine left
13:10
c0tt0 left
|
|||
pugs_svn | r29595 | masak++ | typo | 13:11 | |
13:15
iblechbot joined
13:18
payload left
13:19
lichtkind joined
13:20
lumi left,
lumi joined
13:22
cotto joined
13:24
cognominal joined
13:31
SmokeMachine joined
|
|||
dalek | ok: 7b9d5cb | moritz++ | src/builtins.pod: list some Str builtins |
13:40 | |
ok: 25b257d | moritz++ | src/ (4 files): Merge branch 'master' of [email@hidden.address] |
|||
13:46
lumi left,
lumi joined
13:56
ruoso joined
|
|||
pmichaud | good morning, #perl6 | 13:58 | |
moritz_ | \o/ | 13:59 | |
colomon | \o | ||
14:00
agentzh left
14:03
rgrau left
14:04
mahla joined
|
|||
jnthn | morning, pmichaud | 14:04 | |
pmichaud | jnthn: I figured out the flatten flag late last night :) | ||
colomon | \o/ | ||
pmichaud | jnthn++ # you were right about caching | ||
except instead of caching the flag on the instances, we cache it in the class object :) | 14:05 | ||
so now it's just $P0 = typeof value; ...check/cache flatten in $P0... | 14:06 | ||
even nicer is that a lot of our value pmcs now don't end up with prophashes | 14:07 | ||
jnthn | pmichaud: :-D | 14:08 | |
pmichaud: Nice. | |||
pmichaud: Was alongish the lines of what I was thinking. wfm. :-) | |||
mathw | yay! that sounds like efficiency | ||
14:09
mahla left
|
|||
pmichaud | yes, it should be fairly efficient, while also preserving the correct p6 semantics | 14:09 | |
so, we now know that Iterable objects flatten in list context.... do Iterators themselves flatten (unless masked in a scalar container)? | |||
14:11
mikehh left,
mikehh joined
14:12
nihiliad joined
14:15
[particle]1 left
|
|||
colomon | Hmmm... we know we want to be able to create Arrays of Iterators, right? | 14:15 | |
pmichaud | yes | 14:16 | |
but in that case, each of the iterators would be masked by a scalar container | |||
14:16
[particle] joined
|
|||
pmichaud | (the element of the array is a scalar container) | 14:16 | |
colomon | ah. | ||
so that doesn't provide any useful insight. | 14:17 | ||
pmichaud | I think I'm going to start out assuming that they do flatten... it simplifies list processing greatly if so | 14:18 | |
colomon | I think my instinct is that iterators flatten, but I don't know that I can justify it. | ||
14:19
mjk left
|
|||
colomon | pmichaud++ # JFDI and see what happens | 14:22 | |
14:22
payload joined
|
|||
mathw | As I haven't really looked into it, this is pure opinion, but I would expect iterators to act like the list they generate in appropriately listy situations | 14:26 | |
which means flattening, I guess | |||
Su-Shee | (I've just read "flattering".. time to call it a day...) | 14:28 | |
14:28
lumi left,
lumi joined
14:31
k23z__ joined
14:33
Guest55775 left
14:34
mikehh left,
mikehh joined,
nihiliad left
14:36
Baggiokwok joined
14:37
drbean left
14:41
tlb joined
14:44
ejs2 joined
14:47
astinus joined
|
|||
mathw | hmm | 14:48 | |
bitwise OR in C++ now looks wrong to me | 14:49 | ||
even though I've not written any perl 6 for a while, I keep thinking I'm making a junction | |||
14:49
Baggiokwok left
|
|||
moritz_ | :-) | 14:49 | |
14:49
Baggiokwok joined
|
|||
mathw | and it also feels wrong to use just one character for an operator which, most of the time, isn't actually used very often | 14:50 | |
colomon | :) | ||
mathw | I should write some Perl 6 | ||
14:50
moritz_ sets mode: +o colomon
|
|||
mathw | My boss has suggested I run my Perl course again, but I don't think I could get away with upgrading it yet :( | 14:51 | |
14:51
_ash joined
14:52
hudnix left
14:53
ejs1 left
14:56
wasy_afk is now known as wasy
15:01
hudnix joined
15:02
corpogen joined
|
|||
corpogen | hello guys im having a problems running somethig called celera software | 15:03 | |
moritz_ | is that related to Perl 6 in any way? | ||
corpogen | this is the routine and the output scsys.co.uk:8002/38696. | ||
moritz_ | doesn't look like Perl 6 :/ | 15:04 | |
so you're in the wrong channel | |||
corpogen | no idea | ||
moritz_ | now you know | 15:05 | |
15:05
cjk101010 left
15:10
bluescreen left,
lumi left,
lumi joined
15:11
uniejo joined,
tlb left
15:12
k23z__ left
|
|||
sjn | corpogen: try asking in #perl and make sure you have all necessary info in that pastebin page (including the code that the error message refers to) | 15:12 | |
15:13
tlb joined
|
|||
sjn | corpogen: or, reimplement your tool in Perl 6, and hang around here ;-) | 15:13 | |
15:15
Baggiokwok left,
payload left
15:16
mikehh left
15:18
nihiliad joined,
LaVolta left,
mikehh joined
|
|||
pugs_svn | r29596 | colomon++ | [t/spec] More tests for RangeIterator. | 15:21 | |
15:25
corpogen left
15:35
cognominal left
15:37
Psyche^ joined,
_ash left
15:40
cognominal joined
15:41
lumi left,
lumi joined
15:45
mikehh left,
mikehh joined
15:52
jan_ left,
iblechbot left
|
|||
PerlJam | guten Morgen | 15:52 | |
jnthn | PerlJam: Wie gehts? | 15:53 | |
15:53
Patterner left
|
|||
jnthn | ...or something... :-) | 15:53 | |
PerlJam | um .... I've already exhausted my conversation German, sorry :) | 15:54 | |
*conversational | |||
jnthn: But ... I'm fine, how are you? :) | |||
colomon | Bag(3,8,[2,Seq(9,3)],8) >>->> 1; # Bag(2,7,[1,Seq(8,2)],7) | 15:57 | |
How is that even supposed to begin to be implemented? | |||
PerlJam | colomon: magic, as usual :) | 15:58 | |
colomon | When I was looking at that yesterday, I was assuming the end result was a list. | 15:59 | |
PerlJam | colomon: is hyper really supposed to recurse like that? | 16:01 | |
jnthn | PerlJam: I'm...strangely exhausted. | 16:02 | |
colomon | PerlJam: that's start from the spec. | ||
*straight | |||
PerlJam | The fun of not always being detail oriented is that there's always these new little gems in the spec that surprise you. | 16:03 | |
(of course, the spec being in flux increases the surprise factor too :) | 16:04 | ||
pmichaud | and the surprises have kept on coming, lately! :-) | 16:06 | |
16:07
mikehh left
16:08
mikehh joined
16:09
pnate joined
|
|||
colomon | pmichaud: it's easy for me to see how to you can connect iterators and hyper operators. | 16:09 | |
but building up an identical structure afterward?!?? | |||
16:09
lumi left
16:10
lumi joined
|
|||
pmichaud | I'm not sure about that "afterward" part, though. It could be builtup/maintained as it runs. | 16:10 | |
colomon | either way, that's a lot more complicated than the current Iterator interface. | ||
pmichaud | sure, but that's not a function of iterator anyway | 16:11 | |
The Bag sees four elements from its iterator | |||
jnthn | colomon: It's not so hard maybe. | ||
colomon: I mean, it may be like | |||
pmichaud | the third element is an Array, which is fed to its own hyperiterator invocation, which returns another array | ||
jnthn | sub hyper_helper(::T @items) { ... } and you can do T.new(@result) in there or so. | 16:12 | |
pmichaud | that array itself has two elements, with the Seq being fed to yet another hyperoperator | ||
jnthn | There's ways to write generic routines. :-) | ||
(I'm assuming a recursive approach there...I guess pm maybe is too.) | |||
pmichaud | yes | ||
basically it ends up acting like Bag(3-1, 8-1, [2, Seq(9,3)] >>->> 1, 8-1) | 16:13 | ||
which in turn | |||
Bag(3-1, 8-1, [2-1, Seq(9,3) >>->> 1], 8-1) | |||
and then | |||
Bag(3-1, 8-1, [2-1, Seq(9-1, 3-1)], 8-1) | |||
jnthn | I think the current impl may know how to do that. | 16:14 | |
rakudo: say ([1, 2, [3, 4], 5] >>+>> 1).perl | |||
pmichaud | oh, I doubt that part. Anyway, the hyper metaop would just thread over the structures | ||
p6eval | rakudo 1d4928: OUTPUT«[2, 3, [4, 5], 6]» | ||
pmichaud | okay, looks like it does work :-) | 16:15 | |
jnthn | pmichaud: Well, it knows to recurse. | ||
pmichaud: Not about types though. | |||
pmichaud | adding types wouldn't be too difficult, I don't think | ||
jnthn | Me either. | ||
I think hypers on hashes work too. | |||
jnthn used to be, like, productive. | |||
Hopefully Feb I'll me productive again too. :-) | 16:16 | ||
*be | |||
pmichaud | I'm sure I will. | ||
I'm being productive now, although only in terms of effort and not results :) | |||
(although we're getting closer) | |||
jnthn | Spending time on design is fine. :-) | 16:17 | |
pmichaud | more like "implementations that don't quite work" | ||
jnthn | "research" :-) | ||
pmichaud | I guess that makes me a "scout ant" for the time being. :) | ||
although I will be very happy to eliminate the 'flatten' flag here in a bit :-) | 16:18 | ||
16:19
cjk101010 joined
|
|||
lichtkind | could anybody reset my pugs account? | 16:20 | |
16:21
ejs2 left
|
|||
pmichaud | ooops | 16:23 | |
I just realized the release announcement for Jan 2010 didn't make it off my machine | |||
Should I resent? | |||
*resend? | |||
16:24
bloonix joined
|
|||
colomon | it seems like that ship has kind of sailed... | 16:27 | |
16:27
Psyche^ is now known as Patterner,
Patterner left
16:28
Patterner joined
16:30
wu1 left
|
|||
colomon | jnthn: looking at your hyper_helper back there... does that imply we can do it without support from the class itself other than an appropriate .new being available? | 16:30 | |
jnthn | colomon: Yes. | 16:32 | |
colomon | sweet. | ||
jnthn | colomon: That's how the current impl works, iirc. | ||
16:39
fdwgulq joined,
fdwgulq left
|
|||
colomon now studying the master implementation... | 16:41 | ||
16:44
lumi left,
lumi joined
16:53
justatheory joined
16:55
justatheory_ joined
16:59
cognominal left
17:00
cognominal joined
|
|||
lisppaste3 | frettled pasted "Blog entry about Rakudo ng as new master (feedback wanted)" at paste.lisp.org/display/94097 | 17:00 | |
frettled | If I'm off the mark in any way, please whack me. | 17:01 | |
(I may have missed some goings-on in this channel due to some spamming, please bear with me.) | |||
17:03
nzb joined,
nzb left
|
|||
pmichaud | frettled: I don't see anything wrong with the article, but it makes me think we ought to list what some of the improvements of ng are | 17:06 | |
diakopter | lichtkind: still there? | ||
pmichaud | i.e., we're regressing, but we gain some very important stuff in return | ||
frettled | pmichaud: yes, very good point, that would help add a more positive spin | ||
pmichaud | for one, we'll have working laziness | ||
we'll also have Parcel/List/Array/other types that fit the updated spec. Rakudo master was very out of date there. | 17:07 | ||
17:07
PZt joined
|
|||
pmichaud | The ng version will support protoregexes and a better form of longest token matching | 17:07 | |
metaoperators are truly meta -- and they're dynamically generated on-demand | 17:08 | ||
we have a base object metamodel that is far closer to the specification than what we had before. Also, major portions of the metamodel are written in Perl 6. | |||
we should get some good speed improvements (many due to added laziness) | 17:09 | ||
frettled | excellent talking points | ||
jnthn | Also, from a Rakudo * point of view, many of the things Pm just mentioned directly address priority #1 ROADMAP items too. | ||
pmichaud | we don't have it yet, but shortly we'll have the ability to embed closures in regexes | ||
frettled | would it be correct to say that laziness will be "mostly working", or will it be complete? | 17:10 | |
pmichaud | and variable interpolations | ||
jnthn | pmichaud: How about the auto-vivification things? | ||
pmichaud | "mostly working". The laziness spec itself is undergoing change. | ||
Oh yes, array and hash elements will vivify properly. | |||
jnthn | \o/ | ||
pmichaud | (they already do for arrays, although I'm still tweaking a bit there) | ||
17:10
justatheory left,
justatheory_ is now known as justatheory,
lumi left,
pmurias left
|
|||
pmichaud | lexical subs and variables work properly | 17:11 | |
operators have the correct names (i.e., with angles). subs have the correct sigils (i.e., with &'s) | 17:12 | ||
we have working phasers | 17:13 | ||
and a much improved phaser model | |||
17:14
lumi joined
17:15
lmc joined
|
|||
pmichaud | anyway, those are a few changes that could not be easily added to master | 17:15 | |
(indeed, the reason master doesn't have many of them was because it was proving so difficult to do them... thus ng resolves a lot of those issues) | |||
afk, lunch | 17:16 | ||
frettled | Brilliant, thanks a lot. | 17:18 | |
diakopter | lichtkind: do you still want your pugscode password reset? | ||
17:22
nothingmuch joined
|
|||
diakopter | TimToady: may I add a mention of run-time-expression fixed-length array constructors to S09? | 17:23 | |
TimToady | yes, question is whether the actual construction is driven by autoviv | 17:24 | |
diakopter | oh | ||
TimToady | and what happens if you happen to be in the scope of the declaration but not have executed it | ||
frettled | There, blogified: howcaniexplainthis.blogspot.com/201...or-us.html | ||
TimToady | does it just use the current value of $a whatever it is then? | 17:25 | |
it's not just a walk in the park :) | |||
frettled | I really like grabbing the good talking points from #perl6 and blogging about it, I like to think that there are some readers who don't follow things very closely here ;) | ||
colomon | frettled++ | 17:26 | |
TimToady | also, the type should probably be a container role instantiated with the particular shape | ||
so that the type of two such arrays is officially different | |||
diakopter | I'd think it evaluates the expression at the time of initialization. | 17:27 | |
17:27
synth left
|
|||
TimToady | well, people are going to expect my @array[40]; to autoinit without an = | 17:27 | |
diakopter | oh; I meant declaration. | 17:28 | |
TimToady | while we don't assume .= new for scalar vars, maybe we can for autovivifiables | ||
17:29
pmurias joined
|
|||
TimToady | .oO(Good design is a bitch, but I can hope it's my bitch.) |
17:31 | |
anyhoo, it would be good if the lack of .= new could be made to fall out of autovivifiability without using an exception list of types | 17:32 | ||
17:33
athaba joined
|
|||
frettled | :) | 17:33 | |
TimToady | just as $x[3] = 4 creates an array in $x if it needs to, speaking of which, we need a mechanism for that too | 17:34 | |
rakudo: my $x; $x[3] = 4; say $x[3] | 17:35 | ||
p6eval | rakudo 1d4928: OUTPUT«Method 'postcircumfix:[ ]' not found for invocant of class 'Failure'in Main (file src/gen_setting.pm, line 324)» | ||
diakopter | I didn't know that | ||
TimToady | Perl 5 does it | ||
diakopter | pugs: my $x; $x[3] = 4; say $x[3] | ||
p6eval | pugs: OUTPUT«4» | ||
TimToady | basically, .[] on a Mu-filled scalar container should autoviv an array somehow | 17:36 | |
17:37
lumi left,
lumi joined
|
|||
TimToady | just as any element can autoviv a subarray | 17:37 | |
diakopter | ok. since sprixel's first stage won't do autovivification, I can defer that.. | ||
colomon | pmichaud: I do still have a question on iterators and hyper. What happens if you do something like >>-- to a hyper that works through iterators? Is .get supposed to return something which is rw? | ||
diakopter | I suppose that (my last msg) is a truism | 17:38 | |
TimToady | you can say that again | ||
that goes without saying | |||
17:38
cdarroch joined
|
|||
diakopter | I mean, a tautology. | 17:38 | |
TimToady | I prefer tauntaologies | ||
s/ao/o/ | 17:39 | ||
TimToady blames his battery, which is running low, because he forgot his power cord at work yesterday... | |||
diakopter | TimToady: maybe there's a different constructor that takes the expression | 17:41 | |
TimToady | and does what with it, is the question | 17:43 | |
17:43
uniejo left
|
|||
TimToady | instantiates a new role with that length (unless cached), and the creates the class for that role, and the calls the "real" constructor on that? | 17:45 | |
17:46
plskyrzyrow joined
|
|||
TimToady | do we want @a[2,2] to be a different type than @a[4]? Seems so | 17:46 | |
17:46
plskyrzyrow left
|
|||
TimToady | er, @a[2;2] rather | 17:47 | |
jnthn | It sucks that the GNAA found a backdoor way to insert messages into your channel. :-/ | 17:48 | |
*our | |||
jnthn backlogs recent discussion | 17:49 | ||
17:49
jan_ joined
|
|||
TimToady will check back later & | 17:50 | ||
17:50
tlb left
|
|||
diakopter | I'd think the types would differ by dimensionality only | 17:52 | |
jnthn | TimToady: I'd kinda seen us being able to do it as a role parameter too, fwiw. | ||
TimToady: Since I'd got caching of roles based upon ===-style identify of the type parameters, I think it should work. | |||
17:52
am0c left
|
|||
lichtkind | diakopter: sorry had to go yes i still want the reset | 17:56 | |
17:58
Chillance joined
18:03
dakkar left
18:04
ShaneC joined
|
|||
diakopter | lichtkind: well apparently I've forgotten my password (again), so I can't :) | 18:05 | |
but I'm sure someone else can | |||
lichtkind | i hope so | 18:06 | |
moritz_: you have pugs acount? | 18:07 | ||
Khisanth | jnthn: there is +R ... | ||
jnthn | Khisanth: +R ? :-) | ||
jnthn goes to look it up | |||
Khisanth | silence unregistered | ||
or the new ircd is supposed to have a mode that also stops the CTCP | 18:08 | ||
jnthn | ah, cool. | 18:09 | |
jnthn ain't so clued up on IRC | |||
18:09
stephenlb joined,
lumi left,
lumi joined
|
|||
lichtkind | jnthn: do you have pugs account? | 18:10 | |
jnthn | lichtkind: Yes. | ||
lichtkind | jnthn: could you please reset my account? | ||
jnthn | lichtkind: Ah, I thought diakopter++ had already done it? | ||
lichtkind: Hm. Is that a commitbit task... | 18:11 | ||
lichtkind | jnthn: he need also a pwd reset :) | ||
jnthn | ah, I guess it's reinvite | ||
lichtkind: done | 18:12 | ||
(hopefully) :-) | |||
lichtkind | :) | 18:13 | |
18:21
uniejo joined
|
|||
lichtkind | jnthn: it warked thanks a lot | 18:21 | |
18:23
jonasbn joined
|
|||
pugs_svn | r29597 | lichtkind++ | included november wiki | 18:23 | |
lichtkind | it does really work :) | ||
18:25
fda314925 left
18:35
bartolin joined
|
|||
colomon | Hmmm. It seems like properly implementing the series operator, infix:<...>, requires an iterator internally, as the series may be large or infinite. | 18:36 | |
pmichaud | back | ||
colomon | But what type should the series operator return? | ||
pmichaud | colomon: a list | ||
colomon | how do you wrap a list around an iterator? | 18:37 | |
pmichaud | a list *is* an iterator :-) | ||
colomon | so you just return the iterator? | ||
pmichaud | essentially, yes | 18:38 | |
colomon | what is the catch in that essentially? :) | ||
pmichaud | think of things in terms of gather/take... what does gather return? | ||
it returns a list | |||
the catch is that you have to return the iterator in a way that it will flatten | 18:39 | ||
colomon | ah. | ||
pmichaud | as opposed to in a scalar, where it won't flatten | ||
colomon | right. | ||
pmichaud | but if infix:<...> is written in terms of gather take, the gather handles all of that for you :-) | ||
I should have a working gather/take soonish. | |||
TimToady: we postulated earlier that iterators in list context flatten... does that sound rightish? (An iterator in a scalar container wouldn't flatten, however.) | 18:40 | ||
colomon | I guess this brings up the question of how often we should be going to be bare metal and directly coding an iterator, and how often we should just use gather/take. | ||
pmichaud | bare metal when speed is an issue, I'd think | ||
or when it's pretty easy to do so | |||
or when there are optimizations available | 18:41 | ||
there's also the question of "how bare is the metal?" | |||
:-) | |||
colomon | :) Sure enough, I prefer my bare metal still in Perl 6 rather than Parrot. | ||
18:47
quietfanatic left
18:50
rodi joined
|
|||
colomon | I feel like iterators provide a target-rich environment for doing cool stuff, I'm just not sure where to tackle it. | 18:51 | |
pmichaud | it'll become clearer, soon, I hope. | ||
I'm fixing the failing 08-var-array.t test now (the error really doesn't have anything to do with arrays, though), next will be .map | |||
that should get use pretty close back to the ng state | 18:52 | ||
s/use/us/ | |||
Tene | pmichaud: how is ng1 coming? | ||
colomon | I was just peering at STD.pm, trying to figure out how to bring the reduce meta operator into ng1, but I fear the grammar involved is still beyond me. | ||
pmichaud | slow | ||
18:52
lumi left
|
|||
pmichaud | but making good progress today. Yesterday posed a few blockers. | 18:52 | |
18:52
lumi joined
|
|||
Tene | Might have some time after work today. I don't think there's anything going on that needs me tonight. | 18:55 | |
pmichaud | okay, great! | ||
Tene | Sorry I've been absent this week. | ||
pmichaud | actually, ng1 has some good stuff with Range and RangeIterator | ||
Tene: np, absence is a not-uncommon trait for us all :) | |||
sometimes real life and/or other priorities just show up | 18:56 | ||
ng1 now passes "make test" | 19:02 | ||
short break, then I'll do .map | 19:03 | ||
colomon | double \o/ | 19:04 | |
19:11
rodi left
19:13
lmc left,
lmc joined
19:17
macae left
19:19
cognominal left
19:20
cognominal joined
19:29
cjk101010 left
19:34
uniejo left
19:35
lumi left,
lumi joined
19:36
iblechbot joined
19:37
_ash joined
19:41
uniejo joined
19:43
uniejo left
19:49
pnate2 joined
19:53
pnate left
20:05
jferrero joined
20:16
hkwnmlovbb joined
20:17
hkwnmlovbb left
20:22
lumi left,
lumi joined
|
|||
lichtkind | what is vi? | 20:23 | |
i mean viv | |||
20:26
mikehh left,
mikehh joined
20:27
ejs joined
|
|||
lichtkind | diakopter: you some minutes for an interview? | 20:30 | |
pmichaud | ng: say 'alive' | 20:38 | |
p6eval | ng b8201f: OUTPUT«alive» | ||
20:43
alester joined
|
|||
_ash | ah, cool, the eval bot is reading the chat logs again | 20:43 | |
20:43
_ash is now known as ash_
|
|||
ash_ | rakudo: say 'hi' | 20:44 | |
p6eval | rakudo 1d4928: OUTPUT«hi» | ||
PerlJam | pmichaud: how goes the ng/ng1 ? | ||
pmichaud | slow, but speeding up | ||
I'm about to do (lazy) .map | |||
almost have it ready, I think. | |||
ash_ | awesome, pmichaud++ | 20:46 | |
20:47
k23z__ joined
|
|||
PerlJam | When's the Rakudo release? | 20:47 | |
pmichaud | already did it last week | 20:48 | |
PerlJam | oh, I guess I missed it. | ||
pmichaud | apparently the announcement didn't leave my computer, though :-( | ||
I've been wondering if I should go ahead and send now | |||
ash_ | pmichaud: i made a repository for my attempt at making a nqp-rx like language, based on the llvm, its only just started though, i am still learning flex/bision so it doesn't compile yet | ||
pmichaud | ash_++ | ||
20:49
lumi left,
lumi joined
|
|||
PerlJam | pmichaud: I just read the release announcement. I think the announcement itself is the most important part of the release :-) | 20:52 | |
pmichaud | yeah, I'll send. | ||
PerlJam | (so, by all means, send it!) | ||
pmichaud | (re-send) | ||
20:54
cotto_work left
20:56
cotto_work joined
21:00
wu joined,
wu is now known as Guest27696
21:01
lumi left
21:02
lumi joined,
cotto_w0rk joined
|
|||
ash_ | pmichaud github.com/ashgti/nq-nqp-rx if your at all interested, i am gonna keep on chucking on that | 21:02 | |
21:07
dukeleto joined
|
|||
dukeleto | how does one invoke/call a lambda in perl 6? { ... }.invoke ? | 21:09 | |
21:12
Su-Shee left
21:16
cotto_work left
|
|||
ash_ | for a bare block? | 21:18 | |
pmichaud | { ... }.() | 21:19 | |
ng: say { 3 + 4 }.(); | |||
p6eval | ng b8201f: OUTPUT«sh: ./perl6: No such file or directory» | ||
pmichaud | bah | ||
colomon | The dot is needed? | ||
ash_ | no, but its more explicit | 21:21 | |
21:21
bloonix left
|
|||
ash_ | rakudo: -> $a { say $a; }.(5); | 21:21 | |
p6eval | rakudo 1d4928: OUTPUT«5» | ||
21:29
uniejo joined
|
|||
colomon | rakudo: my $x = -> $a { say $a; }; $x.(5); | 21:39 | |
p6eval | rakudo 1d4928: OUTPUT«5» | ||
21:39
eternaleye left,
ruoso left
|
|||
pmichaud | jnthn: (just in case you're around).... Signatures are immutable, yes? | 21:47 | |
jnthn | pmichaud: I dearly hope so. | 21:48 | |
pmichaud: You caught me just as I was about to log off and go to the pub. :-P | |||
pmichaud | aha! | ||
currently .params computes a new list everytime it's requested | |||
jnthn | pmichaud: Yeah | ||
pmichaud | should we perhaps cache the result somewhere? | ||
same for count and arity? | |||
jnthn | That was my intention, just never got around to it. | ||
pmichaud | okay | ||
jnthn | I completely intended to cache that result though. | 21:49 | |
But wanted to compute it lazily too. | |||
Only got one out of two done. :) | |||
pmichaud: Anything else before I go pivovat? | 21:50 | ||
lichtkind | jnthn: you mean pivovar :) | 21:51 | |
21:52
SmokeMachine left
|
|||
jnthn | lichtkind: Not unless I'm going to brewery. :-) | 21:52 | |
lichtkind | haha | ||
jnthn | lichtkind: "pivovat" is actually slang, not real word :-) | ||
21:52
lumi left
21:53
lumi joined
|
|||
lichtkind | it seemes to me more like drinkin | 21:53 | |
jnthn | lichtkind: There's a bunch of Slovak verbs that end -ovat (not sure if in Czech too). :-) | ||
Drink is pit | |||
:-) | |||
21:53
cotto_w0rk left
|
|||
jnthn | When I was in Prague the waiter called it a pivko. I laughed. :-) | 21:53 | |
lichtkind | jnthn: there is to but it indicates a verb | ||
21:53
cotto_w0rk joined
|
|||
jnthn | aye. pivovat = to drink beer :-) | 21:53 | |
lichtkind | pivko means little beer | ||
jnthn | Huh? I was drinking pints! :-P | 21:54 | |
lichtkind | jnthn: good then i understood right | ||
jnthn | Maybe I shoulda asked for a velmi velke pivo :-) | ||
lichtkind | jnthn: normal beer = pivo , small = pivko , eben smaller = pivičko | 21:55 | |
even smaller | |||
jnthn | pivičko is a terrifying concept. | ||
Ok, idem do krcmy. See you all later :-) | |||
lichtkind | have fun | ||
pmichaud | jnthn: no, nothing else -- just was noticing that &block.count was failing and then saw "hey! that's expensive!" | ||
jnthn | pmichaud: heh. Feel free to fix, or put on my task list. :-) | 21:56 | |
jnthn gone | |||
21:58
eternaleye joined,
cotto_w0rk left
22:01
bartolin left
22:03
PacoLinux left
22:04
PacoLinux joined
22:05
mikehh left,
mikehh joined
|
|||
colomon | pmichaud: while you're messing around in there, have you noticed that grep (for instance) doesn't handle $_ properly in ng? | 22:09 | |
22:13
cotto_w0rk joined
22:24
ejs left,
k23z__ left
|
|||
ash_ | ng: grep { say $_; }, (1, 2); | 22:28 | |
p6eval | ng b8201f: OUTPUT«Mu()Mu()» | ||
ash_ | hmm | ||
i'd argue thats a bit off | |||
colomon | ash_: yes, exactly. | ||
22:28
uniejo left
|
|||
ash_ | ng: grep { say @_; }, (1, 2); | 22:29 | |
p6eval | ng b8201f: OUTPUT«» | ||
dalek | kudo/ng: 22b55c4 | moritz++ | t/spectest.data: re-enable anon_block.t and class-and-instance.t |
22:30 | |
22:38
mikehh left
22:39
mikehh joined
22:42
bhwmr joined,
bhwmr left
22:43
jonasbn left,
ruoso joined,
TimToady sets mode: +vvvv buubot dalek hugme iblechbot,
TimToady sets mode: +vv ilogger2 IRSeekBot,
TimToady sets mode: +vvv lisppaste3 p6eval phenny,
TimToady sets mode: +v pugs_svn
22:45
TimToady sets mode: +oooo [particle] araujo avar cognominal,
TimToady sets mode: +oooo colomon japhb Juerd justatheory,
TimToady sets mode: +oooo lichtkind lumi PerlJam pmurias,
TimToady sets mode: +oooo s1n spinclad wolverian xinming
22:46
khisanth_ joined
22:47
mikehh left,
quietfanatic joined,
mikehh joined
22:51
khisanth_ left,
khisanth_ joined
22:52
xinming left
22:56
khisanth_ left
|
|||
TimToady | ng: grep { say $^a; }, 1, 2; | 22:56 | |
p6eval | ng 22b55c: OUTPUT«Null PMC access in get_string()current instr.: 'perl6;Perl6Role;perl' pc -1 ((unknown file):-1)» | ||
TimToady | ng: grep -> $a { say $a; }, 1, 2; | ||
p6eval | ng 22b55c: OUTPUT«Null PMC access in get_string()current instr.: 'perl6;Perl6Role;perl' pc -1 ((unknown file):-1)» | ||
TimToady | ng: grep -> $a { say $a; }, <a b>; | 22:57 | |
p6eval | ng 22b55c: OUTPUT«ab» | ||
22:57
Guest27696 left
|
|||
TimToady | ng: say 1 | 22:57 | |
p6eval | ng 22b55c: OUTPUT«1» | ||
diakopter | ng: grep { say $^a; }, 1; | ||
TimToady | ng: say 1, 2 | ||
p6eval | ng 22b55c: OUTPUT«Null PMC access in get_string()current instr.: 'perl6;Perl6Role;perl' pc -1 ((unknown file):-1)» | ||
ng 22b55c: OUTPUT«12» | |||
pmichaud | looks like parameter issue | 22:58 | |
22:58
mssmfs joined
|
|||
pmichaud | ng: { say $^a }.(1) | 22:58 | |
p6eval | ng 22b55c: OUTPUT«1» | ||
TimToady | or an opaque container issue | ||
pmichaud | or a grep problem | ||
TimToady | ng: grep { say $^a.WHAT }, 1; | 22:59 | |
p6eval | ng 22b55c: OUTPUT«Null PMC access in get_string()current instr.: 'perl6;Perl6Role;perl' pc -1 ((unknown file):-1)» | ||
pmichaud | > my $a = (2,3,4).map({ $_ * 3 }).iterator; say $a.get; say $a.get; | ||
6 | |||
9 | |||
TimToady | input side, not output | ||
pmichaud | yay! | ||
we can has lazy map | |||
23:00
mssm left
23:03
patspam joined,
brrant left
23:04
brrant joined,
lumi left,
lumi joined
23:06
ash_ left
23:15
iblechbot left
|
|||
pugs_svn | r29598 | lwall++ | [perl6.org/index] demote Elf from the front page for lack of recent activity. | 23:18 | |
23:19
bloonix joined
23:41
cognominal left
|