Today's short hacking session with clkao was quite successful. Apparently his $work involves using JavaScript for server-side scripting -- there's definitely a trend here -- and as the original author for Perl5 embedding support in Pugs, he thought it might be neat to add Perl 5 embedding to the JavaScript backend as well, so you can use both JSAN libraries and CPAN libraries in your Perl 6 code.
With a few days of mad hacking, this now works today:
./pugs -B JS-Perl5 -e \
'use jsperl5:DBI; use jsan:Number::Roman; ...'
(The "jsperl5:" hack is expect to go away and replaced by "perl5:" once our Parser can recognize that compilation to JS (instead of PIL) is currently in effect.)
After gaal's recent work on lexical imports (which I'll journal about later), clkao noticed that all use statements stopped exporting, so he asked me to fix this today. In return, I nudged him into finishing up SVK::View support, which implements Perforce Views (lightweight client-side branching), the one feature I missed the most when I migrated from Perforce to SVK.
Two hours later, we both finished our tasks: mine involved deleting a dozen lines of code, and his involving adding 1000+ lines. Yay for productive mini-hackathons! :-)
Recent Comments