Stories
Slash Boxes
Comments
NOTE: use Perl; is on undef hiatus. You can read content, but you can't post it. More info will be forthcoming forthcomingly.

All the Perl that's Practical to Extract and Report

use Perl Log In

Log In

[ Create a new account ]

fglock (5723)

fglock
  (email not shown publicly)
+ -

  Journal: Fun with "go routines" in Perl 6 on 2010.04.12 14:32

Journal by fglock on 2010.04.12 14:32
User Journal

I've just added experimental support to "go routines" to Perlito's Go backend:

$ perl mp6.pl -Bgo -e ' go sub { say 123; say "aaa" }; go sub { say 456; say "bbb" }; say "here"; say "now"; '

here123456

nowaaabbb

Go "Channels" are not supported yet.

Read More 1 comments
Comments: 1
+ -

  Journal: "Perlito" MiniPerl6 4.0 - string-eval, more bootstraps on 2010.03.20 4:38

Journal by fglock on 2010.03.20 4:38
Perl 6
Perlito is a subset of Perl 6, which was designed as a light bootstrapping language.

Changelog for version 4.0:

- Go backend bootstrap.

The Go backend was updated to the latest Go language spec.

- Perl5 backend optimized; 30% faster

- More library functions, added to all backends

- New 'Eval.pm' module - implements a MiniPerl6 interpreter in MiniPerl6.

This should add some debugging capabilities later on.

Read More 0 comments

+ -

  Journal: MiniPerl6 3.0 "Perlito" - Go lang, JVM backends on 2010.01.21 10:11

Journal by fglock on 2010.01.21 10:11
Perl 6

MiniPerl6 (mp6) is a subset of Perl 6, which was designed as a light bootstrapping language.

Changelog for version 3.0:

- Go language backend; using Go: http://golang.org/

- Java-class backend; using Rhino: http://www.mozilla.org/rhino

- util/mp6.pl - compiler command line script written in MiniPerl6

Read More 0 comments

+ -

  Journal: MiniPerl6 "Perlito" to Go language on 2009.12.03 16:23

Journal by fglock on 2009.12.03 16:23
Perl 6

I've been working on the "Go language" backend for Perlito miniperl6 for about 2 weeks now.

Yesterday I implemented functions and namespaces, and today I've got methods working. With some more work, Perlito should bootstrap in Go.

There is no command line script yet - I'm using this ugly line for tests (this compiles and runs the method tests):

Read More 0 comments

+ -

  Journal: "Perlito" MiniPerl6 runs in the browser on 2009.09.22 15:52

Journal by fglock on 2009.09.22 15:52
Perl 6
http://perlcabal.org/~fglock/perlito.html

Press the "Execute" button!

"Perlito" MiniPerl6 is an implementation of a small subset of Perl6. There is no error handling, and the web interface I wrote is very simple.

The compiler implements simple classes, grammars with 'token' only, variable binding with ':=' (no assignment), arrays, hashes, strings, integers.

Read More 0 comments

+ -

  Journal: Playing with V8 parser on 2009.09.12 13:08

Journal by fglock on 2009.09.12 13:08
Perl 6

I've downloaded V8 (the javascript compiler). I was planning to try it out as a MiniPerl6 backend, but I started to play with the parser instead:

  --- src/scanner.cc (revision 2877)
  +++ src/scanner.cc (working copy)
  @@ -858,6 +858,12 @@
      bool has_escapes = false;

      StartLiteral();
  +
  + if (c0_ == '$') {
  + AddChar(c0_);
  + Advance();
  + }

Read More 1 comments
Comments: 1
+ -

  Comment: links (Score 1) on 2009.09.02 7:08

by fglock on 2009.09.02 7:08 (#70456)
Attached to: MiniPerl6 1.0 "Perlito" bootstrapped in SBCL Lisp
Sorry for the broken links, it just doesn't work here. Please see the links in the announce: http://www.nntp.perl.org/group/perl.perl6.announce/2009/08/msg603.html
Read More 2 comments
Comments: 2
+ -

  Journal: MiniPerl6 1.0 "Perlito" bootstrapped in SBCL Lisp on 2009.08.28 14:57

Journal by fglock on 2009.08.28 14:57
User Journal

MiniPerl6 (mp6) was designed as a light bootstrapping language. The initial bootstrap used v6.pm and was then self-hosted in Perl 5.

MiniPerl6 is now self-hosted in SBCL Lisp. You can modify the source code and recompile without Perl 5.

MiniPerl6 can be downloaded from the Pugs repository:

$ svn checkout http://svn.pugscode.org/pugs pugs $ cd pugs/v6/v6-MiniPerl6

Read More 2 comments
Comments: 2
+ -

  MiniPerl6 1.0 "Perlito": bootstrapped in S on 2009.08.28 14:53 fglock

Submitted by fglock on 2009.08.28 14:53
Perl 6
fglock writes "MiniPerl6 (mp6) was http://pugs.blogs.com/pugs/2006/11/miniperl6_and_u.html>designed as a light bootstrapping language. The initial bootstrap used http://search.cpan.org/dist/v6/lib/v6.pm>v6.pm and was then self-hosted in Perl 5.

MiniPerl6 is now self-hosted in SBCL Lisp. You can modify the source code and recompile without Perl 5.

MiniPerl6 can be downloaded from the Pugs repository: $ svn checkout http://svn.pugscode.org/pugs pugs $ cd pugs/v6/v6-MiniPerl6

You can create an executable binary using these commands: $ sh lisp-util/create-core-image.sh $ sbcl --load mp6-lisp-create-core-image.lisp $ chmod +x mp6-lisp $ ./mp6-lisp -e ' class Main { say "hello, World!" } ' ... lisp compiler warnings hello, World!

The bootstrapping procedure for both "perl" and "lisp" backends can be tested with: $ sh perl5-util/bootstrap-perl5.sh $ sh lisp-util/bootstrap-lisp.sh ... lisp compiler warnings"
Read More 0 comments

+ -

  v6.pm is back on 2008.07.30 8:11 fglock

Submitted by fglock on 2008.07.30 8:11
Perl 6
v6.pm now passes a little more than 6000 tests from the Perl 6 test suite.

"v6" is a CPAN module that implements a Perl 6 compiler that runs in Perl 5.

It is compiling and running nearly 10 tests per second:

  Files=145, Tests=6210, 562 wallclock secs ( 1.41 usr 0.67 sys + 402.53 cusr 93.57 csys = 498.18 CPU)
  Result: PASS

Precompiled tests are running at 50 tests per second (running "make file" a second time execute the precompiled tests):

  Files=145, Tests=6210, 124 wallclock secs ( 0.88 usr 0.57 sys + 80.20 cusr 14.04 csys = 95.69 CPU)
  Result: PASS
Read More 0 comments