Pugs 6.2.9 released | pugscode.org | pugs.kwiki.org | paste: sial.org/pbot/perl6 | www.geeksunite.net
Set by autrijus on 4 August 2005.
mugwump brentdax: ePerl didn't take off. 00:58
QtPlatypus mugwump: What is ePerl? 01:00
mugwump Parse::ePerl
Which would be very similar to Perl 6's { } interpolation, in fact identical if you passed it the appropriate options 01:01
However nobody used it because the templates ended up being really ugly, especially compared to TT. Or they just used Mason (of course, people who use Mason are never worried about ugly templates) 01:02
maybe Perl 6 having nicer syntax would be its saving grace, but I still think that a domain-specific language like TT brings the right balance of expressivity and restriction to a templating environment. 01:03
Otherwise you just end up writing PHP 01:04
mugwump lunches & 01:06
coral www.weitz.de/einstein.html 06:02
brentdax You can return from a try {} block, can't you? 06:04
06:12 davidra is now known as autark 06:14 autark is now known as jp-autark
nothingmuch tries to think what he still needed to get around to yesterday 07:07
brentdax wonders if an unprintable character can be used as a literal string delimiter... 07:10
Looks like it. Hmm...
nothingmuch brentdax: it's fun 07:18
you can use \0 as a delimiter
brentdax I'm planning to do so. 07:19
`eval "qq\0$str\0"` is basically equivalent to the `eval :lang<Perl6qq>` construct I mentioned earlier. 07:21
(And no, not every Joe Blow will be able to control what goes in $str--only an admin will.)
nothingmuch why do you need to quote that way? 07:22
isn't `eval "qq\0$str\0"` eq `$str`
brentdax Not if you don't know what $str will be until runtime. 07:23
I'm pulling $str out of a database.
And letting it interpolate variables in the local scope.
nothingmuch oh, variable interpolation
i didn't notice it was qq instead of q
you are naughty, but have fun =) 07:24
autrijus brentdax: looks suitable insane
(i.e. that's fine)
brentdax It probably is, but I don't want to invent a template language and I don't want to force people to edit the code. 07:25
nothingmuch has to finish some web devel now
we have a templating module, don't we?
Aankh|Clone I believe we do... 07:26
07:26 Aankh|Clone is now known as Aankhen``
Aankhen`` Ah yes, WTemplate. 07:26
brentdax Doesn't really seem to be what I'm looking for--basically I just want something where the user can specify a string and have a few values inserted here and there. 07:36
nothingmuch .... and an if/then/else clause occasionally 07:39
;-) 07:40
brentdax If they need one, there's always closure interpolation... 07:43
Hmm, "can't find fetchrow_arrayref" is never a good error message. 07:44
There are a lot of Heisenbugs in Perl 5 interop.
autrijus yes. 07:46
coral s/interop// additionally 07:47
brentdax Heh.
Time to switch shebang lines and see if a newer Pugs will work better... 07:48
17:15 enilb is now known as bline
svnbot6 r6113 | fglock++ | * much refactored Lazy::List 17:16
r6114 | fglock++ | * New lazy array methods: FETCH(), STORE() 18:13
r6114 | fglock++ | * Lazy list methods (grep, map, ...) moved from Array::Lazy to
r6114 | fglock++ | Lazy::List. These methods can be accessed from an array
r6114 | fglock++ | by doing a 'splat()' first.
r6114 | fglock++ | Array::Lazy::reverse() is still supported.
r6115 | fglock++ | * added tests for Array::Lazy FETCH/STORE
stevan autrijus: how goes the metamodel? 18:38
I will try and work up a properly documented Meta Object Protocol this week 18:39
aka - a list of methods which you need to expose on the Perl 6 level
I will use Syn 12.5 for it
svnbot6 r6116 | fglock++ | * Array::Lazy FETCH/STORE all tests pass 18:51
r6117 | fglock++ | * Array::Lazy new method slice() 19:13
r6117 | fglock++ | - accepts a lazy list or lazy array as argument!
r6117 | fglock++ | @a = 1..Inf; @b = @a[10..Inf];
r6118 | fglock++ | * Array::Lazy documentation updates
19:28 chip_ is now known as chip
svnbot6 r6119 | iblech++ | * t/rules/, t_disabled/rules/: Fixed the rules-support-missing guard so it 19:29
r6119 | iblech++ | works under PIL2JS (eval('!...') -> !eval('...')).
r6119 | iblech++ | * t/builtins/arrays_and_hashes/pick.t: Minor fix (s/==/eq/).
r6119 | iblech++ | * PIL2JS: PIL2JS.js: Added .toNative of PIL2JS.Hash and PIL2JS.Pair.
chip Good Day
fglock hi 19:31
brentdax Hello Chip. 19:33
svnbot6 r6120 | fglock++ | Lazy Array .elems() actually work 19:56
r6121 | Stevan++ | Perl6::MetaModel - (p5) 20:10
r6121 | Stevan++ | * first start on documenting the Meta Object Protocol
r6122 | fglock++ | * more Array::Lazy.elems stuff 20:37
fglock hi 20:45
21:04 blez is now known as firemind
svnbot6 r6123 | dudley++ | Perl6::MetaModel - (p5) 21:10
r6123 | dudley++ | * minor spelling and grammar fixes
Aankhen`` goes to sleep. 21:22
G'night.
stevan dudley++ # fixing my attroshush speeling and grammer 21:51
personally I blame Phonics :P
dudley :) 21:52
I'm thinking about working on the Java version of the metamodel a little, just to get acquainted with it. Do you mind? 21:55
BlackShuck Hope nobody minds, I got a perl newbie iser question. I have a perl app, but it complains about the following on start "Can't locate Digest/SHA.pm" I have added the cpan module SHA, but it has not helped. Does anyone have any other advice? Thanks. 22:25
mugwump BlackShuck: ask on perlmonks.org, could be a few reasons. make sure to put full command output in your question. 22:26
iblech Isn't it Digest::SHA1 (with the 1)? 22:27
mugwump yes, that might be part of the problem :)
BlackShuck yes, thanks ibelch, it was digest::sha1 22:29
mugwump gives iblech a fish 22:30
BlackShuck although it did install something with SHA
iblech goes back to coding (full continuations in PIL2JS)
fglock banging head trying to store a lazy array into another, using a lazy slice 22:31
svnbot6 r6124 | fglock++ | * Array::Lazy::store_slice() - initial code 22:48
23:25 buu is now known as buu-, buu- is now known as buu--, buu-- is now known as buu