Also, I caught leo on IRC, and he likes my idea of making ascii instead of iso-8859-1 as Parrot's default character set as well. Now my suggestion is in much more capable hands, I can further delay my adventure into the segfaulting land...
Pugs development continues to happen at a faster-than-a-speeding-bullet pace. I ego-googled a little bit, and it seems that several non-camelfolks have noticed our humble project: Ted from the Java/Python land, Glenn from the Lisp land, and even the great Prof. Wadler himself, who have brought innumerable advanced technologies to Haskell-land for Pugs to use.
Schwern appeared on #perl6 today, advocating the idea of a temporizable $*CWD to simplify chdir() logic:
if some_condition() {
temp $*CWD = '/var/run/myapp';
#... do lots of things in that directory ...
}
#... goes back to the original directory automagically
While he was composing his proposal to p6l, I suggested him to actually implement it in Pugs, and walked him through this implementation in a matter of minutes. Compared to implementing a new SvMG in Perl 5, that is perhaps too easy...
<Schwern> $
./pugs -e 'say $*CWD'
<Schwern>/Users/schwern/devel/pugs
<autrijus> woot.
<Schwern> Ok, that was too easy
<autrijus> now, write some test.
Because Schwern's test needs readdir(), I implemented the
most simple form for him (readdir(Str) returns List), so
he happily committed the test. And then there are some discussions
about making all FilePath operations transparently work on URIs...
But nothing concrete has ensued.
Our new committer roie has supplied a massive patch to make quoting modifiers work, so we have full access to selective interpolation now. Corion and I then proceeded to clear up some whitespace handling issues. All in all, wonderful work!
Theorbtwo is surveying the possibility of an eval_haskell()
builtin in Pugs; because hs-plugins also uses the name Eval,
we concluded that it may be best to rename all Pugs modules into
Pugs.Eval, Pugs.AST etc.
On the cookbook front, gcomnz has written a massive introduction on the 01strings section, detailing the relevant Synopsis chunks with useful examples.
There are other, less-massive changes as well:
map and hash/list subscript contexts, and added the test fo them.pugs --version tests, among many other things.$ENV{GHC}.rx:p5 adverb; the other three notations, rx:P5, rx:Perl5 and rx:perl5, are all recognized.want() function in its string context form.See you tomorrow!
I can't get to the implementation (Score:1)
Re:I can't get to the implementation (Score:1)