»ö« 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! Set by sorear on 4 February 2011. |
|||
00:02
impious left
00:07
xinming_ left
00:08
cosimo joined
00:16
noganex_ left,
cosimo left
00:17
cosimo joined,
cosimo left
00:18
cosimo joined
00:23
whiteknight left
00:24
ab5tract left
00:28
shabble joined,
shabble left,
shabble joined
00:30
noganex joined
00:46
szbalint left,
szbalint joined
00:49
drbean left
00:51
bph left
00:52
drbean joined
00:53
rdesfo left,
stkowski left
00:55
s1n left
00:58
mtk left
01:02
Sarten-X left
01:06
justatheory joined
01:08
mtk joined,
amkrankruleuen left,
woosley joined
01:09
amkrankruleuen joined
01:15
Chillance left
01:23
Sarten-X joined
01:33
hercynium joined,
hercynium left,
hercynium joined
01:42
orafu left
01:47
GinoMan joined
01:48
[particle]1 joined,
pothos left,
[particle] left,
pothos joined
01:54
adriano86 joined
|
|||
adriano86 | hi | 01:54 | |
I need help with some perl code | |||
donri | 6? :) | 02:01 | |
02:02
silent_h_ joined
|
|||
adriano86 | no | 02:02 | |
7 | |||
whataafuck you think | |||
you troll | |||
donri | 'perl' usually refers to 5, not trolling | 02:05 | |
adriano86 | so you saying that i am? | ||
02:05
silent_h_ left
|
|||
donri | anyway, it's best to just ask/state your problem and see if anyone bites | 02:06 | |
nope, was just making sure. don't take it personally. | |||
adriano86 | ok so what are you saying | 02:09 | |
let me hear it | |||
spit it out | |||
flussence_ | hugme: hug adriano86 | 02:10 | |
hugme hugs adriano86 | |||
02:10
cdarroch left
|
|||
adriano86 | go away! | 02:10 | |
i dont need a god damn hug | |||
I got a problem that i need solved | |||
Eevee | maybe spend less time fighting over nothing and more time telling us what the problem is | 02:11 | |
flussence_ | if you actually have a problem, start showing code. | ||
donri | adriano86: You're not really acting in such a way as to inspire people to help you with your perl problem. | ||
flussence_ | if not, you want #perl. | ||
adriano86 | donri im tryin but its damn hard when im surrounded by idiots | 02:12 | |
ok fine | |||
donri | You're either trolling or you have seriously misinterpreted the situation. | ||
adriano86 | think ill go for the later | ||
TODO: { | |||
local $TODO = "Test not yet implemented"; | |||
fail "Missing a test for X"; | |||
whats wrong with this snippet | 02:13 | ||
flussence_ | std: TODO: { local $TODO = "Test not yet implemented"; fail "Missing a test for X"; } | ||
p6eval | std 4608239: OUTPUT«===SORRY!===Variable $TODO is not predeclared at /tmp/SiUgmnwuon line 1:------> TODO: { local $TODO⏏ = "Test not yet implemented"; fail "MisUndeclared routine: 'local' used at line 1Check failedFAILED 00:01 121m» | ||
flussence_ | there you go; "local" isn't valid perl6. | ||
adriano86 | ooh | 02:14 | |
now i get it | |||
i knew was gonna happen | |||
Eevee | haha | ||
adriano86 | dont tell me your questioning my perl6 knowledgeability!?? | ||
flussence_ | did you by any chance get kicked out of the perl 5 channel before coming here? | ||
adriano86 | ye how u know | 02:15 | |
flussence_ | just a hunch. | ||
adriano86 | good one | ||
u know my plan was.. | |||
to step it up one level, so i came to perl6 | |||
donri | You should now leave and go to #perl7 | ||
adriano86 | guess the people in the chan 7 waiting for me uh? | ||
got a feelin i be meeting em real soon for some reason | |||
flussence_ | now if you don't have any actual problem, I'll be putting you on ignore until you calm down. | ||
adriano86 | nah its ok | 02:16 | |
ill just talk to myself in perl7 | |||
nobody talks bk there | |||
they all nice and polite since they is consisting of the only non-llama on this planet | |||
which is me myself | |||
but i guess yall already knew that one, as it equals the mindpower of a 1+1 calculation | 02:17 | ||
02:20
mikehh left
02:23
GinoMan left
02:43
fisted left
02:46
adriano86 left
02:52
petdance joined
03:02
justatheory left
03:15
TiMBuS|Away joined,
justatheory joined,
TiMBuS|Away is now known as TiMBuS
03:24
fhelmberger joined
03:49
coldhead left
03:50
coldhead joined
03:57
mberends left
04:03
nymacro joined
04:06
GinoMan joined
04:07
hercynium left
04:09
arlinius left
04:17
mberends joined
04:21
petdance left
|
|||
mberends | .oO( a #perl7 channel would be the perfect place for all the adrianos ) |
04:26 | |
.oO( well, #perl666. we may want #perl7 for something else one day ) |
04:29 | ||
donri | I wonder what will turn out to warrant a major version bump from Perl 6 | 04:38 | |
mberends | Perl 7 it is specced philosphically in S01 ;) | 04:40 | |
s/it// | |||
donri | "Perl 6 should be malleable enough that it can evolve into the imaginary perfect language, Perl 7" heh | 04:45 | |
sorear drops by #perl6 for a little bit. | 04:46 | ||
donri | I don't think there can be one perfect language, there are different and incompatible paradigms that are useful for different situations | ||
mberends | nice to see ya, sorear | ||
sorear | fwiw, theorems are very very important in my kind of programming language work | 04:47 | |
although I usually don't bother to write them down | |||
my mind likes to prove stuff in 3+ dimensions, serializing it into prose is a real pain | |||
mberends | donri: sure, S01 is not serious about perfection | ||
donri | Didn't think it was, read that quote as tongue-in-cheek | 04:48 | |
mberends | sorear: +1, theory provides the guidelines within which we do sensible work. | 04:50 | |
kind of like "you can't get there from here" type statements, or "you shouldn't go there from here" | 04:52 | ||
sorear | the backlog I just went through has you deriding a book for calling itself "Practical" and containing "axioms, lemmas, and theorems" | 04:53 | |
mberends | yes. perhaps to my tunnel vision, I could not get anything practical out of that text. | 04:54 | |
I would not mind if the book included the application of the theory. | |||
justatheory backs away slowly | 04:55 | ||
mberends backs away too, Justin Case | |||
sorear | I can't comment too much, I haven't read the book you're discussing | ||
sorear doesn't like the fact that "academic" is a term of derision these days | 04:57 | ||
04:58
xinming joined
|
|||
mberends | sorear: that divide has existed for a very long time afaik, and there is no smoke like that without fire. "ivory towers" and so on. | 04:58 | |
sorear | btw | 05:00 | |
current niecza weekly commits - 1 mberends, 2 moritz_, 3 sorear | |||
mberends | educators always seem to have struggled to provide sufficient "real world" content in their materials. I know, I'm one of them. | ||
sorear | if one of you want to claim the top spot, this is the week to do it :) | ||
mberends feels motivated | 05:01 | ||
sorear | (weeks begin and end at 1900 UTC Tuesday) | ||
mberends | I owe you one little rename-refactor anyway, now for some LHF... | 05:02 | |
05:08
sufrostico joined
05:10
xinming left
|
|||
sorear | mberends: what directions are you interested in persuing? | 05:10 | |
05:10
xinming joined
|
|||
mberends | sorear: directions are limited by my limited skills, but spectest coverage in general, masak's coding contest examples, any changes that get more existing P6 code running on Niecza. | 05:13 | |
essentially trying to indirectly pull up the bus number | 05:14 | ||
05:21
sufrostico left
05:39
donri left,
xinming left
|
|||
jnthn | o/ from Taipei | 05:40 | |
jnthn is very jetlagged; don't expect any sense out of me today :) | 05:41 | ||
mberends | /o jnthn, good to see you online from Taipei anyway | 05:42 | |
05:46
Psyche^ joined,
Psyche^ is now known as Patterner
|
|||
jnthn is glad to have made it here safely | 05:46 | ||
sorear drops back out, most likely for multiple days | 05:47 | ||
jnthn | It seems like a pretty cool place, from this morning's wandering around. By now though I'm mostly at the point of feeling too tired to walk around and see stuff. | 05:48 | |
05:53
justatheory left
|
|||
tadzik | morning zebras | 05:53 | |
mberends | hi tadzik | 05:55 | |
jnthn | o/ tadzik | 05:59 | |
06:14
sftp left
06:32
mberends left
06:34
kaare_ joined
06:46
tyatpi_ left
06:47
tyatpi_ joined
06:52
deskmsn joined
|
|||
deskmsn | hi guys | 06:52 | |
06:54
deskmsn left
06:57
wtw joined
|
|||
moritz_ | good morning | 06:59 | |
07:00
flatwhatson_ left
07:03
nymacro left
07:11
ruslan joined
07:18
GinoMan left
07:20
ruslan left
07:22
Mowah joined
07:25
cosimo left
07:26
simcop2387 left
07:28
noganex_ joined
07:31
noganex left
|
|||
snarkyboojum burps | 07:37 | ||
07:44
simcop2387 joined
08:09
snarkyboojum left,
snarkyboojum joined,
snarkyboojum left
08:10
mj41 joined
08:17
simcop2387 left
08:20
simcop2387 joined
08:21
mberends joined
08:24
simcop2387 left
08:35
Mowah left,
simcop2387 joined,
dju_ left
08:37
Rotwang joined
08:46
mtk left
08:54
mtk joined
09:16
unredbl3251 joined
09:18
VXZ left,
alim joined
09:30
unredbl3251 left
09:31
tzhs joined
09:36
dan___ joined
|
|||
dan___ | helo, I have big file with entries in this format: CX Christmas Island -- Which is 2 characters followed variable number of spaces then country name followed by spaces and --, I need to extract the country names only.. can someone show me how can that be done in perl6? | 09:38 | |
moritz_ | rakudo: my $line = 'CX Christmas Island -- '; $line ~~ s/^\w\w\S+//; $line ~~ s/<[\s\-]>*$//; say $line | 09:41 | |
p6eval | rakudo 841b2c: OUTPUT«CX Christmas Island -- » | ||
moritz_ | rakudo: my $line = 'CX Christmas Island -- '; $line ~~ s/^\w\w\s+//; $line ~~ s/<[\s\-]>*$//; say $line | ||
p6eval | rakudo 841b2c: OUTPUT«Christmas Island -- » | ||
moritz_ | rakudo: my $line = 'CX Christmas Island -- '; $line ~~ s/^\w\w\s+//; $line ~~ s/[\s|\-]+$//; say $line | 09:42 | |
p6eval | rakudo 841b2c: OUTPUT«Christmas Island» | ||
09:42
nadim_ left
|
|||
moritz_ | right, rakudo doesn't like backslashed sequences in char classes :( | 09:42 | |
dan___ | moritz_: is that considered a todo or something we will need to adopt to? | 09:43 | |
moritz_ | dan___: it's a todo | ||
rakudo: my $line = 'CX Christmas Island -- '; $line ~~ s/^\w\w\s+//; $line ~~ s/<+space+[-]>+$//; say $line | |||
p6eval | rakudo 841b2c: OUTPUT«===SORRY!===Unsupported use of - as character range; in Perl 6 please use .. at line 22, near "]>+$//; sa"» | ||
moritz_ | rakudo: my $line = 'CX Christmas Island -- '; $line ~~ s/^\w\w\s+//; $line ~~ s/<+space+[\-]>+$//; say $line | ||
p6eval | rakudo 841b2c: OUTPUT«Christmas Island» | ||
moritz_ | dan___: other compilers do it better | 09:44 | |
niecza: my $line = 'CX Christmas Island -- '; $line ~~ s/^\w\w\s+//; $line ~~ s/<+space+[\-]>+$//; say $line | |||
p6eval | niecza v3-80-g3cc93a7: OUTPUT«Unhandled exception: Unable to resolve method space in class Cursor at /tmp/bxy51HabRU line 1 (MAIN C3_ANON @ 4) at /home/p6eval/niecza/lib/CORE.setting line 1038 (CORE Regex.ACCEPTS @ 4) at /home/p6eval/niecza/lib/CORE.setting line 1044 (CORE _substitute @ 3) | ||
..at /tmp/bxy51… | |||
dan___ | mmm | ||
moritz_ | niecza: my $line = 'CX Christmas Island -- '; $line ~~ s/^\w\w\s+//; $line ~~ s/<[-]>+$//; say $line | ||
p6eval | niecza v3-80-g3cc93a7: OUTPUT«Christmas Island -- » | ||
moritz_ | niecza: my $line = 'CX Christmas Island -- '; $line ~~ s/^\w\w\s+//; $line ~~ s/<[\s\-]>+$//; say $line | ||
p6eval | niecza v3-80-g3cc93a7: OUTPUT«Christmas Island» | ||
moritz_ | niecza does the \s in the char class just fine | ||
sorear++ | |||
09:45
dakkar joined
|
|||
dan___ | moritz_: Since niecza is better in that area, do you recommend removing rakudo and getting niecza? | 09:47 | |
moritz_ | dan___: don't remove rakudo, install both :-) | 09:48 | |
dan___: niecza is less feature complete in other areas (multi dispatch and builtins, for example) | |||
dan___ | moritz_: I should kinda split my scripts into (more niecza compatable) and (more rakudo compatable) I think.. works for me.. | 09:49 | |
moritz_ | dan___: if you have some scripts that work on both compilers, but produce different results, please tell us. Such information is very valuable for adding stuff to the test suite | 09:50 | |
dan___ | moritz_: where should bug reports be sent? | ||
moritz_: do you have a ready tool for it? | |||
moritz_ | dan___: niecza bugs go to github.com/sorear/niecza/issues and rakudo bugs to mailto:rakudobug@perl.org | 09:52 | |
dan___: if you don't know which one is correct, just ask us here | |||
dan___ | moritz_: not a git user so I will use the email | 09:53 | |
moritz_ | dan___: you don't need any git knowledge for the bug tracker, it's just a web interface like any other | 09:54 | |
09:54
awoodland joined
|
|||
dan___ | moritz_: ah, okey.. | 09:55 | |
moritz_ | niecza: $_ = 'foo'; say /f/ | 09:56 | |
p6eval | niecza v3-80-g3cc93a7: OUTPUT«Regex()<instance>» | ||
09:57
dan___ left
10:01
satyavvd joined
10:02
satyavvd left,
satyavvd joined
10:17
woosley left
10:30
satyavvd left
10:37
Rotwang left
|
|||
colomon | rakudo: my $line = 'CX Christmas Island -- '; $line ~~ m/^\w\w \s+ (\S.*\S) \s+ \-\-/; say $0; | 10:42 | |
p6eval | rakudo 841b2c: OUTPUT«Christmas Island» | ||
colomon | rakudo: my $line = 'CX Christmas Island -- '; $line ~~ m/^\w\w \s+ (\S.*\S) \s+ \-\-$/; say $0; | ||
p6eval | rakudo 841b2c: OUTPUT«» | ||
colomon | rakudo: my $line = 'CX Christmas Island -- '; $line ~~ m/^\w\w \s+ (\S.*\S) \s+ \-\-/; say $0; | 10:43 | |
p6eval | rakudo 841b2c: OUTPUT«Christmas Island» | ||
moritz_ | that (\S.*\S) is a neat trick | ||
'--' also works instead of \-\- | |||
10:43
awoodland left
|
|||
colomon | I still haven't gotten used to things like '--' working -- my solution was very p5. :) | 10:44 | |
moritz_ | rakudo: $_ = 'CX Christmas Island -- '; ms/\w\w (\S.*\S)/ && say $0 | 10:45 | |
p6eval | rakudo 841b2c: OUTPUT«Christmas Island --» | ||
moritz_ | rakudo: $_ = 'CX Christmas Island -- '; ms/\w\w (\w.*\w)/ && say $0 | 10:46 | |
p6eval | rakudo 841b2c: OUTPUT«Christmas Island» | ||
moritz_ | those many \s+ just *had* to go away with an implied :s | ||
moritz_ doesn't think he actually used ms// after implementing it | 10:47 | ||
10:48
wtw_ joined
11:00
tzhs left
11:08
whiteknight joined
11:16
whiteknight left,
whiteknight joined
11:23
ab5tract joined
11:27
renormalist joined
11:33
plainhao left
11:35
orafu joined
11:40
coldhead left
11:59
tzhs joined,
shi joined
12:08
tyatpi_ left,
tyatpi_ joined
12:09
takadonet joined
|
|||
takadonet | morning all | 12:10 | |
12:18
leprevost joined
|
|||
[Coke] drowns in output. | 12:19 | ||
12:24
bluescreen10 joined
|
|||
tadzik | 'afternoon | 12:25 | |
12:34
_twitch joined
12:35
Mowah joined
12:37
mj41 left
|
|||
colomon | 'morning | 12:46 | |
12:50
meraxes joined
12:52
mj41 joined
12:55
mtk left,
mtk joined
13:01
mjk joined,
mjk left
13:04
hiex joined,
hiex left
13:08
woosley joined
13:27
sftp joined
13:28
sftp left
13:29
sftp joined
13:32
Mowah left
14:01
masak joined
|
|||
masak | oh hai from GoOpen in Oslo. | 14:02 | |
moritz_ | oh hai | ||
masak | oh, we had a troll visiting tonight. | 14:03 | |
quite an obvious/flagrant one, it seems. | |||
moritz_ | which makes me notice that I haven't backlogged yet | 14:04 | |
masak | somewhat oddly perhaps, even though I'll talk a lot about community tomorrow, I haven't managed to weave troll hugging into it all. | 14:05 | |
[Coke] | I appreciate that we have troll huggers (thugs!) here, but I find it so exhausting. Easier by far to ban them. | 14:07 | |
so, thanks for doing that, becaus3e I wouldn't. ;) | |||
masak | ;) | 14:08 | |
the troll from tonight came wanting help (with Perl 5), but was hostile and distracted, and meaningful communication wasn't really established. | 14:09 | ||
14:13
[particle]1 is now known as [particle]
14:18
shi left
|
|||
masak | mberends: I'm at a talk named "Art and Hacking in Syria". Arduino plays a vital role. \o/ | 14:19 | |
14:19
domidumont left
14:21
saaki joined
|
|||
[Coke] finds learnyouahaskell.com , which is the best introduction I've found so far. | 14:21 | ||
masak | I started following that, but got derailed. maybe I should give it another shot. | 14:22 | |
moritz_ still has "Real World Haskell" on his bookshelf, and has read only the first few chapters | |||
mostly due to distraction too | 14:23 | ||
tadzik | you can read it to Ronja before she gets asleep :) | 14:25 | |
masak | youngest Haskell code evar. | ||
coder* | |||
I wonder if structuring my free time more would entail a net good. making time plans and schedules seems to work for my working life; maybe it'd work for my free tuits as well? | 14:26 | ||
moritz_ | xkcd.com/874/ | ||
tadzik | so appropriate | ||
moritz_ | masak: structuring free time breaks down as soon as you have a baby :-) | 14:27 | |
masak | thanks; I'll keep that in mind. :P | ||
14:28
domidumont joined
|
|||
masak | moritz_: the xkcd comic reminds me of an image someone tweeted where a child had written a TODO list in scrawly letters on a piece of paper. | 14:28 | |
* EAT ICE CREAM | |||
* PLAY | |||
that was it. | |||
as I remember it, the twitterer was slightly envious of the simplicity of it all. | 14:29 | ||
moritz_ | :-) | ||
14:29
mtk left
|
|||
slavik1 | there was an argument about what makes a language good on ubuntu forums ... | 14:34 | |
PerlJam | slavik1: how sad. | ||
slavik1 | I just started listing some perl6 features/niceties | ||
:) | |||
14:35
mtk joined
|
|||
moritz_ | that's not what makes a language good | 14:35 | |
tadzik | slavik1: link? | ||
moritz_ | you know it's good when you get your job done, have low maintenance and low learning costs | ||
slavik1 | moritz_: hence perl6 :P | ||
PerlJam | someone should do one of those "levels of a programmer" for Perl 6. | 14:36 | |
masak | +1 | ||
colomon | I think I've read the first three or so chapters of books on about four functional programming languages. | ||
slavik1 | PerlJam: levels of a programmer? | ||
masak | PerlJam: url? | ||
colomon | It always feels to me like they start off showing how beautiful it is, and then suddenly it gets horribly ugly when they actually try to do something real with it. | 14:37 | |
slavik1 | colomon: yeah, I have noticed that | ||
colomon: I think it has to do more with programming in a functional manner than the languages themselves | |||
masak | colomon: sounds like the quote "Lisp is beautiful, but I've never seen a beautiful Lisp program" | 14:38 | |
colomon | slavik1: I think it's a bit of both. | ||
PerlJam | slavik1: they come in different flavors but usually it's something like hello world from a first year student, then from someone with a degreee, then someone who's been on the job for 2 months, then on the job for 2 years, then 5 years, then as an "expert" and so forth | ||
colomon | ML was the worst offender, if I recall correctly. | ||
slavik1 | PerlJam: url to some existing stuff? | ||
masak | PerlJam: oh! that wasn't the one I was thinking of :) | ||
mathw | PerlJam: there's a Haskell one that gets ridiculously elaborate, based around 'factorial' I believe | 14:39 | |
PerlJam | Here's another variant: www.codinghorror.com/blog/2009/04/t...mmers.html | ||
colomon | They started off with these beautiful recursive functions, but then explained that for basic efficiency reasons, you really should use these ugly hacks instead of those beautiful functions. | ||
mathw | somewhere in the middle is an extraordinarily long and convoluted implementation that uses comonads in a horribly gratuitious manner | ||
PerlJam | masak: were you thinking of this? www.indiangeek.net/wp-content/uploa...matrix.htm | ||
"comonads"? | 14:40 | ||
colomonads? :-) | |||
moritz_ thought of the "levels of perl programmers" to which he currently can't find a link | |||
PerlJam | (sorry colomon :) | ||
moritz_ | level 1: often gets syntax errors he doesn't know how to resolve | ||
14:40
domidumont left
|
|||
moritz_ | level 2: gets the code running, but does things like: my @lines = <FILE>; for (@lines) { ... } | 14:41 | |
mathw | PerlJam: yes, comonads | ||
moritz_ | level 3: understands contexts and basic regexes | ||
PerlJam | mathw: that's a new term for me. | ||
moritz_ | and so on | ||
masak | PerlJam: no. still looking. | ||
PerlJam: ah. this. replay.waybackmachine.org/200709292...00-stages/ | |||
I remember liking that one. | 14:42 | ||
14:42
plainhao joined
|
|||
moritz_ | masak: that might be the one I had in the back of my mind too | 14:43 | |
mathw | PerlJam: I suggest not worrying about them, they make my head hurt | ||
PerlJam | Well, there should be a "Stages of a programmer" for any lanuage. Stage 1: Is happy when he gets his code to compile. Stage 2: Happy when he gets his code to execute properly. Stage 3: Can read and understand code he wrote yesterday Stage 4: Can read and understand code he wrote 6 months ago Stage 5: Knows the code he wrote 6 months ago is crap now. etc. | 14:44 | |
14:44
kaare_ left
|
|||
moritz_ | Stage 6: Knows the code he will write in 6 months is crap | 14:45 | |
slavik1 | PerlJam: I def reached stage 6 | ||
moritz_: that's stage 8 | |||
PerlJam | moritz_: The older I get, the more I think I used to be smarter than I am now. :) | ||
slavik1 | stage 7: knows the code he wrote will look like crap 6 months into the future | 14:46 | |
undergrad students think they know everything | |||
14:46
mj41 left
|
|||
slavik1 | grad students know they know nothing | 14:46 | |
phd's know that nobody knows anything | |||
moritz_ | PerlJam: well, physiological research shows that brain volume peaks at age ~14, iirc | 14:47 | |
PerlJam | Maturity is getting comfortable with knowing that there are lots of things you don't know and moreover, there are lots of things you will never know. | ||
BTW, perhaps I'm just overly sensitive to this, but I've noticed more Perl 6 ideas leaking into Perl 5 thinking. For instance, yesterday someone on #p5p wanted people to review his patch to make a [+]-alike in Perl 5 | 14:49 | ||
(well, a reduce-a-like, not just addition) | |||
14:50
domidumont joined
|
|||
PerlJam | And I saw some mention of gather/take on #perl | 14:50 | |
moritz_ | PerlJam: p5p has become more open-minded and fast paced in the last year or so | ||
14:54
plobsing left
14:55
pkkm joined
14:58
pothos left,
pothos_ joined
14:59
pothos_ is now known as pothos
|
|||
masak | rakudo: say "..\n..".lines>>.comb.perl | 15:07 | |
p6eval | rakudo 841b2c: OUTPUT«((".", "."), (".", "."))» | ||
masak | what if I want ([".", "."], [".", "."]) ? | ||
rakudo: say "..\n..".lines>>.comb>>.Array.perl | 15:08 | ||
p6eval | rakudo 841b2c: OUTPUT«Method 'Array' not found for invocant of class 'Str' in main program body at line 22:/tmp/SQuy3sUGg2» | ||
moritz_ | rakudo: say "..\n..".lines>>.comb.item.perl | ||
p6eval | rakudo 841b2c: OUTPUT«(".", ".", ".", ".")» | ||
moritz_ | I think that's wrong | ||
masak | why? | ||
looks right to me. | |||
but sometimes I want a list of arrays and not a list of lists. | 15:09 | ||
moritz_ | because item context shouldn't flatten, by the version of spec I happen to remember :-) | ||
masak | :) | ||
moritz_ | rakudo: say "..\n..".lines>>.comb>>.item.perl | ||
p6eval | rakudo 841b2c: OUTPUT«(".", ".", ".", ".")» | ||
masak | having a way to do that would make things a bit nicer for the kata in a few hours... | ||
15:09
Bucciarati joined
|
|||
moritz_ | rakudo: say ([.comb] for "..\n..".lines) | 15:10 | |
p6eval | rakudo 841b2c: OUTPUT«. .. .» | ||
moritz_ | rakudo: say ([.comb] for "..\n..".lines).perl | ||
p6eval | rakudo 841b2c: OUTPUT«([".", "."], [".", "."])» | ||
masak | rakudo: say (1,2,3).Array | ||
p6eval | rakudo 841b2c: OUTPUT«Method 'Array' not found for invocant of class 'Parcel' in main program body at line 22:/tmp/N6BS8b4jDj» | ||
masak | any reason that casting method shouldn't exist? | ||
moritz_ | simply NYI I think | 15:11 | |
masak | moritz_: right, '[.comb] for' works, and I could use that. but it would be nice with just a chain of methods. | ||
masak submits rakudobug | |||
moritz_ | or maybe .slice aka .lol should do it | ||
15:12
mj41 joined
|
|||
masak | TimToady: what do you think? | 15:12 | |
15:13
plobsing joined
15:14
Psyche^ joined,
wtw_ left
15:15
Patterner left,
Psyche^ is now known as Patterner
15:16
icwiener joined
15:18
_twitch left
15:19
wtw left
15:20
hatseflats joined
15:21
kaare_ joined
15:24
flatwhatson_ joined
15:25
pkkm_ joined
|
|||
colomon | [.comb] works? Rakudo++ | 15:25 | |
moritz_ | why shouldn't it? :-) | ||
15:26
pkkm left
|
|||
colomon | I can't recall ever seeing [ ] used with a method. | 15:26 | |
moritz_ | colomon: it's just an array constructor | ||
masak | you seem to overestimate the magicality of [ ] | ||
15:26
flatwhatson__ joined,
flatwhatson_ left
|
|||
moritz_ | [ $_.comb ] | 15:26 | |
colomon | ah. | ||
Rakudo--, then. :p | |||
masak | I'm more happy that a statement-terminator 'for' cam be used as a list comprehension. \o/ | ||
mathw | list comprehensions are awesome | 15:27 | |
masak | I just showed a fellow GoOpen-er how I was using tote for my kata. he told me about ':help autocmd' in vim. | 15:32 | |
moritz_ | nice one | 15:34 | |
masak | aye. wonder if Emacs has similar hooks. | ||
moritz_ | so you can run stuff after every :w | ||
masak | right. | ||
moritz_ | or you could just read from an inotify daemon :-) | ||
masak | aye, and be limited to Linux. | 15:35 | |
moritz_ | well, you can chose between being limited to an OS or an editor :-) | 15:36 | |
masak | I think I'd like for the eventual long-term tote to use inotify, but fall back on a platform-independent solution. | ||
flussence_ | rakudo: #`<!-- playing around with that code above, I ended up writing this nonsense: --> say lines[.comb] for $*IN.get | 15:39 | |
p6eval | rakudo 841b2c: OUTPUT«Land der Äcker, Land der Dome,Land der Äcker, Land der Dome,Land der Äcker, Land der Dome,Land der Äcker, Land der Dome,Land der Äcker, Land der Dome,Land der Äcker, Land der Dome,Land der Äcker, Land der Dome,Land der Äcker, Land der Dome,Land der Äcker, Land der Dome,Land | ||
..der Äck… | |||
masak | gist.github.com/881437 # this is the code I tend to end up writing for the minesweeper kata | 15:42 | |
15:42
bph joined
|
|||
masak | last time the &neighbors sub was outside, but this time it ended up inside &sweep, losing a bunch of initialization. | 15:42 | |
...and I get to showcase nested subs! \o/ | 15:43 | ||
15:50
ymasory joined
|
|||
arnsholt | masak: How long are you in Oslo? | 15:59 | |
masak | arnsholt: only until tomorrow afternoon. | 16:01 | |
masak decides to time himself with the kata one last time | 16:02 | ||
16:03
woosley left
|
|||
moritz_ | seems that waiting for a file to be written with inotify is as easy as | 16:03 | |
inotifywait $filename -e close_write | |||
16:06
pkkm_ left
16:09
sufrostico joined,
sufrostico left
|
|||
masak | 15 minutes. wow, this kata stuff really works. ;) | 16:19 | |
16:21
pkkm joined
|
|||
masak | see you after the public demo of Perl 6 ;) | 16:22 | |
16:22
mberends left,
masak left
16:27
tzhs left
16:28
hercynium joined
16:33
mtk left
16:35
risou joined
16:40
bluescreen10 left
16:42
mtk joined
16:45
alim left,
Mowah joined
16:47
donri joined
17:05
estrabd joined
17:09
GinoMan joined
17:18
bluescreen10 joined
17:22
mj41 left
17:34
ab5tract left
17:35
MayDaniel joined
17:39
mberends joined
17:49
MayDaniel left,
alim joined
17:52
alim left,
dsp_ left,
alim joined
17:53
dsp_ joined
17:54
PacoLinux_ joined
17:57
takadonet left
17:58
dakkar left
18:02
alim left
18:06
jfried joined
18:07
shabble left
18:10
flatwhatson__ left
18:12
stkowski joined
18:14
takadonet joined
18:21
dsp_ left
18:31
dsp_ joined
18:41
mj41 joined
18:50
Chillance joined
18:51
shabble joined,
shabble left,
shabble joined
18:52
GinoMan left
|
|||
mberends | phew, marathon phone and skype calls. now JIT for #phasers :) | 18:53 | |
18:54
masak joined
|
|||
masak | I just showed ~50 people how to implement Minesweeper in Perl 6 \o/ | 18:54 | |
mberends | \o/ \o/ | ||
(applause) | |||
masak | I had time for everything, including some of the crazier refactors. ;) | 18:55 | |
mberends | masak++ | ||
masak | I don't think I cured anyone of the myth of Perl as a family of obfuscated languages... | ||
...but I might have inspired a few to have a closer look. | |||
have to get back to the event. see you o/ | 18:56 | ||
mberends | o/ | ||
Util | masak++ | 18:59 | |
19:03
stkowski_ joined
19:04
noganex_ is now known as noganex
19:05
stkowski left,
stkowski_ is now known as stkowski
19:06
bluescreen10 left
19:12
impious joined
19:19
MayDaniel joined
|
|||
Util | tadzik++ # For excellent blogging and socializing | 19:21 | |
mberends++ # For all the Jasmin to come... | |||
19:24
fhelmberger left,
stkowski left
19:25
stkowski joined
19:26
mj41 left
19:34
plobsing left
19:40
plobsing joined
19:42
risou left
19:50
plainhao left
19:55
PacoLinux_ left
19:57
alim joined
20:03
alim left
20:13
girafe joined
|
|||
[Coke] | Util++ | 20:14 | |
20:14
leprevost left
|
|||
donri | donri-- # for messing with his own karma | 20:18 | |
20:19
alim joined
|
|||
colomon | masak++ | 20:23 | |
20:24
GinoMan joined
20:27
ashleydev left
20:28
mj41 joined
|
|||
dalek | ast: 3977901 | (Patrick Abi Salloum)++ | S02-builtin_data_types/parcel.t: Added tests for RT86764 Array method on parcel |
20:28 | |
20:30
ashleydev joined
|
|||
dalek | kudo: b556bc7 | patrickas++ | src/core/Parcel.pm: Add Array method to Parcel RT86764 |
20:32 | |
20:36
ashleydev left
20:38
ashleydev joined
|
|||
donri | rakudo: say "foo".encode.perl | 20:40 | |
p6eval | rakudo 841b2c: OUTPUT«.new(contents => [102, 111, 111])» | 20:41 | |
donri | Not very useful eh? | ||
dalek | kudo: 9739a91 | (Martin Berends)++ | tools/test_summary.pl: [tools/test_summary.pl] make the git log command also work with git 1.5.x |
20:48 | |
kudo: 4ab84a1 | (Martin Berends)++ | src/core/Parcel.pm: Merge branch 'master' of [email@hidden.address] |
|||
flussence_ | .new? That looks wrong. | ||
moritz_ | should be Buf.new | 20:49 | |
donri | rakudo: say Buf.new(contents => [102, 111, 111]).decode.perl | 20:50 | |
p6eval | rakudo 841b2c: OUTPUT«""» | ||
donri | rakudo: say Buf.new(contents => [102, 111, 111]).perl | ||
p6eval | rakudo 841b2c: OUTPUT«.new(contents => [])» | ||
flussence_ | er... | ||
donri | =) | ||
moritz_ | rakudo: say Buf.new(102, 111, 111).perl | 20:52 | |
p6eval | rakudo 841b2c: OUTPUT«.new(contents => [102, 111, 111])» | ||
moritz_ | rakudo: say Buf.perl | ||
p6eval | rakudo 841b2c: OUTPUT«Buf» | ||
flussence_ | rakudo: say unpack('H*', 0x0102030405).perl # does this work in p6? | ||
p6eval | rakudo 841b2c: OUTPUT«Could not find sub &unpack in main program body at line 22:/tmp/DD4lMHhsg2» | ||
flussence_ | aww | ||
donri | rakudo: say Buf.new(102, 111, 111).decode.perl | ||
p6eval | rakudo 841b2c: OUTPUT«"foo"» | 20:53 | |
donri | So the .perl is not only wrong, but also wrong? | ||
20:53
PacoLinux left
|
|||
flussence_ | (I'll suggest that for a GSoC project if it's still open for ideas... make the binary stuff work!) | 20:55 | |
moritz_ | rakudo: class A { has $.foo = 3 }; say A.new.perl | 20:58 | |
p6eval | rakudo 841b2c: OUTPUT«A.new(foo => 3)» | ||
21:01
mj41 left
21:03
pkkm left
|
|||
dalek | kudo: d5ccf9f | moritz++ | src/core/Buf.pm: fix Buf.new |
21:04 | |
21:04
bluescreen10 joined
|
|||
flussence_ | \o/ | 21:04 | |
masak | moritz_++ | 21:07 | |
<donri> donri-- # for messing with his own karma | 21:08 | ||
donri: and with causality, it seems! :) | |||
boy, I wish I had a time-turner sometimes. I'm going to force myself to do some slides manicure for an hour, and then go to bed. | 21:09 | ||
21:10
hudnix joined
|
|||
masak | I just came back from a "Grand Panel", much like the one last year at GoOpen. TimToady was on it last year. allison was on it this year. | 21:10 | |
moritz_ | masak: gist.github.com/882070 my minesweeper solution | 21:11 | |
masak | Perl actually got a small snide comment from one of the panelists (I forget who), but was defended *on Twitter* by someone in the audience. | ||
masak looks | |||
moritz_ | way too many interuptions while writing though :( | 21:12 | |
masak | the tweet said something like "I actually find Perl kinda interesting". in my vanity, I tell myself that that person had just seen my kata demo. :P | ||
moritz_ | :-) | ||
masak | moritz_: nice with the min and the max. I didn't think of that. | 21:13 | |
I still think minmax is a solution without a problem, by the way. | |||
21:14
nymacro joined
|
|||
masak | one thing that I toyed with was turning empties into 0s and bombs into 1s, and then just [+]-ing over eight .rotated versions of that field of bits. | 21:15 | |
I noticed with happiness that .rotate already does nested arrays per the spec. | |||
...but then I realized that what I needed wasn't a 'rotate' operation so much as a 'shift and if things go over the edge, throw them away' operation | 21:16 | ||
'shift' as in bitops, not as in Perl. | |||
moritz_ | masak: I also thought about padding everything with 1 row/col of 0s at each side | 21:17 | |
and then increment in the 8 neighboring cells | |||
21:17
PacoLinux joined
|
|||
moritz_ | and the slice out the board | 21:17 | |
21:20
coldhead joined,
cjk101010 joined
21:21
masak left,
flatwhatson_ joined
|
|||
flatwhatson_ | "The path of the righteous programmer is beset on all sides by the inequities of the clueless and the tyranny of evil project managers. Blessed is he, who in the name of achievement and solid technology, shepherds the users through the valley of ineptitude, for he is truly his customer's keeper and the finder of lost solutions. And I will strike down upon thee with great vengeance and furious anger those who would attempt to d | 21:23 | |
eploy without testing. And you will know my name is zedshaw when I lay my software upon thee." | |||
tadzik | niice | 21:24 | |
21:25
bluescreen10 left
21:26
masak joined
|
|||
masak | ...hotel wifi decided I had had one full day of wifi and needed to re-apply... | 21:27 | |
21:27
Rotwang joined,
ymasory left
|
|||
masak | moritz_: if I could get the padding without the coordinates changing (maybe with @array{} indexing), I wouldn't feel a need for a cousin to .rotate that shifted instead of rotating :) | 21:28 | |
21:30
girafe left
|
|||
masak | hey, look what I found: twitter.com/denisb/statuses/50249722878885888 | 21:33 | |
it was a bit unfortunate... I went right after the Ruby guy, and he didn't finish. | |||
but that was because he was tidy enough to spend time setting up BDD tests. | 21:34 | ||
it was definitely a growing experience doing a kata in public, as part of a group of people with different language backgrounds solving the same problem. I'd like to do it again sometime. | 21:41 | ||
21:42
nymacro left
|
|||
PerlJam | masak: How much practice did you have before you did it in public? | 21:43 | |
masak | I can quantify that pretty accurately. I practiced three times. once yesterday and twice today. | 21:47 | |
first time I took ~30 minutes to solve the whole thing. third time I took ~15 minutes. I was surprised. | |||
PerlJam | masak: I did it once yesterday the stupid way (using no Per6isms at all) in about 40 minutes with my kids constantly interrupting me. After solving it once I figured I could half that time without much difficulty. | 21:50 | |
masak | right. | ||
in the first time, I found myself pausing a lot thinking about choices. | |||
second and third time, less and less so. | |||
PerlJam | It seems like it would be interesting to use these katas as a learning tool. Put your code up on a big screen as you type and have the audience ask questions about what you're doing. | 21:52 | |
masak | that's basically what happened here. | ||
PerlJam | okay, but for learning it would have to happen slower :) | 21:53 | |
21:53
alester left
|
|||
masak | troo | 21:53 | |
the audience was clearly following what I was doing. the two times I got a bit stuck, someone shouted out what I was missing. ;) | 21:54 | ||
PerlJam | simple katas like this also are amenable to solutions in multiple styles. Mine would look roughly the same in Perl 5 as Perl 6, mortiz's would showcase more Perl 6 | ||
etc. | |||
masak | absolutely. | 21:55 | |
just doing five independently evolved Perl 6 solutions would be interesting in itself. | |||
someone should do a contest along those lines. | |||
PerlJam | masak++ :-) | 21:57 | |
21:58
Sarten-X left
22:02
plobsing left
22:03
cjk101010 left,
Helios- left
22:05
Helios- joined
|
|||
masak | I could like this channel just for the free karma. :P | 22:05 | |
broquaint | Is Web in a usable state ATM and if not are there alternatives? | ||
masak | no, and yes. | ||
Web.pm is in a state where there are interesting things to be pulled out of it. | |||
the most interesting things are already projects on their own that just happen to be in that repo. | |||
(and not especially related to the Web namespace) | 22:06 | ||
22:06
Helios- left,
Sarten-X joined
22:07
Helios- joined
|
|||
broquaint | Thanks, masak :) | 22:07 | |
If I wanted to write a web app where's the best place to start? | |||
masak | tell us more about your constraints/requirements. | ||
do you need it to be more than static pages? | |||
do you need it to be faster than reeeeeeallly slow? | 22:08 | ||
because right now, those two are more or less in opposition. | |||
broquaint | Dynamic pages and speed would be good :) | 22:09 | |
masak | with November, we managed to get a GET request down to ~3 seconds. but that was without a framework -- we did our own makeshift CGI.pm clone. | ||
broquaint | Hrm, interesting. | 22:10 | |
masak | that was on alpha, which was faster than current Rakudo. | ||
please don't say "interesting" about the makeshift CGI.pm clone. :P | |||
I don't want an empire of Perl 6 webapps to be built on that. | |||
really not. | |||
broquaint | Fair enough. | 22:11 | |
What I really want are Perl6's grammars. | |||
22:11
MayDaniel left
|
|||
broquaint | What's the 5->6 interop like ATM? | 22:12 | |
masak | c.f. blizkost. | 22:13 | |
broquaint | Thanks again, masak++ :) | 22:14 | |
masak | the status of which jnthn and, hm, sorear?, can probably tell you more about. | ||
tadzik | broquaint: my Dancer port was quite fast, but quite primitive too | 22:15 | |
that's probably related :) | |||
masak | tadzik: can you quantify "quite fast"? | ||
22:15
kaare_ left
|
|||
tadzik | masak: It didn't seem "awfully slow" to me | 22:16 | |
which is "quite fast" for Rakudo | |||
masak | :) | ||
22:16
sftp left
|
|||
tadzik | and speaking of grammars and frameworks... where is this | 22:17 | |
.g grammar-based dispatch | |||
phenny | tadzik: www.training-classes.com/providers/..._scope.php | ||
22:17
Helios- left
|
|||
tadzik | .g grammar-based dispatch ttjjss | 22:17 | |
phenny | tadzik: ttjjss.wordpress.com/2010/08/09/so-...-6-module/ | ||
tadzik | no! | ||
masak | bad google! | ||
tadzik | broquaint: see ttjjss.wordpress.com/2010/11/27/gra...p-further/ | ||
well, duckduckgo is doing only a little bit better | 22:18 | ||
broquaint | Thanks, tadzik, will look into it tomorrow :) | ||
masak | duckduckgo++ # silly name, nice search engine | ||
tadzik | also, there is supernovus' ww6 framework | ||
github.com/supernovus/ww6/ | |||
22:19
Helios- joined
|
|||
masak | does anyone have a source for the "community's rewrite of the community" quote? | 22:19 | |
jnthn | It used to be quoted on dev.perl.org/perl6/ iirc | 22:20 | |
maybe still is | |||
sbp | masak: strangelyconsistent.org/blog/the-wi...-true-heir | ||
right there on your own blog | |||
it's the source of everything! | |||
earliest I've found so far is slashdot.org/story/00/07/19/203221/...ces-Perl-6 | 22:21 | ||
so it's pre 19 Jul 2000 at least... | |||
ugh, the link to conferences.oreillynet.com/perl4/ from use.perl.org/articles/00/07/19/161217.shtml is broken | 22:23 | ||
masak | so it's bound to have been on that cruise, right. | ||
day after the cup was thrown. | |||
mug. | |||
whatever. | 22:24 | ||
sbp | there is a Proceedings of the Perl Conference 4.0 book, by O'Reilly I think | 22:27 | |
perhaps somebody here has it? | |||
nevermind, it's on Google Books snippet view | 22:28 | ||
.title books.google.co.uk/books?ei=ZSKJTc_...hAet76m6Dg | |||
phenny | sbp: Google Books | ||
sbp | and there's only one result for "rewrite of" in the book, on p.134 | ||
which isn't related | |||
22:29
plobsing joined,
alfieANDfred joined
22:30
masak` joined,
alfieANDfred left,
masak`` joined
|
|||
sbp | the context on www.foo.be/docs/tpj/issues/vol5_3/t...-0001.html suggests 18 Jul 2000 for the utterance | 22:31 | |
which is actually the mug throwing day | 22:32 | ||
22:32
masak` left,
masak`` left,
masak` joined
|
|||
masak` | hm, the 4th State of the Onion just says "Perl 6 is going to be designed by the community." | 22:32 | |
22:33
masak left
22:34
masak` is now known as masak,
Mowah left
|
|||
sbp | masak: | 22:37 | |
The community stopped and shrugged | |||
That day that Orwant threw his mugs, | |||
And Le Mur Grande cast it all to hugs | |||
22:38
mtk left
|
|||
masak | aww ;) | 22:38 | |
sbp | lost two lines because of flooding | 22:39 | |
let's try again, stupid freenode | |||
— | |||
The community stopped and shrugged | |||
That day that Orwant threw his mugs, | |||
And Le Mur Grande cast it all to hugs | |||
So that the world would soon see pugs: | |||
May all our Perl6 lack of bugs! | |||
— | |||
masak | sbp++ | ||
sbp | they added some new throttling code to irc-seven, it's really very annoying | 22:40 | |
especially because it says your lines have been "throttled" | |||
meaning, actually, to death: the lines are not sent to the recipient | |||
22:41
Helios- left
22:42
Helios- joined
|
|||
donri | Incompatible versions of `core_ops' oplib. Found 3.2.0 but loaded 3.1.0 # :( | 22:43 | |
for my own HLL after new parrot build | 22:44 | ||
masak | maybe recompile the HLL? | 22:46 | |
Tene | donri: you've got old stuff deployed or used or something that needs rebuilt | ||
donri: use strace to find out what it is, if it's not otherwise clear | |||
donri | i did setup.pir build | ||
oh wait setup.pir clean build | 22:47 | ||
now works :D | |||
didn't see clean documented anywhere but took a guess | |||
22:49
plobsing left
|
|||
masak | Tene++ | 22:57 | |
23:03
aindilis left,
GinoMan2440 joined,
aindilis joined
23:04
plobsing joined
23:05
kfo_ joined,
GinoMan left
|
|||
masak | 'night, #perl6 | 23:08 | |
tadzik | o/ | ||
jnthn | o/ | ||
23:09
kfo left
23:12
masak left
|
|||
jnthn | Ah, breakfast time, bbl. :) | 23:14 | |
Tene | morning jnthn | ||
jnthn | morning, Tene | ||
23:20
hercynium left,
jfried left
23:21
Rotwang left
23:38
cosimo joined
23:44
impious left
23:53
plobsing left
23:56
Trashlord left
23:57
plobsing joined
|