pugscode.org/ | nopaste: sial.org/pbot/perl6 | pugs: [~] <m oo se> (or rakudo:, kp6:, elf: etc.) (or perl6: for all) | irclog: irc.pugscode.org/ Set by Tene on 29 July 2008. |
|||
00:04
Alias_ left,
Alias_ joined
00:07
bacek joined
|
|||
TimToady | ruoso: "These variables are compile-time aliases to $+! and $+/" | 00:31 | |
no, they can't be | |||
ruoso | what's the difference? | ||
TimToady | $+ is short fot $CALLER:: and excludes the one in the current scope | 00:32 | |
$+! can only refer to one of your caller's $! variables | |||
and since $! is defined in every scope, it's always the first caller | |||
ruoso | but when you set $! it propagates to the caller, | 00:33 | |
TimToady | no | ||
ruoso missed something... | |||
TimToady | more likely, fail() sets CALLER::CALLER::<$!> | ||
if you want to set your caller's $! directly, you must set $+! | 00:34 | ||
ruoso | hm... I think I got it... | ||
TimToady | the whole point of giving each scope it's own copy of these variables is to keep them straight; there can be no aliasing | ||
many of P5's problems stem from too many routines trying to deal with global $_ and $! | 00:35 | ||
anyway, context vars never use the + in their own scope, but just the bare variable | 00:37 | ||
ruoso | and functions that read by line lookup $+/ to see the contextual setting for that variable | ||
TimToady | which is especially important since the rw-ness differs from $foo and $+foo | ||
araujo greets TimToady | |||
TimToady | ruoso: I don't follow that last idea | 00:40 | |
TimToady greets araujo right back | 00:41 | ||
araujo | :-] | ||
ruoso confusing $/ meaning... | 00:42 | ||
but anyway... | |||
a regex call sets $+/ which is then available in the caller... | |||
the same way that happens with $! | 00:44 | ||
TimToady | yes | ||
bbl & # dinner | 00:49 | ||
00:51
Exodist left
00:55
nipotaway is now known as nipotan
00:56
alester joined
00:57
aindilis left
|
|||
ruoso | TimToady, do every block define $! and $/? or are just Routines that define them? | 00:59 | |
pugs: { my $a = "foo"; { $a ~~ /o/ }; say $/ }; | 01:01 | ||
p6eval | pugs: OUTPUT[Error eval perl5: "if (!$INC{'Pugs/Runtime/Match/HsBridge.pm'}) {ā¤ unshift @INC, '/home/evalenv/pugs/perl5/Pugs-Compiler-Rule/lib';ā¤ unshift @INC, '/home/evalenv/pugs/third-party/Parse-Yapp/lib';ā¤ eval q[require 'Pugs/Runtime/Match/HsBridge.pm'] or die $@;ā¤}ā¤'Pugs::Runti... | ||
ruoso | rakudo: { my $a = "foo"; { $a ~~ /o/ }; say $/ }; | 01:03 | |
p6eval | rakudo 29834: OUTPUT[Null PMC access in get_string()ā¤current instr.: 'print' pc 12259 (src/gen_builtins.pir:7802)ā¤] | ||
ruoso | rakudo: { my $a = "foo"; { $a ~~ /o/; say $/ }; }; | ||
audreyt | pugs: { my $a = "foo"; { $a ~~ m:P5/o/ }; say $/ } | ||
p6eval | rakudo 29834: OUTPUT[oā¤] | 01:04 | |
pugs: OUTPUT[oā¤] | |||
ruoso | so it seems that $/ is defined by routines and not by every code | ||
so CALLER is not simply each code... but each routine | |||
audreyt | sub f { if 1 { g() } } | 01:06 | |
for &g, the caller is f, not the if block, afaik. | |||
ruoso | that actually makes things much more complicated | 01:07 | |
audreyt | what you have in mind is context() | ||
see S06:2113, S06:1958 | 01:08 | ||
caller() is a filtered context, so to speak. | |||
it discard the non-routine parts | |||
does that make things easier? | 01:09 | ||
ruoso | yeah... it does... | ||
but maybe we should store the enclosing routine for each context | 01:10 | ||
audreyt | *nod* | ||
bbiab | |||
01:21
nixfu joined,
nixfu left,
nixfu joined
01:22
jferrero left
01:24
nixfu left
01:34
cmarcelo left
01:42
Limbic_Region left,
cathyal left
01:52
sri_work left
02:08
justatheory left
02:12
whereiskurt joined
02:25
wknight8111 left
02:53
hercynium left
03:02
elmex_ joined
03:07
Caelum_ joined
03:18
elmex left,
elmex_ is now known as elmex
03:19
hercynium joined
03:20
[particle]1 joined
|
|||
whereiskurt | ?eval say "What does TimToady eat for dinner? :-)" | 03:46 | |
03:48
[particle] joined
03:58
hercynium left
04:05
[particle]1 left
04:13
fridim_ joined
04:17
[particle]1 joined
04:23
dduncan joined
04:33
[particle] left
04:34
fridim__ joined
04:37
alanhaggai joined
04:48
fridim_ left
05:17
gaal joined
|
|||
gaal | ruoso: you were looking at Signature objects? Perl6::Signature on cpan | 05:18 | |
lambdabot | gaal: You have 1 new message. '/msg lambdabot @messages' to read it. | ||
gaal | ported from pugs | ||
more or less | |||
and nothingmuch++ and clkao++ have insane glue to make those actually available as sub declarations in perl5 | 05:19 | ||
hmmm though apparently that's not on cpan yet? | 05:20 | ||
05:29
fridim_ joined
05:41
Psyche^ joined,
fridim__ left
05:59
Psyche^ is now known as Patterner
06:02
Ara4n joined
06:03
Arathorn left
06:12
BinGOs left
06:20
BinGOs joined
06:21
xinming_ joined
06:22
pbuetow joined
06:27
fridim_ left,
fridim_ joined
06:38
alester left
06:40
bacek_ joined
|
|||
audreyt | it's code2.0beta.co.uk/moose/svn/Perl6-S...ure/trunk/ | 06:42 | |
lambdabot | Title: Revision 5096: /Perl6-Signature/trunk | ||
06:43
xinming joined
06:49
bacek left
06:52
ashizawa joined
06:56
xinming_ left
07:01
bacek_ left
07:07
[particle] joined
07:11
araujo left
07:12
[particle]1 left,
[particle]1 joined
|
|||
nothingmuch | gaal: in moose + jifty repos I think | 07:14 | |
07:15
macroron joined
07:22
xinming left
07:23
barney joined
07:25
xinming joined
07:28
[particle] left
07:35
pbuetow_ joined
07:36
pbuetow left
07:40
luqui joined
07:46
araujo joined
07:47
araujo left,
araujo joined
07:49
bacek joined
07:53
masak joined
07:57
charsbar_ joined,
charsbar left
08:08
pbuetow_ left,
pbuetow joined
|
|||
pugs_svn | r21789 | lwall++ | [STD vs t] more Mutually Assured Construction | 08:10 | |
audreyt | *lol* | 08:11 | |
08:11
barney left
08:15
bacek left
|
|||
clkao | gaal: perl6::declare | 08:36 | |
i was expecting more craziness for yapceu but nothingmuch is bailing out | 08:37 | ||
08:38
dmq joined,
eternaleye left
|
|||
masak | hm, is there an 'is inline' trait on subs? | 08:45 | |
08:46
fridim__ joined
|
|||
audreyt | Yes, S06:1681 | 08:57 | |
08:59
jferrero joined
|
|||
masak | audreyt: thanks | 09:00 | |
09:00
fridim_ left
|
|||
pugs_svn | r21790 | audreyt++ | * Pugs.Lexer: "\d123" must now be written as "\c123" according to S02 v133. | 09:10 | |
dduncan | on that note, what word does the 'c' refer to? | 09:13 | |
09:14
ludan joined
|
|||
dduncan | eg, how is a c for base-10 or decimal self-documenting? | 09:14 | |
or is it deCimal? | |||
ludan | hi | ||
Tene | hi ludan | 09:15 | |
09:16
dduncan left
09:17
tcliou left,
tcliou joined
09:18
wknight8111 joined
|
|||
Patterner | c)haracter? | 09:20 | |
09:21
macroron left
|
|||
masak | feels like a category error next to \b, \x and \o, in that case | 09:21 | |
gaal | Moose! | 09:35 | |
speckbot | r14571 | audreyt++ | * S02: A few more C<...> an C<<...>> blocks, Contributed by John M. Dlugosz++. | 09:39 | |
09:39
ludanolo joined
09:42
ludan left,
wknight8111 left
|
|||
speckbot | r14572 | audreyt++ | * Typo spotted by John M. Dlugosz++: | 09:44 | |
r14572 | audreyt++ | | |||
r14572 | audreyt++ | method close is export () { ... } # Wrong | |||
r14572 | audreyt++ | method close () is export { ... } # Right | |||
audreyt | it means we've moved from decimal to centimal ;) | 09:53 | |
masak | 100t! | 09:55 | |
09:57
ludanolo left
|
|||
ruoso work & | 10:07 | ||
10:07
ruoso left
10:15
zamolxes joined,
zamolxes left
10:37
audreyt_ joined
10:38
ashizawa left
10:43
ludan joined
|
|||
gaal | For any base, you're always at base 10. Except unary. | 10:44 | |
10:49
audreyt left
10:56
fridim_ joined
|
|||
audreyt_ | gaal++ # That's true even for quater-imaginary bases | 10:57 | |
10:57
audreyt_ is now known as audreyt
11:03
ruoso joined
11:10
fridim__ left
11:20
nipotan is now known as nipotaway,
fridim_ left
|
|||
avar | audreyt++ # Yay, she's back! | 11:54 | |
lambdabot | avar: You have 1 new message. '/msg lambdabot @messages' to read it. | ||
avar | lambdabot: @messages | ||
lambdabot | audreyt said 22h 17m 45s ago: community.haskell.org/~audreyt/re-e....05.tar.gz # should build everywhere | ||
avar | Yeah I saw that, the OBJECT= stuff works but I'm a bit afraid of modifying the gettext stuff | ||
still, I guess it's needed, win32 doesn't have libint.h or whatever that gnu stuff was | |||
11:59
kanru left
|
|||
gaal | So... still no luck with the smoke. Once a single test hits the timeout, subsequent ones all time out. | 12:03 | |
I've added a ghetto "killall pugs" when the test doesn't terminate on time (getting the pid of the real bad pugs is tricky, as it's created deep in the harness) | 12:04 | ||
anyone know a portable way to get all my child pids + their $*PROGRAM_NAMEs? | 12:05 | ||
ruoso | gaal, I'm pretty sure there isn't one | 12:07 | |
except for libraries that abstract different implementations | 12:08 | ||
gaal looks at the plumbing | 12:09 | ||
beh, we'd need a patch to Straps.pm:651 to record the pid | 12:14 | ||
straps uses global filehandles, joy :/ | 12:15 | ||
Maybe it's time for T::T::Model to use TAP::Parser... let's see if that's any better. | 12:16 | ||
gaal growls. Straps calls itself obsolete and directs us to TAP::Parser,, but TAP::Parser doesn't come with something that actually runs a test. | 12:18 | ||
avar | gaal: how do you make the kids? fork? | 12:20 | |
gaal | open | | ||
avar | the only portable way is making a record when you make the kids | ||
ew | |||
gaal | which returns a pid, iirc | ||
open | is actually pretty portable. | |||
12:26
cmarcelo joined,
wknight8111 joined
12:36
bbkr left
12:42
REPLeffect left
12:57
zamanfou left
13:08
alester joined
13:09
[particle]1 is now known as [particle]
13:10
kanru joined
13:11
alester left
13:17
jferrero left
13:30
jhorwitz joined
|
|||
gbacon | in the Pugs build, are the profiling libraries strictly necessary? | 13:35 | |
INSTALL talks about a prof make target, but is that not required? | 13:36 | ||
gaal | I doubt they're required. | 13:37 | |
13:37
a-jing joined
13:38
a-jing left
|
|||
gaal | But I recommend trying :) | 13:38 | |
audreyt | "make prof" should now do a ./Setup configure -p --user | 13:39 | |
and then ./Setup build | |||
feel free to hack it in. :) | |||
gbacon: do you have a commit bit? | |||
masak | how do I get the name of the Role that results from a <=> or a cmp? | 13:43 | |
perl6: say (3 <=> 5).WHAT | 13:44 | ||
p6eval | rakudo 29834: OUTPUT[Orderā¤] | ||
..elf 21790, pugs: OUTPUT[Intā¤] | |||
masak | rakudo gives Order, but I'd like to get "Increasing" somehow | ||
ah, .perl | 13:47 | ||
perl6: say (3 <=> 5).perl | |||
gbacon | audreyt: yes! | ||
p6eval | rakudo 29834: OUTPUT[Order::Increaseā¤] | ||
..elf 21790, pugs: OUTPUT[-1ā¤] | |||
gbacon | audreyt: right, but running perl Makefile.PL runs cabal install -p | 13:48 | |
audreyt | yes, "just in case" | 13:49 | |
a better way would be when you "make prof" | |||
go back and detect and re-build the libraries taht needs to be profiled | |||
try hacking Makefile.PL line 167ish and add a "pugs-prof" target? | |||
and you can take off the default -p in Makefile.PL | |||
makes sense? | |||
gbacon nods | 13:50 | ||
13:50
TJCRI joined
|
|||
gbacon | audreyt: I dug through the svn logs, but I'm still very curious as to how you fixed the "invalid grammar category" error that we were getting when trying to build the prelude | 13:52 | |
pasteling | "rhr" at 65.94.11.172 pasted "pugs' Makefile.PL fails" (44 lines, 2.3K) at sial.org/pbot/31806 | 13:53 | |
rhr | is anyone else getting this error? | ||
gbacon | rhr: you might try installing cabal-install by hand | 13:59 | |
rhr | I tried that, it doesn't help :( | 14:00 | |
14:06
charsbar_ left,
charsbar joined,
tcliou left,
tcliou joined
|
|||
audreyt | rhr: oy. | 14:07 | |
if you can, rm -rf ~/.cabal and ~/.ghc and perl Makefile.PL again | |||
most likely though, "ghc-pkg unregister --user zlib" would be sufficient. | |||
(or "ghc-pkg unregister zlib") | 14:08 | ||
sorry for being mostly away... preparing for a job interview coming up in 1.5 hours | 14:09 | ||
rhr | audreyt: I have a working pugs from a few days ago, so no hurry :) | 14:12 | |
audreyt | okies :) | ||
rhr | audreyt: the rm method worked, thanks. have a good interview! | 14:19 | |
audreyt | thanks! | ||
14:20
AndyAway is now known as alester
14:23
Exodist joined
14:32
zamolxes joined
14:49
kanru left
14:52
[particle]1 joined
14:53
hercynium joined
14:59
Lorn joined,
alanhaggai left
15:03
[particle] left
15:15
kanru joined
15:38
sri_work joined
15:40
gnuvince joined
|
|||
gnuvince | @seen audreyt | 15:40 | |
lambdabot | audreyt is in #xmonad, #ghc, #haskell and #perl6. I last heard audreyt speak 1h 21m 8s ago. | ||
audreyt | yes? | 15:47 | |
gbacon | audreyt: good interview? | ||
[particle]1 | i'm expecting her to reply, "actually, i'm in it now :)" | 15:48 | |
15:48
[particle]1 is now known as [particle]
|
|||
audreyt | actually I'm in it now. | 15:49 | |
[particle] | :P | ||
gnuvince | audreyt: nothing, I was just very happy to see you were back when I read that blog post of yours last week. | 15:50 | |
15:53
ludan left,
dmq left,
araujo left,
gaal left,
jfredett left,
kanru left,
tcliou left,
wknight8111 left
15:54
Lunchy_ left,
yath_ left,
pengrate_ left,
Juerd left,
gnuvince left,
bloonix left,
perlbot left,
BinGOs left,
funktio left,
smtms left,
frobnitz left,
s1n left,
nnunley left,
sri_work left,
hercynium left,
p6eval left,
TreyHarris left,
ingy left,
jrockway left,
spinclad left,
moritz_ left,
thepler left,
[particle] left,
masak left,
cognominal_ left,
Guest16015 left,
ilbot2 left,
gbacon left,
lisppaste3 left,
Lorn left,
Exodist left,
audreyt left,
pbuetow left,
luqui left,
xinming left,
Caelum_ left,
whereiskurt left,
kane_ left,
orafu left,
zamolxes left,
charsbar left,
cmarcelo left,
Ara4n left,
pmichaud left,
simcop2387 left,
leto left,
smg left,
les left,
mj41_ left,
PZt left,
pasteling left,
cookys left,
nothingmuch left,
kolibrie left,
lumi left,
arguile left,
Maddingue left,
ptman left,
IRSeekBot left,
LCamel left,
dalek left,
r0bby left,
ruoso left,
pjcj left,
pugs_svn left,
alester left,
speckbot left,
Grrrr left,
kcwu left,
jhorwitz left,
elmex left,
Alias_ left,
mtve left,
PerlJam left,
yahooooo left,
cj left,
nipotaway left,
sunnavy left,
clkao left,
obra left,
Tene left,
integral left
15:56
cls_bsd_ joined,
gnuvince joined,
kanru joined,
tcliou joined,
wknight8111 joined,
BinGOs joined,
Lunchy_ joined,
broquaint joined,
japhb joined,
felipe joined,
viklund joined,
pengrate_ joined,
perlbot joined,
bloonix joined,
Juerd joined,
yath_ joined,
funktio joined,
Jedai joined,
Alias__ joined,
ludan joined,
dmq joined,
araujo joined,
gaal joined,
jfredett joined,
avar joined,
rafl joined
15:57
cosimo joined
16:02
sri_work joined,
avar left,
rafl left,
Tene joined,
TreyHarris joined,
spinclad joined,
ingy joined,
moritz_ joined,
jrockway joined,
jjore joined,
SamB joined,
p6eval joined,
hercynium joined,
jhorwitz joined,
Alias_ joined,
rafl joined,
cls_bsd joined,
apeiron joined,
avar joined,
integral joined,
cj joined,
nipotaway joined,
mtve joined,
yahooooo joined,
PerlJam joined,
sunnavy joined,
clkao joined,
obra joined,
irc.freenode.net sets mode: +o Tene
16:03
avar left,
jhorwitz left,
jhorwitz joined,
elmex joined,
Lorn joined,
Exodist joined,
audreyt joined,
pbuetow joined,
xinming joined,
Caelum_ joined,
whereiskurt joined,
c1sung joined,
jan__ joined,
hcchien joined,
meteorjay joined,
Khisanth joined,
kane_ joined,
orafu joined,
mtve left,
zamolxes joined,
charsbar joined,
cmarcelo joined,
Ara4n joined,
pmichaud joined,
simcop2387 joined,
allbery_b joined,
idemal joined,
cotto-work joined,
mofino joined,
les joined,
mj41_ joined,
PZt joined,
leto joined,
smg joined,
cookys joined,
pasteling joined,
obra left,
clkao left,
sunnavy left,
ingy left
16:04
[particle] joined,
masak joined,
cognominal_ joined,
fullermd joined,
gbacon joined,
lisppaste3 joined,
Guest16015 joined,
ilbot2 joined,
jrockway left,
apeiron left,
p6eval left,
p6eval joined,
TimToady joined,
nothingmuch joined,
lambdabot joined,
Southen joined,
r0bby joined,
dalek joined,
ptman joined,
LCamel joined,
lumi joined,
arguile joined,
kolibrie joined,
Maddingue joined,
IRSeekBot joined,
irc.freenode.net sets mode: +o TimToady
16:05
yahooooo left,
PerlJam left,
apeiron joined,
yahooooo joined,
PerlJam joined,
obra joined,
clkao joined,
sunnavy joined,
ingy joined,
speckbot joined,
kcwu joined,
Grrrr joined,
AzureStone joined,
alester joined,
pugs_svn joined,
pjcj joined,
ruoso joined,
frobnitz joined,
smtms joined,
rhr joined,
silug joined,
szbalint joined,
s1n joined,
nnunley joined,
thepler joined,
mtve joined,
jrockway joined,
avar joined,
rafl_ joined,
cls_bsd left,
rafl left,
moritz_ left,
TreyHarris left
16:06
Tene_ joined,
spinclad_ joined,
moritz_ joined
16:08
eternaleye joined,
cj left
16:09
Tene left
16:10
spinclad left,
justatheory joined
16:11
masak left
16:12
Alias_ left
16:15
zamolxes left
16:17
[particle]1 joined,
iblechbot joined
16:26
cjfields joined
16:34
[particle] left
16:48
REPLeffect joined
16:50
iblechbot left
17:14
AzureStone left
17:19
barney joined
17:33
jferrero joined
17:43
pmurias joined,
barney left
|
|||
pmurias | ruoso: hi | 17:43 | |
lambdabot | pmurias: You have 3 new messages. '/msg lambdabot @messages' to read them. | ||
ruoso | hi pmurias | ||
pmurias | ruoso: how long does the SMOP talk take you? | 17:44 | |
ruoso | it took me a little more than half an hour | ||
gbacon | audreyt: would you prefer to keep profiling enabled in the default pugs build? | 17:47 | |
audreyt | gbacon: no, I don't think so | ||
esp. on some platform prof and thread are mut. excl. | 17:48 | ||
and I'd much rather thread than prof | |||
pmurias | ruoso: did anyone ask about polymorphic eval? ;) | 17:49 | |
ruoso | pmurias, not really.. .but the audience was not as qualified as I would expect in yapc::eu | 17:50 | |
17:51
zamolxes joined
|
|||
pmurias | i'll read a bit about Glib or choose a different example | 17:53 | |
audreyt | yay I got the job. :) see you tomorrow *wave* | 17:54 | |
pmurias | *wave* | ||
[particle]1 | congrats audreyt | 18:06 | |
18:08
justatheory left
|
|||
pugs_svn | r21791 | gbacon++ | Add prof make target for profiling build. | 18:09 | |
18:10
[particle]1 is now known as [particle]
18:22
silug left
|
|||
pmurias | ruoso: got a documentation pointer to how glib object look like? | 18:29 | |
ruoso | in terms of data strucutre? | 18:30 | |
no, I don't... | |||
pmurias | i'll edit it out then | ||
18:32
spinclad_ is now known as spinclad
|
|||
pmurias | the SMOP talk will be my first talk, so any advice is appreciated ;) | 18:32 | |
ruoso | ;) | 18:37 | |
pmurias | getting cat food& | ||
18:44
justatheory joined
19:11
mncharity joined
19:13
justatheory left,
Limbic_Region joined
|
|||
pugs_svn | r21792 | lwall++ | [STD] let EXPR parse term after infix with a rule specified by the infix op | 19:14 | |
r21792 | lwall++ | (considered other kludges but this preserves 1-pass parsing) | |||
r21792 | lwall++ | switch , parsing to using this mechanism plus <nulltermish> | |||
r21792 | lwall++ | fix .= parsing by forcing <dottyop> as next term | |||
r21792 | lwall++ | [pre_post.t] can't leave the space out between "is Foo" and the class block | |||
r21792 | lwall++ | or it is interpreted as an arg to the Foo pseudo-adverb | |||
19:16
AzureStone joined
|
|||
pmurias | mncharity: hi | 19:21 | |
19:25
zamolxes left
|
|||
mncharity | hi pmurias | 19:26 | |
19:30
Tene_ is now known as Tene
|
|||
pmurias | mncharity: i haven't seperated EmitSM0P yet, as it will be obsoleted soon | 19:32 | |
mncharity puzzled ("seperated EmitSM0P"?), but *nod* | 19:33 | ||
I'm exploring getting STD's tryfile to accept the elf sources. | 19:34 | ||
pmurias | separated, sorry | 19:35 | |
mncharity: that should force removing =~ | 19:38 | ||
mncharity | pmurias: wasn't the spelling... I just don't know, or have forgotten, what EmitSMOP is being separated from, and with what objective. | ||
pmurias | from elfX into elfish/smop | 19:39 | |
mncharity | re =~ ... do you know if STD will tolerate them if it sees an explicit =~ definition? | ||
pmurias | so it could be integrated into elf | ||
mncharity: =~ is and explicit error | |||
s/and/an | 19:40 | ||
mncharity | :( ah well. maybe =~~ ... | 19:41 | |
pmurias | you now my attitude towards =~ | 19:42 | |
* know | |||
ruoso | pmurias, when you finish the slides you can add a second link to them in the wiki | ||
19:43
wknight8111 left
19:44
Limbic_Region left
|
|||
pmurias | ruoso: ok | 19:45 | |
ruoso: i'm currently thinking what to change | 19:46 | ||
mncharity | pmurias: re know, yes :) will go away as part of merging in regex/p engine. | 19:47 | |
ruoso | pmurias, you can always throw that slides away if you like to... ;) | ||
pmurias | i | 19:48 | |
'm actually hoping to finish m0ld before YAPC::EU | |||
Mold too | 19:49 | ||
ruoso | that would be very cool | 19:50 | |
pmurias, btw... have you seen the wiki page on lexical scopes? | |||
TimToady | mncharity: STD does not currently do anything with an infix:<foo> definition because pmurias got distracted :) | 19:52 | |
mind you, m0ld is a fine thing to be distracted by... | 19:53 | ||
mncharity | lol | 19:56 | |
TimToady | but STD is up to parsing 98.44% of t/, and several of the remaining errors have to do with not mutating the grammar on operator defs | ||
19:58
ruoso left
19:59
Caelum_ is now known as Caelum,
justatheory joined
|
|||
TimToady | nap & # stayed up too late hacking last night... | 20:00 | |
mncharity | re 98.44%, !!! There's a Perl 6 project milestone of note. | 20:03 | |
TimToady | .oO(still one percentile short of Ivory Soap) # rethunk |
||
pmurias | it might be that we need more cunning tests | 20:05 | |
mncharity | more cunning tests++ | 20:07 | |
20:08
cmarcelo left
|
|||
mncharity | hmm, might call it "accepting" instead of "parsing"? I always find it very hard to tell if parses are correct until they are used, running, and passing tests. | 20:09 | |
re "Ivory Soap", their line is n % "pure". Where "pure" is without meaning. So you could feel free to declare STD's purity to be 99.99999%. | 20:11 | ||
pmurias | my limited experience with pixie is that the resulting AST is bug-riden, but it's hardly resonable to expect untested things to be correct | ||
20:13
Arathorn joined
|
|||
mncharity | "it's hardly resonable to expect untested things to be correct", ooooo, I like that quote. Nice alternative to "if it hasn't been tested, it doesn't work". | 20:14 | |
ah, pixie! that's what I was looking for... | 20:16 | ||
20:20
silug joined
20:25
jhorwitz left
|
|||
pmurias | mncharity: pixie is currently broken as STD remove a {*} per rule | 20:37 | |
20:41
dduncan joined
20:47
fridim_ joined
|
|||
mncharity | pmurias: np. i'm going to try a STD_red like approach - getting the Match tree and groveling over it, rather than using make(). | 20:50 | |
20:51
Jedai left
20:54
Chillance joined
20:55
ludan left
20:56
ludan joined
|
|||
gaal | mncharity: moose! | 21:00 | |
pugs_svn | r21793 | pmurias++ | [m0ld] calls with positionals only are translated to bytecode | 21:02 | |
pmurias | mncharity: using make is better as you might want to start modifing the grammar at some point from the actions | ||
otoh you should be able to convert from one approach to the other easily | 21:07 | ||
mncharity | gaal: moose :) | 21:09 | |
21:11
TJCRI left
|
|||
mncharity | pmurias: *nod*. at least for now, with a semi-static grammar, the advantage of greater debuggability outweighs future flexibility. | 21:16 | |
21:21
fridim_ left
21:35
jferrero left
21:38
pbuetow left,
pbuetow joined
|
|||
pugs_svn | r21794 | pmurias++ | [m0ld] named arguments | 21:44 | |
21:48
cjfields left
|
|||
gbacon | transparency++ | 21:51 | |
22:01
Lorn left
|
|||
mncharity | pmurias: before I start exploring, any thoughts on what "Unable to parse class definition at ../../misc/elf/elf_g_src/EmitSimpleP5.pm line 946: ------> expecting nibbler (alt 02)" means? 946 is end of file. | 22:03 | |
oh, and the =~ have all gone away. ;) | 22:04 | ||
(haven't measured the performance hit yet :/ ) | |||
TimToady | probably a runaway string | 22:09 | |
mncharity | yep. unescaped { in "". | 22:10 | |
dduncan | question: regarding base-10/decimal numeric literals, what word does the 'c' prefix stand for? is it deCimal or something else? | ||
TimToady | admittedly could use a better message :) | ||
your question was answered last night | 22:11 | ||
but you vamoosed too soon :) | |||
dduncan | I'll check the logs ... | ||
TimToady | it's 'c' as in 'characgter' | ||
we can't use \d because that already means something else in regex | |||
and the idea is that you should be concentrating on producing the character, not on its radix | 22:12 | ||
dduncan | okay | ||
TimToady | on top of that, nobody should be using decimal for that anyway except in a few cases | ||
but almost all the decimal characters people know are already better encoded some other way | 22:13 | ||
\c9 == \t for instance | |||
and unicode has pretty much settled on hex | |||
dduncan | now looking at the log, I saw the answer, and also the comment: feels like a category error next to \b, \x and \o, in that case | 22:14 | |
TimToady | anyway, was just looking for a way to sneak in the decimal notation, and it turned out that current \c usage had holes in the right place | ||
sure, but those are exceptional in not being base 10, and we have ten fingers | |||
it just points out that you can't actually create the Perfect Language | 22:15 | ||
dduncan | indeed | ||
pmurias | gbacon: what did the transparency++ comment refer too? | ||
dduncan | but one can try | 22:16 | |
TimToady | (as in the Search for the Perfect Language, Umberto Eco) | ||
even trying has its dangers, if you don't understand the tradeoffs | |||
gbacon | pmurias: mncharity's "at least for now, with a semi-static grammar, the advantage of greater debuggability outweighs future flexibility." | ||
TimToady | and one of them in this case is the current cultural meaning of \d, which I don't wish to break | ||
dduncan | generally you just want to make the language good for the task its intended for | 22:17 | |
I'm not arguing for anything different than what you did | |||
TimToady | and in that larger scheme of things, I doubt people will be using \c that often | ||
and when they do, it'll more often be \c[LINE FEED] | 22:18 | ||
or \cG | |||
and every now and then \c[13,10] | |||
dduncan | as for now, I'm trying to use Moose for the first time, and am learning how it is, and isn't like Perl 6 or Perl 5 | ||
pugs_svn | r21795 | pmurias++ | [smop] hand compiled the m0ld example from the wiki and added as test | 22:19 | |
TimToady | gotta commute, bbiab & | ||
pmurias | gotta sleep, bbiab& ;) | ||
22:20
pmurias left,
hercynium left,
[particle] left
22:29
wknight8111 joined
22:31
[particle] joined
22:33
aindilis joined
22:34
pbuetow left
22:57
alester_ joined
23:04
Limbic_Region joined
23:06
Exodist left
23:16
justatheory left
23:19
alester_ left
|
|||
pugs_svn | r21796 | putter++ | [elf_g] STD's src/perl6/tryfile r21792 now accepts the elf sources (no parse errors are reported). | 23:19 | |
r21796 | putter++ | One acceptable regression - t/xx-uncategorized/deref_doesnt.t now fails differently. | |||
mncharity | Next steps are () Get a Match tree dump from STD (in the same format as STD_red_run --format=p5a). STD_blue? () New IRx1_FromAST2. <> Elf bootstraps on STD_blue. Then... elf accepting, running, STD. Yielding bootstrapped front-end. | 23:28 | |
g'night all & | |||
23:28
ludan left
23:29
mncharity left,
ludan joined
23:40
justatheory joined
23:52
sri_work left
|