Re: [svn:perl6-synopsis] r14494 - doc/trunk/design/syn

2008-01-24 Thread Matthew Wilson
> BEGIN (right now at compile time)
> UNITCHECK (at end of this compilation unit)
> CHECK (at end of main compilation)
>(compile time finishes)
>...time passes...
>(run time starts)
> INIT
> (main starts running)
> ENTER (every block entry)
> START (first time through only)
> LEAVE (every block exit)
> (main finishes running)
> END
> 
> See S04 for when the other more specialized closure blocks get called.

"Code that is generated at run time can still fire off CHECK and INIT
blocks, though of course those blocks can't do things that would require
travel back in time."

Could you specify [at least some examples of] which things would require
travel back in time when eval'd? 



Re: Logo considerations - 3 logos needed

2009-03-25 Thread Matthew Wilson
On Wed, Mar 25, 2009 at 6:06 PM, Larry Wall  wrote:

>
> http://www.wall.org/~larry/cameliafav.ico
>
> out to be necessary.  Hand-crafted anti-aliasing is your friend. :)
> Larry
>

firefox at 3025%:  cameliafav.ico all blown up. [groan]

http://feather.perl6.nl/~diakopter/cameliafav.ico.png


Re: Grammars that generate stuff

2009-03-28 Thread Matthew Wilson
On Sat, Mar 28, 2009 at 1:48 AM, Timothy S. Nelson wrote:

>Perl 6 has a general language (grammars) for taking some input and a
> grammar, and separating the data from the formatting, as it were.
>
>Ideally, it'd be possible to specify one grammar that would act both
> for parsing output and formatting input.  This may not be possible, but I
> like the idea.
>

Tim,

Regarding generative/transforming grammars, you may get some good
syntax/architecture ideas from the OMeta language system see
http://www.tinlizzie.org/ometa-js/#Sample_Project for a selection of
browser-based examples... (it's also the subversion repo).  Also if you
don't mind things Microsoft, there's the (part of Oslo) M language family.

-Matthew


Re: s/ DateTime <-> Instant / TAI /

2009-09-09 Thread Matthew Wilson
Dare I suggest TAIME? I do.

On 9/9/09, Richard Hainsworth  wrote:
> Carl Mäsak wrote:
>> Darren (>), commit-bot (>>):
>>
 +Returns a TAI epoch value for the current time.

>>> Shouldn't the result type of time() be an "Instant" object (Instant and
>>> Duration are defined in S02) rather than a "Rat"?
>>>
>>
>> I fear that the "Instant" from S02 is a fossil. "Instant" was renamed
>> by Dave Rolsky to "DateTime" on 2009-02-19.
>>
> There was fairly extensive discussion. My recollection was that
> 'Instant' and 'Duration' were preferred.
>
> The problem arises because in English the word 'instant' can be several
> parts of speech (noun - 'in an instant', adjective - 'instant coffee'),
> and that the adjective is the most common. DateTime is uglier.
>
> I cant remember whether there was a definitive resolution to this
> discussion, other than Dave Rolsky changing the spec and the discussion
> fading into other questions.
>
> Since a TAI epoch value is the underlying metric, how about a 'TAI' as
> the type (in place of DateTime)?
>
> Richard
>


Re: One-pass parsing and forward type references

2010-02-01 Thread Matthew Wilson
On Mon, Feb 1, 2010 at 9:32 AM, Larry Wall  wrote:
> But I also think that type recursion is likelier to indicate a design
> error than function recursion, so I'm not sure how far down this road
> we want to go.  We could, for instance, create a new type name every

I was going to say "I use self-referential and cyclical type definitions in
Sprixel's (stage0) C# source..." (because I did at one point), but then I
realized I stopped doing that; it worked, but it was a tad too tricksy to
maintain.

So, point taken.


Re: perl6 compiler

2010-03-19 Thread Matthew Wilson
As written in pmichaud's journal entries, "stability" is explicitly
*not* (and never was) one of the goals of the April 2010 release of
Rakudo.

On Fri, Mar 19, 2010 at 7:24 AM, Steve Pitchford
 wrote:
> I think this question was largly addressed in the first link?
>
> On Fri, Mar 19, 2010 at 12:59 PM, Wendell Hatcher <
> wendell_hatc...@comcast.net> wrote:
>
>> I actsully read the fact sheets in the past and want to confirm that a
>> stable production qaulity release of perl6 is coming out this April or at
>> the berry least the summer?
>>
>>
>> Sent from my iPhone
>> Wendell Hatcher
>> wendell_hatc...@comcast.net
>> 303-520-7554
>> Blogsite: 
>> http://thoughtsofaperlprogrammer.vox.com/
>>
>>
>> On Mar 19, 2010, at 3:19 AM, Steve Pitchford 
>> wrote:
>>
>> Aha - A FAQ - for the answer, read here:
>>
>> 
>> http://use.perl.org/~pmichaud/journal/39411
>>
>> and here:
>>
>> 
>> http://en.wikipedia.org/wiki/Rakudo_Perl
>>
>> Cheers,
>>
>> Steve
>>
>> On Fri, Mar 19, 2010 at 4:05 AM, Wendell Hatcher 
>> <
>> wendell_hatc...@comcast.net> wrote:
>>
>>> Is there ever going to be a perl6 production version coming out soon?
>>>
>>> Sent from my iPhone
>>> Wendell Hatcher
>>> wendell_hatc...@comcast.net
>>> 303-520-7554
>>> Blogsite: 
>>> 
>>> http://thoughtsofaperlprogrammer.vox.com/
>>>
>>>
>>> On Mar 17, 2010, at 7:18 AM, Steve Pitchford <
>>> steve.pitchf...@gmail.com> wrote:
>>>
>>> Have a read of this:
>>>
>>>  http://www.parrot.org/
>>>
>>> The parrot project is to build a virtual machine for dynamic languages,
>>> like perl 6.
>>>
>>> On Wed, Mar 17, 2010 at 1:43 AM, Dell < 
>>> 
>>> wendell_hatc...@comcast.net> wrote:
>>>
 Has anyone thought about designing or is the Rakudo compiler similar to
 the JVM on an enterprise level? What I mean is would I be able to write
 applications that can process huge amounts of data like files,claims or
 account transactions on Rakudo in the future? I think this would be a huge
 push for perl and any dynamic language. :-)



 Matthew Walton wrote:

  Rakudo in its normal operation will compile the program, then run it
> immediately. You can, however, get it to save the compiled code for
> later use i fyou wish.
>
> On Sun, Mar 14, 2010 at 4:09 PM, dell < 
> 
> wendell_hatc...@comcast.net> wrote:
>
>
>> Hello,
>>
>>           I had just began looking at the perl6 raduko compiler and
>> have a
>> question. Is perl6 actually compiled then ran similar to java or is the
>> script ran and then compiled at run time?
>>
>>
>> -Wendell
>>
>>
>>
>
>
>


>>>
>>
>


Re: Ideas for a "Object-Belongs-to-Thread" threading model

2010-05-12 Thread Matthew Wilson
On Wed, May 12, 2010 at 8:57 PM, Alex Elsayed  wrote:

> Forgot to send this to the list.
>
> -- Forwarded message --
> From: Alex Elsayed   ...
>
It's also CPS based, which fits pretty well.
>

Here's another, one that might fit more readily with perlesque/CLR:

Actors that Unify Threads and Events
pdf: http://lamp.epfl.ch/~phaller/doc/haller07actorsunify.pdf
slides: http://lamp.epfl.ch/~phaller/doc/ActorsUnify.pdf

In this paper we present an abstraction of actors that combines the
benefits of thread-based and event-based concurrency. Threads
support blocking operations such as system I/O, and can be
executed on multiple processor cores in parallel. Event-based
computation, on the other hand, is more lightweight and scales to
large numbers of actors. We also present a set of combinators that
allows a flexible composition of these actors. Scala actors are
implemented on the JVM, but our techniques can be applied to all
multi-threaded VMs with a similar architecture, such as the CLR.


Re: NQP JVM prototype faster than Perl 5

2013-02-02 Thread Matthew Wilson
Did you mean to use $z in the say output of the nqp and perl versions of
the microbenchmark, or did you mean to run it twice?


On Sat, Feb 2, 2013 at 10:43 AM, Nicholas Clark  wrote:

> This is surprising, interesting and pleasing...
>
> There's some example NQP code to time calculating Fibonacci sequences.
>
> I've tweaked it a tiny bit to take an optional count on the command line.
> Unfortunately the NQP JVM prototype doesn't yet set @ARGS, so this isn't
> that
> useful. Anyway, the code is:
>
>
> $ cat ~/Perl/rakudo/nqp/examples/fib.nqp
> #! nqp
>
> sub fib($n) {
> $n < 2 ?? $n !! fib($n-1) + fib($n - 2);
> }
>
> my $N := @ARGS > 1 ?? @ARGS[1] !! 29;
>
> my $t0 := nqp::time_n();
> my $z  := fib($N);
> my $t1 := nqp::time_n();
>
> nqp::say("fib($N) = " ~ fib($N));
> nqp::say("time= " ~ ($t1-$t0));
>
>
> Running with NQP (optimised build):
>
> $ nqp ~/Perl/rakudo/nqp/examples/fib.nqp
> fib(29) = 514229
> time= 3.15967702865601
>
> Running with the NQP JVM prototype:
>
> $ nqp nqp-jvm-cc.nqp ~/Perl/rakudo/nqp/examples/fib.nqp
> fib(29) = 514229
> time= 0.4210381469727
>
>
> That's about 8 times faster. (Even including all the compiling, right now
> it's actually still faster. About 2.5 times faster)
>
>
> And the equivalent Perl 5 code:
>
> $ cat ~/test/fib.pl
> #! perl
>
> use Time::HiRes 'time';
>
> sub fib {
> my $n = shift;
> $n < 2 ? $n : fib($n-1) + fib($n - 2);
> }
>
> my $N = @ARGV > 1 ? $ARGV[0] : 29;
>
> my $t0 = time;
> my $z  = fib($N);
> my $t1 = time;
>
> print "fib($N) = " . fib($N) . "\n";
> print "time= " . ($t1-$t0) . "\n";
>
>
> $ ~/Sandpit/5162/bin/perl5.16.2 ~/test/fib.pl
> fib(29) = 514229
> time= 0.544455051422119
>
>
> So the NQP JVM prototype is about 1.5 faster at running that code than Perl
> 5. That's without any sort of tuning of its code generator.
>
> That's quite impressive.
>
> Well done Jonathan. Please don't stop :-)
>
> Nicholas Clark
>


Re: Licensing: Perl 6 specification and test suite

2013-11-05 Thread Matthew Wilson
frettled,
Right, it's just the AL2 requires you to thoroughly rename the project's
main name(s) if you redistribute a modified version..
-Matthew




On Tue, Nov 5, 2013 at 7:21 AM, Jan Ingvoldstad  wrote:

> On Tue, Nov 5, 2013 at 3:36 PM, Moritz Lenz  wrote:
>
>> I have no idea if the AL2 is well suited for sets of documents, as the
>> specification is. I'll leave that decision to Larry.
>>
>
> To anyone in doubt: please note that I'm not Larry, I'm not an authority,
> I'm just opinionated. :)
>
> Considering that the specification is sortof actually a language
> specification, I think there should at least be some terms regarding how
> this should apply.
>
> Forking the documentation, or creating derivative works, shouldn't be a
> problem, as long as it doesn't change the specification in itself, and
> thereby create confusion regarding what the Perl 6 specification is.
>
> Technically speaking, there shouldn't be a problem with pulling the Git
> repository, making changes, and proposing that these changes should be
> merged with the central Git repository for the specification – that is,
> after all, an approximation of how the specification is changed and
> developed by the community.
> --
> Jan
>



-- 
Sent by the Internet

-
Login to LinkedIn to see my whole profile and Connect
http://linkedin.com/in/mattswilson


Fwd: [Boston.pm] Tech Meeting Tuesday

2013-12-06 Thread Matthew Wilson
FYI
 -- Forwarded message --
From: "Bill Ricker" 
Date: Dec 6, 2013 6:25 PM
Subject: [Boston.pm] Tech Meeting Tuesday
To: "Boston Perl Mongers" , "Boston Perl Mongers
(announce)" 
Cc:

Tuesday December 10, 2013 E51-376 Tim King - Benchmarking Perl6 vs Perl5
* Perl 6's suitability for "production." (Your definition may vary.)
* Experiences of the state and stability of Rakudo.
* Benchmarks of my favorite P6 features.
* Lines of P6 code from everyday life.
* Some comparisons of P6 with P5.


   - http://sd.jtimothyking.com/tag/perl-6/ benchmarks Perl 6 tvs Perl 5.


*Boiler plate Details*

   - Tech Meetings are held on the 2nd Tuesday of every month at MIT (
   directions  ).
   - Talk begins at 7:30.
   - Refreshments in the hallway prior.
   - RSVP for count encouraged but not required, to
bill.n1...@gmail.com or
   Boston-PM list, by 3pm Tuesday.
   -


In case of weather, check boston.pm.org wiki and this mailing list for
updates.

--
Bill
@n1vux bill.n1...@gmail.com

___
Boston-pm mailing list
boston...@mail.pm.org
http://mail.pm.org/mailman/listinfo/boston-pm