»ö« | perl6.org/ | nopaste: paste.lisp.org/new/perl6 | evalbot usage: 'perl6: say 3;' or rakudo: / pugs: / std: | irclog: irc.pugscode.org/ | UTF-8 is our friend!
Set by Juerd on 28 August 2009.
KatrinaTheLamia hmm... how are OpenGL bindings in Perl 6? Because I got a joke project that I am sure everybody would easily get behind. 00:04
a Duke Nukem Forever fan game in Perl 6 ^.^ lol
wayland76 ..combined with e17? :)
KatrinaTheLamia wayland76: hmm... we may be able to work something here. 00:05
literal running on GNU Hurd
KatrinaTheLamia LMFAO!!!!!!
alright we have our work cut out for us people ^.^ 00:06
wayland76 Maybe we could program some parts in ALGOL :) 00:08
Juerd Good night, brightly coloured butterfly people.
wayland76 Good morning :)
KatrinaTheLamia damn it... does this mean I'll need to do up a Perl 6 float in the next pride parade >.>
wayland76 carefully restrains from mentioning "whatever floats your boat" 00:09
pugs_svn r28151 | lwall++ | [S02,S06] make 'is context' implicit on $*foo variable declarations 00:10
r28151 | orthogonalize readonly semantics to rely on ::= initialization
00:10 kidd_ left
japhb KatrinaTheLamia, the OpenGL bindings are passable for simple stuff. The bigger problem is that Rakudo is fairly slow right now, so to get any decent speed for complex stuff (like particle systems), you need to do some inline PIR here and there. But if you're just calling a few display lists each frame, you should be fine. 00:12
sjohnson 1hi 00:13
wayland76 2hi
sjohnson heh 00:14
KatrinaTheLamia 3error
sjohnson ++hi
colomon rakudo: my Num $t = 434.3; say int($t);
p6eval rakudo e00587: ( no output )
KatrinaTheLamia japhb: I was only half serious. I am just thinking of some rather Discordia style jokes to apply to Perl 6 ^.^ 00:15
00:16 fridim_ left 00:19 japhb left
colomon Hi all. I've tracked down my Temporal.t hang, and it seems to be occurring at "$t = int($t / 60); # $t is now epoch minutes" in the test_gmtime function. Does that ring any bells for anyone? 00:21
Where is int()?
TimToady really should be Int() 00:23
since int is a native type
00:24 kst left
colomon int lower-case is all over the Temporal.t test code./ 00:24
00:25 kst joined
wayland76 Well, I'd guess that was written by autarch 00:25
and I'm not sure how good his p6 skills are
00:27 alester joined
wayland76 (I'm only guessing that, but that's because he dropped by p6 and did a bunch of the Temporal stuff for us, thanks to his relevant expertise from P5) 00:28
colomon What does int() do at the moment? Is it just a misspelled Int()?
TimToady it would coerce to a native type int 00:29
colomon rakudo: say time.int.WHAT 00:30
p6eval rakudo e00587: ( no output )
TimToady but in the case above, you're probably running into the fact that we just redefine Int / Int to return Rat
colomon Yes, that's the problem, but I don't understand why: $t is supposed to be a Num. 00:31
TimToady you probably want $t div= 60
though that won't work if $t is Num 00:32
colomon Yeah, that appears to be the issue -- sometimes it's a "real" Num, and sometimes it's an int being treated as a Num. Or something like that. 00:33
TimToady what does / 60.0 do? 00:34
colomon Oh, I've got it.
$t = int(int($t) div 60) works just fine, and makes all tests pass. 00:35
rakudo: my $t = 36.5; say int($t);
p6eval rakudo e00587: ( no output )
colomon rakudo: my $t = 36.5; say Int($t); 00:36
p6eval rakudo e00587: ( no output )
colomon :O
TimToady NYI
invoke() not implemented in class 'Integer' 00:37
so one of those parrot impedance mismatches
I suspect
00:37 SmokeMachine joined
colomon TimToady++ 00:41
00:52 japhb joined
pmichaud We don't have a good way to implement postcircumfix:<( )> on the builtin types at the moment. 00:53
that makes things difficult for Int($x), Num($x), etc. 00:54
Also, the specification doesn't really provide much guidance about how we map the postcircumfix:<( )> to constructors. 00:55
TimToady somehow it always ends up my fault. :) 00:56
pmichaud :) 00:57
there's a fine line between "blame" and "credit" :)
00:59 FCO joined
pmichaud going from what I read in S13:200... 01:00
if someone writes Dog($spot)
and there's no postcircumfix:<( )> defined for the Dog class
then it defaults to Dog.new($spot)
01:00 SmokeMachine left
pmichaud and so unless there's been a single-argument version of Dog.new defined, it would fail to bind. 01:00
TimToady which, of course, is nonsense
pmichaud S13 is nonsense, or what I'm writing is nonsense? ;-) 01:01
TimToady I don't see any substitute for someone writing the body of the conversion
pmichaud right
TimToady to at least turn it into .new(value => $spot)
pmichaud okay, that at least helps resolve my difficulty a bit
TimToady see above for who to blame :)
pmichaud well, the fallback would seemingly work if someone defined Dog.new($x), though, without needing to also define the postcircumfix:<( )> method as well. 01:02
that would seem useful.
TimToady one would maybe like to get Array.new(1,2,3) to fall out of it somehow too 01:03
pmichaud hmmm
well, since postcircumfix:<( )> grabs a capture, it could interpolate that capture to .new 01:04
so that XYZ(1,2,3) falls back to XYZ.new(1,2,3)
TimToady but it implies enough introspection into to representation to get a list of storage locations
s/to/the/
pmichaud oh, I think that someone still has to write the .new
(to handle the positional forms of .new) 01:05
instead of trying to auto-generate it
so if Array has method new (*@values) { ... } then perhaps Array(1,2,3) ends up dtrt
TimToady well, if one could introspect all the round holes, one could *attempt* to shove square pegs in, but it wouldn't work a lot of the time 01:06
but certainly we can go for explicit until we run into combinatorics
01:06 kst left 01:07 kst joined
pmichaud on a similar note, should there be a Rat.new(Num) defined, that builds a Rat from a numeric like 1.23? 01:07
TimToady I think .new guarantees a new object, whereas Rat(Num) merely guarantees that what is returned does Rat 01:08
for some handwavey definition of Rat and Num
pmichaud oops
I guess I should've asked about Rat.Num(...)
TimToady maybe not specifically for those types
pmichaud oops
I guess I should've asked about Num.Rat(...)
(argggh :-) 01:09
TimToady 1.23.Rat should presumably be made to work
pmichaud sure
TimToady same as Rat(1.23)
pmichaud and end up with 123/100 or something like that
TimToady well, I'm inclined to think that 1.23 should bias towards 123/100 to begin with 01:10
and the coercion to Num be facilitated where necessary 01:11
pmichaud That's reasonable also, although not currently speced
TimToady it's the way I've been inclining this past week :)
I hate throwing away precision based on a false assumption 01:12
I actually had the spec change edited in, and backed it out till I thought more about MMD
s1n pmichaud: which hp do you have? i was looking at a mini 01:13
TimToady possible that Num comprises both Rat and Flt (and Fix?)
pmichaud I have the expensive HP -- Elitebook 2530p
Wonderful machine. Not cheap.
TimToady or Real can pun either to Rat or Num, looking at it a different way 01:14
lisppaste3 colomon pasted "spectest failure" at paste.lisp.org/display/86335 01:15
colomon Does that error look familiar to anyone?
I vaguely remember someone mentioning it today?
s1n i got approval to bring another laptop to work, hp have decent linux support (mini 1120) ? 01:16
and does rakudo compile reasonably quick with only 1 gig of memory?
pmichaud I compiled Rakudo in a virtual machine with 768M without too much difficulty. (On a 5-year old laptop to boot.) 01:17
Still, I'm not sure how quick a Mini would be at compiling tasks; I think they can be a little on the slow side.
colomon Ah, it's the broken $_ % * thing. 01:18
s1n pmichaud: btw, did you read my scrollback from yesterday to you? 01:23
pmichaud s1n: didn't see it yet 01:24
s1n pmichaud: irclog.perlgeek.de/perl6/2009-08-31#i_1447266 01:28
01:30 SmokeMachine joined, SmokeMachine left 01:31 sparc joined 01:32 sparc left, sparc joined 01:35 nbrown left
TimToady chow & 01:42
01:44 Whiteknight left 01:47 hudnix left 01:50 nbrown joined 01:51 molaf_x joined 01:53 meppl left 01:54 rhr_ joined 01:56 agentzh joined 02:07 rhr left 02:08 molaf left 02:25 SmokeMachine joined 02:27 FCO left 02:30 agentzh left, sri_kraih left, xinming left, jan_ left, ewilhelm left, breinbaas left, lisppaste3 left, nsh left, xalbo left 02:31 kst left 02:32 kst joined 02:36 agentzh joined, sri_kraih joined, xinming joined, jan_ joined, ewilhelm joined, breinbaas joined, lisppaste3 joined, xalbo joined, nsh joined 02:44 sri_kraih left
s1n hmm, i don't have +o anymore? 02:45
02:49 cdarroch left 02:50 meppl joined
pugs_svn r28152 | lwall++ | [STD] change to new definitions for contextuals and readonly binding 02:50
02:50 TimToady sets mode: +o s1n
s1n yay :) 02:51
02:53 TimToady sets mode: +oooo [particle] araujo colomon dukeleto, TimToady sets mode: +oooo frettled japhb Juerd mberends, TimToady sets mode: +oooo spinclad szabgab szbalint xinming 02:57 zaphar_ps joined
zaphar_ps hello 02:57
are there any yaml perl6 libraries or grammars out there yet?
03:01 TimTom joined 03:03 xinming_ joined 03:05 TimTom_ joined 03:06 TimTom left 03:07 TimTom_ is now known as TimTom 03:18 asciiville joined, kst left, xinming left, kst joined 03:20 donaldh left
TimTom rakudo: say qw(foo bar baz) 03:20
p6eval rakudo e00587: OUTPUT«Could not find non-existent sub baz␤»
TimTom ... okay, so it's not just my installation. Did the meaning of qw change?
03:20 donaldh joined
asciiville rakudo: say qw(foo bar baz); 03:22
p6eval rakudo e00587: OUTPUT«Could not find non-existent sub baz␤»
TimTom rakudo: say <foo bar baz>
still works as normal
p6eval rakudo e00587: OUTPUT«foobarbaz␤»
asciiville :(
TimTom pugs: say qw(foo bar baz)
p6eval pugs: OUTPUT«*** No such subroutine: "&qw"␤ at /tmp/yeWNvXh2oo line 1, column 5 - line 2, column 1␤»
TimTom Well at least it's in good company I suppose :) 03:23
asciiville rakudo: <foo bar baz>.say
03:23 alester left
p6eval rakudo e00587: OUTPUT«foobarbaz␤» 03:23
asciiville :) 03:24
I still haven't learned to keep a space between 'if' and '(' when coding in rakudo 03:25
TimToady better to just drop the parens 03:26
asciiville ah!
proving order of precendence with symbols is overrated :) 03:30
TimTom Well unless you write 5 * 5+5 and don't get what your implicit spacing would represent 03:31
asciiville but corporate didn't give us enough time to code it right in the first place 03:32
TimTom Well that's why you're programming in perl. It lets you work around silly time constraints
asciiville you got that right! 03:33
TimTom Yay. Array autovivication works, although I still can't seem to give it a strict type. I can remove my sad face comment from my test program 03:35
asciiville I have a maybe not Rakudo question: If I have a <program>.pir that is loaded into Rakudo with a use statement, is it theoretically possible to have it compiled into PBC and live in Parrot land and still be accessible to Rakudo? 03:39
03:41 molaf_x left
pugs_svn r28153 | lwall++ | [STD] only default package declarations to 'our' 03:43
TimToady std: say qw(foo bar baz) 03:45
p6eval std 28152: ( no output )
TimToady ,,
std: say qw(foo bar baz)
p6eval std 28152: OUTPUT«Undeclared routines:␤ bar used at 1 ␤ baz used at 1 ␤ foo used at 1 ␤ qw used at 1 ␤ok 00:02 37m␤»
TimTom Looks like progress to me. We get better errors now. Even if they're wrong 03:46
TimToady no, they're right
foo() is always a function call in p6
even if foo is otherwise a keyword
TimTom So is qw no longer quote words?
TimToady it does, just don't use parens
rakudo: say qw[foo bar baz] 03:47
TimTom ah, okay. makes sens
p6eval rakudo e00587: OUTPUT«foobarbaz␤»
TimToady or leave a space
rakudo: qw (foo bar baz)
p6eval rakudo e00587: ( no output )
TimToady std: if(42) { say 'hi' }
p6eval std 28152: OUTPUT«===SORRY!===␤if() interpreted as function call at line 1 ; please use whitespace instead of parens␤Unexpected block in infix position (two terms in a row) at /tmp/FdROm0hjMy line 1:␤------> if(42) ⏏{ say 'hi' }␤ expecting any of:␤
..bracketed i…
TimToady eventually rakudo will get error messages like that 03:48
TimTom I have another problem I'm encountering with multi-dimensional array assignment, but I haven't managed to reproduce it in a one liner yet. 03:49
asciiville rakudo: {{},{}}.say 03:50
p6eval rakudo e00587: OUTPUT«_block50␤»
Eevee_ rakudo: ((<H l o> «~» <e l ,>, [~] <! d l r o w>.reverse).join ' ').say
TimToady rakudo doesn't autovivify correctly yet
p6eval rakudo e00587: OUTPUT«Statement not terminated properly at line 2, near "' ').say"␤in Main (src/gen_setting.pm:3454)␤»
asciiville ok. it's consistent with my local late model rakudo
Eevee_ rakudo: ((<H l o> «~» <e l ,>, [~] <! d l r o w>.reverse).join: ' ').say
p6eval rakudo e00587: OUTPUT«He ll o, world!␤» 03:51
Eevee_ oh whoops
TimTom Ah. Okay, It was looking like it was working. I actually reverted my code to the old version that had a loop that assigned arrays to it, but it doesn't help
Eevee_ rakudo: (([~] <H l o> «~» <e l ,>, <! d l r o w>.reverse).join: ' ').say
p6eval rakudo e00587: OUTPUT«Hello,world!␤»
03:52 mepplock joined
TimTom there we go 03:52
TimToady rakudo's errors would be much improved if we merely s/Statement not terminated properly/Confused/ 03:53
Eevee_ 20:51 < Eevee_> rakudo: ((map { [~] $_ }: <H l o> «~» <e l ,>, <! d l r o w>.reverse).join: ' ').say
whoops
rakudo: ((map { [~] $_ }: <H l o> «~» <e l ,>, <! d l r o w>.reverse).join: ' ').say
p6eval rakudo e00587: OUTPUT«Statement not terminated properly at line 2, near ": <H l o> "␤in Main (src/gen_setting.pm:3454)␤»
TimTom rakudo: { my Array @ints; @ints[0] = (); @ints[0][0] = 0; say @ints; }
p6eval rakudo e00587: OUTPUT«Method 'postcircumfix:[ ]' not found for invocant of class 'Failure'␤»
TimToady std: ((map { [~] $_ }: <H l o> «~» <e l ,>, <! d l r o w>.reverse).join: ' ').say
p6eval std 28152: OUTPUT«ok 00:03 42m␤»
Eevee_ rakudo: ((<H l o> «~» <e l ,>, <! d l r o w>.reverse).map: { [~] $_ }.join: ' ').say 03:54
p6eval rakudo e00587: OUTPUT«No applicable candidates found to dispatch to for 'map'␤in Main (/tmp/IG3W2r8tXR:2)␤»
Eevee_ haha didn't expect that to work
TimTom std: { my Array @ints; @ints[0] = (); @ints[0][0] = 0; say @ints; }
p6eval std 28152: OUTPUT«ok 00:03 38m␤»
TimTom ... I suppose that didn't prove anything since it was a runtime error...
TimToady nod 03:55
03:55 molaf joined
TimTom I do know that block of code worked about 2 months ago 03:55
Eevee_ how do I get a reference to a reduce operation?
TimToady in theory, prefix:<[op]> 03:56
asciiville Maybe Rakudo errors can take on an Oracle database model and just spit out a code: ora-00600 doesn't say much but we know its very bad. :)
Eevee_ does that actually work in rakudo?
well let's find out
rakudo: ((<H l o> «~» <e l ,>, <! d l r o w>.reverse).map(prefix:<[~]>).join: ' ').say
p6eval rakudo e00587: OUTPUT«Statement not terminated properly at line 2, near "(prefix:<["␤in Main (src/gen_setting.pm:3454)␤» 03:57
Eevee_ rakudo: prefix<[~]>
er
p6eval rakudo e00587: OUTPUT«Could not find non-existent sub prefix␤»
Eevee_ rakudo: prefix:<[~]>
p6eval rakudo e00587: OUTPUT«Statement not terminated properly at line 2, near ":<[~]>"␤in Main (src/gen_setting.pm:3454)␤»
TimToady would have to be &prefix:<[~]>
03:57 carlin joined
Eevee_ rakudo: ((<H l o> «~» <e l ,>, <! d l r o w>.reverse).map({ [~] $_ }).join: ' ').say 03:58
p6eval rakudo e00587: OUTPUT«He ll o, w o r l d !␤»
03:58 alester joined
Eevee_ haha I did the same thing again. oh well 03:58
KatrinaTheLamia «~» <-- um... I don't need to type in those symbols to use Perl 6, do I? I mean, I have no idea where two of them are on my keyboard 03:59
Eevee_ haha no, <<~>> works just as well 04:00
but it's ugly imo
TimToady in vim you can say ^K<<
04:00 mberends left
TimToady dunno about emacs 04:00
Eevee_ (compose key)++
hm, I wonder
TimToady that too
it's what I use
Eevee_ rakudo: (<1 2 3> ¥ <4 5 6>).say 04:01
p6eval rakudo e00587: OUTPUT«Statement not terminated properly at line 2, near "\x{a5} <4 5 6>)"␤in Main (src/gen_setting.pm:3454)␤»
TimToady and I'm even one of those dense USians
Eevee_ aw
TimToady is now Z
Eevee_ I know, just wondered if the old op was still valid
TimToady nope
Eevee_ I heartily support unicode operators
$x ♥ 5
KatrinaTheLamia Eevee_: oh, I would too... if there were a standard way to insert them, that I could explain to people to use 04:02
TimTom emacs is C-x 8 < and C-x 8 >
Eevee_ KatrinaTheLamia: there's always ctrl-shift-u 04:03
or copy-paste from wikipedia
KatrinaTheLamia TimTom now explain how that works exactly... what it does.
Eevee_: so I could do ^+shift+u no matter where I am... and it would do what exactly
04:04 Tene left
Eevee_ KatrinaTheLamia: ctrl-shift-u plus four hex characters inserts that unicode codepoint 04:04
KatrinaTheLamia and copy and pasting from wikipedia doesn't help me really... as my clip board can only hold one item on most of my setups
TimToady but then you have to know the raw codepoint in hex
KatrinaTheLamia Eevee_: not universally...
Eevee_ err right. well in gnome it does
04:05 KatrinaTheLamia left
Eevee_ TimToady: that's what ian-albert.com/misc/unichart.php is for 04:05
04:05 KatrinaTheLamia joined
TimToady a compose key seems like the most universal thing currently 04:05
well, I just use a program to grep the unicode tables, myself
KatrinaTheLamia yeah... ^+shift+u seems to crash the tab I was chatting with
Eevee_ does windows support compose key? I'm vaguely aware it supports dead keys
TimTom hmm... the emacs bindings are actually fairly intuitive. Who would have thought. You can even press C-x 8 C-h for a listing
04:06 kst left
KatrinaTheLamia and I am using XFCE for my DE... which is close enough, that it should work if "it works all over gnome" 04:06
Eevee_ TimToady: actually I have a firefox bookmark keyword for searching unicode
04:06 kst joined
KatrinaTheLamia prolly a better solution would need to be part of freedesktop, before I'd consider it more >.> 04:06
TimToady :digraph for vim's
04:07 meppl left
Eevee_ KatrinaTheLamia: the compose key is part of X 04:07
and you can define your own compositions
TimToady I've never had luck defining my own, but the built-in compose sequences are handy
Eevee_ TimToady: are you using scim? 04:08
TimToady »ö«
yes, but I don't think that matters for this
KatrinaTheLamia um... which key on the keyboard is the "compose" key? I mean I pressed ^+shift+u and it produced and underline u and crashed the tab I was chatting in.
Eevee_ it does
scim has its own compose table and ignores .Xcompose apparently
found this out recently, it was ignoring mine too
KatrinaTheLamia like my chat client still operates.. just had to close that tab >.>
TimToady well, that might explain why I couldn't change it :)
Eevee_ had to switch to uim, which is slightly more awkward (anthy toolbar doesn't seem to autohide) 04:09
KatrinaTheLamia: you might have to pick one yourself. right alt is the default I think?
TimToady I use my right Menu key
Eevee_ I have right alt as compose and right super as third level chooser for historical reasons 04:10
TimToady used to use right Alt on a machine without a Menu key
Eevee_ (i.e., there was no compose sequence for × and I haven't fixed that yet)
KatrinaTheLamia checks
okay this keyboard _does_ have a right alt
Eevee_ it might be dependent on the keyboard or layout, or I might be totally wrong 04:11
and I have no idea how you'd pick such a key in xfce
KatrinaTheLamia so... then how do you know it is a feature of X? 04:12
dalek kudo: 9bcba63 | pmichaud++ | src/parser/grammar.pg:
"Statement not terminated properly" --> "Confused" # TimToady++
04:12 tak11 left
Eevee_ the interwebs told me so 04:12
also custom compose sequences are defined in ~/.Xcompose 04:13
and the default list is somewhere in X shared files
KatrinaTheLamia you do realise, that trying to tell people how to do this will lead only to two things: 1) Completely inconsistant code. and 2) People who think Perl 6 is needlessly complicated, and have no desire to code it, right? 04:14
Eevee_ that's probably why ¥ is now Z
TimToady which is why we always have an ASCII story
even if it's ugly 04:15
KatrinaTheLamia yeah... how about just a not ugly ASCII story?
Eevee_ perl 6 has approximately eight trillion operators
TimTom Besides, it's a good early check to make sure the parser enjoys unicode symbols
Eevee_ there are only so many pretty combinations of keyboard symbols
KatrinaTheLamia Eevee_: lies
there are not eight trillion operators 04:16
Eevee_ perhaps we need APL on Parrt
very approximately
KatrinaTheLamia unless it has drastically updated since the last time the periodic table of operators has been made
asciiville maybe eight trillion combinations of operators?
KatrinaTheLamia also what could you possibly do with eight trillion operators?
TimTom 8 trillion things 04:17
KatrinaTheLamia okay... how many words does the average person have in their vocabulary... normally about 2500. Now what happens when they try to read a word they have no clue as to what it is.
TimToady std: [>>RX!%<<]()
p6eval std 28153: OUTPUT«ok 00:02 39m␤»
KatrinaTheLamia TimToady: that only makes Intercal look like a more sane language than Perl6 04:18
Eevee_ wait wait you can reduce with hyperoperator?
well
TimToady that's one of our goals :)
Eevee_ I guess that makes sense
that's awesome
asciiville hyperoperator needs and acronym 04:19
KatrinaTheLamia yeah... I thought you'd be addressing the learning curve here... not forcing people to make jephs to do a blood program
TimTom They are, they just have spiffy features for those willing to learn the extra amount
you can always just stick to less compact representations of code 04:20
TimToady and people will just cargo-cult the rest
KatrinaTheLamia TimTom: just applying occam's chainsaw here... how often, in production code, does the more spiffy versions of a language get used.
04:20 molaf left
Eevee_ in my experience it tends to be libraries that like to use spiffy features 04:20
TimToady "does get used" is the present. We can't say how often "will get used" because we don't know yet
KatrinaTheLamia TimTom: I mean, if I had to show a boss one program in Python and another in Perl 6, doing the eight trillion operator thing.. which is going to get the go ahead? 04:21
TimTom If it's me... depends on whether or not someone besides me is expected to see it
Eevee_ KatrinaTheLamia: depends, are you using nested list comprehensions and metaclasses in your python?
KatrinaTheLamia Eevee_: standard PEP-8 Python.
Eevee_ so "if you had to show your boss readable code and unreadable code" 04:22
KatrinaTheLamia in short yes
jrtayloriv KatrinaTheLamia, show your boss something which uses less idiomatic Perl 6, and the Perl 6 would probably be as readable and more concise.
asciiville it may not matter if your boss only did COBOL
Eevee_ imo reduction operators and hyperoperators are a good thing in that they let me express an idea succinctly without translating it into less intuitive procedural code
they are nestable, sure, but that's just because perl tends to not place arbitrary restrictions 04:23
TimToady we expect programmers to exercise their discretion, and we provide the tools to write very readable code
Eevee_ I don't think most people would want to use [«op»] in production code
TimToady we also provide the tools to nuke your feet off
Eevee_ but [+] <1 2 3> is reasonable
and better communicates how I actually think about the problem
"add up all this stuff"
KatrinaTheLamia I dunno, it is all lovely and all... but if I cannot use it in production code... why am I using it. 04:24
asciiville say [+] < 1 2 3>
KatrinaTheLamia Eevee_: your [+] <1 2 3> example is a tangent, as it is plain ASCII
asciiville carp
TimToady because the parts you *do* use are still more expressive than Python
Eevee_ KatrinaTheLamia: err but there are no unicode-only operators
asciiville rakudo: say [+] <1 2 3>
p6eval rakudo e00587: OUTPUT«6␤»
TimTom You can use it in production, you just have to know that your audience will understand
Eevee_ KatrinaTheLamia: <<op>> ≡ «op» 04:25
I just write the latter because I think it's more readable and obscures the operator far less
jrtayloriv KatrinaTheLamia, You seem to be assuming that you will be writing production code in Perl 6 for people that don't understand Perl 6.
And that don't make no sense at all.
KatrinaTheLamia Eevee_: yeah, and I am saying: there are ways to make it readable and less obscure, without going into unicode
Eevee_ KatrinaTheLamia: like what? 04:26
KatrinaTheLamia Eevee_: well, perhaps we need to go over that as we are designing this further.
Eevee_ (incidentally, double angle brackets are also in iso 8859-1) 04:27
TimToady most of these things do have wordy variants if you want them
KatrinaTheLamia Eevee_: simply half assing the ASCII version (for no apparent reason), simply because UNICODE is available, is not the way to go
TimToady reduce, map, etc
KatrinaTheLamia jrtayloriv: what I am suggesting is that we make it so that Perl 6 is easier to understand for people who don't understand Perl 6... making them desire to learn it more
TimToady: ah, there we go 04:28
TimToady how do you define "half assing"?
jrtayloriv KatrinaTheLamia, It is if you want it to be.
KatrinaTheLamia TimToady: well, Eevee_ has been saying, "there is an ASCII operator you know", followed by "the ASCII operators are ugly"
TimToady different people like different things
and we still believe in TMTOWTDI 04:29
KatrinaTheLamia TimToady: yeah, but even with Perl, you do find, that people will generally agree that, based on the context, certain ways are better than others
Eevee_ so use the ASCII and disagree with me, or deal with the ugliness, or don't use hyperoperators
TimToady the community is encouraged to establish style standards
KatrinaTheLamia TimToady: apart from nerding it up, what is the point of going all brainfuck with Unicode operators? 04:30
jrtayloriv KatrinaTheLamia, Building limitations into the language is not the way to enforce coding standards.
TimTom Science and math comunities like writing code like that
KatrinaTheLamia jrtayloriv: I didn't suggest that now did I?
TimToady why don't mathematicians write their proofs in English?
asciiville are there really that many unicode operators beyond the hyperoperators?
jeekobu Depends on the math
KatrinaTheLamia asciiville: well claims have been on three trillion unicode operators. I put that to question (quoting the periodical chart) and I was told I was wrong 04:31
TimToady but yes, we're mostly just making sure it's possible to talk about Unicode sanely in Perl 6
Eevee_ that was a very arbitrary and meaningless number
TimToady you'll note that the built-in Unicode is even limited to Latin-1
KatrinaTheLamia Eevee_: yeah, and I responded it was no where near that number, to which point, I was told I was wrong 04:32
TimToady well, as usual, it depends
as soon as you allow composability, you theoretically get lots 04:33
most of which you'll never use
sjohnson whhi
oops. hi
TimTom hiya. Welcome to the perl6 channel, where all your dreams come true :) 04:34
KatrinaTheLamia jrtayloriv: look, I didn't say limit the language. I mean people are talking about how pretty the unicode operators are, and how bad the ASCII ones are. I am not suggesting removing the unicode ones at all. I am merely looking into was that the ASCII can look as good as the Unicode and wordy ones.
TimToady but the composability is deemed to be more important than telling people what they can and cannot do
asciiville i guess if you tried to express hyperoperators without unicode you'd step on the shift operators
sjohnson (´ー` )
sad unicode
jrtayloriv KatrinaTheLamia, Then I misunderstood you -- sorry.
TimToady which is why they're now different from << and >>
I think we're probably in violent agreement :) 04:35
KatrinaTheLamia TimToady: that happens very often I find... especially amongst geeks ~.^
I dunno, looking at how the yen symbol has been turned into Z in instance.. we may be able to look more into that 04:36
a better solution could prolly be put in that instance... but it is a start
TimTom Well Z is the zip operator. It makes sense 04:37
04:37 justatheory left
KatrinaTheLamia ah.... so how does the yen symbol fit in? 04:37
TimTom ... It was pretty?
TimToady it's also the path your eyes travel across the two (vertical) lists
KatrinaTheLamia thank you TimToady
see, what we need to think is more mnemonics with the symbols, rather than making the unicode look like the ascii 04:38
TimToady the uen was a picture of a zipper
*yen
but the Z was deemed an improved metaphor
as well as reminiscent of 'zip'
KatrinaTheLamia well, now that you explained it as the zipper operator rather than the "yen symbol" it makes a little more sense... something like that could be put into a tutorial when explain it. 04:39
asciiville ok. the yen symbol will never be the same for me now :) 04:40
KatrinaTheLamia what the tutorials would need is mostly "this symbol does this, you can remember it because ..."
TimToady yes, most of these things have ways of thinking about them than help you detangle them
but then that could be called "knowing Perl 6" :)
KatrinaTheLamia googles
TimTom Is there a methods operator so I could do something like 1.methods or Int.methods for explorability? 04:41
TimToady rakudo: say 1.^methods.say 04:42
p6eval rakudo e00587:
..OUTPUT«WHICHperlACCEPTSScalarabsRatStrIntpredsuccNumcombfloorroundchopsplitmatchwordscanlcfirstucsrandComplexkeysmappolarcislogsubstrminmaxpickevalfiletransfirstIntjoinsubstabselemsendchompindexceilingtrimp5chomppairsunpolarordrandtruncatesortsqrtrindexintgrepvaluescharsrootsreverseisaucf…
TimTom You even picked my word. I feel so smart :)
TimToady either we predicted the future or you postdicted the past :) 04:43
TimTom I'm gonna go with you predicting the future. Makes perl6 better
TimToady anyway .^ gets you to the metaclass object
kinda like ->meta in Moose 04:44
KatrinaTheLamia well... I am convinced that Perl 6 is the product of an Erisian time paradox, so both of TimToady's suggestions may be right... at the same time (and neither too)
TimToady "you can say that again" 04:45
"that goes without saying"
funny how those mean the same thing, nearly
jeekobu That goes without you saying it again
TimToady but I like quoting myself, since then I'm sure of the attribution 04:46
TimTom Why are there integers in the return value of .^methods? Do they signify anything or are they just noise from the beta-ish state?
TimToady noise, probably 04:47
TimTom ... actually I don't see them on yours. Just my computer's output
jeekobu rakudo: say 1.p5
p6eval rakudo e00587: OUTPUT«Method 'p5' not found for invocant of class 'Int'␤»
TimToady we don't have a .perl5 method yet
rakudo: say 1.^methods.perl.say 04:48
jeekobu I just figured that was the op out of "...ceilingtrimp5chomp..."
p6eval rakudo e00587: OUTPUT«[{ ... }, { ... }, { ... }, { ... }, { ... }, { ... }, { ... }, { ... }, { ... }, { ... }, { ... }, { ... }, { ... }, { ... }, { ... }, { ... }, { ... }, { ... }, { ... }, { ... }, { ... }, { ... }, { ... }, { ... }, { ... }, { ... }, { ... }, { ... }, { ... }, { ... }, { ...
..}, { …
carlin ^methods does give some weird results, such as blank entries
KatrinaTheLamia reads up more on Perl 6...
TimToady oh, that's probably p5chomp 04:49
KatrinaTheLamia holy sweet... multidimensional arrays... without making it an array of references to arrays.
TimToady unfortunately NYI
carlin rakudo: say Int.^methods.join(', ');
TimToady but we're getting closer
04:49 mr_ank joined
p6eval rakudo e00587: OUTPUT«WHICH, perl, ACCEPTS, 2, Scalar, Rat, Str, Int, pred, succ, Num, ord, chop, 1, 1, roots, uc, reverse, keys, isa, ucfirst, 1, fmt, bytes, pick, 1, join, trim, chr, floor, rand, 1, 1, round, 1, 1, split, 1, grep, words, values, can, lcfirst, 1, srand, 1, map, cis, kv, samecase, 04:49
..1, mi…
KatrinaTheLamia rakudo say Int.^methods.say 04:50
TimToady probably things stored as lists that numerify
KatrinaTheLamia rakudo: say Int.^methods.say
p6eval rakudo e00587:
..OUTPUT«RatStrIntpredsuccNumWHICHACCEPTSperlabsScalarendchompreduceindexceilingp5chomp:dpairs:e:fcombunpolarordchopintcharsrootsucreversekeysisaucfirstsubstrfmtbytespickevalfilejointrimchrfloorrandtruncatesortroundsqrtrindexsplitmatchgrepwordsvaluescanlcfirstsrandComplexpolarmapciskvsameca…
TimTom Yep. I just confirmed it
"hello".^methods[8 .. 10].say 04:51
rakudo: "hello".^methods[8 .. 10].say
p6eval rakudo e00587: OUTPUT«chrpairssamecase␤»
TimTom shoot. It's a different order
Well anyways, for some reason the Int sub was being converted to an int when it was joined 04:52
(as I was using .join("\n").say)
TimToady probably things that are really Parrot objects behaving funny
KatrinaTheLamia TimToady: well i would likely be the same internally. As that would be how I'd do it, but how it appears like it will be implemented, will make it so it isn't as bleedingly obvious. I mean... I don't like it in other langauges when, I have to tell each entry in the array that it is another dimension of the array. 04:53
mr_ank I humbly present an alternative design to the perl 6 logo: use.perl.org/~ank/journal/39562 (work in progress)
KatrinaTheLamia in ruby, for example x = Array.new(); x[0] = Array.new(); x[1] = Array.new();... gets a little trite after a while. I kind of want to see this implemented ^.^ 04:54
s1n mr_ank: not bad
mr_ank thanks, s1n, i'm open to suggestion/changes... especially from the TimToady etc... i only put that together in a few minutes; willing to re-do it or change it in whatever way... 04:55
TimToady have you read camelia.txt?
mr_ank Yes
it's in svn.pugscode, right? 04:56
TimToady nod
KatrinaTheLamia also, this was never competantly answered on #perl ... what is a decent CMS that is done in Perl 5?
TimToady that really depends on your definition of "decent"
I've heard many talks on the subject, and the mileage varies :) 04:57
KatrinaTheLamia well... I kind of want to have some sort of web based admin interface, a method for multiple people to work on content, abilities for users to comment and able to extend it further via modules/plugins/extensions. Also, we can assume skinable. 04:58
mr_ank TimToady: i'm willing to work on it as much as needed. I believe that the current logo has some attributes that have unintended connotations. 04:59
TimToady then you believe something false, because the connotions are intended :)
mr_ank Firstly, the primary colours and simple shapes used, especially the butterfly used in that way, is reminiscent of children's literature and products
TimToady *connotations
yes, I want it to appeal to 6 year olds 05:00
s1n mr_ank: if you're into logo design, lemme pitch an idea i had but couldn't design it myself
05:00 quietfanatic joined
KatrinaTheLamia Also, I'll likely need to be able to sort through and browse large amounts of content. Not necessarily yet... but that is generally something every CMS should do (even though some don't) 05:00
s1n mr_ank: since P6 is a rebirth of perl, why not a phoenix?
carlin likes that idea
KatrinaTheLamia s1n: cliche... just a little
mr_ank TimToady: surely you are not being serious, are you?
TimToady I am deadly serious
mr_ank can i quote you on that?
TimToady you bet
mr_ank that you want perl 6 to appeal to 6 year olds?
asciiville katrina: CMS as in real CMS?
mr_ank do you want perl 6 to appeal to 6 year olds primarily, as well? 05:01
TimToady note that I'm not requiring every Perl 6 site to use
Camelia
mr_ank no, of course not
TimToady it's the Perl 6 logo, not any of its distributions
KatrinaTheLamia asciiville: well, yes
TimToady see Red Hat, Ubuntu, etc
mr_ank right
s1n advises TimToady to not make a linux analogy to Perl6 05:02
TimToady I haven't seen anyone laughing away Linux for using Tux
05:02 mepplock left
TimToady smirk 05:02
mr_ank I don't see how that applies
KatrinaTheLamia I dunno, I kind of prefer TimToady's logo... friendly and humourous.
jrtayloriv I like butterflies. More than burning birds.
KatrinaTheLamia mr_ank: Perl 6 would have camilla, where as Pugs, Rakudo, etc., are free to have their own logos.
asciiville we should steer away from "The Artist Formerly Known as Prince" stuff for logo ideas :) 05:03
mr_ank but it sits in perl6.org
s1n i prefer the bikeshed blue, but it's just the logo for the language, not the impl
TimToady so, we'll also have perl6.com, perl6.biz, perl6.info, and these can all have something else
as I was mentioning earlier, we can have both Kansas and Oz 05:04
KatrinaTheLamia asciiville: well, a logo should compliment a brand name, rather than replace it... other than that, I do not follow.
asciiville katrina: just a bad joke on my part :)
s1n TimToady: it's probably a good idea to have one banner, as to build one brand in developers' minds
KatrinaTheLamia asciiville: ah, okay ^.^
TimToady a1n, well, that's Camelia
*s1n
KatrinaTheLamia s1n: yeah, but we are allowed variations of it.
TimToady unless you can come up with something I like better
which will be difficult 05:05
mr_ank oh
s1n hah
TimToady which is what the file I sent you to already says
s1n well, i'm not 6, so i don't see the appeal of a butterfly :/
mr_ank TimToady: have you considered the possibility that your own taste in logos might not be good for the community at large?
asciiville Embarrassed to say I did not "get" Camelia until YAPC this year until I realized it was a variant on Camel.
TimToady if my taste is not good for the community at large, it's way too late
KatrinaTheLamia s1n: you see a camel on a programming book... are you going to think of anything other than Perl5? No matter what appearance it is. The butterfly would be the same.
mr_ank TimToady: also, have you considered that there *are* professional graphic designers around here, hoping to help 05:06
05:06 TimTom left
TimToady I'm professional, get over it. 05:06
mr_ank TimToady: no, it's not - i'm talking about taste in logos
TimToady most corporate logos have no taste whatsoever
mr_ank Please, I'm pleading here.
KatrinaTheLamia mr_ank: yeah... considering what I've seen, generally no matter what logo we go with, some graphic artist (prolly several) will complain
mr_ank KatrinaTheLamia: that's no reason not to use one 05:07
TimToady plead away, I know how to interest the next generation of programmers, and I don't care if it upsets the old geezers
asciiville after the conversation today the logo could be constructed from unicode art :)
KatrinaTheLamia mr_ank: I think it is fine, to be honest... and I've also had some training in graphic design too.
s1n i propose Nil, the anti-logo logo 05:08
mr_ank TimToady: even if the intention is to show perl 6 to children, the information in that same page is targeted at adults.
TimToady so?
KatrinaTheLamia mr_ank: well, lets deconstruct you logo... is that a lowercase 6 you are using? 05:09
TimToady I don't buy arguments of people being offended on behalf of other people who *might* be offended
KatrinaTheLamia mr_ank: so? Most adults really have no desire to go around and be adults all the time... most adults I like tend to be the ones who are more than willing to be silly
mr_ank it's coherence, I couldn't care less about offending an imaginary person.
s1n mr_ank: face it, we are collectively less intelligent than larry, thus we deserve to have content geared towards us created by him appear as childrens' literature because that's all our tiny brains can handle :)
TimToady Camelia is quite coherent
KatrinaTheLamia mr_ank: so, you are offended then? 05:10
asciiville I like Camelia. She's friendly and says "code me"
mr_ank not at all
KatrinaTheLamia I am going to have to agree with asciiville
asciiville She right?
mr_ank What I mean is that the logo, the brand, marketing, etc - would work better by having a professional who can manage that. I am not that person, but I'm sure you can find it.
TimToady yes, she's a she
KatrinaTheLamia I'd prefer something friendly and cute. Rather than something adult, for the sake of adult
asciiville whew!
TimToady I alread found that person, and it's me
mr_ank Respectfully, I suggest you look into you and try and think if someone else might do the job better. 05:11
s1n TimToady: need a little grease to get your head through the door? :)
KatrinaTheLamia mr_ank: okay, so first you say that TimToady's design isn't professional, then you say, you are not professional enough to make a design decision?
TimToady s1n: :)
mr_ank KatrinaTheLamia: no, i'm saying i'm not a marketing professional
TimToady I am 05:12
mr_ank i expect someone much better than me to handle perl
ok
TimToady: there are a number of reasons why you are not, even if you believe you are
KatrinaTheLamia mr_ank: okay then. First we need to determine who the logo is aimed at. The demographic. I think TimToady has it right, where we work on modifying the logo slightly depending on the audience
s1n TimToady: but marketing professionals don't even believe in their own product, they hate commercials just as we do
TimToady you don't think Perl 5 got where it is entirely on its merits, do you? :)
mr_ank TimToady: I think the JPL did a great job paying for it 05:13
(see, i can pick arbitrary causes too)
anyway, this is not constructive.
thank you for listening what I had to say.
TimToady you're welcome 05:14
sorry I'm so hardheaded on this one
mr_ank no need to apologize
s1n mr_ank: you had little chance in changing his mind, there were tons of responses on p6l and in the end larry just said "thanks for the input but i'm keeping what i have" heh 05:15
KatrinaTheLamia mr_ank: I look at your logo, and I think: "very quick mock up for some cheap client in a company." Really, that is the first thing I think of. Even though it is a butterfly, it is exactly what every 3rd rate company would do for a butterfly. (con't)
mr_ank KatrinaTheLamia: i made it in about 5 minutes, just to foster talk, etc
TimToady for good or ill, I have a stubborn streak
but it's one of the reasons I'm still working on Perl 6
KatrinaTheLamia mr_ank: meanwhile with Camelia, in its current state (from the context I've seen) is mostly for usages on pages, where they need to say, "hey, we are not teaching you how to code something that looks like line noise" 05:16
mr_ank: from what TimToady has suggested, in other contexts, Camelia will appear slightly different.
s1n let's see if there's a happy medium, TimToady, think you would let someone with really good graphics skills touch up Camelia (polish, not re-envision)? 05:17
TimToady well, I don't really like the plastic looks very much, but for some contexts it would work 05:18
KatrinaTheLamia mr_ank: on ther perl6.org page, it is mostly there to express that Perl6 is simple. Compare your logo to what TimToady did. Now ask, which makes the language not look like the horrid line noise language that people see perl as.
mr_ank seriously? mine, hacked in 5 minutes
asciiville A Camelia Bobblehead would set it in stone for everyone 05:19
mr_ank I really have nothing positive to say about Camelia, i'm truly sorry about that.
TimToady do you read comics?
mr_ank Sometimes
TimToady so toons can be for adults
mr_ank absolutely
TimToady Camelia can be a toon for aduls 05:20
mr_ank things like Maus, for instance
one of the best comics ever.
consistently rated 3
#1
TimToady and I think Americans can learn to tolerate "cute" from the Japanese men
mr_ank sure
s1n TimToady: in all fairness, modern comics are much more viceral (spelling?) than their predecessors
mr_ank If you are referring to me - I'm not American, I was born in Argentina.
KatrinaTheLamia mr_ank: how about cartoons from the 1980s and 1990s, that generally look kiddy.... some can contain some very adult ideas.
TimToady sure, but Camelia is not supposed to be about angst 05:21
mr_ank KatrinaTheLamia: from that era, the most important was probably Watchmen
It redefined the superhero genre
05:21 agentzh1 joined
mr_ank It's from ~1985 iirc 05:21
let's talk about art, then
KatrinaTheLamia mr_ank: I'd prolly have included Earthworm Jim, Tick and Freakazoid as my favourite cartoons of that era, that could potencially present some adult ideas... just in a silly manner
mr_ank i'm not against "silly manner" 05:22
ook
KatrinaTheLamia Camelia is not about angst. Watchmen present a bad picture of he state of the world. Maus presents the crap of WWII
mr_ank Look
boring3d.com/ << i love that page
KatrinaTheLamia mr_ank: maybe we need to present an silly adult form we can agree on?
s1n i'm pretty sure the guy that did the Tick would put a chair for a head on camelia
05:22 agentzh left
mr_ank I have the complete collection of The Tick 05:23
KatrinaTheLamia s1n: naw... that is limiting him too much
asciiville How about Franklin, Phineas, Fat Freddy, and Fat Freddy's Cat?
mr_ank I also have absolutely nothing against funny or simple or things for kids
or silly adult - that's good too 05:24
KatrinaTheLamia mr_ank: well, I had the three seasons of the cartoon, and the live action series... with none of the comics though
Franklin? I always hated that one >.>
asciiville :)
05:24 alester left
KatrinaTheLamia hmm... but following this more... maybe lets pulls something from Dr. Seuss or Bearenstein Bears... Dr. Seuss was a graphic designer in WWII... I cannot remember much about Bearenstein Bears (much less how to spell it) 05:25
mr_ank Dr. Seuss stuff is brilliant
I wouldn't mind having this as logo for perl 6 www.creativityforkids.com/ASSETS/28...0final.jpg 05:26
s1n nintendo has long had a slogan "there is a kid turning 6 everyday". given their success, maybe we should call it Perlii and use a faceless/limbless avatar or Mario for the logo
05:26 kst left 05:27 kst joined
KatrinaTheLamia also keep in mind, Walt Disney is famous for saying: "if I made stuff for kids, I wouldn't have succeeded"--if we follow this, we may be able to apply the Disney effect to the Perl 6 logo 05:27
asciiville s1n: :)
TimToady well, cat-comes-back is not quite the same as metamorphosis :) 05:28
s1n KatrinaTheLamia: don't tempt me to make a dumbo joke :)
mr_ank ok, now let's review: how far away do you think Camila is to Dr. Seuss?
in terms of taste and quality
s1n wonders what a butterfly tastes like... 05:29
KatrinaTheLamia grabs up the perl6.org
s1n i'll be here all week folks :)
TimToady I think there are a lot of grinches trying to steal Christmas :)
KatrinaTheLamia well, if we really wanted to make it adult we could replace butterfly in "camelia the butterfly" for the german word for butterfly.
seriously: translated anything into german would make it sound hardcore 05:30
mr_ank btw, TimToady - how are your eyes? i remember reading about the surgery etc years ago, sounded painful
KatrinaTheLamia TimToady: looking at it... well, the wings could use a little work... the patterns don't look... clean... 05:31
s1n mr_ank: ehhh, off topic?
asciiville Off the subject: Is Rakudo's "setting" considered a noun or verb?
TimToady had cataract surgery on both eyes since then, but that was a piece of cake compared to the transplant
noun
pmichaud noun
TimToady they're lumpy on purpose
asciiville ah! The terminology had me confused. 05:32
TimToady as in the setting of a play
KatrinaTheLamia hmmm, could you explain why the sixes are lumpy?
carlin Here's my rough logo idea: theintersect.org/images/p6logo.jpg
TimToady one of the many little built-in asymmetries
mr_ank that will attract kids!
s1n carlin: haha
pmichaud we will likely change "setting" to be something else whenever Perl 6 decides what it's ultimately going to be called :) 05:33
mr_ank except for the ones that prefer nintendo
s1n carlin: paint it blue and ship it!!
KatrinaTheLamia carlin: paint it blue, and put "free candy" on the side, and we are sold
TimToady: asymmetry is not normally noted for making things look cute 05:34
05:34 mr_ank left
TimToady it was to make the patterns look more organic 05:34
like butterfly wings really are
KatrinaTheLamia TimToady: so are we going for cute.. or organic?
asciiville we were kind of questioning the naming convention of "setting" at the hackathon last saturday 05:35
TimToady it's supposed to look like the P6 is sort of accidental
s1n or more like it was drawn with Paint? :/
TimToady organic can't be cute?
asciiville thinking of setting like a stage makes sense now
KatrinaTheLamia hmm.. six is kind of accidental... maybe I need to look at this further
TimToady actually, they are rather carefully done pairs of splines
s1n KatrinaTheLamia: barking up the wrong tree 05:36
carlin I still like s1n's phoenix idea, p6 could be in fire on the wings
TimToady anyway, I can tell you that constant width looked bogus
carlin maybe that could be rakudo's logo; a firey parrot 05:37
KatrinaTheLamia TimToady: ah in that case the sixes don't match the rest of the wings, the green arcs, and the circles... as they don't look organic
pmichaud Rakudo will likely s/setting/core/
asciiville pm: now that makes even more sense
KatrinaTheLamia TimToady: yeah, I could see how the constant width would look poorly.
pmichaud yes; at the time we created the directory the CORE namespace wasn't yet in the spec
TimToady I think the arcs and ovals can be found in nature 05:38
esp the ovals
the arcs are arguable
pmichaud so the best we could go with was "setting" at the time, thinking that it would correspond to the SETTING pseudonamespace
TimToady which is usually, but not always, CORE 05:39
KatrinaTheLamia TimToady: well, the ovals could be worked with... the arcs need something done with them
pmichaud right
s1n asciiville: pugs called it Prefix iirc
pmichaud "prelude" 05:40
TimToady prelude
s1n ahh right
TimToady but that's wrongish
since it's more of a lexical wrapper in Perl 6
the implicit loop of -n or -p goes around the user's code, not just before it
KatrinaTheLamia TimToady: yeah... work with the arcs in the wings, you'll prolly be fine.
TimToady and setting was the least overloaded word we found 05:41
s1n crap it late
KatrinaTheLamia anyways... now I have the urge to design an angsty version of camelia >.
s1n bed&
KatrinaTheLamia >.>*
05:41 finanalyst joined
TimToady quietfanatic is working on an angry one :) 05:41
he just showed it to me across the room 05:42
quietfanatic Here: wall.org/~lewis/stuff/img/camelia-angry.pdf ;) 05:43
KatrinaTheLamia I really should work on an EWJ style one ^.^... however my scanner isn't working... and I couldn't properly mouse draw (vector or raster) the EWJ style
pdf?
oh dead...
KatrinaTheLamia runs wget on that
TimToady more like grumpy, I think
quietfanatic It was a real quick piece of work.
"Cargo-cult art" 05:44
pmichaud I wouldn't want to be confronted with that bug.
quietfanatic I just flipped the mouth and changed one of the segments in each of the eyes to be straight.
TimToady esp since she has a 3 meter wingspan
pmichaud either grumpy or angry, it says "get out of my way or I'll squash you like a..."
TimToady actually, she'll probably just suck your liver
carlin her wings are metamorphic right? Should flare red when she's angry
quietfanatic My liver is quivering.
TimToady yes, she has conscious control of the colors in her wings, but not her face 05:45
KatrinaTheLamia well, I am just happy she isn't going to suck the bergamont out of my spleen. Means I can trust her not to give my slack up to the evil conspirators.
asciiville Angry Camelia: too funny! 05:46
actually angry camelia should popup after a compiler error 05:47
TimToady no, that should be sorry camelia
asciiville haha
sjohnson haha he looks mean
TimToady she
sjohnson she*
asciiville are there any sorry camelias to be posted tonight? 05:48
TimToady prolly not
maybe after an error we should have a camelia with bruises and crumpled wings 05:49
quietfanatic Aww...that'd make me feel even worse. :(
sjohnson asciiville: do you listen to alphaville?
TimToady and a bandaid
asciiville sjohnson: actually no 05:50
quietfanatic A butterfly's wings are its life. If its wings are broken it can't live.
TimToady er, Band-Aid®
this one will get better
sjohnson looks like Joe Camel missed his chance at being the Perl 6 mascot
quietfanatic ...I guess she is magical after all. 05:51
TimToady I can just hear the parents of the 6-year-old warning them not to go anywhere near that rough Perl 6 crowd...
(if we had Joe Camel) 05:52
asciiville the angry camelias will probably by in a B-movie on SyFy at some point
KatrinaTheLamia just grabbing the camelia I did up... most to mock the idea of making her more adult 05:53
TimToady I wonder how many we could fit into the sewers of LA?
you could go for the Tammy Faye look
asciiville tammy faye camelia? 05:54
tammy faye camelia == alice cooper camelia
TimToady vampire camelia 05:55
KatrinaTheLamia and uploading ^.^ 05:57
asciiville timtoady: camelias potential is enormous
sjohnson TimToady: you are probably right
KatrinaTheLamia nimhlabs.com/assets/images/perl6/mo...melia.jpeg << appologies for the quality... my scanner isn't working so I ended up using my camera 05:59
(that was more meant to mock ank TBH) 06:00
pmichaud reminds me of "Scream" :)
KatrinaTheLamia well, atleast I managed to resemble some form of art ^.^ 06:01
that I just did up quickly... I dunno, maybe if I put a little more effort into it, you could tell those are fishnet stockings.
TimToady maybe it really was The Scream--wasn't that stolen some time ago? 06:02
pmichaud yes, "The Scream" -- I got the name wrong
reportedly it was stolen, yes.
TimToady and now you know why Camelia keeps her legs behind her :)
pmichaud twice.
en.wikipedia.org/wiki/The_Scream
asciiville katrina: almost a mae west camelia 06:03
KatrinaTheLamia well, this does kind of prove how much potencial Camelia does have.
I mean, TimToady hasn't started cursing my ancestors at me drawing it yet... so that surely is a good sign 06:04
asciiville that should be the next Perl 6 user project: a website that allows you to dress Camelia
TimToady now you're getting silly
asciiville yes, indeed 06:05
sjohnson that might be a hit in japan
KatrinaTheLamia naw... we could make a dress up game for Camelia... IN PERL 6
sjohnson: only if we subjected Camelia to tentacles.
sjohnson i wonder if To Catch A Predator ever has spies in this channel
that might give Perl some worldwide coverage
"i want to dress you up like a butterfly..." 06:06
KatrinaTheLamia well, it would certain cause us to get raided
lol
sjohnson "and other strange conversations..."
KatrinaTheLamia I just realised something. I could mix the blush and cheek bones to make small sixes in my poor poor bastardisation of camelia. 06:07
pmichaud afk # sleep 06:08
TimToady afk # run away in fright
sjohnson afk # watching anime
KatrinaTheLamia afk # chasing after TimToady with chainsaw
sjohnson oops, you missed one space character there 06:09
KatrinaTheLamia wait?
TimToady is not waiting for a chainsaw... 06:14
KatrinaTheLamia but but but... it is Occam's Chainsaw... it is like Occam's Razor.. but BETTAH! 06:15
TimToady I'm afraid you'll use it on my Unicodes 06:16
KatrinaTheLamia throws Occam's Chainsaw aside 06:17
I am just glad nobody on this channel has tried to use unicode or ascii as a bad pickup line yet >.> 06:18
asciiville give it time :) 06:19
TimToady hopefully lots of time
carlin this looks like a job for Character Map 06:20
KatrinaTheLamia oh no...
carlin ⌂ unicode has a house symbol, that will make things slightly easier 06:21
TimToady it has better symbols than that, but I'm not going to help you
KatrinaTheLamia what have I caused? 06:24
TimToady we're trying to keep things appropriate for 6-year-old girls, not 13-year-old boys
KatrinaTheLamia TimToady: well, we could work this into a form of Disney effect type thing.. where it is appropriate for adults and 6a girls... but 13a boys will get lost at every turn 06:25
TimToady or the large number of older boys who think they're still 13 :)
06:25 iblechbot joined
KatrinaTheLamia ah, well... I don't fall into that demographic 06:25
TimToady well, now that Disney has bought Marvel... 06:26
sjohnson carlin: that is a cute house
TimToady it needs a pony
sjohnson i remember you could get that in the dos days by hitting ctrl-backspace i think
sjohnson needs a girlfriend pretty badly
KatrinaTheLamia TimToady: My Little Pony?
sjohnson KatrinaTheLamia, you're a silly one 06:27
carlin Ⴚ ◎ ㈲ ☎ ﹟
sjohnson on the topic of cute characters, this one is the cutest of all kanjis
KatrinaTheLamia carlin: uh... 867 5309?
sjohnson 06:28
looks like a space invader with antennaes and legs
KatrinaTheLamia looks more like a cake to me
TimToady I think of it as a music stand
carlin all of them are unicode 1.1
TimToady so I can get both "curve" and "melody" from it
sjohnson 点 == tank 06:29
well, not in meaning, but it looks like a tank
reminds me of the tank on that Apple //e game Star Blazer
i am going to get a professional sign made that says "TANK MEAL coming soon" and post it near my house 06:30
i love signs that don't make any sense
moritz_ good lolcattime() everyone 06:31
so (5 div 3) should return 1, right?
how do I get floating point division? 5.Num / 3 ?
TimToady that's one way 06:32
sjohnson rakudo: say 5.0 / 3.0
TimToady or Num(5/3)
p6eval rakudo 9bcba6: OUTPUT«1.66666666666667␤»
TimToady or that way
sjohnson ( `ー´)
asciiville say (5/3) 06:33
carp
rakudo: say (5/3)
p6eval rakudo 9bcba6: OUTPUT«1.66666666666667␤»
06:33 ejs left
asciiville hmm. I get invoke() not implemented in class 'Float' for Num(5/3) on my local Rakudo 06:35
TimToady it's a theoretical construct 06:36
asciiville ok
moritz_ rakudo: say (5/3).Num
p6eval rakudo 9bcba6: OUTPUT«Method 'Num' not found for invocant of class 'Float'␤»
moritz_ rakudo: say (5 div 3).Num 06:37
TimToady rakudo: say +(5/3)
p6eval rakudo 9bcba6: OUTPUT«1.66666666666667␤»
TimToady we confused it
asciiville rakudo: say Num
p6eval rakudo 9bcba6: OUTPUT«Num()␤»
06:39 krunen joined
jeekobu rakudo: say say 06:39
p6eval rakudo 9bcba6: OUTPUT«say requires an argument at line 2, near ""␤in Main (src/gen_setting.pm:2550)␤»
jeekobu aw
quietfanatic rakudo: say 5 div 3 06:43
p6eval rakudo 9bcba6: OUTPUT«5/3␤»
TimToady it's still got the backward semantics 06:44
quietfanatic I see.
06:48 drbean left
sjohnson rakudo: say 5/3.Num 06:48
p6eval rakudo 9bcba6: OUTPUT«1.66666666666667␤»
sjohnson rakudo: say (5 div 3).Num 06:49
p6eval rakudo 9bcba6: OUTPUT«1.66666666666667␤»
JimmyZ_ rakudo: (5 / 3).say; 06:50
p6eval rakudo 9bcba6: OUTPUT«1.66666666666667␤»
JimmyZ_ rakudo: (5 div 3).say;
rakudo: (5 div 3).INT.say;
pugs_svn r28154 | carlin++ | [perl6.org] Added description meta tag, feel free to alter, remove or revert as needed
p6eval rakudo 9bcba6: ( no output )
rakudo 9bcba6: OUTPUT«Method 'INT' not found for invocant of class 'Rat'␤»
JimmyZ_ rakudo: (5 div 3).Int.say;
p6eval rakudo 9bcba6: OUTPUT«1␤»
moritz_ carlin++ 06:51
06:51 Su-Shee joined
Su-Shee good morning :) 06:51
moritz_ oh hai Su-Shee 06:52
JimmyZ_ Is 'div' the same as '/' ?
TimToady we just changed their definitions, but rakudo hasn't caught up quite 06:53
they're supposed to be differnet
*different
Int / Int is now supposed to produce Rat
Int div Int is now supposed to do integer division 06:54
moritz_ which it does here (locally)
06:55 sharada joined
JimmyZ_ rakudo: (5 / 3).INT.say; 06:55
p6eval rakudo 9bcba6: OUTPUT«Method 'INT' not found for invocant of class 'Float'␤»
moritz_ there's no INT
TimToady there is no such thing as INT
JimmyZ_ yes, I want to get the error message 06:56
rakudo: (5 div 3).INT.say;
p6eval rakudo 9bcba6: OUTPUT«Method 'INT' not found for invocant of class 'Rat'␤»
moritz_ there's still no INT ;-)
TimToady you gotta admit, it's one letter shorter than .WHAT
but then .X is three shorter 06:57
and the .say is unnecessary
JimmyZ_ moritz_: yes. I still want to get the error message ;)
TimToady rakudo: say 42.X
p6eval rakudo 9bcba6: OUTPUT«Method 'X' not found for invocant of class 'Int'␤»
JimmyZ_ seems that div is for Rat ? 06:58
and '/' is for Float
TimToady no, div is for any type to define how it wants 06:59
and / is for "real" division
producing either Rat or Num as appropriate
that's how it's specced now
JimmyZ_ I see. thanks, TimToady. 07:00
07:01 fooozzzzbar joined
TimToady agh, how did it get to be September already? 07:03
I'd better go to bed...
Su-Shee TimToady: the time short before christman is shorter than the rest of the year. because of the shorter days.
TimToady another good reason for sleeping more :) 07:04
one the other hand, wayland76 will tell you the days are longer around Christmas 07:05
after a long day at the office I feel like sleeping more too 07:06
hmm, maybe I just always feel like sleeping more
moritz_ good night
sjohnson i slept for four hours last night, woke up at 8am and programmed like a madman
it's amazing how efficient you can get work done when you think your job is on the line
TimToady night all
zzz &
sjohnson night night toady 07:07
pugs_svn r28155 | carlin++ | Move Camelia's border settings to CSS 07:11
07:13 drbean joined 07:14 kst left 07:15 kst joined 07:20 donaldh left, donaldh joined 07:23 fooozzzzbar left
moritz_ who is our Temporal overlord? mberends? 07:30
07:36 jeekobu left 07:40 jeekobu joined
wayland76 The days are longer around Christmas 07:47
But they're too hot to do much in :)
The Temporal overload is autarch
moritz_: ^^
moritz_ because I need somebody to fix it :-) 07:48
wayland76 He's the one who made the DateTime modules for P5. I hacked together the basic Temporal page, and then autarch redid it
07:48 jferrero joined
wayland76 What, the tests need fixing? 07:49
Oh, wait, I'm talking about the spec, though
moritz_ no. The meaning of infix:</> and infix:<div> have changed
wayland76 I don't know who's in charge of the Rakudo Temporal stuff
moritz_ and we have a patch in RT that applies the changes to rakudo and the test suite 07:50
07:50 finanalyst left
moritz_ and that breaks Temporal.{pm,t} and I don't know why. 07:50
actually the patch simplifies Temporal.pm, because it uses integer division in many places
07:51 finanalyst joined
wayland76 Beyond me, then, I'm afraid. 07:52
07:56 rbaumer joined 07:57 cono left 08:05 rbaumer left, rbaumer joined 08:09 M_o_C joined, kst left 08:10 kst joined, jrtayloriv left 08:14 jrtayloriv joined, asciiville left 08:23 Khisanth left 08:25 zamolxes left 08:30 Khisanth joined
spinclad somehow i find the mouth-shape more convincing on camelia-angry; the asymmetry seems better motivated, and the strong curvature at one end works better with my image of the facial muscles, than on camelia-0. 08:33
(oh, and mae-west camelia ++) 08:34
moritz_ use.perl.org/~ank/journal/39562 08:36
Su-Shee looks like the padre butterfly but it blue. 08:40
08:44 M_o_C left 08:45 dakkar joined 08:53 M_o_C joined 08:57 RonOreck_ joined 08:58 RonOreck left, rbaumer left
colomon moritz_: not sure if my second patch went through? I actually fixed the Temporal.t hang in my patch. 09:07
(And I should be back in bed now...) 09:08
09:09 RonOreck_ left 09:14 RonOreck joined 09:15 kst left 09:16 kst joined 09:18 masak joined
masak good late morning, #perl6. 09:18
frettled Indeed! Good something! 09:19
09:19 frettled sets mode: +o masak
masak is quietly amused by the amount of energy outsiders can spill on expressing their dissatisfaction with the perl6.org colour scheme or the Perl 6 logo 09:20
is there something else we can turn into pastel colours to further annoy them?
frettled masak: psychedelic Perl 5 camel? 09:21
masak afraid that's kinda outside our jurisdiction.
frettled it's open sores, mon!
masak buckles down to minimize last night's scary bug
carlin rakudo.org needs pastel colours
09:21 rbaumer joined
masak carlin: I like the way you're thinking. 09:22
Su-Shee masak: on the other hand do a bunch of interesting groups like it.. women for example or a bunch of mac-ruby-fellows I know..
masak Su-Shee: that's great!
09:23 ejs joined
masak Su-Shee: do they express their satisfaction in blogs and irc logs and stuff? 09:23
Su-Shee masak: that's what I was thinking while skimming comments..
wayland76 I've been thinking we should do a vampire Camelia to pick up on the Twlight-teenage-girl-programmer demographic
Su-Shee masak: some msg-ed me.
masak Su-Shee: you could contrast the two groups in a blog post of yours. 09:24
Su-Shee masak: and honestly.. _I_ consider "the style is gay" a compliment..
masak it means they care, for one thing.
Su-Shee masak: exactly. 09:25
M_o_C Well, it certainly is colorful after all ;)
wayland76 Yes, "colours bright and gay" and all that :)
Su-Shee masak: and it means that we might not suit the traditional taste of manly male hetero old school techies but a more postmodern one. ;)
masak big, bulky organizations elect a committee, and the committee arrive at a slick, abstract drab blob which offends no-one and touches no-one at heart. we're a bunch of scattered volunteers, not a big, bulky organization. 09:26
Su-Shee masak: interestingly, at least 3 women made a connection to audreyt and contemporary gender-philosophy stuff an declared that the style and especially the butterfly reflects that...
09:26 zamolxes joined
masak Su-Shee: cool. I hadn't made that connection until now. 09:27
Su-Shee so I personally don't see any reason to frantically adjust a design what's not final anyway...
carlin as much as I like Camelia etc. I would like an alternative before Perl 6 clothing hits ... :p
wayland76 Well, that link moritz_ pasted had an alternative :) 09:28
huf i always found the name of the language in a nice font is better than an animal
altho i guess that's "boring"
Su-Shee and I don't care as long as the stuff is cool.. I mean, I use slackware and love it - and check their "design". ;))
wayland76 What kind of font is nice? Are we talking about Linux Libertine, or one of those highly decorative ones with vines growing onit? 09:29
huf fixed? i really like fixed.
;)
carlin Slackware's "logo" isn't bad
wayland76 Well, if it's not broken, don't fix it :) 09:30
carlin I doubt they've ever had heated flamewares over who hates/loves it though
Su-Shee carlin: they pretty much don't care and do so deliberately. they simply ignore all issues which are discussed in the perl community in terms of "marketing" 09:31
it's a total focus on the project.
M_o_C wayland76: Can you give that link of moritz_ please? 09:32
wayland76 M_o_C: use.perl.org/~ank/journal/39562
M_o_C Thanks
wayland76 Perl takes people into account :) 09:33
Su-Shee so does slackware, but in an entirely different way..
and the perl community saying "we don't care for design and marketing and focus on the projects" would have been an entirely valid option. 09:34
wayland76 But what would be bikeshed about then?
carlin how much we don't care 09:35
09:35 drbean left
wayland76 What, you mean "I think we should not care in a sort of mauve-green"? :) 09:35
masak no, I think we should not care in a sort of vermillion. 09:37
09:37 ejs1 joined
carlin vermillion? How will we market how much we don't care using vermillion? 09:38
masak I just don't think mauve-green conveys how we don't care in a sufficient way. 09:39
carlin mm, green conveys jealousy more than not-caring 09:40
Su-Shee isn't not caring dull grey? ;) 09:41
09:41 JimmyZ_ left
masak yes, that could be it! 09:41
a dull grey, a bit like asphalt...
Su-Shee (which looks great with jealous green or even envy-bile-green-yellow ;) 09:42
huf dark blue text on black. you cant beat that at not caring
frettled jani.at.ifi.uio.no/tmp/pastel-rakudo.png 09:43
carlin frettled++
Su-Shee huf: excellent choice! 09:44
09:44 ejs left
huf Su-Shee: yes, it shows that i care 09:45
masak frettled: how exquisitely tasteless! bravo! 09:52
frettled thank you, thank you, I'll be here all week.
(and they say that techies can't do design, hah!) 09:53
masak :D
Su-Shee I personally like the "my grandmother's blouse" color scheme... it really speaks to the elderly perl people... 09:54
09:54 rbaumer left
colomon moritz_: ping 10:01
10:02 eMaX joined 10:05 kst left 10:06 kst joined
M_o_C frettled: Using pastel colors doesn't even look so bad if you omit the beveled stripes: moc.coders-haven.net/tmp/rakudo-logo.png 10:07
If you ignore the strange aliasing...
masak rakudo: class B { method Str() { my @a = 1..3; @a[9].x; 'OH HAI' } }; B.new.say
p6eval rakudo 9bcba6: ( no output )
masak rakudo: class B { method Str() { my @a = 1..3; 'OH HAI' } }; B.new.say 10:08
p6eval rakudo 9bcba6: OUTPUT«OH HAI␤»
masak as you see, the '@a[9].x' causes the Str method not to print anything.
is this desired behaviour?
wayland76 M_o_C: Those colours are a little too vibrant to be pastel
M_o_C I already thought so... Still, it's exactly the ones camelia uses. 10:09
wayland76 Su-Shee's original perl6.org design was using the Camelia colours. It's the revised version that uses more pastel colours. 10:11
jnthn oh hai 10:12
masak hm, I guess it is desired behaviour, now that I think about it.
jnthn: o/
M_o_C Ok, wayland76. 10:13
jnthn looks around at use.perl.org and is a little bewildered by the dicussions... 10:15
carlin Argh 10:16
masak & # lunch
jnthn Meh.
carlin doesn't know how many times he has typed @array.push instead of @array.pop
jnthn decides to stay out of 'em.
carlin but jnthn, the bikeshed could end up as a colour you don't like! 10:17
wayland76 but jnthn, they might paint the bikeshed the wrong colour :)
phooey, too slow :)
carlin haha
wayland76++ # great minds
wayland76 great minds, etc :)
ouch, this is getting scary ;)
( jnthn++ for doing things instead of bikeshedding :) ) 10:18
10:19 jaffa8 joined
wayland76 moritz_: Is there a way we could have multiple theme options for perl6.org? 10:19
M_o_C The correct question is: Who has the means to implement it? 10:23
:) 10:24
wayland76 Well, I really meant, is there an *easy* way
Otherwise there's no point me making a vampire camelia :)
M_o_C Hrm, if it's only a color related change it should be easy since all you'd have to do is to create a new stylesheet and implement a way to switch the stylesheet... 10:25
However if you intend to change it to some wickedly complicated design it probably is a little harder. 10:26
Scratch the "little" ;)
10:27 rbaumer joined
wayland76 Well, colour, and logo. And if I could change the title too, that would be good 10:27
M_o_C Well, title change can't (or shouldn't, I'm not certain if it can 10:28
't) be implemented via CSS
wayland76 I'm sure you can if you try hard enough, but some browsers may not support it :) 10:29
(afk, will backlog &) 10:30
Su-Shee yes, there is a way for multiple themes, because it's pure css strictly separated from html structure and the content. 10:32
mikehh rakudo (9bcba63) builds on parrot r40902 - make test / make spectest (up to r28155) PASS - Ubuntu 9.04 amd64 (g++) 10:33
carlin the doctype could be changed to XHTML strict 10:34
but I don't see a lot of point 10:35
10:36 eMaX left 10:40 agentzh1 left
M_o_C Su-Shee: The only problem right now is the logo (src HTML attribute). 10:42
10:46 zaphar_ps left 10:51 SmokeMachine left 10:53 cotto left 11:03 eMaX joined
wayland76 well, as I said, if the logo can't change, no point in me making a vampire camelia pic :) 11:05
11:05 mberends joined
carlin that shouldn't be hard to change 11:06
KatrinaTheLamia are we _still_ talking about this?
wayland76 carlin: Who has the power?
carlin No
Not we are discussing the ability to dyanamically alter the colour of the bikeshed
wayland76 KatrinaTheLamia: now we're talking about multiple themes. That's completely different than arguing over the theme :) 11:07
carlin s/Not/Now
KatrinaTheLamia I mean, if wayland76 does his vampyr Camelia picture, I clearly need to do up my Mae West one and allow it to be seen on the site :)
jnthn suggests a #perl6-bikeshedding channel to do this stuff on.
(OK, I only half-seriously suggest it.)
11:07 kst left
carlin No, the channel should just be called #perl6-bikeshed 11:07
wayland76 jnthn: Basically, I'm hoping that the muiltiple themes thing will mean that people will do themes instead of talking about them :)
jnthn ...
11:08 kst joined
KatrinaTheLamia jnthn: yeah, but then we'd need to set up #perl6-bikeshed-meta shortly afterwards. 11:08
carlin wayland76: anyone with pugs commit access can change it
M_o_C But he wants a theme switcher
Not a permanent switch.
jnthn KatrinaTheLamia: Wonder how long until the levels of meta are so deep you exceed the maximum channel name length... 11:09
...and how many hours it'd take people to get there... ;-)
wayland76 Btw, I have ops on #perl6-bikeshed :)
KatrinaTheLamia I don't know why, but that scares me
jnthn: just going to test something 11:10
jnthn ;-)
carlin M_o_C: Yes, but part of doing that would involve making camelia appear via css 11:11
11:11 KatrinaTheLamia left, KatrinaTheLamia joined
KatrinaTheLamia note: testing how many -meta until the channel limit is exceeded cased freenode to kick me off due to flooding 11:13
jnthn lol
11:14 pmurias joined, payload left
M_o_C Where in the pugs repo is the perl6.org code located? 11:16
carlin docs/feather/perl6.org
11:20 donaldh left
Juerd Which syllable in "rakudo" is stressed? 11:20
11:22 donaldh joined
Su-Shee 2nd, if I remember my little japanese correctly and all is pronounced rather short 11:22
wayland76 I've been saying raah-KOO-doh 11:23
KatrinaTheLamia wayland76: generally he "u"s in Japanese words tends to be silent, and means only the previous consenent is to be pronounced 11:24
wayland76 Well, I suppose I'm influenced by the fact that I once made a language that can be represented roughly in English as "rakugo", but you have to swallow all the letters to make it sound like it was supposed to 11:26
11:26 KatrinaTheLamia left 11:27 KatrinaTheLamia joined
wayland76 KatrinaTheLamia: Are you logged in as root? :) 11:27
carlin probably pronounces it completely wrong
KatrinaTheLamia wayland76: nope 11:28
wayland76: I only look like I am logged in as root to mess with people 11:29
11:29 sri_kraih joined
wayland76 KatrinaTheLamia: I'd considered that possibility -- that's why I asked :) 11:30
KatrinaTheLamia though it has been a while since anybody has actually mentioned anything about it 11:31
the fun thing is: if you whois me, my name is apparently Admiral Katherine Janeway. A Real Name not usually associated with the root account 11:32
M_o_C Btw: Why is the link to the perl6 chan black? 11:35
(On perl6.org) 11:36
wayland76 M_o_C: They all are on my browser 11:38
M_o_C: Are you hacking on the p6 website at the moment?
M_o_C No. 11:39
KatrinaTheLamia well, perl6.org was looking into making itself more diverse... don't worry we plan to add yellow links and purple links into it... I'd prolly add hispanic, but I have no idea the colour normally associated with hispanic people.
wayland76 ok, just checking :)
11:39 DanielC joined
KatrinaTheLamia hmm... tasteless image idea: clansman camelia. 11:39
M_o_C Well, at least not remotely, I am working on a patch for the CSS based logo. 11:40
wayland76 M_o_C: Oh, ok. I'll stop working on that then :)
KatrinaTheLamia M_o_C: CSS based logos generally are a pain in the ass. It would likely be easier to use some manner of CGI or ECMAscript
mberends hi DanielC 11:41
M_o_C Hm... But then you'd have to create a new template for each theme...
DanielC o/ mberends
wayland76 KatrinaTheLamia: That might make it harder to create new themes though
jnthn mberends: Hi! :-)
M_o_C And start using a template engine...
mberends hi jnthn!
DanielC mberends: How is life? How is the parrot-module-lib project? 11:42
lisppaste3 MoC pasted "Logo to CSS transition" at paste.lisp.org/display/86357
M_o_C That's what I came up with. I'm not sure though, wether it's abusing the a tag :) 11:43
KatrinaTheLamia wayland76: M_o_C: naw.. just have the img tag itself point to a CGI file that redirects or paints the image. In the same URL that decides what style you are using, it directs the image where to go. 11:44
mberends DanielC, life is good, glad to see you had a terrific honeymoon. I was waiting with parrot-module-lib for your return, and a few related developments need to be taken into account.
KatrinaTheLamia clicks
DanielC mberends: ok
mberends: So what are those developments? 11:45
mberends DanielC: freezing Rakudo's bytecode is broken, so the safest thing to file is the PIR level.
DanielC ok
mberends DanielC: and at YAPC::EU there was a strong recommendation *not* to lose the source code 11:46
masak looks forward to the continuation of mberends++' and DanielC++'s work on parrot-module-lib
mberends hi masak!
DanielC o/ masak
masak mberends, DanielC: oh hai :)
KatrinaTheLamia M_o_C: yeah... that is not going to work for CSS in a lot of browsers. For one, the img tag in there already will overlay it. If you remove that, you will have some issues having the "a" appear in the first place
DanielC mberends: Keeping the source code seems sensible. 11:47
KatrinaTheLamia anyways... I've got to get some rest
mberends DanielC: the amount of file space should not be a concern, so I was considering a change to the file format to store 3 blobs per module: source, PIR, PBC, and we switch to using the PBC when Parrot freeze works. 11:48
DanielC Is it a good idea to store the source code as a blob? 11:49
Would it be possible to make a directory where we keep all the packages in their original format? 11:50
mberends I was hoping to have one file for all code
DanielC Ok.
mberends to avoid the Unicode file naming problem 11:51
DanielC Is there an advantage to that? I figured that the reason to keep the source code was for backup.
Also, should we be worried about file size? I don't know what the file size limit in Windows is. 11:52
moritz_ if your goal is a distribution system for open source software, keeping the source is kind of indisputable, no?
mberends some people thought the "you're screwed" Q&A you wrote was rather funny, but the source allows you to regenerate lost metadata.
DanielC: you're pretty much guaranteed 2GB file size anywhere 11:53
DanielC Is there a risk that installed modules might go over that if we stored source code + PIR + PBC ? 11:54
mberends unlikely
DanielC ok
Did the other guys at the conference like the idea of a single file for everything including source code? I'm sure that you guys understand the pros and cons better than I do. 11:55
So I'll trust your judgment on this. 11:56
Wait... if you lose the metadata file, how are you going to find the source code? The metadata file is what tells you where each blob starts and ends... 11:57
masak Hidden Markov Models? :P
mberends it wasn't discussed anywhere, so it may be just my personal preference. It is the one I want to build, and use the opportunity to open the module hooks in Rakudo. If someone else wants to link a different module loader to the hooks later on, that's fine by me.
DanielC: good point. we may need some kind of delimiter between source, PIR and PBC records. PBC's are also strings... 11:59
DanielC Unless I'm missing something, the source code only serves as a backup if it is in a separate file from the metadata and the big file with all the modules...
Delimiter: ok 12:00
mberends the big file is what wer'e making accessible, so it would be great if the source could live there.
12:00 kst left 12:01 kst joined
DanielC In general a module is composed of several source code files... Do you think that might present a problem? (ie. we'll lose that organization in the big file). 12:01
Or maybe I'm wrong and a module is always just one file. 12:03
mberends Is a module not just 1 file? I know there's a module declaration distinct from package. I'd settle for a 1:1 mapping module:file initially.
DanielC I'm probably wrong.
If it's just one file, that makes things easier.
Can a module have binary blobs like images?
mberends I don't remember either :)
moritz_ mberends: that's the choice of the author 12:04
a file can contain multiple module declarations
DanielC moritz_: Can a module declaration cover two files?
e.g. through some sort of "include" command?
moritz_ well, you can augment classes (and maybe modules) in other files 12:05
and you can always read and eval files, though that's discouraged
DanielC This might make the module library a bit more tricky. 12:06
masak I say make the design simple for now.
one-file-one-module is one of those 99% things.
DanielC masak: Do you think it's ok to assume a 1-to-1 map between files and modules?
masak I do.
DanielC ok 12:07
masak there are examples of cases where both directions break...
...but I don't think they merit consideration in the design.
DanielC How about binary blobs like images? Can modules have those?
masak that's not for me to say. :) I only deal in text.
moritz_ DanielC: distributions might contain those 12:09
DanielC mberends: If we are going to store the source code in the Big File, we might as well also store a second copy of the metadata. So each module would be represented as <delimiter> + <metadata> + <source> + <PIR> + <PBC>
The <metadata> tells you the location of <source>, <PIR> and <PBC>. 12:10
moritz_: Ok. Then we'll have to keep that in mind and find a way to store those too.
mberends DanielC: an excellent idea!
DanielC :-D 12:11
mberends but that's an easy change. the area that need the most work is interpretation of wildcard module specifiers
DanielC ok
moritz_ what kind of blobs are you folks talking about? tar archives?
mberends eg (from S11) use Dog:ver(v1.2.1..^v1.3);
moritz_: the frozen or stringified compiled module PBC code 12:12
ugh, what an unwieldy way to say that 12:13
moritz_ DanielC's proposal read as if there were mutliple logical files in a single blob 12:14
mberends in some sense there would be 12:15
a module lib maintenance tool would have to do a kind of concatenate
moritz_ that's why I asked about tar 12:16
DanielC moritz_: For the parrot-module-lib we were talking about storing all the modules inside a single big huge file. Then using a metadata file to locate the start and end of each of the original files in the distribution.
moritz_ it does such concatenation already
mberends we discussed tar but shrank away from the exact file layout requirements
DanielC moritz_: The problem with that is that if you lose the metadata file, the Big file becomes useless.
moritz_ that's why you pack the meta data into the Big File 12:17
and end up with... a typical archive :-)
DanielC moritz_: And that leads into what we are talking about right now. :-)
mberends tar files have Unix specific fields
12:17 drbean joined
DanielC moritz_: So now we are talking about storing both metadata and the original source code in the Big File. 12:18
moritz_ hey, you could use AVI as a container file format :-)
that can store meta data and blobs 12:19
(ok, I'm not entirely serious here)
DanielC moritz_: The idea of a separate metadata file is to speed up data retrieval. The metadata file is small and fast to read and it tells you the byte offsets where you can find the stuff you need. So you can just do a disk seek which is fast and cheap.
mberends to avoid repetition, the design so far is here: www.gitorious.org/parrot-module-lib...ees/master 12:20
DanielC So, having the metadata inside the Big File is meant as a backup.
mberends the metadata will be very useful for arbitrary utilities 12:21
12:21 takadonet joined
takadonet morning all 12:21
masak takadonet: o/ 12:22
DanielC o/
takadonet how are you masak?
masak takadonet: I'm greatly enjoying my short existence here in the physical world. how about you?
takadonet masak: Nice and tired from biking into work but feel great 12:23
masak I realized today that the rest of my life will only have more and more of Perl 6 in it. that made me happy.
takadonet Noticed that people are still visiting my blog even if it been over a month since I last posted anything
pmurias ruz_: ping 12:24
colomon moritz_: I've integrated your patch to my patch, and made a bunch of other improvements to the Rat stuff as well, most notably a huge performance improvement in extreme cases. 12:25
I've also got a couple of minor Complex patches mixed in at the moment. I need to learn git's branching features yesterday, apparently. 12:26
moritz_ colomon: it'll be another 3 hours or so until I can take a look, presumably 12:27
colomon I'm running spectest right now, but I expect the only failures will be because of your div and big numbers, and the $_ % * test added yesterday.
I may need some help sorting out the right way to send in the patches. But I can certainly wait 3 hours. 12:29
12:31 payload joined
moritz_ we your spectest is over, I can surely help you. I just don't have the time and concentration to review patches right now 12:31
12:32 ejs1 left 12:34 ejs1 joined
mberends DanielC: I plan to work on proto for a bit, and then get back to parrot-module-lib maybe tomorrow. The HOWTO has some older comments for you. 12:34
ruz_ pmurias: pong 12:35
DanielC mberends: ok
12:39 sri_kraih left 12:43 nbrown left
masak rakudo: class A { has $.foo; method Bool() { $.foo } }; say A.new(:foo(False)).Bool; say A.new(:foo(False)) ?? "OH NOES" !! "OH HAI" 12:45
p6eval rakudo 9bcba6: ( no output )
masak hm, grr.
it says "OH NOES" on my box. 12:46
12:46 sri_kraih joined
masak aha, it's .true I need to override. 12:47
all these twin methods (.list and .List, .true and .Bool, .int and .Int) confuse me.
moritz_ aye 12:48
rakudo: say int(3.4)
p6eval rakudo 9bcba6: OUTPUT«3␤»
moritz_ that's going away soon.
masak that's fine.
what I would like is a consistent approach to casting.
more precisely, which methods call which.
to me, it felt perfectly sensible to override .Bool just now and have it implicitly call that in the trinary operator. 12:49
but it didn't; it was .true I should override.
and there's (as far as I know) no simple principle to tell me why I should use one and not the other.
12:58 psychoschlumpf joined
pmurias ruz_: how's your tisql thing going? 13:01
s/going/doing/
13:02 kst left 13:03 kst joined
masak my first 'literate Perl 6' blog post draft now works. gist.github.com/178765 13:05
i.e. when you run it with perl6-literate, it prints an ASCII labyrinth for you.
ruz_ pmurias: busy with clients, but it works and I'm going to work on it more soon 13:06
mberends masak++: :) reminds me of a Maze program in MS Basic decades ago
masak I haven't finished editing the post yet -- will do that tonight when I'm off-duty. however, it would be nice to receive early feedback on the post. in particular, I'd like it if someone tried running the post with perl6-literate. github.com/masak/perl6-literate/ 13:07
mberends: thanks. :)
ruz_ pmurias: going to look at Devel::Declare to replace the currently bad looking structs based API
mberends masak: will test it this evening. got a few mins for proto discussion? 13:08
masak always. :)
mberends :) I would like to keep the project download directories separate from .ecosystem, and use 'make install' to selectively copy files across. is that your expectation? 13:09
moritz_ that's pretty much what CPAN.pm does 13:10
mberends indeed
moritz_ (except with a different name)
and I think that's sane
ruz_ pmurias: are you interested in something particular?
masak mberends: yes, that is my expectation.
mberends: at the very least, there must be some distinction between modules that aborted during installation, and modules that succeeded. 13:11
mberends ok, and 'make test' also verifies useable code. 13:12
ok, then every project needs to 'make install' proto's way, implying a $ECOSYSTEM target directory
masak aye.
basically, it means that we'll have one more step than we do now.
right now 'install' means 'download'. 13:13
mberends so this change will also break all projects until they respect $ECOSYSTEM
masak aye.
that is to be expected.
13:13 ruoso joined
mberends ok, that's all I was worried about :) 13:13
masak as long as we warn and explain, the users will be alright.
PerlJam masak++ "...and found total happiness." :) 13:14
masak :)
13:15 mikehh_ joined
moritz_ masak++ "Exponents kill." 13:16
PerlJam heh, I was just about to do that too!
masak thanks for positive acclaim. please also tell me what you find difficult to understand. 13:17
PerlJam nothing so far
moritz_ masak: why is init-cells-and-walls a submethod?
it seems to me that it could very well be an ordinary method
masak moritz_: because it is called by a submethod.
pmichaud Good morning, #perl6 13:18
masak pmichaud: morning!
moritz_ masak: does that mean it must be a submethod?
masak moritz_: dunno, it felt right. checking S12 now.
jnthn pmichaud: morning
moritz_ masak: I could see how a subclass might want to call it itself
masak moritz_: seems I imagined the directive in S12 that said submethods should only call submethods. I'll change it to being a method instead. thanks. 13:20
moritz_ masak: but please test first :-)
masak aye.
13:21 asciiville joined
PerlJam BTW, look at panelpicker.sxsw.com/ideas/index/interactive Search for perl or python or ruby or php. Hopefully the same ratios hold for the panels that make :) 13:21
masak you folks should try writing an executable blog post. it's exhilirating to change something in it and then just run it. :)
yup, still works with 'method'. moritz_++ 13:22
PerlJam also btw, if we want to market perl, SXSW is a good place for that.
pmurias ruz_: was thinking of working on the Devel::Declare layer 13:24
ruz_: is the code avalible somewhere? 13:25
ruz_ oh, I can use a hand on that, have read D::D's docs, but not close to 100% understanding 13:26
sure it's in jifty's svn
pmurias url?
moritz_ masak++ # very nice blog post
masak \o/
ruz_ pmurias: a sec
masak I still need to write a bit more about the speed analysis, and some sort of conclusion. will do that tonight. 13:27
ruz_ pmurias: svn.jifty.org/svn/jifty.org/Jifty-DBI/
PerlJam masak: btw, wrt your comment on map blocks. That's the one thing my coworkers have commented on about my code is that I use map (perhaps too much) and they have difficulty understanding what I'm doing. I prefer to think that it's just their lack of familiarity with map :) 13:28
(granted, this is in perl 5) 13:29
masak PerlJam: map is definitely an idiom. I guess unfamiliarity with that idiom would make it harder to read.
moritz_ aye
13:29 mikehh left
dakkar do Perl 6 "foreach" loops return the list of results from the block? 13:29
moritz_ I usually also prefer for-loops if they are nested
masak dakkar: aye. 13:30
moritz_ dakkar: it should. It doesn't yet in Rakudo
masak that's another reason I didn't use them. :)
dakkar uh. so one of map/foreach can be a macro defined in terms of the other one
masak I also use 'is also' everywhere. and an unnecessary couple of assignments in BUILD.
dakkar I thought that map was more like gather { foreach { take ... } } 13:31
i.e. that foreach did not return anything useful
masak dakkar: 'foreach' is spelled 'for' in Perl 6, btw.
dakkar: but no, they're semantically identical. except that for-loops aren't expressions by default, so you have to 'do' them.
dakkar oh. ok. 13:32
moritz_ std: my @a = for 1..4 { $_ }
p6eval std 28155: OUTPUT«===SORRY!===␤for() interpreted as function call at line 1 ; please use whitespace instead of parens␤Unexpected block in infix position (two terms in a row) at /tmp/2YRboi9Icg line 1:␤------> my @a = for 1..4 ⏏{ $_ }␤ expecting any of:␤
..bracke…
dakkar re: the renaming, I knew it existed, I just rememberd it the other way around…
uh??
moritz_ std: my @a = do for 1..4 { $_ }
p6eval std 28155: OUTPUT«ok 00:02 38m␤»
moritz_ that's what masak meant, I guess
masak aye. 13:33
moritz_ but the error mesage is less than awesome
PerlJam dakkar: he's showing that "map" is a shortcut for "do for" :)
dakkar right
moritz_ "please use whitespace instead of parens" - which parens did I use?
masak TimToady: LTA error above! ^
pmichaud wow, very interesting backscroll this morning :) 13:34
masak we aim to please. :)
masak wonders how the synonymity between 'do for' and 'map' squares with the '-> {}' special case we discussed after YAPC::EU 13:35
IIRC, pmichaud opined that a '-> {}' block after a for-loop, if it wasn't a compile-time error, should consume elements. I opined that it shouldn't.
dakkar I don't remember your rationale (and I was there…) 13:36
pmichaud (rats): I find it a little jarring that say 1.2 + 3.4; will end up producing "23/5".
masak my rationale is simple: consume nothing is what it says it does. :)
moritz_ pmichaud: aye 13:37
me too
I never liked that in pugs
pugs_svn r28156 | mberends++ | [Temporal.t] replace soon-to-be-deprecated int() with floor()
dakkar masak: yes, perfectly rational. my take was "consume nothing, and give a big warning"
moritz_ I always have to ask it a second time to get a result with which I can work 13:38
masak a warning would perhaps be fine. unless there's a legitimate use for that idiom.
jnthn Why would 1.2 + 3.4 produce a rat? Does 1.2 not give a Num? :-/
pmichaud that's not the current thinking
the current thinking is that 1.2 would become 6/5
jnthn ...
masak afk & 13:39
moritz_ well, the current thinking, but the spec still says Num, no?
jnthn
.oO( sometimes I'd rather there were less thinking )
pmichaud the spec is largely silent
there's one paragraph that implies it's a Num
moritz_ well, the test suite then.
jnthn I thought you'd have to ask for a rat?
e.g. write 6/5 if that's what you wanted...
pmichaud well, we've seen how the test suite can change quickly.... infix:</> versus infix:<div> :)
jnthn div is integer division, no? 13:40
pmichaud when given integers
jnthn And infix:</> ?
pmichaud is "numeric division"
pmurias ruz_: does tisql have any docs? 13:41
jnthn *nod*
And new Rat(3,4) is the way to make a rational?
erm
Rat.new(3,4)
pmichaud 3/4 works
moritz_ 3 / 4 is a Rat
as an operator
and 3/4 is a literal
3.0 / 4 is a Num
(in my thinking)
jnthn 3 / 4 and 3/4 would parse differently, then? 13:42
pmichaud yes
PerlJam wonders when fortran started sneaking into perl
jnthn What about $x/$y and $x / $y ?
pmichaud in STD.pm, they already do.
$x/$y is always a infix:<div>
sorry, infxi;</>
jnthn OK
pmichaud sorry, infix:</>
jnthn I think I can cope with that.
But 3.4 becoming a Rat feels...odd.
pmichaud in particular, +"3/4" produces a Rat
moritz_ but I don't see much sense in the 3/4 special case anymore 13:43
pmichaud and +"4+5i" produces a Complex
moritz_ since it produces a Rat anyway
jnthn At least, not without a declaration in a use statement or something saying "I want Rat by default" or so.
I think otherwise it's going to be rather surprising...
As in, too surprising.
pmichaud on the plus side -- the recent spec changes that TimToady++ made to contextual variables means we can haz context vars real soon. Like possibly even today. 13:44
13:44 payload left
moritz_ woot 13:44
diakopter use Rizzo;
pmichaud diakopter++ # muppets!
jnthn pmichaud: That would be The Awesome.
pmichaud: In Rakudo / NQP first, and then later in regexes, I guess? 13:45
dalek kudo: 4c08564 | mberends++ | src/setting/Temporal.pm:
[Temporal.pm] replace soon-to-be-deprecated int() with floor()
pmichaud jnthn: regexes not today, but very quickly
jnthn \o/
pmichaud jnthn: the new declaration format is *much* easier to handle
jaffa8 what is context vars? 13:46
diakopter how recent were those dynamic scoped vars changes?
jnthn didn't see 'em.
pmichaud yesterday
diakopter (looking for diff/url)
oh
pmichaud essentially: my $var is context<rw> = 4; is now my $*var = 4;
moritz_ mberends: btw we'll soon have a "div' operator that does integer division, so you can get rid of most of the floor() calls anyway
diakopter ok. marking it in the name makes it much easier to implement. 13:47
ruz_ pmurias: doc/tisql/
colomon moritz_: I'm back and ready to work on this thing a bit. 13:48
jnthn pmichaud: Ah, that is rather easier.
diakopter jaffa8: a separate stack of dynamically scoped vars
dakkar wasn't '*' the twigil for globals? (I keep getting behind on the specs)
jnthn pmichaud: And in regex, :my $*var = 4 ?
pmichaud jnthn: Yes.
jnthn pmichaud: Heh. Nice. :-)
13:48 kst left
colomon Though I'm afraid my patch will have conflicts with mberends' recent. 13:48
13:48 jferrero left
moritz_ dakkar: globals and context vars were unified some time ago 13:48
pmichaud dakkar: yes, '*' was "global", but is now "contextual" 13:49
13:49 kst joined
ruz_ pmurias: no api docs at the moment, but probably you want to look at Q/C it exports functions and replace them with nice DD based things 13:49
colomon (And when I say "ready", I mean, modulo distractions by a screaming small child.)
dakkar pmichaud: did we lose direct access to globals, or something replaced it?
mberends colomon: the floor() change was minor, mainly to help you get away from int() problems reported earlier 13:50
colomon mberends: I already had a work-around, but I'm sure your way is much cleaner.
pmichaud dakkar: GLOBAL::<$var>
13:50 antiphase left
dakkar ok, good enough: people shouldn't use globals 13:51
colomon mberends++, I should have said. 13:52
rakudo: say :16<dead_beef.face>; 13:54
p6eval rakudo 4c0856: OUTPUT«3735928559␤»
jnthn pmichaud: ping 13:55
pmichaud jnthn: pong
colomon I don't understand that notation, but isn't that wrong?
rakudo: say :16<dead_beef>;
jnthn pmichaud: Regarding Parrot's CallSignature thing
p6eval rakudo 4c0856: OUTPUT«3735928559␤»
pmichaud rakudo: say :16<a.a>
moritz_ I think the . should be a decimal separator
p6eval rakudo 4c0856: ( no output )
moritz_ so it's wrong
pmichaud rakudo: say :10<3.4>; 13:56
p6eval rakudo 4c0856: OUTPUT«3␤»
jnthn pmichaud: In Perl 6 you can have multiple named parameters passed with the same name.
pmichaud looks wrong to me.
13:56 iblechbot left
jnthn pmichaud: Parrot plans to put those in a Hash, apart from it would appear that this allows one thingy per name. 13:57
pmichaud: And also, lose the ordering.
pmichaud I've said repeatedly "that's wrong" but allison++ doesn't seem to notice
jnthn *sigh*
pmichaud I want to be able to access the calling arguments directly, not intermediated through some other control structure
If a CallSignature ends up creating a Hash for every subroutine call, we're hosed. 13:58
jnthn Well, in some senses we do need a common structure to get at them from, whether they originated from PIR or C or whatever.
pmichaud the current implementation doesn't require putting the arguments into a hash 13:59
I don't see why CallSignature needs to do that
jnthn That is, you'd rather see that those were just sequences of name, value, name, value, etc?
pmichaud I'd like them to end up being Parcels
jnthn heh
pmichaud (yes, name, value, name, value) 14:00
14:00 PacoLinux joined
jnthn I think allison is rather keen on array of positionals + hash of nameds. 14:00
pmichaud right now in Parrot I think I can do: foo('a' => 3, 'a' => 4)
jnthn You can
However, it'll ignore the 3
I guess.
14:00 kidd_ joined
colomon rakudo: say :2<1.111> 14:00
p6eval rakudo 4c0856: OUTPUT«1␤»
jnthn Or at least, the binder will bind the 3 to a, and then re-bind the 4 to a.
pmichaud right, but the 'a' => 3 argument still appears in the calling arguments list 14:01
moritz_ rakudo: sub foo(*%a) { }; foo(a => 3, a => 4)
p6eval rakudo 4c0856: ( no output )
moritz_ rakudo: sub foo(*%a) { say %a.perl }; foo(a => 3, a => 4)
p6eval rakudo 4c0856: OUTPUT«{"a" => 4}␤»
jnthn pmichaud: Right.
pmichaud and a custom get_params opcode would be able to get at the calling argument if wanted
jnthn *nod*
pmichaud anyway, here's my (not well thought out) take 14:02
at this stage, I'm not sure I want to throw a lot of issues at allison; I think she'll just deflect them
so I'd rather see *something* land in a state where we can start to fix it, rather than try to point out all of the problems up front (and delay any sort of landing any further)
jnthn Aye. 14:03
colomon rakudo: say 16 ** 4
p6eval rakudo 4c0856: OUTPUT«65536␤»
pmichaud i.e., the "everything into a hash" isn't what we'll ultimately need, but it's pretty close to what Parrot is presently providing 14:04
jnthn If the Hash was replaced by a second array, that we knew was of the form "name, value, name, value, etc..." then we'd be fine.
pmichaud we can probably make that case to allison, yes.
jnthn So in that sense, it could be a relatively small change afterwards, I agree.
cognominal_ what is a :my ?
pmichaud istr there's also been some discussion about changing Perl 6's interpretation of multiple-same-named-arguments 14:05
dakkar cognominal_: variable declaration inside a regex
pmichaud so, it's all enough in flux that I'll wait for a few other pieces to land
cognominal_ I have seen that in STD but not in the specs
jnthn Sure, I'm just trying to get a sense of overall direction, and know how much I need to worry about various things. 14:06
moritz_ cognominal_: aye, it needs more specs
cognominal_ why and how should "my" be any different in rules?
jnthn Basically, so long as Parrot doesn't document that "it's a hash under the hood", we're likely fine to be able to change as needed later. 14:07
pmichaud I think we'll be able to get it changed no matter what happens :)
PerlJam cognominal_: what do you mean? 14:08
14:08 ejs1 left
jnthn True, but having to argue against giving something we didn't want in the first place a deprecation cycle would be silly. 14:08
pmichaud hopefully we'll have at least 2 months to make that argument before the deprecation cycle hits 14:09
jnthn But I agree, it's probably close enough that we can just say "land it and we'll clean up afterwards".
masak did someone report the :16<a.a> bug?
jnthn i can haz ticket? ;-) 14:10
moritz_ masak: dontthinkso
masak does it
14:11 ejs1 joined
cognominal_ Perljam, sorry, I opened STD.pm and it makes sense to me. 14:11
colomon mberends++ # His version of Temporal.t works even with the div and / swap 14:12
mberends phew ;) 14:13
colomon mberends: What a nice feeling that was! I reverted my changes to yours, and ran the test prepared to spend another twenty minutes fighting with it again... and it just worked right away! 14:14
mberends colomon++ 14:15
masak \o/
I look forward to merging those changes with my temporal-flux fork :)
14:15 SmokeMachine joined
masak ...a fork which I wouldn't mind sharing with a collaborator, by the way. 14:16
would be nice to toss some ideas around.
14:18 xinming_ is now known as xinming 14:21 jauaor joined 14:22 Psyche^ joined
masak ah. here's a better way to highlight the perceived inconsistency of different conversion methods at present: if I do $obj.say, the $obj.Str method is implicitly called. however, if I do ?$obj or $obj ?? 'foo' !! 'bar', the $obj.Bool method is _not_ called, as one might perhaps generalizingly think. instead, the $obj.true method is called. 14:22
pmichaud masak: this has been a longish discussion topic in previous months 14:23
masak: so far I haven't gotten a clear resolution
I've made the same points.
masak ISTR precious discussion, yes.
today is the first time I've been bitten by it.
I would like to see some kind of consistent rule-of-thumb around the conversion methods. 14:24
pmichaud Same here.
jnthn Same here too. 14:25
pmichaud (looking for previous discussion)
PerlJam I thought TimToady was leaning towards adverbials for that.
could be my imagination though
jnthn also remembers being in these discussions.
pmichaud ugh, no good way to search irclogs for ".true" 14:27
14:27 kst left, kst joined
pmichaud small reference at irclog.perlgeek.de/perl6/2009-06-13#i_1238313 14:28
masak well, let it be known: I, as a warrior, would like more clarification in this matter. 14:30
diakopter pmichaud: irclog.perlgeek.de/perl6/2008-11-06 14:31
pmichaud some discussion at irclog.perlgeek.de/perl6/2009-04-30#i_1107895 (possibly not latest discussion)
masak not only .true and .Bool, but also .list and .List, I'd say. 14:32
and what does .int do that .Int doesn't?
pmichaud I know the answer to the last one
.int -> coerce to native int
masak ah. 14:33
pmichaud .Int -> coerce to Int type
diakopter pmichaud: ^^ my url above... lots of .true
masak well, that does make sense.
14:33 Patterner left, Psyche^ is now known as Patterner
pmichaud diakopter: yes, thanks. I know there have been at least a few discussions of .true since 2008-11, though :) 14:33
diakopter oh :P
14:34 ejs2 joined
masak I liked what pmichaud said in 2008-11-06, though. 14:35
eliminate .true and be done with it.
also, eliminate .list
keep .int, since it actually does another type of conversion. 14:36
pmichaud I'm not sure that eliminating .list is right
.list is what we get when we put something into list context
but what it returns is not necessarily a List
masak oh, interesting.
never thought of that.
but wouldn't @() be enough?
pmichaud yes, but @() needs to transform to a method of some sort 14:37
s/needs to/ought to/
masak prefix:<@>? :)
14:37 nihiliad joined, alester joined
pmichaud nope, iirc @( ... ) is syntactic 14:37
carlin rakudo: class Foo { method bar { } }; Foo.bar("Lorem ipsum"); 14:38
p6eval rakudo 4c0856: OUTPUT«positional inside named args at position 2␤in method Foo::bar (/tmp/dktEvjVyYb:2)␤called from Main (/tmp/dktEvjVyYb:2)␤»
pmichaud from STD.pm: | <sigil> <?before '<' | '('> <postcircumfix> {*} #= $() 14:39
i.e., it's not prefix:<@> :-)
14:40 jhorwitz joined
masak oki. 14:40
14:42 JimmyZ joined
JimmyZ rakudo: (2 ** 65).say; 14:42
p6eval rakudo 4c0856: OUTPUT«3.68934881474191e+19␤»
JimmyZ rakudo: (2 ** 65).perl.say; 14:43
p6eval rakudo 4c0856: OUTPUT«3.68934881474191e+19␤»
14:44 ejs1 left 14:47 finanalyst left 14:48 __ash__ joined 14:51 _jaldhar joined
JimmyZ rakudo: (^1).perl.say; 14:52
p6eval rakudo 4c0856: OUTPUT«0..^1␤»
JimmyZ rakudo: (+^1).perl.say;
p6eval rakudo 4c0856: OUTPUT«-2␤»
pugs_svn r28157 | colomon++ | [t/spec] Check in some skipped Complex.sin tests.
14:53 meppl joined
mikehh_ rakudo (4c08564) builds on parrot r40912 - make test / make spectest (up to r28156) PASS - Ubuntu 9.04 amd64 (gcc) 14:55
14:57 Su-Shee left
masak o_O 14:58
-2?
TimToady prefix:<+^>
pmichaud rakudo: (+(^1)).perl.say
p6eval rakudo 4c0856: OUTPUT«1␤»
masak ah. 15:00
masak parsefail.
JimmyZ yes, -2
colomon moritz_, pmichaud: I just sent an updated version of the div versus / patches to perl6-bugs-followup. It still needs a bit of work on the div function, other than that it seems to work well.
15:01 asciiville left
JimmyZ masak: I don't know why. rakudo: (^1).perl.say; is 0...^1 15:01
masak JimmyZ: what TimToady said. 15:02
pmichaud JimmyZ: what are you expecting?
masak JimmyZ: +^ is a prefix operator.
pmichaud rakudo: (+ ^1).perl.say 15:03
moritz_ colomon: great. Will look into it in a while
p6eval rakudo 4c0856: OUTPUT«1␤»
JimmyZ ah, I understood as separate operator.
pmichaud rakudo: (+^ 1).perl.say
p6eval rakudo 4c0856: OUTPUT«-2␤»
colomon moritz_: And I will work on $work in the meantime. :) 15:04
JimmyZ I want to translate these spec to chinese, and upload to pugs svn.
15:04 jaldhar left
JimmyZ s/spec/specs/ 15:04
jnthn std: sub head(*[$head, @tail]) { return $head }
p6eval std 28157: OUTPUT«ok 00:03 39m␤»
jnthn std: sub head(*$head, *@tail) { return $head } 15:05
p6eval std 28157: OUTPUT«ok 00:03 39m␤»
jnthn wonders if we may consider those two equivalent.
That is, the second is syntactic sugar for the first.
moritz_ JimmyZ: there's already a start in docs/zh-cn/
pmichaud I don't think I've ever seen a *[$head, @tail] form. 15:07
jnthn std: sub compare (|$args (Num $x, Num $y --> Bool)) { ... }
p6eval std 28157: OUTPUT«ok 00:03 40m␤»
jnthn pmichaud: I wasn't expecting it to parse, actually. 15:08
pmichaud: I was kinda pondering that we'd compile it as an unpack. 15:09
pmichaud: That is, an unpack of the slurpy.
I thought *[...] was invalid.
But apparently it at least works syntactically.
JimmyZ moritz_: yes, I see it.
15:11 kst left 15:12 kst joined, cdarroch joined
JimmyZ rakudo: $_ =2; (* * *).say; # hadn't implement it? 15:17
p6eval rakudo 4c0856: OUTPUT«!whatever_closure␤»
JimmyZ rakudo: $_ =2; (* - 1).say; # hadn't implement it? 15:18
p6eval rakudo 4c0856: OUTPUT«!whatever_closure␤»
moritz_ uhm, what did you expect?
you are creating a closure, and trying to print it without executing it first
rakudo: say (* * *).WHAT 15:19
JimmyZ moritz_: it's from S02
p6eval rakudo 4c0856: OUTPUT«!whatever_closure␤»
moritz_ if it were not implemented, my starry obfu wouldn't work :-)
S02 says
so * * * translates to { $_ * $_ }.
15:20 donaldh left
moritz_ it doesn't say that it's executed immediately 15:20
15:21 donaldh joined
JimmyZ moritz_: I understood that was wrong 15:21
15:22 carlin left, mberends left
JimmyZ rakudo: (* * *).perl.say; 15:25
p6eval rakudo 4c0856: OUTPUT«{ ... }␤» 15:26
15:26 frodwith joined 15:31 JimmyZ left 15:32 payload joined 15:46 rbaumer left 15:55 zamolxes left 15:56 kst left 15:57 kst joined
masak TimToady: I can't fit my counter-reply into 140 chars. :) The principle of non-action probably applies to those who complain about colors and mascot choice. I think that might be some people's way of starting to pay attention, and that's fine by me. 15:58
15:59 takadonet left
masak As long as we give them an easy conduit from the pastel rage to the cool stuff, like grammars, junctions and parameter handling. 15:59
16:00 takadonet joined
jnthn TimToady: About? 16:00
TimToady I don't know what I'm about
masak a.k.a "if you think Camelia is the most exciting news we have for you, boy do we have news for you" :) 16:01
jnthn I wish English had a particle indicating I only expected a yes/no answer. ;-)
TimToady: I'm looking at unpacking in S06.
masak "about, eh?"
TimToady actually I was about to take a shower :)
jnthn If we consider:
oh
TimToady go ahead
jnthn ok
sub quicksort ([$pivot, *@data], $reverse?, $inplace?) {
} 16:02
TimToady yes, one mandatory, to optional
16:02 cotto joined
jnthn Here, we can basically make a temporary array @worreva and then use it like |@worreva and bind against :($pivot, *@data) 16:02
Which works out quite nicely.
TimToady *two 16:03
jnthn That is, we can just treat what's inside [...] as a nested signature. Does this fix so far with what you had in mind?
TimToady yes
jnthn OK, good. :-) So...another one:
sub traverse ( BinTree $top ( $left, $right ) ) {
}
TimToady [] just emphasizes that you're thinking of it as a list
jnthn So in here, I guess it's like we have a signature :( $left, $right ) 16:04
TimToady which is applied as an additonal constraint
jnthn *nod*
My question in this second example is, what happens if BinTree had, say, a .middle attribute too? 16:05
That is, does this signature have some implicit slurpy in it?
Or is the way we bind somehow different?
TimToady I can argue that one both ways 16:06
jnthn Because S06 seems to suggest that here, you'd unpack $left and $right (I guess :(:$left, :$right) woulda done the same) but it'd not matter if there were any other things that oculd be unpacked.
TimToady does one way make more sense to you?
jnthn I'd generally argue in the direction of consistency.
But we're already consistently inconsistent. :-)
TimToady well, yes, consistent with what? 16:07
jnthn (e.g. a method will by default get a *%_ unless it has a *%something)
TimToady but we can't assume *%_ in more than one subsig
16:07 ruoso left
jnthn I'm not sure I follow why? 16:07
TimToady name conflict 16:08
like sub foo ($a, $a)
so I think if we want generic code we should probably force people to write their own *%foo *%bar
jnthn OK, so when you have a subsignature, the binding of its parent signature is dependent on the binding of the subsignature in some deeper way? 16:09
That is, other than "here is the hash/array/object that we need to unpack, use this to unpack it")?
TimToady well, the overall binding fails if the subbinding fails
jnthn Right, that makes sense.
Actually, the one that is really confusing me is:
multi traverse ( NAry $top ( :kids [$eldest, *@siblings] ) ) { 16:10
And this call to it
traverse(:kids(@siblings)); # (binds @siblings to $top)
TimToady that seems kinda bogus
jnthn That is, binding can't just say "OK, I have an NAry, now I hand it off to the subsignature to unpack"
I'd really love it to be. 16:11
TimToady but I'll have to think about it more
jnthn OK, that's fine, I'm not in a hurry.
pmichaud TimToady: let us know when you start running out of things to be thinking about :)
16:11 kidd_ left
jnthn Anyway, that and the "do you have to write *%foo in there" are probably my most pressing questions. 16:12
TimToady rub it in, why dontcha
jnthn I'd really kinda like it if the binding of a signature could treat a sub-signature as a black box.
TimToady I'd say yes on *%foo for now
pmichaud TimToady: I just want to make sure you know how much we value your input :) :)
jnthn OK
TimToady the underlying question is the extent to which the subsignature can coerce different kinds of objects to look like a Capture 16:13
jnthn I can see your point on the naming conflict with *%_ by the way - was a tad slow there. :-)
Well, yes.
And with a hash and an array that's not so hard.
16:13 kidd_ joined
jnthn Because we already define that. 16:13
But for an object it's a bit more interesting.
TimToady maybe only for types that define a method defining coercion to Capture 16:14
jnthn Do you see |%hash as being like Capture(%hash) and thus %hash.Capture, BTW?
TimToady does that sound sane?
jnthn Well, hmm 16:15
TimToady are you meaning | as rvalue?
jnthn It'd be nice if you could unpack without having to worry about writing said coercion.
TimToady or as decl?
jnthn The first
foo(|%foo)
erm, too much foo :-)
(I know it means something different inside a signature.) 16:16
I think coerce to capture sounds like a clean design overall though.
TimToady not sure, might be mediated through Parcel first before turning into Capture, but I could be wrong
jnthn I've not really grokked the relationship between those yet. 16:17
TimToady well, the Capture coercion might be deducable for some types
but we'll have to define that, if so
jnthn I figure that you can only for attributes unpack things with accessors anyway, otherwise encapsulation is broken.
TimToady for now we can say there has to be an explicit Capture coercion, or fail
jnthn We can certainly define it in terms of introspection.
TimToady yes, esp with mapping attrnames to named params 16:18
jnthn Aye
TimToady some amount of dwim might be useful there
jnthn Well, plus it's something we can just define in Object (or Any).
16:18 KyleHa joined
jnthn And can define in terms of primitives we already have. 16:18
TimToady but I'll not be disappointed if it's not in 6.0.0
mostly just need to have a story on tree matching patterns 16:19
jnthn I'm going to be dealing with unpacking when I re-do signatures, which will be Oct/Nov. :-)
Thus why I'm starting to think about this now.
TimToady okay. I'm starting to think about taking a shower. :)
jnthn :-)
Thanks for the input, I've got a decent sense of where things are likely head now. 16:20
*heading
pugs_svn r28158 | fglock++ | mp6 - updated mp6-rakudo
TimToady bbl &
pugs_svn r28159 | fglock++ | mp6 - mp6-p6parrot.pl is now mp6-rakudo.pl 16:21
16:24 molaf joined 16:31 masak left 16:35 kst left 16:36 kst joined 16:38 robertttt joined 16:39 ejs2 left
moritz_ colomon: is the current version of your patch in RT? 16:39
colomon I e-mailed it, but I don't know if it got there. 16:45
The current e-mail has four files attached, I believe.
It doesn't look like it is. Arrrgh. 16:49
I get the impression RT is horribly clunky? 16:50
If you send me an e-mail (at the address those patches were sent from) I will send you the latest directly.
16:51 DanielC left 17:01 M_o_C left
moritz_ colomon: [email@hidden.address] 17:01
quietfanatic By the way, floor() is not the same as int() 17:02
The latter ought to be truncate() I think, according to spec... 17:03
moritz_ aye
quietfanatic rakudo: truncate(5/3)
p6eval rakudo 4c0856: ( no output )
quietfanatic rakudo: truncate(-5/3)
p6eval rakudo 4c0856: ( no output )
moritz_ but in this case they were equivalent 17:04
quietfanatic rakudo: say truncate(-5/3)
p6eval rakudo 4c0856: OUTPUT«-1␤»
quietfanatic Oh, okay
say floor(-5/3)
rakudo: say floor(-5/3)
p6eval rakudo 4c0856: OUTPUT«-2␤»
colomon yes, I'm hoping the time doesn't go negative... 17:05
;)
quietfanatic That'd be bad in all sorts of ways.
17:05 maerzhase1 joined 17:06 __ash__ left 17:07 gbacon left, iblechbot joined 17:08 robertttt left 17:12 eMaX left 17:14 justatheory joined 17:15 Hashwolf joined
moritz_ colomon: the patches you sent by mail seem to be based upon older patches - the question is which one(s)? 17:16
colomon: if you could nopaste the first 6 or 7 items from 'git log' that would help 17:17
jnthn Is there a large version of the Rakudo logo somewhere? 17:18
colomon moritz_: I think 0001 is probably identical to the first patch sent, 0002 from my second e-mail, and 0004 mostly (entirely?) your patch.
jnthn has hunted high and low on rakudo.org 17:19
lisppaste3 colomon pasted "local git log" at paste.lisp.org/display/86376
colomon The ".sin and .cos methods for Complex." is the one I didn't send along. 17:20
moritz_ yes
the 0001 you sent me is Fix-Rat.perl etc., so I'll need to get the previous one from RT
man, we should just give you commit access 17:21
or clone, and branch
17:22 Hashwolf left
colomon I'd be happy to branch in github and push the changes to it... think I can I figure out how to apply the patches again on my end. 17:23
moritz_ that would be great
colomon I guess clone / branch -- not quite down with the lingo yet. :)
Okay, let me see what I can do...
17:24 somberes joined, __ash__ joined
moritz_ ok, mberend++'s patch to Temporal.pm conflicted with your first patch 17:24
so I branched off locally from before that point 17:25
17:25 kst left
colomon So should I branch from yours? 17:25
17:26 kst joined
colomon Or is locally actually on your machine? 17:26
Fork! Fork is the word I wanted. ;)
jnthn language! ;-) 17:27
moritz_ ok, I just pushed the branch div-slash-changes to github
17:29 DanielC joined
colomon moritz_: Found it on github. Should I fork that, then? 17:30
moritz_ colomon: dunno, maybe just wait. If the spectests are positive (except for arith.t) I'll merge or rebase, resolve the conflict and be happy 17:31
colomon moritz_: okay, waiting.
__ash__ anyone getting this error when they build? Malformed declaration at line 976, near "Rat multi " 17:37
moritz_ not 17:38
17:40 sahadev2 joined
colomon Is there a recommended git book? I see "Pragmatic Version Control with" which would match my old Subversion book, but I also see an O'Reilly book, and I've trusted them ever since I first read the Camel book... 17:40
somberes i'd know for svn
not for git though
moritz_ colomon: I can recommend ftp.newartisans.com/pub/git.from.bottom.up.pdf + the manual pages ;-) 17:41
literal progit.org/book/
this is a recent one
written by one of the developers, I think
17:42 jaffa8 left
literal I think this site links to pretty much all you need to know about git(including the book above): gitready.com/ 17:42
17:42 jaffa8 joined
__ash__ hmm.... i just did a git pull then make and its failing to build, did a distclean and reconfigured and it still failed 17:42
PerlJam __ash__: what rev? 17:44
__ash__ git commit 4c08564108f7aaab568b72e1efa3d6b222cde837
specifically: /Users/john/Projects/rakudo/parrot_install/bin/parrot perl6_s1.pbc --target=pir src/gen_setting.pm > src/gen_setting.pir is what fails 17:45
PerlJam mine is doing that right now.
and it looks like it didn't fail.
moritz_ __ash__: the error seems to be related to Rat stuff, which is going to get changed in 20 minutes anyway
__ash__ okay, never mind then, i'll wait and see 17:46
moritz_ __ash__: so maybe wait a bit more, maybe the changes-to-come will fix your problem magically. If not, feel free to bother again ;-)
colomon moritz_++, literal++ # even though neither is a hardcopy that I can easily read away from the computer over the holiday weekend :) 17:55
moritz_ is_approx(1i, (-1+0i)**(1 div 2), '...') 17:56
"not quite"
17:57 gbacon joined
colomon :O 17:57
Where is that one?
moritz_ anyway, that's easily fixed
arith.t
colomon ah, I see. I was a bit too fast with the cut and paste there. 17:58
I mean search and replace.
would be interesting to just make it **(1 / 2) -- in the long run that should work.... 17:59
moritz_ colomon: any objections to squashing those four commits into one before pushing?
colomon moritz_: Not at all! 18:00
I don't know how to squash commits yet.
moritz_ dammit, I broke it :/ 18:01
history rewriting should only be done by those who can work with it ;-)
colomon Woah, Pro Git is on-line and printed. Spiffy. 18:02
pugs_svn r28160 | lwall++ | [S32] clean up some numeric spec fossils 18:04
PerlJam colomon: do you know about the R operator prefix? 18:05
colomon PerlJam: Errrr... reverses list operators?
PerlJam $a R* $b is the same as $b * $a
colomon: Just a random though, but you could use it in defining the dual (Int,Rat) (Rat,Int) (i.e., just define one of those and then do $a R<op> $b for the other 18:07
colomon Yes, yes you could. Fascinating... ;)
I shouldn't be making changes until the big merge is done, though. 18:08
18:10 __ash___ joined 18:11 __ash___ left
moritz_ I think I've sorted it all out. Just a large build + Temoporal.t test... 18:11
18:11 kst left 18:12 kst joined
TimToady but using R* involves an indirection, which is why we defined multisigs (Int,Rat)|(Rat,Int) that use the same body 18:12
colomon Just ordered Pro Git. And my wife started making bad jokes about the name right away.
TimToady: Do tell more? 18:13
moritz_ colomon: NYI in rakudo
colomon Blast! 18:14
But sounds like a nice concept, anyway.
moritz_ from the past!
pmichaud jnthn: (rakudo logo) ... how large, what format? 18:15
TimToady std: multi infix:<*> (Rat $x, Int $y) | (Int $y, Rat $x) { ... }
p6eval std 28159: OUTPUT«ok 00:03 40m␤»
18:16 eternaleye joined
TimToady gah, still haven't finished backlogging *yesterday's* backlog 18:16
PerlJam my goal was to corrupt colomon with knowledge and it looks like I accidently succeeded beyond my expectations :) 18:17
pmichaud rakudo: (<1 2 3>.join ' ').say 18:18
colomon TimToady++ # very cool syntax for something I've needed to do a zillion times.
p6eval rakudo 4c0856: OUTPUT«Confused at line 2, near "' ').say"␤in Main (src/gen_setting.pm:3454)␤»
pmichaud (just checking.)
colomon PerlJam++ # for accidentally improved corruption.
TimToady rakudo: <1 2 3>.Str.say
pmichaud "Perl 6 allows you to corrupt things beyond your expectations."
p6eval rakudo 4c0856: OUTPUT«1 2 3␤» 18:19
pmichaud Ummm. or something like that.
TimToady std: (<1 2 3>.join ' ').say
p6eval std 28159: OUTPUT«===SORRY!===␤Two terms in a row at /tmp/0uTXiVU1OB line 1:␤------> (<1 2 3>.join ⏏' ').say␤ expecting any of:␤ bracketed infix␤ infix stopper␤ standard stopper␤ statement modifier loop␤ terminator␤FAILED 00:02 37m␤»
moritz_ STD.pm's errors are more awesome ;-)
pmichaud agreed 18:20
TimToady well, but at least parrots says where it's confused
*parrot
dalek kudo: 39c3f4b | (Solomon Foster)++ | (5 files):
infix:</>(Int, Int) creates a Rat, infix:<div>(Int, Int) an Int, as per latest S03

Fix Rat.perl to return "N/M" rather than "Rat.new(N,M)". Switch GCD routine to use % instead of -, for a vast performance increase on widely mismatched numbers. Add Rat * Int, Int * Rat, Rat / Int, and Int / Rat overloads. Patch mostly by colomon++, with some minor contributions and cleanups by moritz See RT #68898 for discussion.
18:21
kudo: 4b9cd2d | moritz++ | docs/ChangeLog:
[docs] ChangeLog updates
colomon moritz_++ indeed!
pugs_svn r28161 | moritz++ | [t/spec] correct meaning of infix:<div> and infix:</>. Patch courtesy (mostly) by colomon++ 18:22
moritz_ I think it's a good sign that these changes made Temporal.pm more elegant ;-) 18:23
18:23 rindolf joined
rindolf Hi all. 18:23
pmichaud I don't think that infix:<div> and infix:<mod> need to be added to gen_metaop_pir.pl in order to work 18:24
I might be mistaken, but I think that once an operator is in the setting the metaops are generated automagically for them.
colomon moritz_: Yes, that's always a good sign.
moritz_ pmichaud: without it >>div<< gave parse errors
pmichaud although the 0-argument forms might not be
18:24 frederico joined
pmichaud okay, I'll look into that. 18:24
colomon The unicode form of >>div<< worked, however, which definitely had me puzzled. 18:25
pmichaud right, that means there's a bug in the gen_hyperop subroutine in Rakudo then
moritz_ is curious how much fallout his latest patch will cause in various apps 18:28
s/his/our/
colomon moritz_: If anything doesn't work, blame TimToady. ;) 18:29
TimToady "I am too soon old, and too late smart"
colomon Error validating server certificate for 'svn.parrot.org:443': 18:30
- The certificate is not issued by a trusted authority. Use the
fingerprint to validate the certificate manually!
I don't remember getting that message previously?
moritz_ colomon: it's pretty new, and known to the parrot folks
colomon K.
pmichaud parrot's certificate expired this past week 18:31
18:31 __ash__ left, ispy_ joined
moritz_ moritz.faui2k3.org/tmp/out.svg that's what rakudo does to my poor SVG::Plot module ;-) 18:32
(notice the y axis labels on the left)
colomon :) 18:33
pmichaud I don't mind if .Str omits the /1 for cases where the denominator is 1 18:34
moritz_ that's a good idea, actually
colomon I'd be happy to make that change as soon as I've got the new build up and running.
Agreed that it is a good idea. 18:35
Errr... but only for .Str, right? .perl should still be "N/1". 18:37
pmichaud correct 18:38
we want to preserve Rat status with .perl
18:39 Tene joined 18:41 ispy_1 joined, FCO joined
moritz_ I wouldn't be opposed to makeing .Str the equivalent of .Num.Str 18:41
that would imply the least breakage for existing code 18:42
pmichaud I want to know what the spec will say on the topic, and do that.
moritz_ although it looks hackis
h
pmichaud aha 18:43
the problem with >>div<< versus »div« appears to have something to do with prior invocations of the hyperop
rakudo: multi sub infix:<xyz>($a,$b) { $a+$b }; say (1,2,3) >>xyz<< (4,5,6); say (1,2,3) >>xyz<< (4,5,6); 18:44
p6eval rakudo 4c0856: OUTPUT«579␤ResizablePMCArray: Can't pop from an empty array!␤in Main (/tmp/c5nhEEMkCp:2)␤»
TimToady I think Str should be .Num.Str
use .perl to get the rat back out 18:45
jnthn pmichaud: huh?! :-/
jnthn wonders what on earth could cause a bug like that
pmichaud I don't know either
colomon rakudo: multi sub infix:<xyz>($a,$b) { $a+$b }; say (1,2,3) >>xyz<< (4,5,6);
jnthn rakudo: multi sub infix:<xyz>($a,$b) { $a+$b }; sub foo{ say (1,2,3) >>xyz<< (4,5,6); say (1,2,3) >>xyz<< (4,5,6); }; say "alive"
p6eval rakudo 4c0856: OUTPUT«579␤» 18:46
rakudo 4c0856: OUTPUT«alive␤»
pmichaud TimToady: so ~(1/3) would output "0.333333" ?
jnthn Ah, certainly not a parse error then.
:-/
frettled phew :)
TimToady yes, I don't think people want to see rats accidentally :)
pmichaud jnthn: no, it's an invocation error. in my earlier example it did execute once
moritz_ TimToady: ok, I'll implement that. 18:47
pmichaud it's only the second invocation that fails
jnthn pmichaud: ah, yes, I missed that
TimToady and in the case of /10 it comes out exact anyway
jnthn epic wtf
colomon moritz_: It will break many (all?) of the rat.t tests, I think.
pmichaud colomon: I would hope not
pmichaud checks rat.t
frettled TimToady: there's (almost) too much -Ofun with rats.
moritz_ colomon: I'll take a look. If it does, the tests are not very good
ui 18:48
pmichaud oh yes, the tests are testing for strings
colomon pmichaud: Tests are based on .Str being a fraction, I think.
TimToady well, that's bad, I think, from a usability point of view
colomon I mean, easy enough to switch to the .perl form for them.
pmichaud colomon: it depends on what aspect you're testing
moritz_ rakudo: say Rat.new(2, 3) == 2 / 3
p6eval rakudo 4c0856: OUTPUT«1␤»
pmichaud if you're testing stringification, you should test for strings
if you're testing .perl, you test .perl
moritz_ colomon: beware, the .perl function is not canonical
pmichaud so the real question is.... what is the test attempting to test? 18:49
moritz_ for example "Rat.new(2, 3)" is an allowed outcome
frettled rakudo: multi sub infix:<xyz>($a,$b) { $a+$b }; say (1,2,3) >>xyz<< (4,5,6); say (1,2,3) »xyz« (4,5,6);
p6eval rakudo 4c0856: OUTPUT«579␤ResizablePMCArray: Can't pop from an empty array!␤in Main (/tmp/ei9wrvYltJ:2)␤»
frettled aha
rakudo: multi sub infix:<xyz>($a,$b) { $a+$b }; say (1,2,3) »xyz« (4,5,6); say (1,2,3) »xyz« (4,5,6);
18:49 sharada left
TimToady (2/3).nd returns 2 elems maybe? 18:49
p6eval rakudo 4c0856: OUTPUT«579␤ResizablePMCArray: Can't pop from an empty array!␤in Main (/tmp/SREHnWW2DM:2)␤»
18:49 sharada joined
frettled aha² 18:50
pmichaud ".nd" reminds me a bit of :nd
TimToady was thinking more of .kv
pmichaud right
colomon You can certainly test that the numerator and denominator are correct.
But that's a lot more verbose, for sure...
pmichaud I first saw it as (2).nd
TimToady so combining .nu and .de would give use .nude 18:51
frettled /o\
jnthn want
;-)
frettled Nude Klingon Perl 6
I see a talk coming up. 18:52
TimToady I think /o\ looks like an orz head-on
frettled expn orz?
pmichaud here it looks a bit like a lamp shade
TimToady it doesn't expn
it's a pic
pmichaud or like someone has put his hands over his head
frettled pmichaud++
TimToady orz is a guy bowing down to the left and banging head on floor 18:53
pmichaud I'd be find with Rat.nd for now
*fine
colomon Do we have == for Rat yet? 18:54
moritz_ rakudo: say 2/3 == 4/6
p6eval rakudo 4b9cd2: OUTPUT«1␤»
frettled TimToady: ah, like _/\o
colomon Aren't 2/3 and 4/6 not Rats? 18:55
pmichaud they're rats
colomon rakudo: say 2 / 3 == 4 / 6
p6eval rakudo 4b9cd2: ( no output )
18:55 zamolxes joined
pmichaud rakudo should be numifying each value and comparing that 18:55
colomon rakudo: say (2 / 3) == (4 / 6)
p6eval rakudo 4b9cd2: OUTPUT«1␤»
colomon Ah.
I suppose if they the same num and den, they will map to the same Num, yes? 18:56
pmichaud supposedly
moritz_ aye
colomon Worthwhile for "efficiency" to overload anyway? Is overloading == even possible at the moment? 18:57
frettled rakudo: say (4/2 / 6/2) # Is this 4/2/6/2 or (4/2) / (6/2)? 18:58
p6eval rakudo 4b9cd2: OUTPUT«1/6␤»
frettled yay
colomon 4/2/6/2, eh?
frettled :) 18:59
pmichaud rakudo is likely wrong there.
I suspect that should be 2/3
frettled is the rat supposed to have lower precedence?
pmichaud rakudo: say ((4/2) / (6/2))
p6eval rakudo 4b9cd2: OUTPUT«2/3␤»
pmichaud rats are terms
18:59 ispy_ left
frettled the rat division, even. 18:59
pmichaud 4/2 is a term, 4 / 2 is a division
colomon What about 4 / 2 / 6?
pmichaud 4 / 2 / 6 is the same as 4 * 1/2 * 1/6 19:00
frettled rakudo: say 4 / 2 / 6
p6eval rakudo 4b9cd2: OUTPUT«1/3␤»
pmichaud oh, wait
19:00 SmokeMachine left
pmichaud right, it'd be (4 / 2) / 6 19:00
colomon but why should you prefer that to 4 / (2 / 6)?
frettled rakudo: say 4 / 2 / 6 / 2
pmichaud because division is left associative
p6eval rakudo 4b9cd2: OUTPUT«1/6␤»
TimToady but yes, 4/2 is a Rat literal 19:01
at least according to STD
pmichaud in perl5, 4 / 2 / 6 gives me 0.333333333333333333
frettled Cool. Yet another thing for obfuscated Perl 6 coding contests. Muahahaha.
pmichaud Rakudo just does the same :)
TimToady likewise 1+2i is supposed to be a complex literal 19:03
looks like S02 is deficient in stating that
pmichaud also, we noticed yesterday that S05 doesn't have :my 19:04
TimToady nodnod
moritz_ isn't it ':'\w .*? ';' being a Perl expression?
modulo one-pass parsing
TimToady no 19:05
frettled TimToady: oh, right, that was that complex number spec thingy that I was supposed to come up with a proposal for.
TimToady moritz_: but I'm not quite sure what you're really asking 19:06
pugs_svn r28162 | colomon++ | [t/spec] Fixed dead_beef.face, prior version relied on div of two integers producing a fractional number. 19:07
moritz_ TimToady: I thought that under some circumstances ':' in regexes allow inline Perl 6 code
arbitrary code, that is
colomon moritz_: Are you working on cleaning up rat.t, or would you like me to do that (now that I've spectest'd my shiny new rakudo clone)?
TimToady colomon: it's kinda fun to stir the ant nest and see all the ants scurrying around :) 19:08
moritz_ colomon: I'm currently rather distracted, so feel free
TimToady moritz_: oh, that, yes; sorry I dropped the context on the floor
but I think the \w must be a known declarator 19:09
19:10 ispy_ joined
TimToady (one can always use a :my ($) = side_effect; where the declaration is just a peg for the init.) 19:10
in fact, I was very happy when I figured out that one could use a null record for that in Ada
(to have side effects during elaboration) 19:12
19:14 ispy_1 left
colomon rakudo: say 4/5; 19:16
p6eval rakudo 4b9cd2: OUTPUT«4/5␤»
moritz_ rakudo: say -4/-5
p6eval rakudo 4b9cd2: OUTPUT«4/5␤»
19:20 donaldh left, donaldh joined
colomon Okay, if I implement Rat.nude, what's the cleanest way to check that two arrays match in Test.pm? 19:22
Rat.new(1,4).nude.perl eq (1,4).perl ? 19:23
moritz_ is_deeply Rat.new(1,4), [1, 4], 'description';
colomon you mean s_deeply Rat.new(1,4).nude [1, 4], 'description'; right? 19:24
s/s/is/
moritz_ yes
but with a comma added ;-)
colomon gotcha
19:25 r0bby left
pmichaud is Rat.new(1,4).nude, (1,4), 'description' is what I'd be after 19:29
colomon why the differences? 19:30
pmichaud I don't think we need is_deeply here. we're just testing equivalence of two immutable lists
colomon and as long as I've got you there, why $!numerator instead of $.numerator in Str?
Rat.Str, I mean.
moritz_ pmichaud is right 19:31
pmichaud in .Str I was avoiding the method call
but I agree with TimToady++ that Rat.Str should forward to Num.Str
colomon Right, I just wanted to make sure it was okay if I used $.numerator elsewhere in the class def. 19:32
pmichaud sure, it's fine. It does impose an extra method call at the moment
jaffa8 God++
++++
pmichaud we'd want to use $.numerator if we think Rat will be used in another class composition where .numerator might be overloaded, though :) 19:33
19:33 maerzhase1 left
lisppaste3 colomon pasted "Rejiggered rat.t" at paste.lisp.org/display/86387 19:33
colomon Can you guys take a quick look at that and make sure it looks reasonable to you? 19:34
pmichaud +1
19:36 maerzhase joined
moritz_ colomon: in the first few cases I'd make the second argument to is() a string literal 19:37
pmichaud that's fine with me also
colomon moritz_: I didn't do that because I don't want to lock in a particular way of stringifying the number
moritz_ colomon: the prepend at least a ~
pmichaud I'd put ~ in front of the second argument 19:38
colomon Okay, can do.
moritz_ I don't think it makes much of a difference, but testing a stringification against a string seems much saner ;-)
pmichaud then you know that you're making sure they stringify ..... what moritz++ types faster than me
colomon Fair enough!
is(~(Rat.new(1,4)), ~(0.25), "Rats stringify properly"); 19:39
etc.
19:39 kst left
moritz_ +1 19:39
19:40 kst joined
colomon multi method nude() { [$.numerator, $.denominator]; } 19:40
Is that okay? I'm never sure about returning arrays...
moritz_ I'd try without the brackets first
colomon (It does work, all the new tests pass now.)
moritz_ so that 'for Rat.new(2, 3).nude { .say }' prints two lines 19:41
colomon I mean, it works with brackets, trying without now.
moritz_ that's how I understood it, yes ;-)
19:42 maerzhase left
colomon Ah, yup, works without brackets too. moritz_++ 19:42
19:42 maerzhase joined 19:45 eternaleye_ joined 19:46 eternaleye left, hugme left, hugme joined
moritz_ hugme: show json 19:47
hugme moritz_: the following people have power over 'json': masak, moritz_, viklund
moritz_ hugme now with more introspection[tm]
jnthn hugme: hug me
hugme hugs me
jnthn aww 19:48
frettled hugme: show up
hugme frettled: sorry, I don't know anything about 'up'
TimToady eliza was smarter than that
frettled bah :)
TimToady: yup :)
19:48 icwiener joined 19:49 [1]jaffa8 joined
TimToady or maybe hugme is a creature out of Babel-17 19:49
19:49 kidd_ left 19:50 hugme left, hugme joined
moritz_ hugme: hug me 19:50
hugme hugs moritz_
moritz_ better? ;-)
TimToady hugme: hug yourself
hugme hugs yourself
frettled haha
hugme: hug hugme
hugme hugs hugme
frettled hugme: hug hugme hugs hugme 19:51
hugme hugs hugme
19:51 kidd_ joined
TimToady hugme, hug metoo 19:51
hugme hugs metoo
TimToady just testing :)
frettled hugme, hug ¹²³ 19:52
hugme hugs ¹²³
lisppaste3 colomon annotated #86387 "Rejigger rat.t, take 2" at paste.lisp.org/display/86387#1 19:55
rindolf hugme: hug TimToady 19:56
hugme hugs TimToady
moritz_ colomon: +1
19:56 FCO left
rindolf There was something about a blogger putting "Everyone needs a hug." in his blog comment form by default, and reducing the amount of trolls considerably. 19:57
frettled haha 19:58
that's a good one
[1]jaffa8 hugme􏿽xC9 hug frettled
hugme: hug frettled
hugme hugs frettled
arnsholt rindolf: I am definitely stealing that idea! =D
diakopter hugme: hug gmail
hugme hugs gmail
rindolf arnsholt: it's yours!
arnsholt Yeah, gmail looks like it needs a hug 19:59
[1]jaffa8 hugme: hug perl6
hugme hugs perl6
TimToady hugme, hug Camelia gently
hugme hugs Camelia
diakopter hugme: hug hugs hugs hugs hugs hugs hugs hugs hugs
hugme hugs hugs
moritz_ stops pointing out that hugme also has a serious function
but since I wrote it nobody has asked for commit access to perl6-examples :) 20:00
TimToady we're all too busy hugging the bikeshed 20:01
[1]jaffa8 What serious function_ 20:02
?
moritz_ [1]jaffa8: adding contributors to github projects
[1]jaffa8 What github projects? 20:03
moritz_ hugme: list projects
hugme moritz_: I know about these projects: json, perl6-examples, proto, svg-matchdumper, svg-plot, tufte
20:04 mr_ank joined
[1]jaffa8 you mean perl6 related projects 20:04
moritz_ currently, yes
frettled hugme: hug [1]jaffa8
hugme hugs [1]jaffa8
[1]jaffa8 maybe I can spare a small time to create an example 20:05
frettled hugme: show perl6-examples
hugme frettled: the following people have power over 'perl6-examples': TimToady, [particle], masak, moritz_, pmichaud
frettled hugme: show proto
hugme frettled: the following people have power over 'proto': TimToady, [particle], masak, moritz_, pmichaud
moritz_ I can add more people to these lists on demand
[1]jaffa8 What examples are left to do?
TimToady boggles 20:06
moritz_ the only requirement is that they have to be registered with freenode
20:06 jaffa8 left, [1]jaffa8 is now known as jaffa8
jaffa8 is it automatic_ 20:06
20:06 eternaleye_ left
jaffa8 ? 20:06
moritz_ if it were manual, I wouldn't have written a bot for it. 20:07
20:07 eternaleye joined
TimToady hugme, hug all the unwritten examples of the world 20:07
hugme hugs all the unwritten examples of the world
frettled TimToady: hee-hee, nicely caught
moritz_ that would have been my recommended workaround too ;-) 20:08
frettled hugme, hug Camelia warmly
hugme hugs Camelia
jaffa8 So can I log in?
frettled hmm, didn't that have the correct nbsp? hm.
moritz_ hugme: hug Camelia warmly
hugme hugs Camelia warmly
jaffa8 what about the password? 20:09
IS it the same as here?
frettled jaffa8: In case you don't already know: github.com/perl6/perl6-examples/tree/master 20:10
20:11 perl7 joined, mr_ank left
colomon rakudo: say 2 / .666666 20:13
20:13 hercynium joined
p6eval rakudo 4b9cd2: OUTPUT«3.000003000003␤» 20:13
colomon rakudo: say 2 / (2 / 3) 20:14
p6eval rakudo 4b9cd2: OUTPUT«3/4␤»
colomon whoops.
frettled wow
colomon nah, it's just a bug of mine.
20:14 SmokeMachine joined
frettled oh, because of the div - / change? 20:14
colomon Well, because of writing that portion of Rat. 20:15
20:15 donaldh_ joined
colomon but the change is why 2 / 3 is a Rat. 20:15
20:15 maerzhase left 20:16 donaldh_ left
colomon Admit it seems very very crazy that code I wrote is in the p6eval. 20:16
20:16 donaldh_ joined
colomon Ah, found the bug. 20:17
20:17 kst left
frettled ? 20:17
20:17 kst joined
moritz_ multi sub infix:</>(Int $a, Rat $b) { Rat.new($b.denominator, $a * $b.numerator); 20:18
}
that should be Rat.new($b.denominator * $a, $b.numerator)
colomon Right!
I wasn't finding it because I kept on looking at denominator and numerator to see what was wrong.
It was the very last test I was going to add today. 20:19
The previous test for that operator was wrong in the exact way needed to hide the bug. :) 20:20
20:20 jaffa8 is now known as jaffa4
colomon When I added a new test the problem was obvious. 20:20
20:20 jaffa4 is now known as [1]jaffa 20:21 donaldh_ left
frettled Thanks, I think I just might have learned something tonight, too. 20:22
colomon I'm pondering adding a bunch of tests that just compare the results you get with Rat with the Num versions....
moritz_ sure, good idea
20:22 [1]jaffa is now known as jaffa4
dalek kudo: 0d6c42b | moritz++ | src/setting/Rat.pm:
fix infix:</>(Int, Rat)
20:23
20:23 jaffa4 is now known as aftershock4
colomon Oh ick, now I'll have to figure out how to merge your patch and mine. :) 20:24
moritz_ sorry :/ 20:25
colomon: git pull --rebase
colomon moritz_++
20:26 aftershock4 is now known as jaffa4 20:27 jaffa4 is now known as aftershock4
colomon Took a little fiddling, but that did it. 20:28
aftershock4 Why github? 20:31
Why not something else?
moritz_ aftershock4: because the projects that we are interested in live on github 20:32
s/we/I/ maybe
colomon say (1/2 2/3 -1/4 4/5 2/7 65/8).perl 20:34
rakudo: say (1/2 2/3 -1/4 4/5 2/7 65/8).perl 20:35
p6eval rakudo 4b9cd2: OUTPUT«Confused at line 2, near "2/3 -1/4 4"␤in Main (src/gen_setting.pm:3454)␤»
colomon rakudo: say (1/2 2/3 (-1/4) 4/5 2/7 65/8).perl
p6eval rakudo 4b9cd2: OUTPUT«Confused at line 2, near "2/3 (-1/4)"␤in Main (src/gen_setting.pm:3454)␤»
moritz_ rakudo: say (1/2, 2/3, -1/4, 4/5, 2/7, 65/8).perl
p6eval rakudo 4b9cd2: OUTPUT«[1/2, 2/3, -1/4, 4/5, 2/7, 65/8]␤»
moritz_ you need some kind of operator between them 20:36
colomon moritz_++
Wow, that added 190 working Rat tests pretty quickly. 20:37
20:39 gabiruh left
aftershock4 I have already something in perl 6 examples 20:39
20:40 eternaleye left
aftershock4 moritz_,I have already something in perl 6 examples 20:41
moritz_ nice
aftershock4: do you need commit access? 20:42
20:42 eternaleye joined
aftershock4 give me one 20:43
20:43 frederico left
aftershock4 i have an account as jaffa4 there. 20:43
moritz_ hugme: add jaffa4 to perl6-examples 20:44
hugme moritz_: successfully added jaffa4 to perl6-examples
moritz_ aftershock4: welcome! Be kind, and have the appropriate amount of fun 20:45
aftershock4 Be kind?
what do you mean?
It is not possible to talk in github.
moritz_ don't delete other people's stuff, don't break their code 20:46
aftershock4 what is fun? 20:47
moritz_ hugme: add carlins to perl6-examples
hugme moritz_: successfully added carlins to perl6-examples
moritz_ hugme: add szbalint to perl6-examples
hugme moritz_: successfully added szbalint to perl6-examples
moritz_ szbalint: I found that you were forking perl6-examples on github - now you're a committer and push your stuff directly 20:48
(I just merged your changes BTW) 20:54
hugme: add Util to perl6-examples
hugme moritz_: successfully added Util to perl6-examples
colomon moritz_: I've got my patches ready for Rat, but gmail is on the fritz, alas.
pmichaud hugme: hug moritz_ 20:55
hugme hugs moritz_
aftershock4 Is it true? there is no %, any more.
TimToady S03:748 20:56
20:58 kst left, kst joined
aftershock4 What is 748? 21:00
TimToady line # 21:01
you can view the pods directly, or go to the irclog site and click on that, which turns into link
frettled «Mr. Jaffa? Important call on line number 748.» ;)
21:01 M_o_C joined
moritz_ aftershock4: if you look at the IRC logs (link in the channel topic), the S03:748 is a link to the correct line in S03 21:02
colomon What's the rakudobug e-mail address? I'm helpless without gmail to handle my address book.... ;) 21:03
aftershock4 I usually use the html eversion
21:03 aftershock4 is now known as jaffa4
moritz_ colomon: [email@hidden.address] 21:03
colomon moritz_++ # trying to get pine to send in this patch for me on my backup e-mail account 21:04
21:07 r0bby joined
colomon Okay, with any luck that worked. 21:07
#68926 21:08
21:11 jhorwitz left, Chillance joined 21:12 molaf left, sharada left 21:16 ispy_ left 21:20 r0bby left 21:32 eternaleye left
pugs_svn r28163 | moritz++ | [t/spec] completely overhaul Rat tests, patch courtesy by colomon++ 21:35
r28164 | moritz++ | [t/spec] more diagnosis output in rat.t
r28165 | moritz++ | [t/spec] fix Rat stringification in num.t
colomon moritz_++ # gack, I forgot to check the spectest after the changes! 21:37
21:38 jaffa4 left
dalek kudo: ba10463 | [email@hidden.address] | src/setting/Rat.pm:
Move Rat.Str to new standard, add Rat.nude.
21:38
21:39 tak11 joined 21:45 tak11 left 21:47 tak11 joined, r0bby joined, kst left 21:48 kst joined 21:49 perl7 left 21:50 pmurias left 21:53 KyleHa left 21:55 masak joined
masak blog post ahoy! use.perl.org/~masak/journal/39568 21:56
frettled uhoh ;)
moritz_ masak++ 21:58
masak the first blog post that I've written a module for. :)
21:59 iblechbot left
frettled masak++ - awesome! 22:02
masak thank you, kind sir.
moritz_ so what should I blog about this weekend? ;-) 22:03
frettled moritz_: rats and other pests :D
moritz_ we haven't had a Tidings post in quite some time 22:04
masak true.
jnthn ooh a masakpost 22:07
22:07 rindolf left
masak a longish one. and it's executable! 22:07
jnthn ...if only I could find total happiness as easy as you did... :-) 22:08
masak I don't actually need to point out that all the really cool readers paste the blog post and try running it through perl6-literate, do I?
the reward is an ASCII labyrinth!
jnthn (mention of qbasic)++
masak my favourite was always Turbo Basic, though. 22:09
it was a few years earlier, and had debugging.
unlike QBasic, it also compiled to .EXE -- Quick Basic did too, IIRC.
jnthn masak: It wasn't until this post that I actually got what literate programming actually *is*. 22:10
Wow, such a simple idea. :-)
masak: So I just prefix code in the blog post with > ?
masak jnthn: even this is a distortion of the original idea, mind.
jnthn: yes. 22:11
jnthn: and keep blank lines between code and comments.
jeekobu Such mazes can be generated by random walks with completely local checks
masak jeekobu: is that so? 22:12
jeekobu Yeah
moritz_ jeekobu: write a blog post about it!
jnthn masak: Nice, I may try that.
jeekobu Give me a little while and I can probably sketch it up
moritz_ (including Perl 6 code, of course)
jnthn masak: # RAKUDO: S06/Attributive parameters
masak: Those should work in Oct or Nov. :-)
masak jnthn: I'll change the post then. :) 22:13
22:13 alester left
jnthn masak: In fact, I already sketched them into my signature refactoring plan. :-) 22:13
masak jeekobu: extraordinary claims require extraordinary evidence. :)
jnthn++
22:14 icwiener left
masak time to go to bed. o/ 22:16
jeekobu: if you do sketch up something, feel free to phenny-tell me or email me or leave a comment on the blog post or in the backlog. :) 22:17
22:17 masak left, sahadev2 left
jnthn phenny: tell masak "run("rm $tempfile");" in perl6-literate could be unlink($tempfile) and then more portable 22:18
phenny jnthn: I'll pass that on when masak is around.
22:18 Whiteknight joined
jeekobu masak: Alright, I'm working on a sketch 22:23
22:28 nihiliad left 22:34 kidd_ left, kidd_ joined 22:39 DanielC left, explorer joined 22:47 synth left 22:48 synth joined, kst left 22:49 kst joined 22:54 Chillance left 23:17 cdarroch left 23:20 donaldh left, takadonet left 23:21 dakkar left, donaldh joined 23:23 somberes left
japhb phenny, tell masak In use.perl.org/~masak/journal/39568 , the paragraph that explains what an equivalence relation means, you have a couple places (in prose and in equations) where you say x but mean z. 23:23
phenny japhb: I'll pass that on when masak is around.
23:35 kst left, kst joined
jeekobu PerlJam: tell masak I emailed a maze sketch to your gmail 23:42
Er crap, sorry
phenny: tell masak I emailed a maze sketch to your gmail 23:43
phenny jeekobu: I'll pass that on when masak is around.
jeekobu kicks the tab completion
TimToady hugme, hug jeekobu for thinking tab completion can read minds 23:53
hugme hugs jeekobu
23:54 scud joined 23:55 meppl left
pmichaud rakudo: say 1/3 23:55
p6eval rakudo ba1046: OUTPUT«0.333333333333333␤»
pmichaud rakudo: say (1/3).WHAT 23:56
p6eval rakudo ba1046: OUTPUT«Rat()␤»
23:57 ihrd joined
jeekobu rakudo: say Rat(.25832465412852582852) 23:58
p6eval rakudo ba1046: OUTPUT«invoke() not implemented in class 'Rat'␤in Main (/tmp/U86MeGeobv:2)␤»