Re: ICU and Parrot

2002-05-31 Thread Autrijus Tang
On Fri, May 31, 2002 at 06:18:55AM +0900, Dan Kogai wrote: > As a matter of fact GB18030 is ALREADY supported via Encode::HanExtra by > Autrijus Tang. The only reason GB18030 was not included in Encode main > is sheer size of the map. Yes, partly because it was not implemented algori

Re: ICU and Parrot

2002-05-31 Thread Autrijus Tang
On Sat, Jun 01, 2002 at 02:20:15AM +0900, Dan Kogai wrote: > >2) If not, would a Encode::ICU be wise? > I'm not so sure. But if I were the one to implement Encode::ICU, it > will not be just a compiled collection of UCM files but a wrapper to all > library functions that ICU has to offer. I, f

Pugs 6.0.0 released.

2005-02-06 Thread Autrijus Tang
(Sorry for the cross-posting; announcement of future releases will appear only on the perl6-compiler list.) Quite appropriately, on Day 6 of Pugs, I have released Pugs 6.0.0. It should be on a CPAN near you in a few hours, under the Perl6::Pugs namespace. You may install it from the CPAN shell j

pugscc --runparrot -e "'Hello, Parrot'.say"

2005-03-23 Thread Autrijus Tang
(Cc'ing this post to p6i and p6l, as this is likely to concern folks from all three mailing lists.) As of Pugs revision 1024, this works: % pugscc --runparrot -e "'Hello, Parrot'.say" And yes, it does what you think it does. Pugs takes that Perl 6 source code, produce an AST, triggers the Co

pugscc --runparrot -e "'Hello, Parrot'.say"

2005-03-23 Thread Autrijus Tang
(Cc'ing this post to p6i and p6l, as this is likely to concern folks from all three mailing lists.) As of Pugs revision 1024, this works: % pugscc --runparrot -e "'Hello, Parrot'.say" And yes, it does what you think it does. Pugs takes that Perl 6 source code, produce an AST, triggers the Co

Re: pugscc --runparrot -e "'Hello, Parrot'.say"

2005-03-26 Thread Autrijus Tang
On Sat, Mar 26, 2005 at 04:44:52PM +0100, Leopold Toetsch wrote: > I had a look at the generated mandel.imc. Remarkable, how compact > Parrot.hs is and what it already does. Thanks. One of my remaining large TODOs before Pugs 6.2.0 is to recode the evaluators in Template Haskell as Compile/Haskel

Pugs to become a Perl6 -> Parrot AST/IMC compiler.

2005-03-28 Thread Autrijus Tang
After a IRC meeting with Leo, I've outlined my roadmap of how to make the three compiler backends in Pugs to work in concert to provide a much faster evaluator: http://use.perl.org/~autrijus/journal/23890 Note that existing code in the Eval monad need not be rewritten; also Pugs will still ru

Pugs 6.2.0 released.

2005-04-12 Thread Autrijus Tang
I am delighted to report that the first major milestone of Pugs, version 6.2.0, has been released to CPAN: http://wagner.elixus.org/~autrijus/dist/Perl6-Pugs-6.2.0.tar.gz SIZE (Perl6-Pugs-6.2.0.tar.gz) = 642482 MD5 (Perl6-Pugs-6.2.0.tar.gz) = 8d5438d49db872ffe2394fd4995d335b It repres

Re: Sun Fortress and Perl 6

2005-04-30 Thread Autrijus Tang
On Sat, Apr 30, 2005 at 08:41:52AM +0200, Leopold Toetsch wrote: > Anyway Parrots MMD system depends on types. *If* the Perl6 compiler defines > above array as > > cl = subclass "FixedFloatArray", "num_Array_shape_3_3_3" Yes, that is what I am planning to emit for hierarchical and other subtype

Pugs now embeds Parrot.

2005-05-03 Thread Autrijus Tang
Because I want to embed PGE in Pugs, I end up embedding the entire libparrot. :-) As of two hours ago, if you set the PUGS_EMBED environment variable to "parrot" and run perl Makefile.PL, Pugs will build and link against Parrot, and provide a require_parrot() primitive for you. JIT works as one o

Re: New version of PGE released

2005-05-03 Thread Autrijus Tang
On Tue, May 03, 2005 at 09:22:11PM +0100, Nicholas Clark wrote: > Whilst I confess that it's unlikely to be me here, if anyone has the time > to contribute some help, do you have a list of useful self-contained tasks > that people might be able to take on? Following some discussion on #perl6, it s

Commitership inquiry

2005-05-05 Thread Autrijus Tang
Hey. Leo suggested to me on #parrot to drop a note on p6i, asking about obtaining the committer to the Parrot tree. As some of you know, Pugs can now evaluate PIR via an embedded Parrot interpreter: $ ./pugs -e 'eval_parrot' 42! as well as compiling Perl 6 to PIR, evaluating it in memor

Pugs/Parrot roundtrip

2005-05-06 Thread Autrijus Tang
I'm glad to report that Pugs is now a registered Parrot compiler: $ cat roundtrip.p6 eval_parrot ' compreg $P0, "Pugs" $S0 = "say qq[There... and back again!]" $P0 = compile $P0, $S0 invoke $P0 '; $ ./pugs roundtrip.p6 There... and back again!

[PATCH] PGE::Hs for Pugs PGE support

2005-05-08 Thread Autrijus Tang
Greetings. Attached is a patch that I'm currently using in Pugs's bundled PGE.pbc, in order to make PGE output properly escaped strings, in a format ready to be used form Haskell FFI. I'd appreciate comments, and if it's okay to commit it back to the PGE directory. Thanks, /Autrijus/ Patch

Re: [PATCH] PGE::Hs for Pugs PGE support

2005-05-09 Thread Autrijus Tang
On Sun, May 08, 2005 at 10:25:43PM -0500, Patrick R. Michaud wrote: > On Mon, May 09, 2005 at 07:24:49AM +0800, Autrijus Tang wrote: > > Greetings. Attached is a patch that I'm currently using in Pugs's > > bundled PGE.pbc, in order to make PGE output properly escaped

Re: Question about Parrot and Omniscient Debugging

2005-05-10 Thread Autrijus Tang
On Tue, May 10, 2005 at 11:11:12AM -0500, [EMAIL PROTECTED] wrote: > Please excuse the possible 'out of left field' (as we say) aspect of this > question but I recently heard about Omniscient Debugging (ODB): > http://www.lambdacs.com/debugger/debugger.html This seems to require almost the same j

Re: Named rules and basic OO support landed.

2005-05-11 Thread Autrijus Tang
On Wed, May 11, 2005 at 09:19:50AM +0200, Leopold Toetsch wrote: > 2) named access > > x = getattribute o, "Point\0x" > > This needs a full qualified attribute name "Class" ~ NUL ~ "Attribute". > That's unusable for at least Python and probably more HLLs as the > compiler has to know in which c

Re: small typo in PBC_COMPAT

2005-05-12 Thread Autrijus Tang
On Wed, May 11, 2005 at 06:09:00PM -0400, Dino Morelli wrote: > >Feel free to correct 'no_plan'. I'll happily apply any and all > >patches to the tests, and those with commit privs are welcome > >to directly modify the t/p6rules/*.t files at any time. > > > > Speak of the devil -- I started worki

Re: Remove .cvsignore?

2005-05-13 Thread Autrijus Tang
On Fri, May 13, 2005 at 06:55:12PM +0200, Bernhard Schmalhofer wrote: > As fas as I see, the only place where .cvsignore files are still used, is > tools/dev/manicheck.pl. > If we require 'svn', than we can replace the reading on .cvsignore with > > svn propget svn:ignore > > Is that the right w

Re: Parrot as an extension language

2005-05-17 Thread Autrijus Tang
On Tue, May 17, 2005 at 03:00:14PM +0100, Colin Paul Adams wrote: > But when I look at http://www.parrotcode.org/docs/embed.html, I can > see no way of getting information back from the script - not even an > exit code. Is there anyway of doing this that I have missed? You may wish to use Parrot_c

Re: Parrot as an extension language

2005-05-17 Thread Autrijus Tang
On Tue, May 17, 2005 at 05:31:32PM +0100, Colin Paul Adams wrote: > I take it SS stands for String-to-String? Yes. "PPC" would stand for PMC -> PMC -> String, i.e. take two PMCs and returns a String. > Which section within http://www.parrotcode.org/docs/ covers this sort > of thing? `perldoc ex

Re: Parrot as an extension language

2005-05-20 Thread Autrijus Tang
On Fri, May 20, 2005 at 10:34:39AM +0100, Colin Paul Adams wrote: > I have a problem with this - namely that the function is variadic, and > the interface generator can't cope with this. Hmm, in Haskell FFI, we hard-coded two cases of invocation, treating the function as two distinct, non-variadic

Re: Parrot as an extension language

2005-05-20 Thread Autrijus Tang
On Fri, May 20, 2005 at 05:42:48PM +0100, Colin Paul Adams wrote: > The problem I'm finding with this, is getting back the returned string > characters. > I assume the void * returned is pointing to a Parrot String. > Certainly it's not a const char *. Yes. > There is a function declaration > Par

Re: Parrot as an extension language

2005-05-20 Thread Autrijus Tang
On Sat, May 21, 2005 at 12:53:15AM +0800, Autrijus Tang wrote: > On Fri, May 20, 2005 at 05:42:48PM +0100, Colin Paul Adams wrote: > > There is a function declaration > > Parrot_string_cstring > > > > in string_funcs.h, but it appears to have no definitoon anywhere, so

Re: Parrot as an extension language

2005-05-20 Thread Autrijus Tang
On Sat, May 21, 2005 at 12:53:15AM +0800, Autrijus Tang wrote: > Yeah, I bumped against that too. You need to look at the "strstart" > field in the ParrotString struct. > > In Haskell I use: > > peekCString =<< #{peek STRING, strstart} s5 Actually, never

Re: Regarding Google's Summer of Code 2005

2005-06-03 Thread Autrijus Tang
On Fri, Jun 03, 2005 at 05:30:51PM +0530, Dheeraj Kumar Arora wrote: >I m interseted in one of LLVM project > "Implement well-known optimizations in PIR compiler (SSA -> > register allocation)" > Can Any send me the details? I'm not an expert with with PIR or SSA,

Re: Attack of the fifty foot register allocator vs. the undead continuation monster

2005-06-13 Thread Autrijus Tang
On Mon, Jun 13, 2005 at 09:21:00AM -0700, Brent 'Dax' Royal-Gordon wrote: > On 6/13/05, Chip Salzenberg <[EMAIL PROTECTED]> wrote: > > Oh no ... it's even worse than you think. Almost *any* opcode that > > operates on a PMC can trigger a continuation. And I only need two > > words to prove it: >

Re: Attack of the fifty foot register allocator vs. the undead continuation monster

2005-06-13 Thread Autrijus Tang
On Mon, Jun 13, 2005 at 06:52:35PM +0200, Chip Salzenberg wrote: > > > Isn't this *exactly* why Perl 6 is requiring you to mark tied > > > variables when they're declared? > > > > Yes. > > Um: > >my $x is tied; >tied $x, SomePackage; >unsuspecting_victim(\$x); # ??? Hmm, you can't

Re: Exception handlers and calling conventions

2005-07-11 Thread Autrijus Tang
On Mon, Jul 11, 2005 at 01:39:08PM +0200, Leopold Toetsch wrote: > I can see two ways to go: > > a) e = interpinfo .INTERPINFO_EXCEPTION > > b) via the get_params opcode > > The latter would reflect the exception call being an internal > continuation invocation: > >push_eh handler >

Re: Punie

2005-07-11 Thread Autrijus Tang
On Mon, Jul 11, 2005 at 09:35:11PM -0700, Allison Randal wrote: > I'd like to add Punie to the Parrot repository. It's a first step > toward a compiler for Perl 1 running on Parrot. Currently it's *very* > simple: it only parses and compiles a single statement printing a > single digit -- but it

Re: Punie

2005-07-11 Thread Autrijus Tang
On Tue, Jul 12, 2005 at 12:41:00PM +0800, Autrijus Tang wrote: > Is it Punie's goal to support all of those semantic constructs? If not, > maybe call it something else than Perl 1, to avoid confusion? :) (more bikesheding) If the goal is to demonstrate the capability of the upcoming

Re: Punie

2005-07-12 Thread Autrijus Tang
On Mon, Jul 11, 2005 at 11:43:55PM -0700, Allison Randal wrote: > >As Schwern will attest, Perl 1 is a quite complicated language, with > >nullary, unary, binary and ternary functions, arrays, hashes, pattern > >matches, transliteration, format, loop control and labels. > > As a test case for the

Re: Punie

2005-07-17 Thread Autrijus Tang
On Tue, Jul 12, 2005 at 12:17:48PM -0700, Allison Randal wrote: > On Jul 12, 2005, at 0:37, Autrijus Tang wrote: > >That's cool. In that case I'll commit the test suite from perl-1.0_16 > >as TODO tests to the Punie tree, if that's okay with you. :) > >

Re: [DOCS] Updated intro.pod

2005-08-09 Thread Autrijus Tang
On Mon, Aug 08, 2005 at 12:03:25AM +0100, Jonathan Worthington wrote: > So, I re-wrote it. It now talks about PIR, and has examples in PIR. It > mentions how PIR differs from PASM. Subroutines now get a look in to the > introduction, and it mentions in passing that Parrot is capable of doing O

Re: Parrot <-> Java integration

2005-08-17 Thread Autrijus Tang
On Mon, Aug 15, 2005 at 08:07:22PM +0100, Tim Bunce wrote: > Anyone given any thought to Parrot <-> Java integration? I have been looking at IKVM: http://www.ikvm.net/ It's basically a full Java environment but using CLR instead of JVM as the underlying runtime. The JIT conversion from Java

Re: Implementing perl BEGIN blocks

2005-08-18 Thread Autrijus Tang
On Thu, Aug 18, 2005 at 04:51:58PM +0200, Leopold Toetsch wrote: > There was some recent discussion [1] [2] on p6l about BEGIN blocks and > constant, which is executed at compile time too. > > Parrot has since quite a time the @IMMEDIATE subroutine pragma, which > causes execution of subs during

Re: Implementing perl BEGIN blocks

2005-08-18 Thread Autrijus Tang
On Thu, Aug 18, 2005 at 06:00:43PM +0200, Leopold Toetsch wrote: > This shouldn't be a problem (at least when the last few globals from > imcc are gone), i.e. compilation / running code should be fully re-rentrant. Oooh, that will be much better. > BTW can you explain why the above example print

Re: Parrot and Neko

2005-08-19 Thread Autrijus Tang
On Fri, Aug 19, 2005 at 07:37:41PM +0200, Nicolas Cannasse wrote: > I released a few days ago the Neko intermediate language at > http://nekovm.org . In the FAQ I'm comparing Neko to LLVM / C-- and Parrot. > According to a mail sent to me by Leopold Toetsch I got some points wrong > when trying to

Re: Recent news about PGE

2005-11-06 Thread Autrijus Tang
On 11/4/05, Patrick R. Michaud <[EMAIL PROTECTED]> wrote: > As a quick example, one can now use the subrule > to parse a perl 6 rule expression, and the Match object > that is returned contains the parse tree. Other examples > and demonstrations or parsing are in the examples/pge/ > directory. p

Re: Recent news about PGE

2005-11-06 Thread Autrijus Tang
On 11/6/05, Patrick R. Michaud <[EMAIL PROTECTED]> wrote: > First, for null input, PGE (and p6rules) will likely parse this > by returning a Match object indicating "false", and attempting > to compile that object will probably return a null subroutine. Yes, that sounds sane. > The other case is