Multi-oplibs 2: packfile format?

2001-11-03 Thread James Mastros
to a different set of tables when we cross boundries between opcode peices. I'm going to set about implementing this now. -=- James Mastros

Re: Opcode numbers

2001-11-03 Thread James Mastros
seems like it'd have a /lot/ of overhead. But we'll see. (It shouldn't be /too/ bad, because in a real system, we won't be loading all that many oplibs, I should think). -=- James Mastros

chr ord opcodes, v0.5

2001-11-02 Thread James Mastros
Hey all. Attached is the latest edition of the chr and ord opcodes patch, updated and enhanced for the New Way of Strings. Let me know of any changes I need to make. -=- James Mastros

Re: chr ord opcodes, v0.5

2001-11-02 Thread James Mastros
On Fri, Nov 02, 2001 at 11:26:37PM -0300, Daniel Grunblatt wrote: You forgot the attachment. Whoops. -=- James Mastros ? chr5.diff ? chrord4.diff ? chrord5.diff ? core.ops.mine ? mops.c ? ops.chrord.diff ? ord3.diff ? examples/assembly/chr_table.pasm ? examples/assembly/ord.pasm

Re: String rationale

2001-10-29 Thread James Mastros
must be able to convert to utf32.) Powers-that-be (I'm looking at you, Dan), is that good? -=- James Mastros

Re: String rationale

2001-10-29 Thread James Mastros
attention, I'm waiting on this discussion for my chr/ord patch, since I want them in terms of charsets, not encodings.) -=- James Mastros

Chr Ord, v0.4

2001-10-25 Thread James Mastros
, and the encodings list being static.) Chr and Ord aren't implemented for utf8 and utf16, only for native and utf32. I'd much appreciate it if sombody who knew what they were doing did this. The tests are woefuly incomplete. The style of the example is poor. -=- James Mastros Index

Ord, v0.3, and ideas on chr

2001-10-23 Thread James Mastros
as an s|sc parameter. Ideas? -=- James Mastros Index: core.ops === RCS file: /home/perlcvs/parrot/core.ops,v retrieving revision 1.17 diff -u -r1.17 core.ops --- core.ops2001/10/22 23:34:47 1.17 +++ core.ops2001/10/23

chr and ord, v0.2

2001-10-19 Thread James Mastros
characters above this) - Both assume that the byteorder of an INTVAL is the same as a utf32 character. (I think the core string code does the same thing, though.) -=- James Mastros -=- James Mastros

[PATCH] Chr and ord, v0.2

2001-10-19 Thread James Mastros
8 bit characters or INTVAL sized characters. (So utf16 probably won't work). - Both chr and ord assume that the byteorder of a UTF32 string matches the byteorder of an INTVAL. -=- James Mastros Index: core.ops === RCS file

Calling conventions -- easier way?

2001-10-19 Thread James Mastros
address into an I register, and then push it and ret, or jmp to it. -=- James Mastros

Re: chd and ord, v0.2

2001-10-19 Thread James Mastros
/glossary/) Whoops. What I meant was that characters requiring surrogate pairs aren't supported. According to http://www.unicode.org/unicode/faq/utf_bom.html, there are none currently assigned. -=- James Mastros -- Put bin Laden out like a bad cigar: http://www.fieler.com/terror You know

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

2001-06-22 Thread James Mastros
are for. It's rather unfornate that we've run out of characters to use for operators, but we've got to deal with it better then flipping around operators willy-nilly. -=- James Mastros

Re: suggested properties of operator results

2001-06-14 Thread James Mastros
) Used for what it is intended for, it seems like a very concise, expressive way to do multiple relationship tests without needing all those s and such. Indeed. (Though, as defined above, this won't work on the string operations, only the numerics.) -=- James Mastros

Re: Properties and stricture and capabilities

2001-06-09 Thread James Mastros
. -=- James Mastros

Re: Perl5 Compatibility, take 2 (Re: Perl, the new generation)

2001-05-11 Thread James Mastros
. It will be extremely confusing. Yes, it will be, and /I/ wouldn't do it if I could avoid it. OTOH, we're already talking about having support for multiple languages (parsers) within one file, and having perl5 being another parser. Put them together, and you get exactly this. -=- James

Re: Apoc2 - STDIN concerns

2001-05-08 Thread James Mastros
element), and lets us keep continuity. Anyway, I'm fairly certian that I'll use iterators more then qw lists. -=- James Mastros

Re: Apoc2 - STDIN concerns

2001-05-04 Thread James Mastros
). -=- James Mastros

Re: Apoc2 - STDIN concerns

2001-05-04 Thread James Mastros
. Especialy that we don't need a qw() alternative. However, I don't think Larry's in a convincable mood -- coughdotcough. -=- James Mastros

Re: Please make last work in grep

2001-05-03 Thread James Mastros
glance at the 98. Basicly, if you assign to a list of lvalues, @returnlist, it will stop looking after it has found scalar(@returnlist) matches or end-of-input. -=- James Mastros

Re: Tying Overloading

2001-04-25 Thread James Mastros
in many fonts. BTW, I think that considering no-whitespace cases of indirect object is quite silly -- does anybody acatualy use that? This is the first I thought it wasn't a syntax error. -=- James Mastros

Re: Larry's Apocalypse 1

2001-04-06 Thread James Mastros
a URL an explicit act. But I really mustn't spill too many half-digested beans here. :-) If you have to, at least do it in the toilet. P.S. Larry's Second Law of Language Redesign: Larry gets the colon. May He (or You) do Good Things with it. -=- James Mastros -- The most beautiful

Re: What can we optimize (was Re: Schwartzian transforms)

2001-03-29 Thread James Mastros
? We want to make it as fast as reasonably possible. Writing a native compiler might not be _reasonably_ possible. And an advanced GC will almost certianly be part of perl6; they're orthogonal issues. -=- James Mastros -- The most beautiful thing we can experience is the mysterious

Re: What can we optimize (was Re: Schwartzian transforms)

2001-03-29 Thread James Mastros
, bingo. That's what a number of people (inculding me) are suggesting -- a :functional / :pure / :stateless / :somthingelseIdontrecall attribute attachable to a sub. -=- James Mastros -- The most beautiful thing we can experience is the mysterious. It is the source of all true art

Re: Perl culture, perl readabillity

2001-03-29 Thread James Mastros
initive, IE nounal, form of a verb). CCow-speak and Cspeak Cow both translate into english as a command form, telling the Cow to speak. (If you translate both - and ' ' into a comma.) Anyway, I'm trying to argue lingustics in a perl ML, with zero training. Is there a linguist in the house? (Hm, di

Re: Schwartzian Transform

2001-03-28 Thread James Mastros
ough there's more to it then that). Note that only the sign of the answer is gaurnteed, so it doesn't even have to be internaly stateless -- but it probably doesn't make sense for it not to be. Give the braindead no head. You might want to change that to "heed". -=- James Mast

Re: Schwartzian transforms

2001-03-28 Thread James Mastros
every time they are accessed, for example.) I think that the difference between 43 dosn't matter. We only have things in 4 and not 3 that vary in abs(), but not sign. We're left with 12, and for 1, the sort won't work anyway. So long as we consider 2 Just Plain Silly, we're OK memonizing. -=- Jam

Re: What can we optimize (was Re: Schwartzian transforms)

2001-03-28 Thread James Mastros
be spoken, so let it be done. This isn't any more preverse then the "you can't assign to constants" rule. -=- James Mastros -- The most beautiful thing we can experience is the mysterious. It is the source of all true art and science. He to whom this emotion is a stranger, who

Re: What can we optimize (was Re: Schwartzian transforms)

2001-03-28 Thread James Mastros
On Wed, Mar 28, 2001 at 05:57:30PM -0500, James Mastros wrote: [A bunch of stuff] Oh, and I agree with sombody else on this thread that unless otherwise stated, the sort should always assume statelessness (and thus the ability to cache at will). If it's trivial to see that the sort function

Re: Schwartzian Transform

2001-03-27 Thread James Mastros
56 The functon is not idempotent. Even if you checked f(x)==x (function is the identity), an input of "123456" would work. -=- James Mastros -- The most beautiful thing we can experience is the mysterious. It is the source of all true art and science. He to whom this emoti

Re: Schwartzian Transform

2001-03-26 Thread James Mastros
. Twisted, even. -=- James Mastros -- The most beautiful thing we can experience is the mysterious. It is the source of all true art and science. He to whom this emotion is a stranger, who can no longer pause to wonder and stand wrapt in awe, is as good as dead. -=- Albert Einstein

Re: Perl culture, perl readabillity

2001-03-26 Thread James Mastros
) as doing things, then they normaly are the subject, and _not_ the indirect-object (in the english sense). (Note, BTW, that both my german and my lingustics aren't so hot.) -=- James Mastros -- The most beautiful thing we can experience is the mysterious. It is the source of al

Re: Schwartzian Transform

2001-03-26 Thread James Mastros
On Mon, Mar 26, 2001 at 06:31:22PM -0500, Dan Sugalski wrote: At 04:04 PM 3/26/2001 -0500, James Mastros wrote: The only way f(a) can not be stable and f(a) = f(b) can be is somthing of a corner case. In fact, it's a lot of a corner case. You're ignoring side-effects. Damm. I hate it when I

Re: Schwartzian Transform

2001-03-23 Thread James Mastros
, it might not be as effecent as a hand-crafted schwartzian, but will be at least as efficent as a naieve straight sort (except in pathalogical cases, like tsort((^_), (^_=^_), @list)). -=- James Mastros -- The most beautiful thing we can experience is the mysterious. It is the source of all

Re: Schwartzian Transform

2001-03-20 Thread James Mastros
_)], @list; does what I intendeded. (Where ex $sort = sub {$_[0] cmp $_[1]}, and $attrib = sub {lc $_}.) (Of course, this doesn't always use the optimal form.) -=- James Mastros -- The most beautiful thing we can experience is the mysterious. It is the source of all true art and sc

Re: Auto-install (was autoloaded...)

2001-02-12 Thread James Mastros
code from RSA. However, it shouldn't be a problem, since RSA's pattent (in the US, anyway, and I don't think they pattented anywhere else) has timed out. -=- James Mastros -- "All I really want is somebody to curl up with and pretend the world is a safe place." AIM: theorbtwo

Re: Auto-install (was autoloaded...)

2001-02-12 Thread James Mastros
cial things with files in that directory (like set up symlinks from the normal man dirs). BTW, this plan would make it painful to do with perl5 setups, since they commonly have odd dir structures. -=- James Mastros -- "All I really want is somebody to curl up with and prete

Re: Garbage collection (was Re: JWZ on s/Java/Perl/)

2001-02-12 Thread James Mastros
(for me) to think of when you'd want an AUTOLOADed DESTROY, since if you create /any/ objects of the class, DESTROY will be called. "It isn't possible to AUTOLOAD DESTROY." --perlmem(6) -=- James Mastros -- "All I really want is somebody to curl up with and pretend the world is a s

Re: End-of-scope actions: POST blocks.

2001-02-12 Thread James Mastros
t (IE a CATCH/POST/catch/finaly/whathaveyou) returns. (And if it does, that blocks all execption processing.) You can mess with the return arbitrarly if we support return-stack visiblity. -=- James Mastros -- "All I really want is somebody to curl up with and pretend the world is a safe place." AIM: theorbtwo homepage: http://www.rtweb.net/theorb/

Re: Auto-install (was autoloaded...)

2001-02-11 Thread James Mastros
that hard.) -=- James Mastros -- "All I really want is somebody to curl up with and pretend the world is a safe place." AIM: theorbtwo homepage: http://www.rtweb.net/theorb/

Re: assign to magic name-of-function variable instead of return

2001-02-05 Thread James Mastros
e extended to doing recursive calls without having to say the subs own name, again. I agree, making the magic variable be the name of the sub is a bad idea. Your idea for a name for the currently executing sub is interesting, I think. I'm going to fork the thread. -=- James Mastros -- &quo

Re: assign to magic name-of-function variable instead of return

2001-02-05 Thread James Mastros
real array, only a list. (I don't think that will be a problem, though.) [stuff about manual vs. automatic return-stack elminition] Yeah, you're probably right. But return-as-assignment has certian nice features from a stylistic viewpoint as well as an optimizational one. -=- James Mastros --

Re: assign to magic name-of-function variable instead of return

2001-02-05 Thread James Mastros
any scope not a do, require, eval, or sub-call.) -=- James Mastros -- "My country 'tis of thee, of y'all i'm rappin'! Lan where my brothers fought, land where our King was shot -- from every building top, let freedom happen!" -=- Monique, Sinfest[.net] AIM:

Re: assign to magic name-of-function variable instead of return

2001-02-04 Thread James Mastros
On Sun, Feb 04, 2001 at 05:30:59PM +0100, Johan Vromans wrote: James Mastros [EMAIL PROTECTED] writes: And I always hated that about VB and Pascal -- you can assign to the magic variable, but can't modify it. That was before the invention of auto-assignment operators. In the 70s

Re: Really auto autoloaded modules

2001-02-02 Thread James Mastros
). I think the current method is probably best for us. -=- James Mastros -- "My country 'tis of thee, of y'all i'm rappin'! Lan where my brothers fought, land where our King was shot -- from every building top, let freedom happen!" -=- Monique, Sinfest[.net] AIM:

Re: Really auto autoloaded modules

2001-02-02 Thread James Mastros
nd I don't even know what XPG4 is.) Speaking of contract names, is Damien about? -=- James Mastros -- "My country 'tis of thee, of y'all i'm rappin'! Lan where my brothers fought, land where our King was shot -- from every building top, let freedom happen!" -=- Monique

Re: Really auto autoloaded modules

2001-02-02 Thread James Mastros
t;'"s, but that's going to be thrown out, I assume). -=- James Mastros -- "My country 'tis of thee, of y'all i'm rappin'! Lan where my brothers fought, land where our King was shot -- from every building top, let freedom happen!" -=- Monique, Sinfest[.net] AIM: theo

Re: assign to magic name-of-function variable instead of return

2001-02-02 Thread James Mastros
o we claim to never autoderef?) Is assigning to @__ the same as assigning to @{$__}? Nope. Does @$__ have any meaning if $__ is an alias, not a reference? Nope. I'm quickly getting more confused here then I want to be, so I'm going to stop now. -=- James Mastros -- AIM: theorbtwo

Re: Why shouldn't sleep(0.5) DWIM?

2001-01-31 Thread James Mastros
of time() slightly without changing to a different function name? Yes, it will silently break some existing code, but that's OK -- remember, 90% with traslation, 75% without. being in that middle 15% isn't a bad thing. -=- James Mastros -- "My country 'tis of thee, of y'all i'm rappin'!

Re: Exposing regexp engine compiled regexp's

2001-01-08 Thread James Mastros
that in the vast majority of all cases, you'd need to compile (or at the very least, parse) the entire regex. Also, you can get /vast/ efficency gains by compiling a regex, so you can check the easy things first. -=- James Mastros -- midendian: She never sleeps. mousetrout: But I do. I just regret

Re: RFC 348 (v2) Regex assertions in plain Perl code

2000-10-02 Thread James Mastros
ller app: /([$matchingpairs])(.*?)(?{local $_=eat 1; $_ eq ${$matchingpairs[$1]} \$1)/ It doesn't handle nesting thingies, but it's close. (Assumes $matchingpairs{'('}=')'..., and $matchingpairs=join '', keys %matchingpairs.) -=- James Mastros

Re: RFC 185 (v3) Thread Programming Model

2000-09-27 Thread James Mastros
-language* lists as well as I probably should. Too much trafic, to little time. -=- James Mastros -- -BEGIN GEEK CODE BLOCK- Version: 3.1 GUCS d--- s-:- a20 C++ UL+++@ P L++@ E-() N o? K? w@ M-- !V PS++ PE Y+ PGP(-) t++@ 5+ X+++ R+ tv+ b+++ DI+ D+ G e++ h! r- y? --END

Re: RFC 288 (v2) First-Class CGI Support

2000-09-27 Thread James Mastros
end-user's account. Think cgi_wrapper without spawning a new interpreter. -=- James Mastros -- -BEGIN GEEK CODE BLOCK- Version: 3.1 GUCS d--- s-:- a20 C++ UL+++@ P L++@ E-() N o? K? w@ M-- !V PS++ PE Y+ PGP(-) t++@ 5+ X+++ R+ tv+ b+++ DI+ D+ G e++ h! r- y? --END GEEK CODE BLOCK--

Re: RFC 292 (v1) Extensions to the perl debugger

2000-09-25 Thread James Mastros
and not where the sub being autoloaded was acatualy written. Most of the rest would require siginificant overhead on all programs that might get debugged (the debugger is a module; you don't necessarly have to start it from the commandline). Use a tags program. G -=- James Mastros -- -BEGIN

Re: RFC 185 (v1) Thread Programming Model

2000-08-31 Thread James Mastros
at you're "joining" the thread back into the "tapestry" of the program, so the join()d point should behaive like the original function did. -=- James Mastros

Re: RFC 171 (v1) my Dog $spot should call a constructor implicitly

2000-08-30 Thread James Mastros
asic types will always m/^[A-Z]+$/. This makes it such that we have to say my INT $n, but that's quite consistant with the rest of perl. (It also makes it so that all-uppercase module names without any colons might behave oddly. This is bad for CGI, but if it becomes WWW::CGI, then it's all OK...) -=- James Mastros

RFC: Automatic accessors for hash-based objects

2000-08-26 Thread James Mastros
It appears that the RFC Librarian doesn't work weekends, so I'm going to post this directly. Hopefuly, it doesn't have any glaringly obvious errors... =head1 TITLE Automatic accessors for hash-based objects =head1 VERSION Maintainer: James Mastros [EMAIL PROTECTED] Date: 25 Aug 2000

Re: RFC 145 (v1) Brace-matching for Perl Regular Expressions

2000-08-24 Thread James Mastros
ed feature, that leaves hH, iI, jJ, kK, mM, oO, vV, none of which strike me as particularly intuitive. \M and \m seem perfect to me -- \m finds things in Matched pairs. "P" would have been better, but alas! -=- James Mastros

Re: RFC 145 (v1) Brace-matching for Perl Regular Expressions

2000-08-24 Thread James Mastros
st the first one should be quite useful, and not too difficult or expensive to implement. I'm not big on implementation of regexes, however. Also, you should specify that [\G] and [\g] match any grouping "character", and also that grouping "characters" need not be one character long. -=- James Mastros

Re: RFC 149 (v1) Lvalue subroutines: implicit and explicit assignment

2000-08-24 Thread James Mastros
ay as their final GV, which is passed into the assignment, and is then assigned to the rvalue. CUT (Note that "stay as their final GV" is equivlent to that whole long paragraph, I think. I'm not too good at internals yet (but I'm trying to learn).) -=- James Mastros

Re: implied pascal-like with or express

2000-08-23 Thread James Mastros
way I read this, even modify the value of existing keys. While this hardly makes it useless, it doesn't make it nearly as useful as it could/should be. Making the CODE(ref/HOF) parameter get aliases rather then values helps a little, but not enough -- you still couldn't create new keys in the hash. -=- James Mastros

Re: transaction-enabled variables

2000-08-23 Thread James Mastros
that it's goodness is self-evident. -=- James Mastros

Re: Extended Regexs

2000-08-19 Thread James Mastros
On Sat, Aug 19, 2000 at 07:57:34AM +1000, Jeremy Howard wrote: The choice of algorithms is a great idea, but why do we need a modifier? Isn't it a pretty straightforward set of rules that allow us to decide if a DFA matcher will work? clintonWell, that all depends what the meaning of the word

Re: Line disciplines (was Re: RFC 69 (v3) Standardize input record separator)

2000-08-18 Thread James Mastros
Do we want a language RFC on regex engines? Do we want some way of writing a regex engine in pure perl that can be used normaly? -=- James Mastros

Re: Extended Regexs

2000-08-18 Thread James Mastros
, but won't allow as much expressiveness. -=- James Mastros -- -BEGIN GEEK CODE BLOCK- Version: 3.1 GUCS d--- s-:- a20 C++ UL+++@ P L++@ E-() N o? K? w@ M-- !V PS++ PE Y+ PGP(-) t++@ 5+ X+++ R+ tv+ b+++ DI+ D+ G e++ h! r- y? --END GEEK CODE BLOCK--

<    1   2