Re: ~ for concat / negation (Re: The Perl 6 Emulator)

2001-06-22 Thread Benjamin Stuhl

 In summary:
 
1. I don't like ~ for concat 
 
2. But if it does become concat, then we still
 shouldn't
   change ~'s current unary meaning
 
 
 Thanks for listening.
 
 -Nate

I agree completely. However, this is no longer really a
topic for -internals, it's really a purely language thing. 

-- BKS


__
Do You Yahoo!?
Get personalized email addresses from Yahoo! Mail
http://personal.mail.yahoo.com/



Re: ~ for concat / negation (Re: The Perl 6 Emulator)

2001-06-22 Thread Dan Sugalski

At 05:17 AM 6/22/2001 -0700, Benjamin Stuhl wrote:
  In summary:
 
 1. I don't like ~ for concat
 
 2. But if it does become concat, then we still
  shouldn't
change ~'s current unary meaning
 
 
  Thanks for listening.
 
  -Nate

I agree completely. However, this is no longer really a
topic for -internals, it's really a purely language thing.

More importantly, it never really was a topic for -internals. Punctiation's 
a strictly cosmetic issue. :)

Dan

--it's like this---
Dan Sugalski  even samurai
[EMAIL PROTECTED] have teddy bears and even
  teddy bears get drunk




Python on Unicode etc.

2001-06-22 Thread Nathan Torkington

This is from the latest python-dev summary.  It might be of interest
to folks considering how to store strings.


* Adding .decode() method to Unicode * Marc-Andre Lemburg asked for
  opinions on adding a .decode method to unicode objects:

 http://mail.python.org/pipermail/python-dev/2001-June/015346.html

He certainly got them; the responses ranged from neutral to negative,
and there was a surprising amount of hostility in the air. The problem
(as ever in these matters) seems to be that Python currently uses the
same type for 8-bit strings and gobs of arbitrary data. Guido came to
the rescue and calmed everyone down:

  http://mail.python.org/pipermail/python-dev/2001-June/015404.html

since when discussion has vanished again.




Re: A quick sketch of the interpreter

2001-06-22 Thread Uri Guttman

 DS == Dan Sugalski [EMAIL PROTECTED] writes:

  DS At 11:45 PM 6/14/2001 -0400, Bryan C. Warnock wrote:

=head1 The opcode loop
   
This is a tight loop. All it does is call an opcode function, get back
a pointer to the next opcode to execute, and check the event dispatch
flag. Lather, rinse, repeat ad infinitum.
   
   And if the flag is set?  Is the loop responsible for saving state
   before you jump, or will you be jumping to an opcode that saves the
   state?  When you return (assuming you return) from wherever the
   event took you, do you recheck the flag, or process the next op?
   If you recheck it, will you run the events dry before operating on
   the next opcode, or are you going to have some fancy scheduler in
   place?

  DS While I'm sort of putting this off until later, I'm thinking we'll
  DS call into a perl sub to handle the event. Whether that sub blocks
  DS events or not is up in the air. I can see it going either way. The
  DS event handling sub will *probably* block other events, but we
  DS might want to put some sort of levels on importance. (I suppose if
  DS we're building a software CPU, we might as well have interrupt
  DS priorities... :)

hmm, i would simplify that. just have the real signal handler in C bump
a counter for each signal when it happens and also set the event
flag. then only if there is a perl handler specified, do you call
it. otherwise the default signal behavior happens.

also i had proposed that even checking the event flag be optional by
having 2 different main op loops. for programs which don't need (safe)
signals that can be a decent speedup. it would have to be requested by a
pragma.

also if you are using a program level event loop (the built in one, of
course :-), then you don't want to check the flag in the mail op
loop. instead, it is checked in the event loop and the main op loop runs
any perl level event code until it returns off of its stack. then the
event loop runs again. event code is not interruptable in this
scenario. so a user level event loop would also need to use the no event
checking op loop.

the checking op loop can/should also be set to check every N ops or even
have a special event check op executed (in the no check loop) every N
ops. these are all described in rfc 345.

i have said before that the event handling and op loop must/should be
designed together. this includes any related stuff like continuations or
co-routines as well as threads. these specs will affect dan's stack
choices too (remember each thread will need its own set of stacks and
registers, etc.). we need to hammer out a decent set of requirements and then
we can propose designs that support them. this is mostly independent of
the op code and register design but we can design the whole mess
together if we want.

uri

-- 
Uri Guttman  -  [EMAIL PROTECTED]  --  http://www.sysarch.com
SYStems ARCHitecture and Stem Development -- http://www.stemsystems.com
Learn Advanced Object Oriented Perl from Damian Conway - Boston, July 10-11
Class and Registration info: http://www.sysarch.com/perl/OOP_class.html



Re: A quick sketch of the interpreter

2001-06-22 Thread Uri Guttman

 DS == Dan Sugalski [EMAIL PROTECTED] writes:

   How does this port to a TIL form?

  DS Badly. :) We'll need to insert event checking code into the
  DS generated TIL, or figure out some way to wedge into the platform
  DS interrupt/async system.  (I'd bet on the former, though)

again, two choices. insert event checking op codes as desired or allow
the coder to select via a pragma the user level event loop and then have
no extra event check op codes. see my previous letter for more on this.

uri

-- 
Uri Guttman  -  [EMAIL PROTECTED]  --  http://www.sysarch.com
SYStems ARCHitecture and Stem Development -- http://www.stemsystems.com
Learn Advanced Object Oriented Perl from Damian Conway - Boston, July 10-11
Class and Registration info: http://www.sysarch.com/perl/OOP_class.html