»ö« Welcome to Perl 6! | perl6.org/ | evalbot usage: 'perl6: say 3;' or rakudo:, niecza:, std:, or /msg p6eval perl6: ... | irclog: irc.perl6.org/ | UTF-8 is our friend! Set by sorear on 4 February 2011. |
|||
sorear | random note: | 00:11 | |
the draft proposal of UTS18 for Unicode 6.1.0 completely removes the requirement to use "full" case folding in regexes | 00:12 | ||
00:33
Radvendii left,
Radvendii joined
00:51
hundskatt left
00:54
xyvab joined
00:56
replore joined
00:58
risou is now known as risou_awy
01:06
tokuhirom left
01:14
gfldex left
01:15
plutoid joined
01:16
gfldex joined
01:26
packetknife left
|
|||
slavik1 | uts18? | 01:27 | |
geekosaur | unicode.org/reports/tr18/ | 01:28 | |
01:38
envi_ joined,
Vlavv` joined
01:39
mkramer joined
01:51
whiteknight joined,
whiteknight is now known as Guest79155
01:52
wolfman2_ joined,
wolfman2000 left
02:12
xyvab left
|
|||
sorear wonders what "case conversion" means for a regex engine | 02:13 | ||
_not_ "case folding" | |||
02:13
simcop2387 left
02:14
ab5tract left
02:15
ab5tract joined
|
|||
Tene | sorear: "replace this with the same thing in lowercase"? | 02:15 | |
02:16
simcop2387 joined
|
|||
sorear | Tene: ...oh. I'm suprised that that is considered part of the perview of a regex engine | 02:21 | |
02:23
orafu left
|
|||
geekosaur | \L, \U | 02:24 | |
02:24
orafu joined
|
|||
sorear | aren't those qq()'s domain? | 02:30 | |
geekosaur | they're also supported by p5's regex engine. I admit I don't recall if p6 specced them | 02:31 | |
Radvendii | b: say <2/6>.perl | 02:33 | |
p6eval | b 1b7dd1: OUTPUT«"2/6"» | ||
Radvendii | according to perlcabal.org the output should be 1/3 has this not been implimented by rakudo yet? | ||
perl6:say <2/6>.perl | |||
perl6: say <2/6>.perl | 02:34 | ||
p6eval | pugs b927740, rakudo 64fd76, niecza v12-6-gb5cc22a: OUTPUT«"2/6"» | ||
sorear | Radvendii: this is an area where @Larry is not on the same page | 02:38 | |
Radvendii | @larry? | 02:39 | |
is that the guy who makes rakudo? | 02:40 | ||
02:43
packetknife joined
|
|||
Radvendii | and why does he disagree? | 02:44 | |
is there a way to get the equivalent function? | 02:46 | ||
sorear: ? | |||
awwaiid | @larry is the collective of language designers, who often modify their previous views and don't always write the new version down right away | 02:47 | |
02:47
Ingis joined
|
|||
awwaiid | or something like that. I just lurk. | 02:47 | |
geekosaur | in other words, whether it should reduce to lowest terms or not has not yet been decided | 02:48 | |
Radvendii | ah | ||
okay | |||
awwaiid | nicely put | ||
02:48
donri left
|
|||
Radvendii | is there any function for reducing it now? (besides prime factoring and dividing out) | 02:49 | |
geekosaur is curious | |||
02:50
Ingis-Kahn left
|
|||
awwaiid | not that I know of | 02:51 | |
sorear | uhm, it's not an issue of "lowest terms" | ||
every fractional number is automatically lowest terms | |||
but | |||
perl6: say <2/6>.WHAT | |||
p6eval | pugs b927740: OUTPUT«Str» | ||
..rakudo 64fd76, niecza v12-6-gb5cc22a: OUTPUT«Str()» | |||
awwaiid | perl6: say (2/6).perl | ||
p6eval | pugs b927740, rakudo 64fd76, niecza v12-6-gb5cc22a: OUTPUT«1/3» | 02:52 | |
sorear | _it is not a number at all_ | ||
Radvendii | bam | ||
say <2/6>.perl | |||
# 1/3 | |||
sorear | Radvendii: there's no consensus on that | ||
geekosaur | thnk you, I was wondering what the angle brackets were about | ||
Radvendii | says perlcabal.com. apparently they were wrong | ||
awwaiid | I'm not sure if that is a language feature or a implementation | ||
Radvendii | b: (2/6).WHAT | 02:53 | |
p6eval | b 1b7dd1: ( no output ) | ||
Radvendii | b: say (2/6).WHAT | ||
p6eval | b 1b7dd1: OUTPUT«Rat()» | ||
Radvendii | ah | ||
i see | |||
sorear | Radvendii: perlcabal.com is run by... | ||
Radvendii: us right here | |||
Radvendii | haha | ||
so it's not updated yet | |||
should i report that it's not what actually happens in some way? | 02:54 | ||
sorear | Radvendii: it cannot be updated until there is something to update it to | ||
Radvendii: the specs are not documentation | |||
Radvendii: they are a description of our _goals_ | |||
Radvendii | ah | ||
sorear | sometimes our goals change | ||
Radvendii | okay, so not always reliable. good to know | ||
sorear | sometimes we decide that our goals need to change, but don't change them right away | 02:55 | |
this is the latter case | |||
there are a lot of subtle issues with <2/6> working as original envisioned | |||
it's not clear if the issues can be resolved, or if we need a different approach | |||
Radvendii | got it | 02:56 | |
thanks | 02:57 | ||
sorear | Radvendii: the True Perl6 exists in the collective minds of this channel. Sxx is a bad prose reflection, the implementations are code reflections | ||
a lot of things are only in Sxx because they are "easier said than done" | |||
s/code/bad code/ | |||
02:58
jaldhar joined
|
|||
Radvendii | how can i get involved in the design of the language? | 02:58 | |
(im probably not a good enough coder to do any of the crazy stuff) | |||
or is it mostly a closed thing... | 03:01 | ||
colomon | Radvendii: talking right here does wonders | 03:08 | |
sorear | hang out here. get involved in discussions. Write Perl 6 programs and don't be shy to point out the rough edges in the language | ||
get to know well the current language and its immutable philosophical bases | 03:09 | ||
colomon | and you probably *are* a good enough coder to do some very useful stuff -- that's partially the theme of my next Advent post. (well, not you in particular, though you are mentioned as setting things in motion.) | 03:10 | |
sorear | but the language design is 90% done; even I came in too late to have much effect on the language per se | ||
colomon | sorear: we've both had some effect on the details of the language, though. | ||
changes do still happen, if you can convince TimToady something is wrong. :) | 03:11 | ||
03:12
benabik joined
03:15
ab5tract left
03:16
Guest79155 left
|
|||
Radvendii | so we actually are close to a real release to the public? (i was under the impression this was a long way off, although i dont know why. rakudo has worked for me for everything i want to do...) | 03:16 | |
colomon | Probably the biggest obstacle right now is performance. | 03:17 | |
sorear | Radvendii: Rakudo and Niecza both make releases to the public monthl | ||
Radvendii: the public still haven't caught on, because the system is slow and doesn't have a killer app | 03:18 | ||
Radvendii | haha | ||
fair enough. | |||
colomon | but they are definitely usable -- I've got apps written in both. :)_ | 03:19 | |
Radvendii | nice. | ||
sorear | right now there's not much point in using Perl 6 for a member of the general public | ||
Radvendii | oh, speaking of which, i can't seem to get panda operational | ||
colomon | Radvendii: is it a bootstrapping issue? the bootstrap stuff is apparently broken atm | 03:20 | |
Radvendii | yeah, but even when i use the rakudo-star versoin | ||
sorear | it's a very nice language, much cleaner than Perl 5, but it doesn't have any advantages compelling enough to overcome the speed and library issues | ||
Radvendii | i get a error:imcc:loadlib directive could not find library `nqp_group' error | ||
sorear: i see. | 03:21 | ||
colomon | Radvendii: oh, really? what platform? | ||
Radvendii | mac os x | ||
colomon | version? | ||
Radvendii | 10.6 | ||
snow lepoard. | |||
leopard* | |||
colomon | yeah, that's what I'm running too | ||
sorear | What command do you get the failure during? | 03:22 | |
Radvendii | in file '~/.perl6/lib/Shell/Command.pir' line 26 | ||
with any command | |||
also, why isn't perl6 installed into /usr/bin/? even when i move the entire install/ folder into the respective folders in /usr/ it requires the rakudo-star folder to remain where it was... | 03:23 | ||
sorear | because third-party software should never go into /usr/bin on Unix operating systems | 03:24 | |
Radvendii | what about /usr/local/bin or whatever | ||
sorear | /usr/bin is reserved for OS-provided software; stuff you install manually goes into /usr/local/bin | ||
Radvendii | oh | ||
sorear | perl6 is installed into whereever you installed Parrot | 03:25 | |
Radvendii | oops. i probably shouldn't have put perl6 in /usr/bin then :P | ||
oh? | |||
sorear | if you use --gen-parrot, you have to also use --gen-parrot-prefix | ||
Radvendii | good to know... | ||
OH! | |||
that's what it is! | |||
thanks. | |||
sorear | it's not possible to have Rakudo in /usr/local/bin unless you also have Parrot there | ||
Radvendii | now back to the panda failiure? | ||
sorear | true story: I've never used panda | 03:26 | |
presumably you didn't run lib/Shell/Command.pir manually | |||
Radvendii | no | ||
colomon | which rakudo was the failure with? | ||
sorear | I'm interested in the command _you_ ran to cause that failure | ||
Radvendii | when i type panda install SDL6 at the command line it gives that error | ||
or just panda | |||
or panda install | |||
or anything with panda at the beginning | |||
it was with rakudo 2011.07 | 03:27 | ||
colomon is trying to figure out how he can test that version locally.... | 03:30 | ||
Radvendii | sorry for the trouble, it's not really that big of a deal... | 03:32 | |
colomon | actually, first question probably should be, are you using the latest panda? | ||
03:32
mkramer left
|
|||
Radvendii | i dont know, i just installed rakudo-star and it installed panda for me... | 03:33 | |
colomon | ah, hmmm. | 03:34 | |
03:34
mkramer joined
|
|||
Radvendii | like you said, bootstrap.sh doesnt work | 03:35 | |
colomon | okay, I'm going to try it quick on my linux box just to see what happens. | 03:38 | |
Radvendii | okay | ||
also, why does perl6 support new characters like »? isn't that hard to type for some people (not that im complaining, just wondering) | 03:41 | ||
colomon | >> works just the same | 03:42 | |
Radvendii | ah. that would make sense. | ||
i thought perl had gone APL-style :P | |||
although i read about someone making all of the APL functions in perl6 | 03:43 | ||
colomon | it can... you can define all the unicode operators you want. ;) | ||
geekosaur | the "presentation form" uses Unicode but there are reasonable ASCII alternatives for everything | 03:45 | |
03:45
replore left
|
|||
geekosaur | and it's not APLish silliness like lamp or quote-quad | 03:46 | |
but stuff that makes reasonable and readable sense to mortals | |||
sorear | afaik the only non-ASCII characters that are used in core Perl 6 are the French quotes | 03:52 | |
Radvendii: every self-respecting language now supports non-ASCII identifiers | |||
03:55
am0c joined
|
|||
colomon | Radvendii: ooooo, ===SORRY!=== | 03:55 | |
error:imcc:loadlib directive could not find library `nqp_group' | |||
happens on linux, too. | |||
actually appears quite a few times in the "make install" output. | 03:56 | ||
with other errors too. :( | 03:57 | ||
Radvendii | yikes | ||
sorear: okay. i assume that doesn't include java :( :P | 03:58 | ||
colomon | not sure if there's any point in trying to debug it; it's an evolutionary dead end. but it certainly sucks that it's happening. | ||
Radvendii | mhmm what do you mean evolutionary dead end? | ||
colomon | the next rakudo star will be based on a completely different code base | 03:59 | |
Radvendii | oh. okay. | 04:00 | |
i guess i'll wait till then ;) | |||
no biggy | |||
colomon | big thing is trying not to make the same mistakes again | ||
Radvendii | ah | 04:01 | |
that would be good | |||
why is it called panda, by the way? | |||
colomon | ask tadzik. :) | ||
I've got to go to bed now. | 04:02 | ||
Radvendii | okay | ||
thanks for the help | |||
colomon | afk # sleep, perchance dream | ||
sorear | Radvendii: actually I think Java does support non-ASCII identifiers | ||
Radvendii | wow. java doing something right. im impressed. | ||
(im a java hater, in case you hadn't noticed ;P) | |||
sorear | When Java was released, Unicode was the hip new technology | ||
Java is, unfortunately, still stuck in the time of Unicode 1.0 | 04:03 | ||
Radvendii | hahaha. | ||
sorear | especially when Unicode was widened from 16 to 21 bits | ||
Radvendii | im so happy it's suported though, i tried to write a program using it in perl5 and i remember i had to keep using weird notation to get things to work correctly. | 04:04 | |
sorear | Java still doesn't handle characters above 64K that well | ||
buubot_backup: eval: use utf8; my $万 = 1e4; say $万 | |||
buubot_backup | sorear: ERROR: Can't call method "say" without a package or object reference at (eval 20) line 1. | ||
sorear | buubot_backup: eval: use utf8; my $万 = 1e4; $万 | 04:05 | |
buubot_backup | sorear: 10000 | ||
Radvendii | wha? | ||
TimToady | perl6: constant 万 = 1e4; say 万 | ||
p6eval | pugs b927740: OUTPUT«decodeUTF8': bad data: '\19975'decodeUTF8': bad data: '\19975'***  Unexpected "=" expecting ":" or "(" at /tmp/Nd01MS5ugE line 1, column 12» | ||
..rakudo 64fd76, niecza v12-6-gb5cc22a: OUTPUT«10000» | |||
Radvendii | 1) what's buubot_backup? | ||
TimToady | p5 | ||
sorear | buubot_backup: eval: use utf8; $Foo::万 = 1e4; print (keys %Foo::)[0] | ||
buubot_backup | sorear: ERROR: syntax error at (eval 20) line 1, near ")[" | ||
sorear | buubot_backup: eval: use utf8; $Foo::万 = 1e4; print ((keys %Foo::)[0]) | 04:06 | |
buubot_backup | sorear: ä¸1 | ||
sorear | buubot_backup: eval: use utf8; $Foo::万 = 1e4; print length((keys %Foo::)[0]) | ||
buubot_backup | sorear: 31 | ||
Radvendii | oh? p5 can use unicode? i dont know what my problem was then... | ||
what's le4? | |||
TimToady | 1, not l | ||
sorear | 1e4 is scientific notation | ||
04:06
sftp left
|
|||
TimToady | does your font not distinguish 'one' from 'ell'? | 04:06 | |
Radvendii | oh. those letters need to look more different | ||
yeah | 04:07 | ||
what's a good font to use? courier clearly isn't | |||
:P | |||
sorear likes Bitstream Vera Sans Mono | |||
Radvendii doesnt have that one | |||
Radvendii has, in terms of fixed-width fonts, andale mono, courier, menlo, and monaco | 04:08 | ||
sorear wonders if Radvendii can see the character used in the buubot example | |||
Radvendii can indeed | |||
Radvendii decides he likes andale mono | 04:09 | ||
sorear | it's called "buubot_backup" because buu disappeared taking buubot with em | ||
TimToady | so now it's back up? :) | ||
Radvendii | what's buu? | ||
sorear | buu was a #perl bigshot and MAGnet oper in ages past | 04:10 | |
Radvendii | isn't 1e4 just 1? | ||
sorear | no | ||
1e4 is 1 * 10 ** 4 | |||
Radvendii | oh right | ||
x10^ | |||
can one use superscript in a perl program? | |||
sorear | no | ||
Radvendii | that would be cool. | 04:11 | |
sorear | Perl accepts a sequence of characters | ||
TimToady | well, sure you can, for certain values of superscript | ||
sorear | the vast majority of programming languages use plain text | ||
is ColorForth still alive? | |||
04:12
ab5tract joined
|
|||
TimToady | perl6: sub postfix:<²>($x) { $x * $x }; say 42²; | 04:13 | |
p6eval | pugs b927740: OUTPUT«decodeUTF8': bad data: '\178'decodeUTF8': bad data: '\178'1764» | ||
..niecza v12-6-gb5cc22a: OUTPUT«Potential difficulties: &postfix:<²> is declared but not used at /tmp/VhIbw8jKsk line 1:------> sub postfix:<²>⏏($x) { $x * $x }; say 42²;Unhandled exception: System.Exception: invalid digit in 42² at Niecza.EmitUnit.ExactNum (Int3… | |||
..rakudo 64fd76: OUTPUT«1764» | |||
Radvendii | so it works in rakudo? | ||
TimToady | yes | ||
Radvendii | how did you do the superscript in the command line though? | 04:14 | |
sorear | that's not _real_ superscript | ||
Radvendii | what is it? | ||
sorear | .u ² | ||
phenny | U+00B2 SUPERSCRIPT TWO (²) | ||
TimToady | I typed COMPOSE ^ 2 | ||
sorear | it's a separate character | ||
Radvendii | COMPOSE ^ 2 | ||
sorear | Unicode has a few "superscript" versions of existing characters | ||
Radvendii | oh. but it's not a generic thing? | ||
sorear | Radvendii: you need to press the Compose key on your keyboard | ||
correct | 04:15 | ||
Radvendii | i dont have a compose key.. :'( | ||
TimToady | what OS? | ||
Radvendii | mac os x | ||
™ | |||
sorear | .u SUPERSCRIPT MINUS | ||
phenny | U+207B SUPERSCRIPT MINUS (⁻) | ||
sorear | TimToady: does that have a compose sequence? | ||
04:16
mkramer left
|
|||
TimToady | ¯ | 04:16 | |
04:16
JimmyZ joined
|
|||
TimToady | apparently so | 04:16 | |
sorear | compose ^ - does nada for me | ||
.u ⁺ | |||
phenny | U+207A SUPERSCRIPT PLUS SIGN (⁺) | ||
sorear | yet I have that | ||
TimToady | ⁺ | ||
sorear thinks this compose file may be insane | 04:17 | ||
but I have my macros back so I'm not too annoyed | |||
TimToady | most of 'em are | ||
JimmyZ | TimToady: how do I know whether it's a trap or not ? re: yesterday's wrap issue | ||
sorear | er. macroNs | 04:18 | |
completely different | |||
Radvendii | is there a keyboard layout for typing perl? | 04:19 | |
also: can you redefine the sigils? ($, @, %, &, etc) | 04:20 | ||
JimmyZ | TimToady: there is not DWIM and no any tips | ||
sorear | afaik all of the important latin keyboard layouts (qwerty, azerty, dvorak, etc) work fine | ||
TimToady | I'd like to have the vim digraphs as compose sequences... | 04:21 | |
Radvendii | yeah, but to have quick access to the $ key for example | ||
04:22
mkramer joined,
mkramer left
|
|||
sorear | Radvendii: what keyboard layout do you use? | 04:23 | |
Radvendii | 2⁽⁴⁺⁵⁾ | ||
hee hee | |||
primarily us extended | |||
but that was with the unicode hex font, where i have to type in the entire unicode value to type the character. | 04:24 | ||
sorear wonders what Radvendii's languages and/or culture of origin are | |||
Radvendii My family is from europe (poland, germany) and a little bit from israel from way back when (most of my grandparents went through israel at some point). im jewish, and i speak english, understand some hebrew, and am working on german and learning spanish at school. im also making a conlang of my own | 04:26 | ||
oops. i forgot about the /me :P | |||
04:27
geekosaur joined
|
|||
geekosaur | glurf | 04:28 | |
sorear | hello geekosaur | 04:31 | |
TimToady | JimmyZ: I don't understand: "no any tips" | 04:32 | |
sorear | Radvendii: grandparents from isreal, you must be quite young | 04:33 | |
Radvendii: you will find there is quite a lot of linguistics interest here | |||
JimmyZ | TimToady: I mean, if it doesn't DWIM, it should outputs some message. | ||
TimToady: so I know why it doesn't work | |||
Radvendii | i should say palestine (as it was at the time) | 04:34 | |
TimToady | it's not always possible to detect what the user means | ||
Radvendii | but yes, i'm also still in high-school | ||
JimmyZ | TimToady: and how do I fix it | ||
Radvendii | TimToady: Dwim? | ||
TimToady | well it needs to be possible to pass a routine as a parameter without cloning it somehow | 04:35 | |
sorear | Radvendii: the community is scattered over a large area, I would say mostly central/northern Europe and the US but we've got people everywhere | ||
Radvendii: for some reason quite a few of us know East Asian languages | |||
TimToady | Radvendii: DWIM == Do What I Mean | ||
JimmyZ | rakudo: sub cached(Routine &r) { my %cache; &r.wrap(-> |$c {say 'process';my $key := $c.gist;%cache.exists($key) ??%cache{$key} !!(%cache{$key} = callsame)});}; cached sub foo($a) {return 2 * $a;}; say foo(1);say foo(2); | ||
p6eval | rakudo 64fd76: OUTPUT«Nominal type check failed for parameter '&r'; expected Callable but got Sub instead in sub cached at /tmp/_lS2XLKPEV:1 in block <anon> at /tmp/_lS2XLKPEV:1 in <anon> at /tmp/_lS2XLKPEV:1» | ||
JimmyZ | rakudo: sub cached(&r) { my %cache; &r.wrap(-> |$c {say 'process';my $key := $c.gist;%cache.exists($key) ??%cache{$key} !!(%cache{$key} = callsame)});}; cached sub foo($a) {return 2 * $a;}; say foo(1);say foo(2); | ||
p6eval | rakudo 64fd76: OUTPUT«24» | ||
Radvendii | yeah, i'm on the #conlang channel too, and they talk about programming :P it's a really diverse community on the IRC. not. | ||
sorear | Radvendii: not diverse? | 04:36 | |
TimToady | niecza: sub cached(&r) { my %cache; &r.wrap(-> |$c {say 'process';my $key := $c.gist;%cache.exists($key) ??%cache{$key} !!(%cache{$key} = callsame)});}; cached sub foo($a) {return 2 * $a;}; say foo(1);say foo(2); | ||
p6eval | niecza v12-6-gb5cc22a: OUTPUT«Unhandled exception: Unable to resolve method wrap in class Sub at /tmp/rHmx8_wxkG line 1 (cached @ 2)  at /tmp/rHmx8_wxkG line 1 (mainline @ 1)  at /home/p6eval/niecza/lib/CORE.setting line 2225 (ANON @ 2)  at /home/p6eval/niecza/lib/CORE.setting l… | ||
TimToady | pugs: sub cached(&r) { my %cache; &r.wrap(-> |$c {say 'process';my $key := $c.gist;%cache.exists($key) ??%cache{$key} !!(%cache{$key} = callsame)});}; cached sub foo($a) {return 2 * $a;}; say foo(1);say foo(2); | ||
p6eval | pugs b927740: OUTPUT«***  Unexpected "foo" expecting "=", subroutine parameters, trait or block at /tmp/f3TH_6nnca line 1, column 158» | ||
Radvendii | if the #perl6 channel is into linguistics and the #conlang channel talks about programming? | 04:37 | |
TimToady | note that Routine &r is just wrong | ||
Radvendii | everyone's into the same stuff. :P not a bad thing, since i'm into it also, just interesting. | ||
sorear | I would not say overlap is the same as lack of diversity | ||
TimToady | that means a routine that *returns* a Routine | ||
JimmyZ | oh ... | 04:38 | |
sorear | we like linguistics but very few of us are that involved with conlangs | ||
TimToady | the & already implies Callable | ||
Radvendii | mhmm. | ||
JimmyZ | I thought it's &r type | ||
sorear | you're not our only high school student | 04:39 | |
Radvendii | im not _so_ surprised | ||
sorear | TimToady has designs to get people really young, but so far it hasn't quite worked out | ||
Radvendii | convert them to perl before their minds fully form. buahahah. :P | 04:40 | |
TimToady | well, someone needs to subvert all the grade-school teachers first :) | ||
04:40
molaf joined
|
|||
JimmyZ | rakudo: sub cached($r is rw) { my %cache; $r.wrap(-> |$c {say 'process';my $key := $c.gist;%cache.exists($key) ??%cache{$key} !!(%cache{$key} = callsame)});}; cached sub foo($a) {return 2 * $a;}; say foo(1);say foo(2); | 04:41 | |
p6eval | rakudo 64fd76: OUTPUT«24» | ||
sorear | Camelia is our secret weapon | ||
Radvendii | yeah, perl6 is gonna be the new python | ||
why? | |||
JimmyZ | butterfly effect? | 04:42 | |
Radvendii | what's camelia? a person? | ||
sorear | raw.github.com/perl6/mu/master/misc/camelia.txt | 04:43 | |
Radvendii: camelia is the logo | 04:44 | ||
Radvendii | ah | 04:45 | |
nice | |||
»ö« :D | 04:50 | ||
that's going to be my new signature for emails | |||
04:50
mkramer1 joined
04:58
geekosaur left,
eviltwin_b joined
05:01
JimmyZ left
05:02
molaf left
05:05
eviltwin_b is now known as geekosaur,
packetknife left
05:15
Radvendii is now known as },
} is now known as Radvendii
05:20
colomon left
05:26
ponbiki joined
05:29
replore_ joined
05:35
Gothmog_ left,
jfried left
05:38
ilogger2 joined,
ChanServ sets mode: +v ilogger2,
mkramer joined,
arlinius joined
05:39
jan joined,
jan is now known as Guest45209
05:40
_sri joined
05:41
Gothmog_ joined,
avar joined,
broquaint joined,
avar left,
avar joined,
literal joined
05:46
kaleem joined
05:47
_sri left,
mkramer left
05:48
_sri joined,
bonsaikitten joined
06:17
mkramer joined
06:25
rafl joined
06:34
hundskatt joined
06:39
JimmyZ joined
06:40
alc joined
06:50
koban joined
|
|||
tadzik | good morning | 06:56 | |
07:00
kfo joined
07:01
alc left
07:09
wtw joined
07:28
Vlavv joined
|
|||
moritz | \o | 07:32 | |
jnthn | o- | 07:41 | |
...oh...surprise keyboard layout causes funny greeting | |||
moritz: what was the % and :s issue you mentioned yesterday? got a test/simple example? | 07:46 | ||
08:18
mj41 joined
08:25
JimmyZ left
09:04
eiro joined
|
|||
eiro | hello world | 09:04 | |
jnthn, you wrote the best doc on perl6 i read: programmer heaven perl6 faq | 09:05 | ||
09:05
hundskatt left
|
|||
eiro | is it still up to date? (we plan to translate it in french) | 09:06 | |
09:11
cognominal joined
09:19
kfo left
|
|||
jnthn | eiro: no, it's very out of date...I should probably update it, though I don't work there anhy more :) | 09:23 | |
think it's a wiki based thing though so I should be able to do it. | |||
eiro | jnthn, would be nice to have a git based version of it: up to date translation would be easy | 09:26 | |
moritz | jnthn: there's a test file, let me dig it up for you... | 09:30 | |
jnthn | eiro: There's the slight unfortunate situation that I did it for PH while as an employee there, so I don't own the copyright on it. | ||
eiro: So it's not really mine to just take and show in a git repo. | |||
*shove | 09:31 | ||
eiro | jnthn, sad! perhaps we can do better one? | ||
;) | |||
jnthn | yes, I think so :) | ||
moritz | eiro: feel free to contribute to faq.perl6.org | ||
jnthn | moritz++ has started a new Perl 6 faq effort. Maybe we should contribute to that ratehr thaqn start another thing. | ||
moritz | it's on github, perl6/faq | 09:32 | |
jnthn | argh, ahte this keyboard | ||
moritz | eiro: you should have commit access already; if not, please tell me so | ||
jnthn: t/spec/S05-metasyntax/repeat.t search for 'nom regression' | 09:33 | ||
jnthn | moritz: (test file) ok, thanks. If you have ICU, please can you also build/test my :i patch from last night? | ||
moritz | jnthn: sure | ||
jnthn | And if it works, bump NQP version in Rakudo | ||
(the patches were in NQP) | 09:34 | ||
moritz: Oh, that repeat.t fix is probably easy. Can do it this evening. | 09:36 | ||
09:37
ab5tract joined
|
|||
eiro | moritz, ok thanks | 09:41 | |
09:41
dakkar joined
09:44
ab5tract left
|
|||
moritz | nom: say so 'a b' ~~ /:s\w \w/ | 09:47 | |
p6eval | nom 64fd76: OUTPUT«Bool::True» | ||
moritz | nom: say so 'a b' ~~ /\w \w/ | ||
p6eval | nom 64fd76: OUTPUT«Bool::False» | ||
09:56
ab5tract joined
|
|||
moritz | jnthn: fwiw the :i implementation has a bug that b also had for a while: it doesn't apply :i to variables | 09:58 | |
$ ./perl6 -e 'my $x = "A"; say "a" ~~ /:i $x /;' | 09:59 | ||
#<failed match> | |||
jnthn: but the case with literals seems to work | |||
10:00
skangas joined
|
|||
jnthn | moritz: ah...that may be a slightly trickier fix :) | 10:01 | |
But perhaps not so bad. | 10:02 | ||
10:03
renormalist joined
|
|||
jnthn | moritz: Did it get fixed in b? | 10:03 | |
b: my $x = "A"; say "a" ~~ /:i $x / | |||
p6eval | b 1b7dd1: OUTPUT«» | ||
moritz | $ ./perl6 -e 'say "aA" ~~ /:i (.)$0/' | 10:04 | |
#<failed match> | |||
jnthn: might need a fix in LITERAL | |||
jnthn | b: say "aA" ~~ /:i (.)$0/ | ||
p6eval | b 1b7dd1: OUTPUT«» | ||
jnthn | heh, all b bugs too | ||
moritz: yes | |||
I suspect it needs to be passed :i | |||
and then made to dtrt | 10:05 | ||
dalek | kudo/nom: d9890fb | moritz++ | t (2 files): bump to a NQP revision which implements :i also mark some tests as #icu that now need it |
10:07 | |
jnthn | moritz: btw, the take bug is easy enough to fix, but it's masking another bug that is then harder to fix :( | ||
moritz | :/ | 10:10 | |
jnthn | there's a comment in take about it | 10:11 | |
you could always try what it suggests and see if the other issue is gone, though | |||
moritz will try later on | 10:12 | ||
10:24
kfo joined
|
|||
dalek | ast: a054084 | moritz++ | / (4 files): :i unfudges for rakudo |
10:32 | |
10:59
kfo left
11:00
kfo joined
11:13
pochi joined
|
|||
dalek | kudo/take-recont: 2453985 | moritz++ | src/core/Num.pm: return integers from rounders |
11:16 | |
kudo/take-recont: 8c38b99 | moritz++ | / (2 files): use nqp::p6recont_ro in &take |
|||
11:26
lutok joined
|
|||
moritz hopes to get around to write an advent post in the next few hours | 11:31 | ||
11:34
kfo left
11:35
ab5tract left
|
|||
jnthn | moritz: Did 8c38b99 regress any spectests? | 11:47 | |
11:48
ab5tract joined
|
|||
flussence | bah, I have to go redo a bunch of data points for my spectest graphs because I set `ulimit -t` too low... | 11:48 | |
jnthn | moritz: oh, only just noticed you did it in a branch :) | 11:58 | |
12:05
Alias joined
12:27
mkramer left
12:29
drbean joined
|
|||
flussence | (that screwup gave me an interesting take on rakudo's speed though: 10-15% of the spectest files don't finish in under 30 seconds on a desktop CPU yet...) | 12:31 | |
moritz | jnthn: it causes an infinite loop in t/spec/integration/99problems-01-to-10.rakudo | 12:34 | |
12:37
pochi left
12:49
jimmy1980 joined
12:54
kfo joined
12:55
imarcusthis joined
13:05
drbean left
13:09
jimmy1980 left
13:10
molaf joined,
drbean joined
|
|||
jnthn | moritz: ugh. sounds familiar. | 13:12 | |
moritz | two nested gather/takes | 13:13 | |
not sure if that's the real issue though | |||
13:14
jimmy1980 joined,
cognominal left
|
|||
jnthn | i suspect the comment in take is accurate about what's the real issue, or at least close | 13:15 | |
13:16
cognominal joined
13:18
koban left
|
|||
moritz | moritz.faui2k3.org/tmp/lexicality-a...bility.pod | 13:24 | |
any comments before I post it as today's advent calendar? | 13:25 | ||
13:26
kfo left,
simcop2387 joined,
kfo joined
13:28
jimmy1980 left
13:29
ixxvil joined
|
|||
ixxvil | hi | 13:29 | |
did you guys get a logo for rakudo? | |||
moritz | you mean besides rakudoperl.org/wp/wp-content/upload...o-1001.png ? :-) | ||
ok, posted perl6advent.wordpress.com/2011/12/0...izability/ | 13:32 | ||
[Coke] | hey, did aloha stop karma-replying? bacek++ | ||
moritz | I'll be gone rather soon... everybody feel free to edit the post to corect errors, typos, grammeros etc. | 13:33 | |
13:34
jimmy1980 joined,
Alias left
|
|||
jnthn | moritz++ | 13:35 | |
dalek | : 35a45b6 | moritz++ | misc/perl6advent-2011/schedule: fill out todays schedule |
13:36 | |
[Coke] | moritz++ | 13:38 | |
13:48
colomon joined
|
|||
colomon | moritz++ | 13:57 | |
moritz sometimes thinks his post are too far away from application, and too abstract for many readers | 13:58 | ||
[Coke] | weird. on feather, I have changes in my roast directory that I don't think I made. | 13:59 | |
[Coke] glares at moritz. | |||
(many of them are in tests relating to :i) | |||
moritz | yes, I made such changes in roast | 14:00 | |
but not in [Coke]'s copy of the roast repo :-) | |||
[Coke] | very weird. | ||
moritz | [Coke]: you mean, uncommitted changes? | ||
14:01
sftp joined
|
|||
[Coke] | perl6: say +Match | 14:01 | |
p6eval | niecza v12-6-gb5cc22a: OUTPUT«Unhandled exception: System.FormatException: Invalid format. at System.Double.Parse (System.String s, NumberStyles style, IFormatProvider provider) [0x00000] in <filename unknown>:0  at System.Double.Parse (System.String s, IFormatProvider provider) [0x… | ||
..rakudo d9890f: OUTPUT«Use of uninitialized value in numeric context0» | |||
..pugs b927740: OUTPUT«0» | |||
[Coke] | moritz: yes, the files are edited. | 14:02 | |
moritz | [Coke]: maybe a git pull --rebase that resulted in a conflict? | ||
[Coke]: or a git reset maybe? | |||
[Coke] | moritz: Perhaps I was coding in my sleep. | 14:04 | |
std: say +Match | |||
p6eval | std be1f10e: OUTPUT«ok 00:01 119m» | ||
14:05
tokuhirom joined
|
|||
dalek | ast: e05e9cc | coke++ | S (2 files): niecza fudging |
14:06 | |
ecza: 6243435 | coke++ | t/spectest.data: run fudged test. |
14:07 | ||
ast: fba1e39 | moritz++ | S02-names-vars/perl.t: (un)fudge perl.t for rakudo |
14:11 | ||
[Coke] | So, I'm on the (non-hague) grants committee. Haven't seen many submissions from p5 folk, and virtually none from p6 folk lately. | 14:12 | |
also, masak++ for getting the web.pm stuff as far along as he did. | |||
moritz already has one grant running, and won't consider a second until the first is finished | |||
[Coke] | Very reasonable. | ||
dalek | kudo/take-recont: a7eed04 | moritz++ | t/spectest.data: run perl.t |
14:13 | |
[Coke] | Just mentioning here in case other folks want to apply for a grant. | ||
moritz | [Coke]++ | ||
moritz -> afk | 14:15 | ||
14:15
drbean left
14:21
gebe joined
14:22
drbean joined,
kaleem left
|
|||
PerlJam | [Coke]: perhaps a blog post to re-educate people on what is available, how to submit, what the typical grant looks like, etc. would spur some interest? | 14:29 | |
[Coke] | "what is available" that information is available only to the treasurer. ;) | ||
and alberto did that some months back to drum up interest again. | 14:30 | ||
14:30
pochi joined
|
|||
[Coke] | so I mention it here to people who I KNOW can handle applying. ;) | 14:30 | |
whoops, meetings. | |||
PerlJam | I mean that more in terms of grant parameters ... "we typically give grants between $X and $Y" | ||
14:34
gebe left,
dalecooper joined
|
|||
colomon | [Coke]: looking at the +Match thing -- should that work? I believe Niecza is complaining that "" (ie empty string) is not a valid number, which seems kind of reasonable for an undefined Match. | 14:37 | |
14:40
alvis joined
14:41
kaleem joined
|
|||
PerlJam | moritz: you're infecting Parrot with adventitis? | 14:50 | |
moritz++ | 14:51 | ||
[Coke] | colomon: again, I'm highlighting things that are already in spec tests here. ;) | 14:53 | |
I don't know if that's a reasonable thing to ex-spec-t. | |||
colomon | yeah, I know, and with any luck your work will help improve the tests. ;) | ||
[Coke] | for now I'm doing the least amount of work possible. :) | ||
niecza: say +"" | 14:54 | ||
p6eval | niecza v12-7-g6243435: OUTPUT«Unhandled exception: System.FormatException: Invalid format. at System.Double.Parse (System.String s, NumberStyles style, IFormatProvider provider) [0x00000] in <filename unknown>:0  at System.Double.Parse (System.String s, IFormatProvider provider) [0x… | ||
[Coke] | niecza: say +Match | ||
p6eval | niecza v12-7-g6243435: OUTPUT«Unhandled exception: System.FormatException: Invalid format. at System.Double.Parse (System.String s, NumberStyles style, IFormatProvider provider) [0x00000] in <filename unknown>:0  at System.Double.Parse (System.String s, IFormatProvider provider) [0x… | ||
[Coke] | so, yah, that seems like the same error. | ||
colomon | yes, I've seen it quite a few times myself. :) | 14:55 | |
perl6: say +Failure | 14:56 | ||
p6eval | rakudo d9890f: OUTPUT«Use of uninitialized value in numeric context0» | ||
..niecza v12-7-g6243435: OUTPUT«===SORRY!===Undeclared name: 'Failure' used at line 1Unhandled exception: Check failed at /home/p6eval/niecza/boot/lib/CORE.setting line 880 (die @ 2)  at /home/p6eval/niecza/src/STD.pm6 line 1139 (P6.comp_unit @ 32)  at /home/… | |||
..pugs b927740: OUTPUT«*** No such subroutine: "&Failure" at /tmp/Z4sn5VQ2Qc line 1, column 5 - line 2, column 1» | |||
colomon | ah, not such a good test | ||
[Coke] | it does seem reasonable to expect rakudo's error, though, rather than an underlying VM issue. | ||
s/issue/exception/ | 14:57 | ||
(just like a NullPMCAccess is never right.) | |||
colomon | rakudo's is just a warning | 15:01 | |
but yeah, for sure the Niecza error message is inelegant! | 15:02 | ||
15:12
Radvendii joined
15:13
mkramer joined
15:14
hrj joined
15:20
tokuhirom left
|
|||
Woodi | Parrot++ is quite fast... 10k Redis pings in 1.03s where PP Perl5 Redis module do 1.38s. and 10k pipelined pings into one send/receive operation is 0.07s where the best Perl5 XS module do 0.06s. all numbers on *that* box but % difference should be same on others | 15:23 | |
15:23
rsimoes joined
15:27
mkramer left
|
|||
Woodi | however it probably is little apple to pear comparison becouse modules do function calls... | 15:27 | |
15:28
mkramer joined,
Radvendii left
|
|||
tadzik | wow anyway | 15:29 | |
[Coke] | I imagine you'll see a lot more slowdowns when starting to invoke functions, but it's nice that the basics are working. | ||
ixxvil | moritz: checking | ||
tadzik | so Parrot's faster than Perl 5 in _something_ :) | ||
15:30
domidumont joined
|
|||
ixxvil | moritz: thats the old logo | 15:30 | |
moritz: i thought you guys wanted sometihng new | |||
15:30
donri joined
|
|||
[Coke] has his mono-space inspired 可口可乐 on his whiteboard critiqued. | 15:30 | ||
ixxvil: I hadn't seen any chat about a new logo on the channel; where are you seeing this? | 15:31 | ||
15:31
Psyche^ joined,
mkramer left
|
|||
ixxvil | [Coke]: this was like last yr | 15:31 | |
15:32
mkramer joined
15:33
dalecooper left
15:34
Psyche^ is now known as Patterner
15:47
ab5tract left
15:50
olaf joined
15:51
olaf is now known as Guest12837
15:54
Guest12837 left,
snearch joined,
snearch_ joined,
snearch left,
snearch_ left,
snearch joined
15:56
wtw left
15:59
murker joined
16:00
ab5tract joined
16:01
kaare_ joined
|
|||
sorear | good * #perl6 | 16:05 | |
colomon | \o | 16:06 | |
TimToady | greetings, earthlings | 16:08 | |
tadzik | hello | ||
jnthn | phew, day's teaching done :) | ||
jnthn -> hotel etc | |||
16:08
mkramer left
16:11
mkramer joined
16:18
ab5tract left
16:22
jimmy1980 left
16:26
murker left
16:29
hundskatt joined,
jimmy1980 joined
16:32
kaleem left
16:34
kaleem joined
|
|||
45PAAC234 | Is there a way to make those "Use of uninitialized value" messages tell you where it happened? | 16:38 | |
lumi___ | Sorry, that was me. There's a lot of lumis around I guess | 16:39 | |
tadzik | lumi___: not that I know of | ||
I'd like that fixed though :) | |||
lumi___ | I tried running Panda, it prints out a couple of those in various places... | 16:40 | |
tadzik | yeah, I know | ||
if you can find those, I'd be happy to accept a pull request :) | |||
jnthn back | 16:41 | ||
PerlJam | making those messages print the line, column and variable (if applicable) that the uninitialized value came from would be awesome. | 16:42 | |
16:54
jimmy1980 left
17:01
jimmy1980 joined
17:03
mkramer left
17:04
ab5tract joined
|
|||
dalek | kudo/nom: a2f3f46 | jonathan++ | t/spectest.data: S13-overloading/metaoperators.t passes entirely, so turn it on. |
17:06 | |
17:07
mkramer joined
17:09
ab5tract left
|
|||
Woodi | I removed messages "Use of uninitialized value in string context" by change "is $re, Any, '8 ok';" to "ok(!$re.defined, '8 ok');" becouse I need "return Any;" :) | 17:10 | |
17:12
ixxvil left
17:13
MayDaniel joined
17:17
mj41 left
17:22
dakkar left,
drbean left
17:23
fsergot joined
|
|||
fsergot | hi 0/ | 17:24 | |
jnthn | o/ | 17:25 | |
17:28
hrj left
17:30
drbean joined
17:31
Guest45209 is now known as jfried
17:32
japhb joined
17:33
benabik joined
|
|||
japhb | jnthn, I'd like to start tackling 'Failure outside of Any'. Step one was easy: making Failure inherit from Mu. You had said the next task was to make Failure have the same kind of dispatch magic as Junction. Can that be done entirely in Perl 6, or do I need to start looking in the C code? | 17:34 | |
17:40
mkramer left
17:53
fsergot left
17:54
fsergot joined
17:55
snearch left
|
|||
jnthn | japhb: Dispatch stuff at least partly needs some C hacking | 17:55 | |
japhb | Dang | 17:56 | |
jnthn | You're not a C-er? :) | ||
japhb: See bind.c and multidispatch.c. Just search for "junction" | |||
japhb | Not that I can't do C, but that there's a whole other world of Rakudo/Parrot/NQP stuff I need to learn to not just make a mess of things. | ||
Just as I was beginning to get a feel for the Setting ... ;-) | |||
jnthn | japhb: Well, I think what you'd need to do in C would be (a) small and (b) quite contained. | 17:57 | |
japhb | Well, won't hurt to have a look and see if I can cult my way to success. | ||
That's good to hear | |||
jnthn | japhb: I've tried to comment it decently to explain what's going on. | ||
japhb | jnthn++ for that! | 17:58 | |
17:58
jimmy1980 left
|
|||
japhb | jnthn, OOC, in bind.c near the top, why do ACCEPTS and HOW not have the _str suffix of all the other static string names? | 18:01 | |
18:03
drbean left,
jimmy1980 joined
18:04
hrj joined
18:06
japhb_ joined,
japhb left
|
|||
jnthn | japhb_: Well, HOW isn't even used any more... | 18:07 | |
japhb_: No good reason though. | |||
Just a consistency fail. | |||
japhb_ | fair enough | ||
18:09
drbean joined,
japhb joined,
kaleem left
18:17
Chillance joined
18:21
fsergot left
|
|||
japhb | Rakudo needs an illguts doc. ;-) | 18:21 | |
jnthn | "illguts...really sick code" | 18:24 | |
japhb | search.cpan.org/~gaas/illguts-0.09/ | 18:25 | |
woah, old link | 18:26 | ||
search.cpan.org/~rurban/illguts-0.38/ | |||
That's more like it. | 18:27 | ||
jnthn | oh, *ill*ustrated | 18:28 | |
Not "unwell" :) | |||
japhb | Right. :-) | ||
A lot of stuff I vaguely understood about perl5 from reading code got a LOT clearer when I read an early edition of that doc. | 18:29 | ||
benabik | jnthn: Having sat through a talk about making natives more native in P5 guts, I think it qualifies as both. | 18:30 | |
jnthn | Sounds like a good idea. I did some diagrams in jnthn.net/papers/2011-tcpw-optimization.pdf and also (older) jnthn.net/papers/2010-osdc.fr-rakudo.pdf | 18:31 | |
the latter has some 6model ones | |||
which are still largely accurate, it seems :) | |||
hunger strikes! I'm off to find dinner | 18:32 | ||
18:32
nornagest joined
|
|||
jnthn | bbl | 18:32 | |
japhb | joy | ||
*enjoy | |||
[Coke] just finished a late lunch. stupid time zones. | 18:56 | ||
japhb_ | Y'all are making me hungry. | 18:57 | |
japhb_ wanders off to hunt food. | |||
[Coke] | anyone have any comments on news.perlfoundation.org/2011/12/tes...-repo.html ? | 18:59 | |
PerlJam | [Coke]: schwern++ ? | 19:17 | |
[Coke] | PerlJam: heh. good enough. | 19:19 | |
PerlJam | [Coke]: ooc, what was the proposed award amount? | 19:23 | |
(why does the grant report not link to the original proposal?) | 19:25 | ||
[Coke] | PerlJam: it's so old, it's probably not on the site. | 19:26 | |
we just closed down the last remaining stalled grants this month. | |||
PerlJam | just found it. | 19:29 | |
[Coke] | ah, then alberto is just muito preguiçoso | ||
PerlJam | The funniest part is (now) this: Duration: about five months | 19:31 | |
19:31
drbean left
|
|||
PerlJam | .oO(Note to self: take time estimates from Schwern with a huge grain of salt ;) |
19:31 | |
19:31
pat_js joined
19:34
ab5tract joined
|
|||
japhb | .oO( The waterbed theory of grant completion ) |
19:35 | |
19:36
drbean joined
|
|||
PerlJam | [Coke]: can the grants committee award more than was requested? | 19:37 | |
[Coke] | I don't think that's possible, no. | 19:38 | |
We could suggest someone resubmit their grant before it's approved, I suppose. | 19:39 | ||
(but in general, I'd expect that to go the OTHER way.) | |||
PerlJam | indeed. I was just curious. | ||
[Coke] | rules for GC operations are on the tpf site, somewhere. | 19:40 | |
19:43
birdwindupbird joined,
birdwindupbird left
|
|||
PerlJam | wow, the grant for Web.pm is still open. (also from 2008) | 19:43 | |
[Coke] | not for long. | ||
colomon | getting closed, or getting finished? | 19:45 | |
jnthn | on nom :) | 19:49 | |
And dang, my patch for :s and % bug didn't work :( | 19:50 | ||
Well, it did and it didn't :) | |||
[Coke] | colomon: closed. | 19:52 | |
expect a writeup soon (I thought one was out there already) | |||
japhb | jnthn, is the order of elements in the STable structure meant to be cache-optimal? | 20:10 | |
japhb has decided to just jump in and try to understand the binder in general ... | |||
jnthn | japhb: I can't say I've profiled it, but I did try to group things that are likely to be accessed temporally close together and aligned such that they should land on the same cache line. | 20:11 | |
japhb | jnthn, gotcha, that's what it kinda looked like | 20:13 | |
jnthn | japhb: the binder in a nutshell: one routine is a loop over the parameters, and another is called per parameter. | ||
japhb: The rest are mostly "utility" stuff | |||
japhb | jnthn, also, it looks to my eyes like the complex if condition at bind.c:311-314 could be simplified if the BIND_VAL_* constants followed a bit shift progression like SIG_ELEM_* does, so it falls to just a shift/mask/compare. Is this a hot path? | 20:14 | |
Yeah, I've read some of the utilities, I'm working my way through Rakudo_binding_bind_one_param at the moment. | 20:15 | ||
20:17
ab5tract left
|
|||
jnthn | japhb: the BIND_VAL values are currently set to align with some constants in Parrot, which is mostly why they're the way they are. | 20:18 | |
The binder is decidedly a hot path. | |||
japhb | Ah, I get it. | ||
jnthn | It can be tweaked, but it also takes a lot of decisions dynamically that it could take once statically. | 20:19 | |
I expect it to become more of a "signature compiler" than a "signature interpreter". | |||
japhb wonders then if a quick static array lookup to convert BIND_VAL_* to SIG_ELEM_NATIVE_* would work for that if condition. | |||
Ah, interesting. | 20:20 | ||
20:20
takadonet joined,
takadonet left
|
|||
jnthn | The binder's aggregate time in a profile does stand out. However, once you factor out the time it spends sticking stuff in lexpads, creating scalar containers, creating any Capture of Array objects for slurpies, etc, it isn't such a pig. | 20:22 | |
so/of/or | |||
japhb | nodnod | 20:23 | |
jnthn | My notebook has some sketches on how to optimize away the need for some of those scalar containers, and we can probably figure out how to store in the lexpad by index, not by name. | 20:24 | |
Just didn't get to those yet :) | 20:25 | ||
japhb | Well, can't do *everything* at once, I guess. Only 20 or 30 things. :-) | 20:29 | |
20:30
ab5tract joined
|
|||
Woodi | can exceptions bring some computations savings vs code like "$r = $socket.get() or return False;" ? Assuming a lot of line parsing in loops | 20:30 | |
japhb | What is 'whence' again (in the context of containers)? | 20:34 | |
20:36
drbean left
20:37
localhost joined
20:43
drbean joined
|
|||
jnthn | japhb: It's to do with auto-viv. | 20:44 | |
20:44
ab5tract left
|
|||
jnthn | (something I need to figure out Real Soon if Pm doesn't get tuits to hack on the remaining bits of...) | 20:47 | |
japhb | Ah, OK | ||
20:48
zby_home joined
|
|||
PerlJam | japhb: my understanding (albeit poor) is that whence is a closure-ish thing that makes other things. | 20:50 | |
japhb | PerlJam, hmmm | ||
japhb files that info | 20:51 | ||
jnthn | yes, I believe $!whence holds a closure | ||
See in Hash.pm for example. | |||
PerlJam | japhb: so, when you need to autovivify a hash element, you call the hash's whence to closure to get what an "empty" hash element should be | ||
er, s/to closure/closure/ | 20:52 | ||
japhb | Ah, so allows the REPR to handle it's own autoviv magic. | 20:54 | |
s/autoviv/vivification/ | 20:55 | ||
20:56
Lorn joined
|
|||
jnthn | container, not repr | 20:57 | |
REPRs are very low level things | |||
In Perl 6 the b | |||
vast majority of things are P6opaque. | |||
A container is just a normal object that happens to also have a container spec entry in is STable. | 20:58 | ||
*its | |||
japhb | Wait, I thought the container had the container descriptor directly in the container object | 20:59 | |
20:59
kmwallio joined
|
|||
japhb | Or is a container descriptor different from a container spec? | 20:59 | |
jnthn | different. :) | ||
container desciptor is something Perl 6 specific. | |||
japhb rolls his eyes overdramatically | |||
jnthn | the container spec thing is much more low level | ||
japhb | OK | ||
jnthn | You almost never thing about the cs. | ||
*think | |||
japhb | Ah, OK, a ContainerSpec has an AttributeIdentifier and a fetch_method ... | 21:00 | |
And fetch_method doesn't appear anywhere else in the source tree | 21:01 | ||
21:02
MayDaniel left
|
|||
japhb | Oh, typo: line 22 of bind.h | 21:02 | |
'DEFINEDNES' | |||
21:03
nornagest left
|
|||
PerlJam | is that latin? :) | 21:03 | |
21:11
cooper joined
|
|||
jnthn | heh :) | 21:15 | |
Missing "s" | |||
21:17
simcop2387 left
21:18
simcop2387 joined
21:20
ab5tract joined
|
|||
japhb | bind.c:431-448 looks wrong in the face of objects that override .defined ... or are :D and :U really only supposed to check for concreteness? | 21:26 | |
jnthn | yes | 21:30 | |
well | |||
they were at the time that this was implemented, then I think the spec changed to :A and :C instead. | |||
japhb | Ah, OK, so now the binder needs to support both :A/:C and :D/:U? What's the syntax for 'concrete but undefined'? '$param:C:U' with no spaces? | 21:32 | |
21:33
drbean left
|
|||
benabik | Binding based on a method call seems like it will add much slowness. | 21:36 | |
21:36
hrj1 joined
|
|||
japhb | benabik, unless I'm reading this wrong, there are already ways that can happen | 21:37 | |
21:37
hrj left
|
|||
moritz | \o | 21:37 | |
jnthn | Yes, we really don't want to go doing the method call there | ||
o/ moritz | |||
Not in the common case. | |||
japhb | benabik, for example, instantiating a generic type, coercing an arg, binding a sub-signature, etc. | 21:38 | |
jnthn, yes, sure, these are all unusual cases. | |||
benabik | That said, looking at S12… It seems like :D and :U are defined based on DEFINITE (concrete), not .defined | ||
jnthn | Right, it's the common cases that need to be cheap | ||
benabik: Oh, then it's already correct. | 21:39 | ||
iiuc .DEFINITE is just the concreteness check we're already doing. | |||
benabik | jnthn: That's what I'm seeing. | ||
japhb | benabik, link? | ||
(To the lines in question, I mean) | |||
benabik | japhb: perlcabal.org/syn/S12.html#Abstract...rete_types | 21:40 | |
jnthn | I think there was once some speculation that :D and :U may also do something interesting with regard to Failure, but I suspect now we're moving Failure outside of Any then that is redundant. | ||
21:40
drbean joined
21:41
skangas left
|
|||
benabik | I guess :U and :D used DEFINITE and // and the like use .defined? | 21:41 | |
jnthn | oh, I musta been wildly wrong at :A and :C then :) | ||
benabik: believe so, yes | |||
japhb | jnthn, well for example in the first table in the section benabik listed, :U is listed as "Allow only undefined (abstract or failure) ..." | ||
jnthn | oh, no | 21:42 | |
benabik | japhb: But the table below says Int:U is Int:_ where not(DEFINITE($_)) | ||
jnthn | yeah | ||
just saw that | |||
japhb: I'm not sure that makes sense these days | |||
japhb | Right ... I was about to say, the spec seems confused. | ||
jnthn | It predates the Failure changes | ||
I got the impression form TimToady++'s commit on moving Failure out that it was the first of several. | 21:43 | ||
japhb | I guess the Failure change kills :T as well ...? | ||
21:43
ab5tract left
|
|||
japhb | or maybe :T is still useful for Mu? | 21:43 | |
PerlJam | :T ? | ||
jnthn | mebbe :) | ||
japhb | PerlJam, ":U where none(Failure)" | 21:44 | |
PerlJam | ah | ||
japhb | FWIW, It feels to me like :_/:D/:U/:T are oblique to the independent axes. | 21:47 | |
(At least in their current definition) | |||
benabik | Huh? | ||
PerlJam | japhb: I've never quite known what to think of them, so I'm letting it stew for a while | 21:48 | |
jnthn | OK, I'm too tired to do anything useful, so getting an early night. | ||
o/ | |||
benabik | o/ jnthn | ||
japhb | benabik: By which I mean, "definedness" and "type-constraintedness" seem like the wrong axes. It feels cleaner to me to use "concreteness" and "failness" | ||
Good night, jnthn | |||
tadzik | o/ | 21:49 | |
21:51
molaf left
|
|||
colomon | \o | 21:51 | |
21:53
ggoebel joined,
jeffreykegler joined
21:55
ab5tract joined
|
|||
japhb | phenny, ask TimToady Would you mind taking a look at perlcabal.org/syn/S12.html#Abstract...rete_types in the context of the discussion starting at irclog.perlgeek.de/perl6/2011-12-08#i_4808300 and clarifying your current intent? | 21:57 | |
phenny | japhb: I'll pass that on when TimToady is around. | ||
21:57
fridim_ joined
22:01
jeffreykegler left
22:02
Moukeddar joined
|
|||
Moukeddar | good evening folks | 22:03 | |
22:04
fridim_ left
|
|||
colomon | o/ | 22:04 | |
Moukeddar | how are you doing? | ||
22:05
drbean left
|
|||
colomon | bit tired at the moment. | 22:06 | |
22:07
Chillance left,
zby_home left
|
|||
Moukeddar | ah, you need some rest | 22:08 | |
colomon | got band rehearsal tonight, then a long weekend with my wife away (snow permitting), which probably means days of hanging out with my three-year-old and evenings with bad movies and perl hacking. :) | 22:09 | |
Moukeddar | sounds cool and lovely | ||
colomon | you? | 22:11 | |
22:12
drbean joined
|
|||
Moukeddar | preparing for the exams, the same boring stuff | 22:13 | |
22:17
Chillance joined
22:19
kaare_ left
|
|||
Moukeddar | where is masak ? | 22:21 | |
22:22
jimmy1980 left
|
|||
PerlJam | Moukeddar: vacation | 22:22 | |
Moukeddar | ah, good for him, he deserves it | 22:23 | |
22:25
kmwallio left
22:28
jimmy1980 joined
22:30
Moukeddar left
22:32
s1n joined
22:51
fridim_ joined,
pat_js left
22:52
REPLeffect joined
22:55
hundskatt left
23:01
am0c joined
23:07
Radvendii joined
|
|||
Radvendii | is it just me, or does the interactive shell version of perl6 not accept unicode characters? | 23:07 | |
tadzik | works for me | ||
you probably need some external libs for that, not sure | 23:08 | ||
Radvendii | oh hey! it's the famous tadzik of panda! | ||
(just because i've had some issues installing it and everyone was like "oh, talk to tadzik when he gets on") | 23:09 | ||
23:09
fridim_ left
|
|||
tadzik | I fell unprepared for the fame | 23:09 | |
Radvendii | haha | ||
tadzik | :) | ||
so, what's up? | |||
Radvendii | well, the bootstrap.sh doesn't work, as im sure you know because it seems to be common knowledge. but the other issue arises when using the panda installed via rakudo star. | 23:10 | |
tadzik | hmm | ||
Radvendii | i get the error: | ||
===SORRY!=== | |||
error:imcc:loadlib directive could not find library `nqp_group' in file '~/.perl6/lib/Shell/Command.pir' line 26 | |||
tadzik | bootstrap.sh fails due to Test::Mock test failures, which are beyond my comprehension :) | 23:11 | |
Radvendii | fair enough. | ||
i was told that this error would most likely be resolved in the next rakudo-star update, so i | |||
i'll await that ;) | |||
tadzik | I suppose so | ||
to be honest, I didn't use Star for a few months now | |||
the error looks odd-ish however | 23:12 | ||
Radvendii | mhmm... | ||
23:12
hrj1 left
|
|||
Radvendii | anyways, i had another question pertaining to unicode | 23:13 | |
if i define the • infix opperator to be the exact same as *, can i then redefine * to be exactly the same as **? | 23:14 | ||
without loosing • as times? | |||
tadzik | I don't know, honestly, and I don't want to guess :0 | 23:16 | |
:) | |||
Radvendii | okay. fair enough | ||
23:18
hundskatt joined
23:25
whiteknight joined
|
|||
tadzik | oh, and panda is named after my dog :) | 23:25 | |
23:26
whiteknight is now known as Guest52959
|
|||
djanatyn | okay, time for an epic perl hacking session | 23:26 | |
perl5, though :( | |||
but after that, perl6 :D | |||
tadzik | :) | ||
djanatyn | i've got mountain dew, pizza, emacs, and Dancer | 23:27 | |
Radvendii | tadzik: oh. nice. | 23:28 | |
djanatyn | a8.sphotos.ak.fbcdn.net/hphotos-ak-...2448_n.jpg -- making good progress so far | 23:33 | |
it's completely perl, which is nice. | |||
23:34
ab5tract left
|
|||
tadzik | what a mess in tabs :) | 23:34 | |
djanatyn | tadzik: heh. I take an ADHD approach to web-browsing | ||
tadzik | oh, right, I'm the weird one who closes his web browser :) | 23:38 | |
23:38
Chillance left
23:44
tokuhirom joined
23:47
ab5tract joined,
wolfman2000 joined
23:49
drbean left,
hundskatt left
23:56
drbean joined
|