Re: Status Summary; next steps

2002-11-27 Thread Piers Cawley
"Bryan C. Warnock" <[EMAIL PROTECTED]> writes:
> Be kind to Piers. 

Ah... Yes do. I need all the kindness I can get.

-- 
Piers

   "It is a truth universally acknowledged that a language in
possession of a rich syntax must be in need of a rewrite."
 -- Jane Austen?



hyper/vector operation operator

2002-11-27 Thread Ph. Marek
Hello everyone!


First of all - I do not closely follow perl6/parrot development. I read "this 
week on perl6" on www.perl.com but that's it - so if I'm completly off the 
track, let me know.


Regarding the discussions about the hyper operator (eg adding elements of 2 
arrays into another array) I've had the following idea: use "=>"

- in perl5 there is an operator "=>" which is used in associative array 
assignment. In perl6 this means "pairs" IIRC, which could get interpreted as 
"add pairs of numbers"
- it has a nice visual feeling: combines 2 elements (two lines) into 1 (one 
end).


So an usage could be
@a = @b =>+ @b;
@a = @b =+> @b;
@a = @b +=> @b;
where the 2nd form would be the most intuitive (from reading this source).
Hmm, that would leave us with
@a =+>= @b;
which ain't as pretty.


What do you think?


Regards,

Phil





This week's summary

2002-11-27 Thread Piers Cawley
The Perl 6 Summary for the week ending 20021124
And some rough beast, its hour come 'round at last slouches toward...

And then the scansion goes to pot and I can't make a joke fit. Shame.

Anyhoo, it's time for another episode of the continuing saga of Perl 6
development. When I say 'saga' I don't mean a long, long poem of
alliterative lines, but a bright, breezy and brisk tale of the bods in
the lists. Well, one week mayb, when we've been quiet...

We start, as usual with the internals list.

  C#/Parrot Status
Rhys Weatherley, who has been absent from the internals list lo these
many days popped up again to ask about:

*   Object/class support

*   Fixed-size integers and/or conversion opcodes

*   Embedding of binary extension sections

He noted that "Not Done Yet" was an acceptable answer. Which is good,
because, as Leopold Tötsch pointed out, none of them were done yet. Leo
also reckoned that a start would be to implement fixed size integers and
conversion ops, and asked for details of what was wanted. Iacob Alin
wondered if the various types would be PMCs (answer: Only those types
which don't easily map to native types.) Florian Weimer wondered about
trapping integer arithmetic. Dan says these will be handled using
Parrots standard exception handling mechanism (which doesn't actually
exist yet, but signs in the wind suggest we might be getting a Halt and
Catch Fire op to raise an exception).

http://makeashorterlink.com/?P3F621592

  Parrot 0.0.9 status
According to Steve Fink: "The basic status is that lots of people, many
of them coincidentally named Leopold Tötsch, have been fixing zillions
of things and implementing a number of new features. Nearly everything
needed for 0.0.9 has happened, and a lot else besides."

See his post for details of what's still to be done.

One of the most important items was that the tinderbox (a fleet of
machines that constantly make, test and remake the latest parrot builds)
was a beautiful shade of orange and red, which led to discussion of what
was going on (since most people's home boxen seem to be making and
testing okay...) Various remedies and patches were tried, but I believe
the tinderbox is still mostly the wrong colour.

http://makeashorterlink.com/?I50722592

http://makeashorterlink.com/?W21751592

  Unified core.jit
Leopold Tötsch posted an RFC in which he proposed writing a universal
core.jit which provides the basic JIT framework and which delegates the
generation of native ops to processor specific implementations. Daniel
Grunblatt liked the basic idea, but thought there might be a case for
creating cisc.jit and risc.jit to avoid piles of "#ifdef"s. Daniel, Leo
and Nicholas Clark then spent a few posts thrashing out issues to do
with parameter naming and other more or less arcane things.

http://makeashorterlink.com/?U12722592

  Native Function calls
Dan announced that he'd redone the native function call interface and
had added a new op, "bnc", which stands for `build native call'. His
post has the details of how it all works (and how to use it). Well,
that's what he said at first, but apparently it's not true. What he's
actually done is altered the "dlfunc" opcode to behave like "bnc" he
described. (It's a shame you can't hit "s/bnc/dlfunc/" in your mailer
and have the world alter every single copy of the mail you just sent. It
would have been useful for some of my previous summaries.)

Brent Dax wondered if this was going to be the new XS or if there was
more coming. Answer: Sort of.

Leo Tötsch didn't like nci.c's string functions, and wondered too about
places where you'd need to pass a pointer to the parrot interpreter. Dan
doesn't like the string functions either, noting that the code is "evil,
crufty [and] embarrassing", but that it is at least "well encapsulated,
so it can be ripped out, shot, and replaced with something elegant and
fast at some point in the future." As for parrot interpreter pointers,
Dan reckons that any code that needs to go so far should install real
extension sub PMCs.

Gopal V worried about the type safety (it's an obsession of his
apparently) or rather the complete lack of it, in this interface. Dan,
in a quote of the week post said yup, of course it's totally type unsafe
and he liked it that way, before confessing that he was getting that
`XML feeling. (You know the one--"It seemed like a good idea until I
thought about it")' and started backpedalling. Gopal V made a few
suggestions, and that's about where we left it.

http://makeashorterlink.com/?Z23715592

http://makeashorterlink.com/?P54723592 -- the correction

  Leopold Tötsch, still the patch monster
Leo's contributions this week include:

*   Patches to the JIT which give 

Just wondering...

2002-11-27 Thread Piers Cawley
It's coming up on six months since the last Apocalypse, and 3 months
since the Perl 6 Mini conference. Do we have any indication as to when
we can expect the next one?

-- 
Piers

   "It is a truth universally acknowledged that a language in
possession of a rich syntax must be in need of a rewrite."
 -- Jane Austen?



Re: Just wondering...

2002-11-27 Thread Larry Wall
On Wed, Nov 27, 2002 at 04:33:23PM +, Piers Cawley wrote:
: It's coming up on six months since the last Apocalypse, and 3 months
: since the Perl 6 Mini conference. Do we have any indication as to when
: we can expect the next one?

It'd be a lot faster if you guys would stop asking interesting
questions.  :-)

The fact of the matter is I was planning to have a draft out this
week, but made the mistake of buying the extended FotR DVD set, which
can chew up an amazing amount of time if you're a Tolkien junkie.
So anyway, to actually answer your question, hopefully within the next
week or two, depending primarily on whether over the coming holiday
my wife's family decides to play games I like or games I don't like.

Larry



Re: Just wondering...

2002-11-27 Thread Jonathan Scott Duff
On Wed, Nov 27, 2002 at 09:57:41AM -0800, Larry Wall wrote:
> So anyway, to actually answer your question, hopefully within the next
> week or two, depending primarily on whether over the coming holiday
> my wife's family decides to play games I like or games I don't like.

So ... what are the email addresses of your wife's various family
members so that we may ask them to play the appropriate games? ;-)

-Scott
-- 
Jonathan Scott Duff
[EMAIL PROTECTED]



Re: hyper/vector operation operator

2002-11-27 Thread Luke Palmer
> From: "Ph. Marek" <[EMAIL PROTECTED]>
> Date: Wed, 27 Nov 2002 09:10:19 +0100
>  
> So an usage could be
>   @a = @b =>+ @b;
>   @a = @b =+> @b;
>   @a = @b +=> @b;
> where the 2nd form would be the most intuitive (from reading this source).
> Hmm, that would leave us with
>   @a =+>= @b;
> which ain't as pretty.

Well, none of them are very pretty.  Also, things like

  =>=>
  =<=>
  =<>

would come up, as hyper-relation operators, showing their
impossible-to-read-ness.  The last one is also ambiguous. 

Right now we're thinking ≫op≪, if you haven't heard (that 
is, >>op<<) (not that ≫>=≪ is particularly easy to read ;).

Additionally, I wouldn't bother suggesting anything else, as in the
operator thread just about aleph-null possibilities were suggested, so
it would be tough to come up with a new one.

Thanks, though.

Luke



Anti-globalization (was Re: This week's summary)

2002-11-27 Thread Me
> Dynamic scoping (take 2)
> ... a system of implicit argument passing ...
> Larry pointed out [an error about threads]

The system of implicit argument passing was
intended to eliminate the need to use globals.

I was wrong about threads but that doesn't
change my view that globals are mostly evil.


> Larry went on to discuss some rather
> splendid extensions of the currying concept:
> 
>use Dog.assuming(tail => "cut short", ears => "cut_long")
>my $little_dog = Dog.where_oh_where();
> 
> Which is rather cute.

Indeed. Currying looks like an ideal route to
eliminate the need for globals, but it needs
to be extended beyond what Larry has so far
mentioned to pull that off.

--
ralph



Re: This week's summary

2002-11-27 Thread Joe Gottman
   There's something wrong with your links to the messages in the
documentation list.  Whenever I click on one, I get the message "Unable to
find thread.  Please recheck the URL."

Joe Gottman