Re: RFC: Implementation of Threads in Perl (v1)

2000-08-02 Thread Chaim Frenkel
yword or function that explicitly BCW> access a variable in the program-global stash. BCW> C BCW> C BCW> C<$foo = global $main::foo; # Localize this instance of $main::foo.> -- Chaim FrenkelNonlinear Knowledge, Inc. [EMAIL PR

Re: RFC: Implementation of Threads in Perl (v1)

2000-08-02 Thread Chaim Frenkel
OpTree - Representation and implementation Threading (crosses all the lines and should wait until these have become slightly gelled). -- Chaim FrenkelNonlinear Knowledge, Inc. [EMAIL PROTECTED] +1-718-236-0183

Re: date interface (was Re: perl6 requirements, on bootstrap)

2000-08-04 Thread Chaim Frenkel
>>>>> "SC" == Simon Cozens <[EMAIL PROTECTED]> writes: SC> On Thu, Aug 03, 2000 at 09:12:45PM -0400, Chaim Frenkel wrote: >> And while were here, does anyone understand kpathsea? SC> Yes. >> Would it be a win. I think it would. SC> There&#

Re: kpathsea

2000-08-04 Thread Chaim Frenkel
; == Simon Cozens <[EMAIL PROTECTED]> writes: SC> On Fri, Aug 04, 2000 at 09:13:44AM -0400, Chaim Frenkel wrote: >> Well, the issue is how much time is spent opening directories and checking >> for entries. Also on an NFS mounted file system, the directory has to be >

Re: Avoid memory copy and redundant loops in reduce/fold

2000-08-04 Thread Chaim Frenkel
nly @_ and the named prototypes would need to be aware of the difference. Though what about %hash on the stack? Hmm, not a problem @_ would use the each iterator. -- Chaim FrenkelNonlinear Knowledge, Inc. [EMAIL PROTECTED] +1-718-236-0183

Re: perl6-internals-gc sublist

2000-08-04 Thread Chaim Frenkel
the threading or event stuff...) Either the API or the internal representations should be worked on. They might be done in parallel. -- Chaim FrenkelNonlinear Knowledge, Inc. [EMAIL PROTECTED] +1-718-236-0183

Re: kpathsea

2000-08-04 Thread Chaim Frenkel
> "SC" == Simon Cozens <[EMAIL PROTECTED]> writes: SC> (Chaim, please can you *not* CC me stuff on a list you know I read! It's SC> not as if we don't get too much mail already from this. :) SC> On Fri, Aug 04, 2000 at 12:19:30PM -0400, Chaim Frenkel wrote: >

Threaded Code

2000-08-04 Thread Chaim Frenkel
een a Byte article?) (Might have been back in the '70s) -- Chaim FrenkelNonlinear Knowledge, Inc. [EMAIL PROTECTED] +1-718-236-0183

Re: RFC 35 / Re: perl6-internals-gc sublist

2000-08-05 Thread Chaim Frenkel
s one more de-ref away _AND_ needs masking NI> except for "all flags zero" case (which had better be the common one). NI> As I recall my LISP it has two pointers + flags -- Chaim FrenkelNonlinear Knowledge, Inc. [EMAIL PROTECTED] +1-718-236-0183

Re: RFC 38 (v1) Standardise Handling Of Abnormal Numbers

2000-08-05 Thread Chaim Frenkel
lons (positive and negative) is left to PRL> the native math libraries. A more concerted effort to standardise the PRL> behaviour of Perl across the platforms would be desirable. -- Chaim FrenkelNonlinear Knowledge, Inc. [EMAIL PROTECTED] +1-718-236-0183

Re: $^O and $^T variables (on-the-fly tainting)

2000-08-01 Thread Chaim Frenkel
gt; unreasonable, and I can think of a few ways to do it, but they need to be DS> designed in *now*, not later. Just remember, Larry's dislike of making untainting easy. I'd rather not have multiple characters. A option hash or even a longer namespace

Re: RFC: On-the-fly tainting via $^T

2000-08-01 Thread Chaim Frenkel
DS> Taint checking is disabled in a no taint block. Whether we still set the DS> taint status on a scalar could depend on the -T switch, so data would still DS> be tainted in a no taint block. -- Chaim FrenkelNonlinear Knowledge, Inc. [EMAIL PROTECTED] +1-718-236-0183

Re: Language RFC Summary 4th August 2000

2000-08-04 Thread Chaim Frenkel
all non-core items, hard coded into the language or are they able to be recognized as an already installed module. This would help avoid the proliferation of uses. And let perl find the right use. The only need for use would then be to customize the behavior. -- Chaim Frenkel

Re: date interface (was Re: perl6 requirements, on bootstrap)

2000-08-03 Thread Chaim Frenkel
t; I've got an RFC started on this. DS> The list would presumably be added to occasionally when a module is installed -- Chaim FrenkelNonlinear Knowledge, Inc. [EMAIL PROTECTED] +1-718-236-0183

Re: Imrpoving tie() (Re: RFC 15 (v1) Stronger typing through tie.)

2000-08-04 Thread Chaim Frenkel
code, or the XS replacement code. We might be able to add a hint hook to the module (or the vtbl) that would help optimization and the compiler. -- Chaim FrenkelNonlinear Knowledge, Inc. [EMAIL PROTECTED] +1-718-236-0183

Re: RFC 27 (v1) Coroutines for Perl

2000-08-04 Thread Chaim Frenkel
PRL> Coroutines are identified by a prefixed vertical bar. To invoke a PRL> coroutine, you write data to or read data from it. PRL>$y = <|foo>; PRL>print |$x "hello, world\n"; -- Chaim FrenkelNonlinear Knowledge, Inc. [EMAIL PROTECTED] +1-718-236-0183

Re: RFC 38 (v1) Standardise Handling Of Abnormal Numbers

2000-08-07 Thread Chaim Frenkel
>>>>> "KF" == Ken Fox <[EMAIL PROTECTED]> writes: KF> Tom Hughes wrote: >> In message <[EMAIL PROTECTED]> >> Chaim Frenkel <[EMAIL PROTECTED]> wrote: >> >> > I'd like to be able to mimic what the rules for nulls a

Multi-object locks (was Re: RFC 35 / Re: perl6-internals-gc sublist)

2000-08-07 Thread Chaim Frenkel
strict rules for lock JT> sequencing, there won't be a deadlock, right? Which brings to mind, (probably more appropriate to -language) the user needs a mechanism to handle multi-object locking, or a clean method to order his lock aquisition. -- Chaim Frenkel

Re: Ramblings on "base class" for SV etc.

2000-08-07 Thread Chaim Frenkel
a good candidate for Implementation DS> Defined Data... Sounds like one of the vtbl entries would be dump_self Hmm, will vtbl get rid of all the magic hacks? -- Chaim FrenkelNonlinear Knowledge, Inc. [EMAIL PROTECTED] +1-718-236-0183

Re: help writing RFC

2000-08-07 Thread Chaim Frenkel
urate mark-and-sweep JT> garbage collection and Lisp/Scheme-style continuations. Perl might JT> gain performance from the former and a desirable feature in the JT> latter. -- Chaim FrenkelNonlinear Knowledge, Inc. [EMAIL PROTECTED] +1-718-236-0183

pramgas as compile-time-only

2000-08-07 Thread Chaim Frenkel
op that does the check, would dispatch to the underlying op. -- Chaim FrenkelNonlinear Knowledge, Inc. [EMAIL PROTECTED] +1-718-236-0183

Re: RFC 38 (v1) Standardise Handling Of Abnormal Numbers

2000-08-07 Thread Chaim Frenkel
;> "GB" == Graham Barr <[EMAIL PROTECTED]> writes: GB> On Mon, Aug 07, 2000 at 06:05:30AM -0400, Chaim Frenkel wrote: >> What are the issues doing it through the vtbl of 'self'? Though if >> the op does it, there would be a different op under the tristate pr

Re: RFC 38 (v1) Standardise Handling Of Abnormal Numbers

2000-08-07 Thread Chaim Frenkel
float->BigRat, char->UTF8) is more reasonable, and DS> we can certainly manage that. Why limited? Doesn't this problem effect all pairwise combinations of operators? $complex / $integer $complex + $string. etc. -- Chaim FrenkelNonlinear Knowledge, Inc. [EMAIL PROTECTED] +1-718-236-0183

Re: Multi-object locks (was Re: RFC 35 / Re: perl6-internals-gc sublist)

2000-08-07 Thread Chaim Frenkel
ternals? Or are you just defering the problem till the language issues are resolved or finalized. -- Chaim FrenkelNonlinear Knowledge, Inc. [EMAIL PROTECTED] +1-718-236-0183

Re: pramgas as compile-time-only

2000-08-07 Thread Chaim Frenkel
>>>>> "DS" == Dan Sugalski <[EMAIL PROTECTED]> writes: DS> At 06:37 AM 8/7/00 -0400, Chaim Frenkel wrote: >> Are there any (p5p) pragmas that have a runtime effect? DS> strict, for one. Warnings for another. Please explain how these are runtime? I se

Re: Ramblings on "base class" for SV etc.

2000-08-07 Thread Chaim Frenkel
on: Have every Package generate a vtbl for each subroutine in the package. Then when something is blessed into the package (if this is retained for OO) then the objects vtbl becomes the precompiled merger of vtbls based upon the inheritence tree. If we use a

Re: pramgas as compile-time-only

2000-08-08 Thread Chaim Frenkel
f the code or simply on code path? Obviously having the checked version be a wrapper of the base op and near it on the same page would be a VM win. -- Chaim FrenkelNonlinear Knowledge, Inc. [EMAIL PROTECTED] +1-718-236-0183

Inner loop (was Re: type-checking [Was: What is Perl?])

2000-08-01 Thread Chaim Frenkel
ed. If, for DS> example, you had: DS>my ($foo, $bar); DS>my ($here, $there) : Place; DS>$foo = $bar; DS>$here = $there; -- Chaim FrenkelNonlinear Knowledge, Inc. [EMAIL PROTECTED] +1-718-236-0183

Re: Ramblings on "base class" for SV etc.

2000-08-08 Thread Chaim Frenkel
e's no method of that name already. I'm not sure what else we DS> can do, though. We will have to wait for the code to shape up. -- Chaim FrenkelNonlinear Knowledge, Inc. [EMAIL PROTECTED] +1-718-236-0183

Re: Method call optimization.

2000-08-09 Thread Chaim Frenkel
ution. But for the generic object. The package itself can contain an indirection table. This would be that sparse table with the offset in the object vtbl. We might be able to also use this table to hold debugging information. -- Chaim FrenkelNonlinear K

Re: Method call optimization.

2000-08-09 Thread Chaim Frenkel
>>>>> "GB" == Graham Barr <[EMAIL PROTECTED]> writes: GB> On Wed, Aug 09, 2000 at 10:01:46AM -0400, Chaim Frenkel wrote: >> For the "my Dog $spot" case, that's not an issue, compile time resolution. GB> And why would an object of type

Re: Method call optimization.

2000-08-09 Thread Chaim Frenkel
lready inherited a from B::a. (We could track all objects blessed into a package and do a fixup. But unless we need this list, for other reasons, it would be a waste just for this scenerio.) -- Chaim FrenkelNonlinear Knowledge, Inc. [EMAIL PROTECTED] +1-718-236-0183

Re: Method call optimization.

2000-08-09 Thread Chaim Frenkel
t this method from a common package. DN> This all falls apart under multiple inheritance, unfortunately. Pity DN> I didn't notice that when I started writing this. -- Chaim FrenkelNonlinear Knowledge, Inc. [EMAIL PROTECTED] +1-718-236-0183

Re: Method call optimization.

2000-08-09 Thread Chaim Frenkel
nyone on this list familiar with Objective-C and its dispatching method? >>>>> "CF" == Chaim Frenkel <[EMAIL PROTECTED]> writes: CF> Each sub has a unique number. CF> Package A - Has nothing blessed, doesn't need the lookup table CF> Package B - Has b

Re: Program lifecycle

2000-08-10 Thread Chaim Frenkel
DS> With each box being replaceable, and the process being freezable between DS> boxes. The lexer and parser probably ought to be separated, thinking about DS> it, and we probably want to allow folks to wedge at least C code into each DS> bit. (I'm not sure whether a

Re: Program lifecycle

2000-08-10 Thread Chaim Frenkel
be unfeasible I was thinking of macros as being passed some arguments but then can either manipulate the raw source code or ask the lexer/parser for parsed tokens. -- Chaim FrenkelNonlinear Knowledge, Inc. [EMAIL PROTECTED] +1-718-236-0183

Re: Method call optimization.

2000-08-10 Thread Chaim Frenkel
>>>>> "NI" == Nick Ing-Simmons <[EMAIL PROTECTED]> writes: NI> You just re-invented "look up the name in a hash table" ;-) I thought I was saving the constant search along the @ISA, do it only once. And adding a direct pointer for constant methods.

Re: Method call optimization.

2000-08-10 Thread Chaim Frenkel
t harder to keep package hashes more flat. GB> Another thing that may help is if all the keys in package hashes are shared GB> and also shared with constant method names in the op tree. Then when GB> scanning the chain you only need do a pointer comparison and not a GB> s

Re: Ideas On what a SV is

2000-08-10 Thread Chaim Frenkel
a pointer to the association for uncommon methods of the object type DLN> is filled. So the defined type table is an array of constant-sized DLN> items. -- Chaim FrenkelNonlinear Knowledge, Inc. [EMAIL PROTECTED] +1-718-236-0183

Re: Method call optimization.

2000-08-11 Thread Chaim Frenkel
ult in the package the object is blessed GB> into, so next time it finds it without searching ISA I was pushing the first caching operation into the compiler. It already has done most of the work, so it should be a win here. -- Chaim Frenkel

Re: Method call optimization.

2000-08-11 Thread Chaim Frenkel
at that's not feasible. If the optree needs to be modified we are going to have major pain for threading. -- Chaim FrenkelNonlinear Knowledge, Inc. [EMAIL PROTECTED] +1-718-236-0183

Re: Method call optimization.

2000-08-11 Thread Chaim Frenkel
w. I can see front-loading the DS> expense being worth it occasionally. I think. I was hoping that the vtbls would be self-operating. Without much need to work hard on them. Well, we could preload the vtbl with a _replace_me_ stub to do the cacheing. -- Chaim Frenkel

Re: Ideas On what a SV is

2000-08-11 Thread Chaim Frenkel
s. I'm not quite convinced. But if we lose vtbls for object dispatch a bit of unification is lost. The question is how often (in the universe of programs) is the @ISA redefined and how often a subroutine is redefined. And even if they are would they change the small offset. But I think

Re: Method call optimization.

2000-08-11 Thread Chaim Frenkel
c case would be more prevelent. And making the dynamic version take a hit. -- Chaim FrenkelNonlinear Knowledge, Inc. [EMAIL PROTECTED] +1-718-236-0183

Re: Method call optimization.

2000-08-11 Thread Chaim Frenkel
is not the problem. Aha, we're looking at to differnt dispatch methods. I wanted the op to simply call through the vtbl. No pre-checking. Why waste the code, for the usual case. So an active entry would handle the wasted if. (Aren't you the one that

Re: Internal Filename Representations (was Re: Summary of I/O related RFCs)

2000-08-11 Thread Chaim Frenkel
or :: or ? NW> So trace this call: NW>$fo = open "C:\Windows\System\IOSUBSYS\RMM.PDR"; NW>$fo->pathdrive = "C:" ; NW>$fo->patharray = [ Windows, System, IOSUBSYS, RMM.PDR ]; NW>$fo->pathdelim = "\"; NW> So, this would b

Re: Ideas On what a SV is

2000-08-12 Thread Chaim Frenkel
t; directly in the stash so that, the next time you need that function, you DS> don't need to traverse @ISA before going to AUTOLOAD. DS> Dave -- Chaim FrenkelNonlinear Knowledge, Inc. [EMAIL PROTECTED] +1-718-236-0183

Re: Method call optimization.

2000-08-12 Thread Chaim Frenkel
ices only to methods that are statically _seen_. I.e. to any call ->foo. Somewaht a smaller universe than the number of possible functions. These should converge around items in the 'official' API. -- Chaim Frenkel

Re: RFC 35 (v1) A proposed internal base format for perl

2000-08-12 Thread Chaim Frenkel
W> decide to stitch in bigints.) Actually, it isn't false. Just not 100% accurate statement. During some interchange with Dan. We discuseed saving various flag checking by swapping vtbls. (Hmm, might this be a state machine?) -- Chaim Frenkel

Re: Ramblings on "base class" for SV etc.

2000-08-12 Thread Chaim Frenkel
7;unsafe' operations simply call the data access routine with a 'I don't want tainted data'. Untainted vtbls ignore the option. Tainted data, abort/scream. -- Chaim FrenkelNonlinear Knowledge, Inc. [EMAIL PROTECTED] +1-718-236-0183

Re: Ideas On what a SV is

2000-08-12 Thread Chaim Frenkel
>>>>> "DS" == Dan Sugalski <[EMAIL PROTECTED]> writes: DS> At 10:26 PM 8/12/00 -0400, Chaim Frenkel wrote: >> If we are going to have pre-compiled modules (bytecode or machine) why >> bother with AUTOLOAD? >> >> The "registry"

Re: Internal Filename Representations (was Re: Summary of I/O related RFCs)

2000-08-12 Thread Chaim Frenkel
file name. The default is the latest version. But the filesystem automatically versions files. Hmm, if we support versioning files, will perl have to support emacs versioned files? /foo/bar/bash.c.~356~ -- Chaim FrenkelNonli

Re: Internal Filename Representations (was Re: Summary of I/O related RFCs)

2000-08-13 Thread Chaim Frenkel
me" ,Type=>"txt" ,Version=> ":oldest" ); Seems messy. -- Chaim FrenkelNonlinear Knowledge, Inc. [EMAIL PROTECTED] +1-718-236-0183

Re: Internal Filename Representations (was Re: Summary of I/O related RFCs)

2000-08-13 Thread Chaim Frenkel
:Generic "." $resource->name = "new name with all other parts left alone"; $fh = open $resource->asNativeFormat() Blech, but possible. (Stolen parphrased but liberally from the Symbolics manual) -- Chaim Frenkel

Re: Internal Filename Representations (was Re: Summary of I/O related RFCs)

2000-08-13 Thread Chaim Frenkel
planning to have a direct perl <-> os layer. (A rewrite/stealing^wborrowing from sfio?) -- Chaim FrenkelNonlinear Knowledge, Inc. [EMAIL PROTECTED] +1-718-236-0183

Re: Internal Filename Representations (was Re: Summary of I/O related RFCs)

2000-08-13 Thread Chaim Frenkel
resentation. If you are JH> opening a file with open() or sysopen(), you supply a string with your JH> native FS semantics and think no more of it. What RFC? I couldn't find it on http://dev.perl.org/rfc/ Please explain why internally it needs to be represented as anything o

Re: Internal Filename Representations (was Re: Summary of I/O related RFCs)

2000-08-13 Thread Chaim Frenkel
form-independent naming scheme. I'm not sure that it covers all the bases. It covers the universe that web servers are designed to handle. But what about the universe of devices. Or remote access to mounted volumes? Sitting on a unix box, and getting to C: on a windows box? I'll wait

Re: pramgas as compile-time-only

2000-08-14 Thread Chaim Frenkel
in handling the optree between threads (and reducing sharing.) A "parallel" structure to store those items that cover a range of statements (or parts of an optree) should do it. -- Chaim FrenkelNonlinear Knowledge, Inc. [EMAIL PROTECTED] +1-718-236-0183

Re: Multi-object locks (was Re: RFC 35 / Re: perl6-internals-gc sublist)

2000-08-14 Thread Chaim Frenkel
kay, give. You obviously think it is bad. (I don't know what it is, but what is bad about it.) -- Chaim FrenkelNonlinear Knowledge, Inc. [EMAIL PROTECTED] +1-718-236-0183

Re: RFC 35 (v1) A proposed internal base format for perl

2000-08-14 Thread Chaim Frenkel
x27;t have to be machine code. A first pass for a port that does the TIL inner loop in C, should be quite portable. A faster port, that intimately understands the compiler and how to play with it, can be done at lesiure. -- Chaim Frenkel

Re: RFC 35 (v1) A proposed internal base format for perl

2000-08-15 Thread Chaim Frenkel
>>>>> "LW" == Larry Wall <[EMAIL PROTECTED]> writes: LW> On the other hand, targeting JVM and IL.NET might keep us honest enough. What is IL.NET? -- Chaim FrenkelNonlinea

Re: RFC 35 (v1) A proposed internal base format for perl

2000-08-15 Thread Chaim Frenkel
loop. This is with an inner loop. The dispatching could be sped up at the cost of space by converting the pointers into real calls, and replacing calls to push functions with real pushes. -- Chaim FrenkelNonlinear Knowledge, Inc. [EMAIL PROTECTED] +1-718-236-0183

Welcome to Perl Vtbls

2000-08-15 Thread Chaim Frenkel
les method dispatch. Again operations on the object itself. Cross operations, addition, concatination, etc. Are handled in the optree. I can't see how objectA's vtbl can handle a cross-operation to objectB's vtbl. Enlightenment sought. -- Chaim Frenkel

Re: Threaded In-Line Code (was Re: Typed Intermediate Language)

2000-08-15 Thread Chaim Frenkel
vaguely recall that at least one path, flipped the object and the sender. Others did asFoo messages on the sender. -- Chaim FrenkelNonlinear Knowledge, Inc. [EMAIL PROTECTED] +1-718-236-0183

Re: Threaded In-Line Code (was Re: Typed Intermediate Language)

2000-08-15 Thread Chaim Frenkel
>>>>> "RLS" == Randal L Schwartz <[EMAIL PROTECTED]> writes: >>>>> "Chaim" == Chaim Frenkel <[EMAIL PROTECTED]> writes: Chaim> Given N different fundemental types, we end up with NxN vtbl entries. Chaim> A long time ago I lo

Re: Internals WG, through August 15th

2000-08-16 Thread Chaim Frenkel
Err, when did this decision come about. I saw some discussion but I didn't notice when it became final. (I assume go, means be eliminated.) -- Chaim FrenkelNonlinear Knowledge, Inc. [EMAIL PROTECTED] +1-718-236-0183

Re: Design by Contract for perl internals

2000-08-17 Thread Chaim Frenkel
will include or exclude them based on the build requested. >>>>> "MGS" == Michael G Schwern <[EMAIL PROTECTED]> writes: MGS> On Sun, Aug 13, 2000 at 07:16:41PM -0400, Chaim Frenkel wrote: >> What do you think of creating a mechanism for attaching pre

Re: RFC 130 (v1) Transaction-enabled variables for Perl6

2000-08-17 Thread Chaim Frenkel
re quite important in a database-enabled application. PRL> Professional database systems have transaction-handling inside, but PRL> there are only a few laguage out there, what supports transactions PRL> in variable level. -- Chaim Frenkel

Re: RFC 130 (v1) Transaction-enabled variables for Perl6

2000-08-17 Thread Chaim Frenkel
to flock() involving mutexes DLN> and sending it to perl6-language? -- Chaim FrenkelNonlinear Knowledge, Inc. [EMAIL PROTECTED] +1-718-236-0183

Re: RFC 130 (v1) Transaction-enabled variables for Perl6

2000-08-18 Thread Chaim Frenkel
p for grabs. But if it participates then as far as the 'caller' or user is concerned it looks like a variable and acts like a variable. It must be a variable. >>>>> "d" == dLux <[EMAIL PROTECTED]> writes: d> /--- On Thu, Aug 17, 2000 at 06:17:51PM

Re: Do threads support SMP?

2000-08-19 Thread Chaim Frenkel
all <[EMAIL PROTECTED]> writes: SWM> Does Perl6 support Symmetric MultiProcessing (SMP)? SWM> This is a *huge* issue. It affects everything else that we do with SWM> threads. -- Chaim FrenkelNonlinear Knowledge, Inc. [EMAIL PROTECTED]

Re: RFC 99 (v1) Maintain internal time in Modified Julian (not epoch)

2000-08-15 Thread Chaim Frenkel
o distribute portable time and date calcuations, as part of the core, we will have to live with whatever the system libraries give us. (I don't want to think about Leap Seconds just yet.) -- Chaim FrenkelNonlinear Knowledge, Inc. [EMAIL PROTECTED]

Re: RFC 136 (v1) Implementation of hash iterators

2000-08-23 Thread Chaim Frenkel
would be stored) that is the iterator for (each %hash) {} becomes $hidden = iterator->new %hash while ($_ = $hidden->next) {} $hidden->done or something. -- Chaim FrenkelNonlinear Knowledge, Inc. [EMAIL PROTECTED] +1-718-236-0183

Re: RFC 136 (v1) Implementation of hash iterators

2000-08-23 Thread Chaim Frenkel
s. Are there DBM's that don't understand nextkey? Isn't this the another version of having an indirection? DBM's that don't allow multiple iterators means the porter to the DBM has to supply a wrapper that does. -- Chaim FrenkelNonlinear Knowledge, Inc. [EMAIL PROTECTED] +1-718-236-0183

Re: RFC 127 (v1) Sane resolution to large function returns

2000-08-24 Thread Chaim Frenkel
the stack. So that push(@foo, @bar) would be an iterator (but since this is internal special handling can be done. Whild the push(@foo, \@foo) would be the normal single whatzit processing. But then again, I'm probably missing something. -- Chaim Frenkel

Re: RFC 127 (v1) Sane resolution to large function returns

2000-08-24 Thread Chaim Frenkel
ectation would be to have it become # $foo=1 $baz=2 @bar=(4) *blech*, I'm glad that you're doing the thinking. >>>>> "LW" == Larry Wall <[EMAIL PROTECTED]> writes: LW> Chaim Frenkel writes: LW> : LW> P.S. I thin

Re: RFC 146 (v1) Remove socket functions from core

2000-08-25 Thread Chaim Frenkel
ck, that if this is true for core. It might be feasible for non-core modules (assuming some sort of registry) so that an implicit use might be performed. (I'm ignoring the problems of multiple versions or multiple conflicting routines of the same name.) Are we still far apart? -- Ch

Re: RFC 155 (v1) Remove geometric functions from core

2000-08-25 Thread Chaim Frenkel
anism. -- Chaim FrenkelNonlinear Knowledge, Inc. [EMAIL PROTECTED] +1-718-236-0183

Re: RFC 127 (v1) Sane resolution to large function returns

2000-08-24 Thread Chaim Frenkel
ar return an object ref in scalar LW> context, as long as the object returned overloads itself to behave as LW> arrays and hashes currently do in scalar context. Isn't this an internals issue? -- Chaim FrenkelNonlinear Knowledge, Inc. [EMAIL PROTECTED] +1-718-236-0183

Re: RFC 130 (v4) Transaction-enabled variables for Perl6

2000-08-28 Thread Chaim Frenkel
multiple variable variety. You will need to able to have a group of variables be transaction protected. -- Chaim FrenkelNonlinear Knowledge, Inc. [EMAIL PROTECTED] +1-718-236-0183

Re: RFC 130 (v4) Transaction-enabled variables for Perl6

2000-08-30 Thread Chaim Frenkel
ediate code (parse tree or OP tree or whatever), KF> then both "with" and "transation" might be implemented from user code KF> outside the core. -- Chaim FrenkelNonlinear Knowledge, Inc. [EMAIL PROTECTED] +1-718-236-0183

Re: RFC 130 (v4) Transaction-enabled variables for Perl6

2000-08-31 Thread Chaim Frenkel
>>>>> "KF" == Ken Fox <[EMAIL PROTECTED]> writes: KF> Chaim Frenkel wrote: >> You are now biting off quite a bit. KF> What good is half a transaction? If transactions are to be useful, KF> they should be fully supported -- including rolling bac

Re: A tentative list of vtable functions

2000-09-01 Thread Chaim Frenkel
IS figure out how to get THAT to give a usable value? DS> logical_or DS> logical_and DS> logical_not DS> bind (For =~) DS> repeat (For x) Are these so that operators can be overriden? DS> Anyone got anything to add before I

Re: A tentative list of vtable functions

2000-09-01 Thread Chaim Frenkel
fused. Who is doing adding? Perl (aka the TIL) or one of the operands? >> How does THIS figure out how to get THAT to give a usable value? DS> That's what the type parameter's for... You're back to a big switch! Lost in a maze of subroutines that all look alike. -- Chaim FrenkelNonlinear Knowledge, Inc. [EMAIL PROTECTED] +1-718-236-0183

Re: A tentative list of vtable functions

2000-09-01 Thread Chaim Frenkel
I> is_equal in what sense? (String, Number, ...) NI> and how is is_same different from just comparing addresses of the things? Proxies? Wrappers? The proxy might want to answer on behalf of the proxied. -- Chaim Frenkel

Re: RFC 178 (v1) Lightweight Threads

2000-09-04 Thread Chaim Frenkel
a reference. my $a :shared; my $b; $a = \$b; Otherwise what is the problem. In this case. Putting a reference into a shared variable would wrap the reference. Would this satisfy your needs? -- Chaim FrenkelNonlinear Knowledge, Inc. [EMAIL PROTECTED] +1-718-236-0183

Re: RFC 178 (v1) Lightweight Threads

2000-09-04 Thread Chaim Frenkel
agree that all the rest is a user issue, is too short-sighted. The job of perl is to make things easy, and the hard possible. Single thingee access mediation, should be done automatically by perl. The multi-thingee complex mediation should have the user step in, since solving it (correctly and efficie

Re: RFC 136 (v2) Implementation of hash iterators

2000-09-04 Thread Chaim Frenkel
difying the vtbl and filling up the stack with the keys. I really am suspicious of replacing the vtbl entry, there may be more than one thread working its way through the hash. -- Chaim FrenkelNonlinear Knowledge, Inc. [EMAIL PROTECTED] +1-718-236-0183

Re: RFC 178 (v1) Lightweight Threads

2000-09-04 Thread Chaim Frenkel
c. Two different unrelated items, that are each individually properly syncronized by perl, but the whole is wrong. -- Chaim FrenkelNonlinear Knowledge, Inc. [EMAIL PROTECTED] +1-718-236-0183

Re: RFC 178 (v2) Lightweight Threads

2000-09-04 Thread Chaim Frenkel
> Sigh...if that's the best I can get, I'll take it. I'm not the decisor here, I'm just pointing out another way to look at the problem. I really don't think you want to have _all_ variable actually visible. Even if they were, you will most likely have only a limited number that you want visible. -- Chaim FrenkelNonlinear Knowledge, Inc. [EMAIL PROTECTED] +1-718-236-0183

Re: RFC 178 (v1) Lightweight Threads

2000-09-05 Thread Chaim Frenkel
es locking. SWM> - Internal structures, mallocs, and accesses are properly mutexed I think we are still in mutual misunderstanding. I am only addressing what the _user_ sees. Not what perl will do internally. I'm working under the assumption that -internals will do whatev

Re: RFC 136 (v2) Implementation of hash iterators

2000-09-05 Thread Chaim Frenkel
nd release it when either finished, reset or destroyed. Your mechanism, is more like a seek,read,tell sequence without any guarentees between access. -- Chaim FrenkelNonlinear Knowledge, Inc. [EMAIL PROTECTED] +1-718-236-0183

Re: RFC 178 (v2) Lightweight Threads

2000-09-05 Thread Chaim Frenkel
thout user specifying a lock, perl will allow a chaotic update pattern to be visible to the user? thread Athread B push(@foo, $bar); ++$bar; or $foo{$bar} = $baz; delete $foo{$bar++}; Will there be s

Re: RFC 130 (v4) Transaction-enabled variables for Perl6

2000-09-05 Thread Chaim Frenkel
mmit. Or perhaps we get into versioning of variables and then we buy problems of how to do rollbacks and retryies. I don't think we can do this immediately. Can you come up with the right API and/or hooks that are needed so that it might be retrofited? -- Chaim FrenkelNonlinear Knowledge, Inc. [EMAIL PROTECTED] +1-718-236-0183

Re: YAVTBL: yet another vtbl scheme

2000-09-05 Thread Chaim Frenkel
t need to (ie, vec() can BS> just do a set_string and add an OVERLOAD for the bitwise BS> ops). But that's against the point. Nothing has to check. The only operation that is called is the correct one. -- Chaim FrenkelNonlinear Knowledge, Inc. [EMAIL PROTECTED] +1-718-236-0183

Re: RFC 130 (v4) Transaction-enabled variables for Perl6

2000-09-06 Thread Chaim Frenkel
oing transactions. Though I don't think you would mind having sub mycritical : lock { } # critical section here. or sub onlyone : method, lock { } # lock the object/class -- Chaim FrenkelNonlinear Knowledge, Inc. [EMAIL PROTECTED] +1-718-236-0183

Re: RFC 178 (v2) Lightweight Threads

2000-09-06 Thread Chaim Frenkel
gle 'statement', it may be possible to gather all the objects needing a lock and then grabbing them in order (say by address). Also the thread doesn't need to make any changes until all the locks are available so a backoff algorithm may work. This would k

Re: RFC 178 (v2) Lightweight Threads

2000-09-06 Thread Chaim Frenkel
be needed. $a[++$b]; pop(@a); push(@a, @b); Will these? And given that users will be doing the locking. What do you see for handling deadlock detection and recovery/retry. -- Chaim FrenkelNonlinear Knowledge, Inc. [EMAIL PROTECTED] +1-718-236-0183

Re: RFC 136 (v2) Implementation of hash iterators

2000-09-06 Thread Chaim Frenkel
;-) Why not lock(%y); foreach my $x (keys %y) { $y{$x+1} = 1; } unlock(%y); Hmm, I just realized, perhaps we can just punt. Any p5 program that doesn't use Threads can be left alone. Using p5 threads would then need manual intervention. -

Re: RFC 178 (v2) Lightweight Threads

2000-09-06 Thread Chaim Frenkel
rk at some point, run through the code, if the changes take, we're ahead of the game. If something fails, back off to the checkpoint and try the code again. So any stretch of code with only operations on internal structures could be made eligable for retries. -- Chaim Frenkel

  1   2   >