RE: Yet another switch/goto implementation

2001-11-05 Thread Brent Dax
Michael Fischer: # On Nov 04, Brent Dax <[EMAIL PROTECTED]> took up a keyboard # and banged out # > Michael Fischer: # > # In the goto case, we spin. And perhaps I am broken there. End # > # really wants to return, not just set the pc, but I hadn't thought # > # of a cleve

RE: Rules for memory allocation and pointing

2001-11-05 Thread Brent Dax
s). Since not all PMCs or # strings even refer to # things in the GC-heap, this is an effective compromise. Just # as a point of # comparison. True we still have the potential for leaks, but that is # avoidable even in perl5.6. # # In Summary, the lingering issues are: # a) PMC memory managemen

RE: Rounding?

2001-11-05 Thread Brent Dax
t N3 to an I register with the C op and then print the integer. --Brent Dax [EMAIL PROTECTED] Configure pumpking for Perl 6 When I take action, I'm not going to fire a $2 million missile at a $10 empty tent and hit a camel in the butt. --Dubya

RE: Lexical implementation work

2001-11-11 Thread Brent Dax
Dan Sugalski: # At 01:39 PM 11/9/2001 -0800, Brent Dax wrote: # >Dan Sugalski: # ># At 12:39 AM 11/9/2001 -0500, Ken Fox wrote: # ># >3. We've adopted a register machine architecture to # ># >reduce push/pop stack traffic. Register save/load # ># >traffic is s

RE: preferences for data structure diagrams?

2001-11-11 Thread Brent Dax
er choice since everybody # has to deal with that format anyway. # # Ideally we should have something with the quality of # PerlGuts Illustrated and the simplicity of ASCII. I'd suggest PDF or PostScript for most, and a GIF or something for those who can't read the main format. --Br

RE: A serious stab at regexes

2001-11-05 Thread Brent Dax
adapted the little compiler to output code for your # ops proposal # including the modification I suggest. This way we can see how # the assembler # would be for complex regular expressions. I am attaching it with this # e-mail. # # Now it supports: # # * literals # * nested groups (do not capture) #

RE: Yet another switch/goto implementation

2001-11-05 Thread Brent Dax
Daniel Grunblatt: # On Mon, 5 Nov 2001, Brent Dax wrote: # # > Michael Fischer: # > # On Nov 04, Brent Dax <[EMAIL PROTECTED]> took up a keyboard # > # and banged out # > # > Michael Fischer: # > # > # In the goto case, we spin. And perhaps I am broken there. End # >

RE: Yet another switch/goto implementation

2001-11-05 Thread Brent Dax
oto *lookup[*pc]; That'll still be faster than switch()ing or function-pointer; it just won't be as fast as untracing, which I think users can accept and understand. --Brent Dax [EMAIL PROTECTED] Configure pumpking for Perl 6 When I take action, I'm not going to fire a $2 million missi

RE: java vs. parrot mops

2001-10-31 Thread Brent Dax
Daniel Grunblatt: # I have tested times using computed goto in the interpreter # and here are # the results: # # # ./test_prog mops.pbc ## M op/s:34.864582 # # # java -Xint mops # M op/s:30.950170356876555 Holy $#!+... --Brent Dax [EMAIL PROTECTED] Configure pumpking for Perl 6

Opcode complaints

2001-10-27 Thread Brent Dax
ants One thing that seems to be missing is string and numeric variants on the comparison ops. While this isn't a problem now, it may be once we get PMCs. I can probably write a patch to fix all this, but first we have to decide if it needs fixing. Some of these are kind of nitpicky, but they&#x

RE: Building Parrot for Win32.

2001-11-01 Thread Brent Dax
; file and rebuild to get rid of this error. However, there are several other known Win32 build issues, so you'll likely have to fiddle with things to get them to work. (The sleep() op is another source of such misery.) --Brent Dax [EMAIL PROTECTED] Configure pumpking for Perl 6 When I tak

RE: Ooops, sorry for that blank log message.

2001-10-26 Thread Brent Dax
Sam Tregar: # On Fri, 26 Oct 2001, Brent Dax wrote: # # > What if I want my compiler to be lazy? Do you have the # right to punish # > me for my laziness by making me add constant folding to my # optimizer (or # > perhaps making me *write* an optimizer just to do constant folding)? # #

RE: Ooops, sorry for that blank log message.

2001-10-26 Thread Brent Dax
Dan Sugalski: # At 10:51 AM 10/26/2001 -0400, Jason Gloudon wrote: # >On Fri, Oct 26, 2001 at 06:54:32AM -0700, Brent Dax wrote: # > # > > What if I want my compiler to be lazy? Do you have the # right to punish # > > me for my laziness by making me add constant folding to

RE: Ooops, sorry for that blank log message.

2001-10-26 Thread Brent Dax
which fetches the global variable "name" and puts it into Px, and a similar one for lexicals. --Brent Dax [EMAIL PROTECTED] Configure pumpking for Perl 6 When I take action, I’m not going to fire a $2 million missile at a $10 empty tent and hit a camel in the butt. --Dubya

RE: Building Parrot for Win32.

2001-11-01 Thread Brent Dax
le from the CPAN) has many Unix tools, including an implementation of 'diff'. BTW, welcome to Perl6-Internals. Everybody say hi! --Brent Dax [EMAIL PROTECTED] Configure pumpking for Perl 6 When I take action, I’m not going to fire a $2 million missile at a $10 empty tent and hit a camel in the butt. --Dubya

RE: Ooops, sorry for that blank log message.

2001-10-26 Thread Brent Dax
*required* to special case two constant arguments on *every* piece of code I write that works with Parrot.) --Brent Dax [EMAIL PROTECTED] Configure pumpking for Perl 6 When I take action, I'm not going to fire a $2 million missile at a $10 empty tent and hit a camel in the butt. --Dubya

My own RE implementation

2001-11-01 Thread Brent Dax
#sticks the results into I0 print "Match results: " print I0 I'm still getting a few problems with my RE ops, so I can't test it yet. Thanks, --Brent Dax [EMAIL PROTECTED] Configure pumpking for Perl 6 When I take action, I’m not going to fire a $2 million missile at a $10 empty tent and hit a camel in the butt. --Dubya

RE: Building Parrot for Win32.

2001-11-01 Thread Brent Dax
ch program?). # # This is a really simple fix but I just wanted to see if it would work. Nice. Thanks, applied. Your change should show up in CVS in a few minutes. --Brent Dax [EMAIL PROTECTED] Configure pumpking for Perl 6 When I take action, I’m not going to fire a $2 million missile at a $10 empty tent and hit a camel in the butt. --Dubya

RE: Lexical implementation work

2001-11-12 Thread Brent Dax
Jason Gloudon # On Sun, Nov 11, 2001 at 08:57:15PM -0800, Brent Dax wrote: # # > You get the idea? And as for multidimensional stuff, # what's wrong with: # > # > fetchlex P1, "@lol" # > fetchary P2, P1, 1 # > fetchary P3, P2, 2 # > #... # # Consi

More Regexp Goodness

2001-11-02 Thread Brent Dax
es with five tests, and docs in the core.ops pseudo-patch. Share and Enjoy, --Brent Dax [EMAIL PROTECTED] Configure pumpking for Perl 6 When I take action, I’m not going to fire a $2 million missile at a $10 empty tent and hit a camel in the butt. --Dubya

RE: Yet another switch/goto implementation

2001-11-07 Thread Brent Dax
t decisions about ops. # Brent Dax had babyperl working, but at some point we need to # start in on # the real parser, compiler, and optimizer modules. Babyperl is currently defunct, thanks to massive in-progress changes to accommodate operator precedence and to make the code more understandable. I&

RE: sizeof(INTVAL), sizeof(void*), sizeof(opcode_t)

2001-11-21 Thread Brent Dax
Cs are designed to hold weird data; besides, they'll have to be able to hold CVs anyway. --Brent Dax [EMAIL PROTECTED] Configure pumpking for Perl 6 "Nothing important happened today." --George III of England's diary entry for 7-4-1776

RE: Yet another switch/goto implementation

2001-11-08 Thread Brent Dax
py) { ... } except without the actual overhead of having an @arraycopy. --Brent Dax [EMAIL PROTECTED] Configure pumpking for Perl 6 When I take action, I'm not going to fire a $2 million missile at a $10 empty tent and hit a camel in the butt. --Dubya

[COMMIT] Allow _ in op names

2001-11-25 Thread Brent Dax
In preparation of more realistic regex opcodes (which will all be prefixed with rx_), I've committed some changes to allow underscores in op names. As it turned out, the only changes needed were to ops2c.pl and friends; the assembler was already ready already. --Brent Dax [EMAIL PROT

RE: Re: [Proposal] Regex documentation

2001-11-25 Thread Brent Dax
\ } That if/else probably damaged performance, and all the indirections through 'frame' probably didn't help much. I can provide source for everything on request, including a new core.ops and some supporting files, the test as

RE: Re: [Proposal] Regex documentation

2001-11-25 Thread Brent Dax
Dan Sugalski: # Sent: Sunday, November 25, 2001 11:48 # To: Brent Dax # Cc: Angel Faus; [EMAIL PROTECTED] # Subject: RE: Re: [Proposal] Regex documentation # # # On Sun, 25 Nov 2001, Brent Dax wrote: # # > Unfortunately, because Parrot currently has no GC system # and thus leaks # > all ov

RE: Benchmarking the proposed RE engine

2001-11-25 Thread Brent Dax
art, rx_popstart, and rx_info_setstart don't currently exist, though they could probably be implemented fairly easily. See my point? Unless there's some way to write opcodes for Perl 5's REs (and we do all our benchmarking with that), we will probably never come close to their perf

RE: Benchmarking the proposed RE engine

2001-11-25 Thread Brent Dax
Bryan C. Warnock: # On Sunday 25 November 2001 10:34 pm, Brent Dax wrote: # > Perl 5's REs will always appear faster because Perl 5 has an # > intelligent, optimizing regex compiler. For example, take # the following # > simple regex: # > # > /a+bc+/ # > # > preg

RE: Benchmarking the proposed RE engine

2001-11-25 Thread Brent Dax
Bryan C. Warnock: # On Sunday 25 November 2001 11:09 pm, Brent Dax wrote: # > Not exactly. # > It finds the 'a', then the 'abc', then tries the match. My mistake. # > Still, that's a hell of a lot more intelligent than just 'proceeding # > dumbly lef

RE: Benchmarking the proposed RE engine

2001-11-26 Thread Brent Dax
f things, like using bitmaps on strings) but it's certainly feasable. (And that particular example can be sped up by caching in a hash once hashes are available.) --Brent Dax [EMAIL PROTECTED] Configure pumpking for Perl 6 "Nothing important happened today." --George III of England's diary entry for 4-Jul-1776

RE: os2 hints

2001-11-29 Thread Brent Dax
uot;long"; Are these actually necessary? Remember, other people may want different build configurations then you. --Brent Dax [EMAIL PROTECTED] Configure pumpking for Perl 6 "Nothing important happened today." --George III of England's diary entry for 4-Jul-1776

RE: Key stuff for aggregates

2001-12-05 Thread Brent Dax
themselves what to do about currently non-existent keys. --Brent Dax [EMAIL PROTECTED] Configure pumpking for Perl 6 "Nothing important happened today." --George III of England's diary entry for 4-Jul-1776

RE: [PATCH] Don't count on snprintf

2001-11-30 Thread Brent Dax
have an _snprintf function with the same arguments. The leading underscore is beyond me. *shrugs* --Brent Dax [EMAIL PROTECTED] Configure pumpking for Perl 6 "Nothing important happened today." --George III of England's diary entry for 4-Jul-1776

RE: copy-on-write

2001-12-01 Thread Brent Dax
memory is still in use, even if the pointer to it is pointing into the middle of the memory instead of the start? Maybe STRINGs should have a separate field for the start of the actual string. --Brent Dax [EMAIL PROTECTED] Configure pumpking for Perl 6 "Nothing important happened today." --George III of England's diary entry for 4-Jul-1776

RE: Thoughts on vtables...

2001-12-01 Thread Brent Dax
#x27; clearer than a # cryptic digit. However it would be slightly slower to compile # that way. We could have it both ways--have both AUTO_OP new(p, ic) and AUTO_OP new(p, sc). FWIW, though, I don't think the class numbers are actually being used right now--all the tests in pmc.t use 'ne

RE: Thoughts on vtables...

2001-12-02 Thread Brent Dax
amboling about, # changing vtables dynamically between int and string and # such... Maybe we # should add a small layer of indirection and end up with class # names such # as 'perl_undef' and 'perl_scalar' that will isolate the code below the # layer where the compiler author will have to care about what initial # type the PMC is beyond undef/scalar/array/hash? Why don't we keep both an array and a hash (once they're available) of types? --Brent Dax [EMAIL PROTECTED] Configure pumpking for Perl 6 "Nothing important happened today." --George III of England's diary entry for 4-Jul-1776

RE: Cranky compilers

2001-12-02 Thread Brent Dax
: missing source filename gcc: Using builtin specs. gcc version 2.95.3 20010315 (release) [FreeBSD] Any other suggestions? # Jarkko's got some truly fascist switches for gcc. Once we're # -Wall clean, # those will go in too... --Brent Dax [EMAIL PROTECTED] Configure pumpking for P

RE: basic parrot questions

2001-12-03 Thread Brent Dax
ster-based architecture. We actually do have a data stack too, for passing arguments that won't fit in the first five registers or for saving data for later--we're still register-based because most of our operations are on registers. --Brent Dax [EMAIL PROTECTED] Configure pumpking for

RE: What is wrong with GCC's register transfer language?

2001-12-03 Thread Brent Dax
it ourselves and making it available to other scripting languages. --Brent Dax [EMAIL PROTECTED] Configure pumpking for Perl 6 "Nothing important happened today." --George III of England's diary entry for 4-Jul-1776

RE: Configger this.

2001-12-07 Thread Brent Dax
ard on it--this Configure won't be like the final Configure.) --Brent Dax [EMAIL PROTECTED] Configure pumpking for Perl 6 "Nothing important happened today." --George III of England's diary entry for 4-Jul-1776

RE: Hello? Win32 on fire?

2001-12-12 Thread Brent Dax
y listing /Fp name precompiled header file /Fd[file] name .PDB file /Fr[file] name source browser file /Fe name executable file /FR[file] name extended .SBR file --Brent Dax [EMAIL PROTECTED] Configure pumpking for Perl 6 "Nothing important happened today." --George III of England's diary entry for 4-Jul-1776

RE: Hello? Win32 on fire?

2001-12-12 Thread Brent Dax
Never mind. My e-mail client stopped downloading, so I didn't know this was already being resolved. :^) --Brent Dax [EMAIL PROTECTED] Configure pumpking for Perl 6 "Nothing important happened today." --George III of England's diary entry for 4-Jul-1776

RE: Allocators

2001-12-12 Thread Brent Dax
document which data structures are aligned and which aren't, we shouldn't have a problem. --Brent Dax [EMAIL PROTECTED] Configure pumpking for Perl 6 "Nothing important happened today." --George III of England's diary entry for 4-Jul-1776

RE: Nmake is stupid.

2001-12-12 Thread Brent Dax
'target' file parameters block { qq{target("$item{file}", sub $item{block}, $item{parameters}) } } block: parameters: parameter(s? / /) parameter: paramname '(' filelist &

RE: Mr. Configure

2001-12-13 Thread Brent Dax
Bryan C. Warnock: # Can we start a config/ directory for config snippets? Fine by me. --Brent Dax [EMAIL PROTECTED] Configure pumpking for Perl 6 "Nothing important happened today." --George III of England's diary entry for 4-Jul-1776

RE: Apropos of nothing...

2001-12-13 Thread Brent Dax
se should be obvious. In that case, 'scalar' context is really 'one' context. However, we can still call it scalar context if it makes you feel better. :^) (Yes, those are just my opinions. They do not necessarily reflect Larry's, Damian's or the guy in the padded ce

Am I just an idiot...

2001-12-14 Thread Brent Dax
ng or a PerlInt? I think PerlString, because otherwise there'd be no way to cast between types. Of course, this wouldn't be an issue (at least for the thing I'm working on) if there was a way to force string comparisons instead of numeric ones (hint, hint). --Brent Dax [EMAIL

RE: Am I just an idiot...

2001-12-14 Thread Brent Dax
Simon Cozens: # On Fri, Dec 14, 2001 at 12:06:51AM -0800, Brent Dax wrote: # > or is there no 'set(p, p)' function? If there isn't, why not? # # There isn't. Nobody's written it. :) # # > Also, a question if/once it exists. I assume it'll make a copy.

RE: Am I just an idiot...

2001-12-14 Thread Brent Dax
Dan Sugalski: # At 11:10 AM 12/14/2001 +, Simon Cozens wrote: # >On Fri, Dec 14, 2001 at 12:06:51AM -0800, Brent Dax wrote: # > > Also, a question if/once it exists. I assume it'll make a copy. # > # >Yep. Although I'm not quite sure off-hand how to write it. # # Wel

RE: How to add new ops?

2001-12-18 Thread Brent Dax
gn it in such a way that other languages can utilize it without jumping through too many hoops. Besides, the 'Perl-specific issues' are: a) very far off (we don't even have most of the language spec yet), and b) good examples of how to make Parrot work with an actual HLL. --B

JIT stuff stomps on Windows compilation

2001-12-20 Thread Brent Dax
and tired right now, so please disregard the tone of this message.) --Brent Dax [EMAIL PROTECTED] Configure pumpking for Perl 6 "Nothing important happened today." --George III of England's diary entry for 4-Jul-1776

RE: JIT stuff stomps on Windows compilation

2001-12-20 Thread Brent Dax
Gregor N. Purdy: # Give it another try. I just messed with jit2h.pl to make it not # generate empty brace pairs. Builds beautifully now. Thanks. --Brent Dax [EMAIL PROTECTED] Configure pumpking for Perl 6 "Nothing important happened today." --George III of England's diary

RE: restarting the discussion: parrot build system

2001-12-20 Thread Brent Dax
really need for this is the shell scripts (which don't have to implement the "build-only-if-necessary" logic of make) and a generic config.h that assumes nothing. --Brent Dax [EMAIL PROTECTED] Configure pumpking for Perl 6 "Nothing important happened today." --Geor

RE: restarting the discussion: parrot build system

2001-12-20 Thread Brent Dax
Jarkko Hietaniemi: # On Thu, Dec 20, 2001 at 11:09:44AM -0800, Brent Dax wrote: # > Robert Spier: # > # This means, that either: # > # # > # a) parrot needs to bootstrap itself from some platform-dependent # > #bootstrap script. (and hopefully there would only # need to be a

RE: restarting the discussion: parrot build system

2001-12-20 Thread Brent Dax
voke a compiler. It's the difference between: C:\>cl buildparrot.c C:\>buildparrot "cl /switches" and just C:\>buildparrot "cl /switches" --Brent Dax [EMAIL PROTECTED] Configure pumpking for Perl 6 "Nothing important happened today.&quo

RE: Taking bakcups of a files in directory structure

2001-12-20 Thread Brent Dax
concatenation) operators (in perlop). -The opendir(), readdir(), closedir(), and rename() built-in functions (in perlfunc). HTH. --Brent Dax [EMAIL PROTECTED] Configure pumpking for Perl 6 "Nothing important happened today." --George III of England's diary entry for 4-Jul-1776

Parrot_sprintf

2001-12-20 Thread Brent Dax
4 characters. The patch doesn't actually change anything to use Parrot_sprintf; it just defines the function and the Configure machinery needed to support it. It's currently in string.[hc]; I'm not sure if this is the right place. I won't be surprised if this isn't high-qu

Perl 6's Exporter

2001-12-21 Thread Brent Dax
t; ['@argv %argv']} ); In other files: use MyModule; #imports everything in export use MyModule 'quux';#imports only &quux use MyModule ':argc'#imports @argv and %argv use MyModule(); #imports nothing

RE: Taking bakcups of a files in directory structure

2001-12-22 Thread Brent Dax
Richard J Cox: # [EMAIL PROTECTED] (Brent Dax) wrote: # > krish: # > # I am a beginner in Perl and have a very trivial query. I have # > # some .expect # [...] # > # > This is the wrong group for this sort of question. # perl6-internals is # # s/internals/language/ Doh! got the

RE: Perl 6's Exporter

2001-12-22 Thread Brent Dax
Bryan C. Warnock: # On Saturday 22 December 2001 02:29 am, Brent Dax wrote: # > I've been thinking about improvements that could be made to # Exporter for # > Perl 6. # > # > 1. Choosing where to export to: # > use Data::Dumper 'Dumper' => 'd

RE: Perl 6's Exporter

2001-12-22 Thread Brent Dax
Michael G Schwern: # I've rearranged the proposed features a bit to put the long objections # at the bottom. # # Brent Dax wrote: # > I've been thinking about improvements that could be made to # Exporter for # > Perl 6. # > 3. Warnings about conflicts: # >

RE: .ops metadata [was: Re: JIT me some speed!]

2001-12-24 Thread Brent Dax
inline op set(i is rw, i|ic) { $1=$2; } --Brent Dax [EMAIL PROTECTED] Configure pumpking for Perl 6 "Nothing important happened today." --George III of England's diary entry for 4-Jul-1776

Peaceful coexistence (for 5 and 6)

2001-12-24 Thread Brent Dax
We have an empty 'less' pragma in Perl 5, right? use less '6'; use less '6' => 'path/to/perl/6/version'; --Brent Dax [EMAIL PROTECTED] Configure pumpking for Perl 6 "Nothing important happened today." --George III of England's diary entry for 4-Jul-1776

RE: core_ops.pod in CVS

2001-12-26 Thread Brent Dax
e.ops. --Brent Dax [EMAIL PROTECTED] Configure pumpking for Perl 6 "Nothing important happened today." --George III of England's diary entry for 4-Jul-1776

RE: Note on PMC.pod...

2002-01-02 Thread Brent Dax
you're using buckets or chains, I don't think collisions are a problem. (For that matter, has anyone ever tried arrays of binary search trees? I wonder how well that would work...) --Brent Dax [EMAIL PROTECTED] Configure pumpking for Perl 6 "Nothing important happened today."

[PATCH stacks.[hc] interpreter.c] new_stack()

2002-01-03 Thread Brent Dax
The patch below my sig adds a new_stack() function to take care of the allocation and setup of "generic" stacks. It's called like: new_stack(interpreter, &base, &top); This in preparation for my third regex patch, which I should have ready in a few days. --Bre

[PATCH] New Handle PMC

2002-01-03 Thread Brent Dax
anipulate them. They stringify to "Handle=0xDECAF" (or whatever) and numify to 912559 (or whatever). --Brent Dax [EMAIL PROTECTED] Configure pumpking for Perl 6 "Nothing important happened today." --George III of England's diary entry for 4-Jul-1776 --- ..\..

RE: [PATCH] New Handle PMC

2002-01-03 Thread Brent Dax
Dan Sugalski: # At 03:37 PM 1/3/2002 -0800, Brent Dax wrote: # While cool, I'm interested in why? For regexes you can stash # a pointer to # the string buffer into an S register if you want to bypass # even one level # of indirection. Handles would probably be used for other things besides

RE: [PATCH] It's a trick, sir...

2002-01-04 Thread Brent Dax
Michael G Schwern: # On Mon, Dec 31, 2001 at 10:57:54PM -0500, Bryan C. Warnock wrote: # > ...there's *two* of them! # # My very first ever attempt at obfuscated code circa 1997. ROFL. Schwern, only you are weird enough to have written that... ;^) --Brent Dax [EMAIL PROTECTED] C

RE: [COMMIT] PerlHash class added.

2002-01-04 Thread Brent Dax
and store ops: retrieve P1, P0, "foo" store P0, "foo", P1 And no, you can't just figure it out by the position of the string parameter: set P1, P0, "foo" #ok set P0, "foo", P1 #ok set P0, P1

Including from an .ops file

2002-01-05 Thread Brent Dax
) { goto OFFSET(branchto); } VERSION = PARROT_VERSION; Is this a problem? --Brent Dax [EMAIL PROTECTED] Configure pumpking for Perl 6 "Nothing important happened today." --George III of England's diary entry for 4-Jul-1776

[PATCH] Select opcode files to use in Configure

2002-01-05 Thread Brent Dax
lly, it contains a couple tweaks so that my syntax-highlighting editor recognizes some heredocs correctly. :^) --Brent Dax [EMAIL PROTECTED] Configure pumpking for Perl 6 "Nothing important happened today." --George III of England's diary entry for 4-Jul-1776 --- ..\..\parrot-cvs\

RE: Including from an .ops file

2002-01-05 Thread Brent Dax
Simon Cozens: # On Sat, Jan 05, 2002 at 02:37:13AM -0800, Brent Dax wrote: # > It appears that #include and #define directives within an ops file # > aren't respected. Is this the case? I have something like # this at the # > top of rx.ops: # > # > /* # > ** rx.ops

[PATCH ops2c.pl Parrot::OpsFile] Allow includes from multiple files, etc.

2002-01-06 Thread Brent Dax
This makes the compiler errors much more useful. On the other hand, it will make it more difficult to debug ops2c.pl and friends. If that becomes a problem, it's a very simple edit to temporarily remove the line numbering changes. --Brent Dax [EMAIL PROTECTED] Configure pumpking for Perl 6

RE: Where's include/parrot/rx.h?

2002-01-06 Thread Brent Dax
with my Configure patch. *looks it up on cvsweb* Yup, it did. There were probably no other changes in that block of the patch. *slaps his forehead* It'll be a few days before the regex stuff is ready; I just got it to compile last night. :^) Just delete it from the Makefile for now or ship

[PATCH ops2c.pl Parrot::OpsFile Makefile.in] Fix stuff

2002-01-06 Thread Brent Dax
Patch below my sig: -changes Parrot::OpLib::core's dependencies to reflect the new selectable ops files -allows some of the special forms of 'goto' inside the PREAMBLE of an opcode file --Brent Dax [EMAIL PROTECTED] Configure pumpking for Perl 6 "Nothing impo

RE: How to use extra opcodes

2002-01-06 Thread Brent Dax
able ops files except for obscure.ops. --Brent Dax [EMAIL PROTECTED] Configure pumpking for Perl 6 "Nothing important happened today." --George III of England's diary entry for 4-Jul-1776

[PATCH Parrot::Test] Meaningful file/line numbers

2002-01-07 Thread Brent Dax
ll be left in place. --Brent Dax [EMAIL PROTECTED] Configure pumpking for Perl 6 "Nothing important happened today." --George III of England's diary entry for 4-Jul-1776 --- ..\..\parrot-cvs\parrot\Parrot\Test.pm Thu Dec 20 01:09:02 2001 +++ Parrot\Test.pm Mon Jan 7 0

RE: configuration and build tools: what's the plan?

2002-01-07 Thread Brent Dax
c"] concat S2, S2, P6, ["ccflags"] concat S2, S2, S0 concat S2, S2, P6, ["ccflags_obj"] concat S2, S2, S1 system I0, S2 if I0, $crap ret $crap: die &quo

Testing list for stuckage - feel free to delete

2002-01-07 Thread Brent Dax
Ping.

RE: Some random design notes

2002-01-08 Thread Brent Dax
A current entry point (In case the sub's yielded, this is where you # start back up) # A default entry point # A stack top pointer to restore (for continuations) # A register frame pointer to restore (for continuations) # Parameter descriptor # JIT/native code pointer # Flags # Bytecode

[PATCH] ParrotPointer.pmc

2002-01-08 Thread Brent Dax
implementation before it's committed. This patch is in preparation for regular expressions, which will be submitted as soon as allocating PerlArrays and then allocating something else stops segfaulting on native Windows builds. --Brent Dax [EMAIL PROTECTED] Configure pumpking for Perl 6 . hawt sy

RE: [PATCH] ParrotPointer.pmc

2002-01-08 Thread Brent Dax
Ack, forgot these. (Below my sig.) --Brent Dax [EMAIL PROTECTED] Configure pumpking for Perl 6 . hawt sysadmin chx0rs This is sad. I know of *a* hawt sysamin chx0r. I know more than a few. obra: There are two? Are you sure it's not the same one? --- ..\..\parrot-cvs\p

The dreaded regex patch

2002-01-09 Thread Brent Dax
ucture (used for look(ahead|behind)s) UNTESTED OPCODES: rx_forwards - tell the regex to increment the current index when moving rx_backwards - tell the regex to decrement the current index when moving Share and enjoy. --Brent Dax [EMAIL PROTECTED] Configure pumpking for Perl 6 m

RE: The dreaded regex patch

2002-01-09 Thread Brent Dax
Steve Fink: # On Wed, Jan 09, 2002 at 03:16:40AM -0800, Brent Dax wrote: # > Okay, here it is. Attached is the regular expression patch. It # # Is rx_advance necessary? What's the difference between # # /R/ # # and # # /^(.*?R)/ # # if you count the parens $& $1 $2 ... instead

[PATCH] Remove evilness in regex engine

2002-01-10 Thread Brent Dax
Patch below removes some evil mucking around in string internals that was in the regular expression engine. All (expected) tests pass on Windows native and Cygwin. (PerlArrays and PerlHashes are still causing segfaults on Windows native.) --Brent Dax [EMAIL PROTECTED] Configure pumpking for

RE: Another regex question

2002-01-12 Thread Brent Dax
don't backtrack. --Brent Dax [EMAIL PROTECTED] Parrot Configure pumpking and regex hacker . hawt sysadmin chx0rs This is sad. I know of *a* hawt sysamin chx0r. I know more than a few. obra: There are two? Are you sure it's not the same one?

RE: Question about "match" vtable method and regexes

2002-01-12 Thread Brent Dax
d p5/p6 # > # >where the match method is called on each element of @foo? # # The former. The PerlArray object's perfectly justified in # then calling # match on each element inside itself. How would this interact with the regular expression engine? --Brent Dax [EMAIL PROTECTED] Configure pump

RE: typo in pmc.h??

2002-01-12 Thread Brent Dax
It was me. I thought "SELF->flags |= PMC_private_gc_FLAG" was a simple enough line that I could avoid resyncing CVS and compiling. But then it turned out that Dan hadn't put the flags in place yet. And after that it turned out he capitalized the GC. Ugh. --Brent Dax [EMAIL PROTE

RE: Another regex question

2002-01-13 Thread Brent Dax
Simon Cozens: # On Sat, Jan 12, 2002 at 12:37:50PM -0800, Brent Dax wrote: # > You sure about that? I've got an rx_compile op slotted # in--would that # > be appropriate? # # Only if every single language hosted by Parrot compiles regexes in the # same way. It's meant to be a

[PATCH] Make profiling more useful

2002-01-13 Thread Brent Dax
39997 0.01 332 dec_i 10 0.231001 0.02 - -- -- 4 22 0.370998 0.02 That's mostly a testimonial to how fast Parrot is. :^) --Brent Dax [EMAIL PROTECTED] Parrot Configure pu

RE: Another regex question

2002-01-13 Thread Brent Dax
Steve Simmons: # On Sun, Jan 13, 2002 at 12:55:26AM -0800, Brent Dax wrote: # > # > It's meant to be a simple fallback for languages that are # too pathetic # > to implement their own regex compiler. ("FooLang should # have regular # > expressions, but I'm too lazy

[PATCH] Use bitmaps in regexes

2002-01-14 Thread Brent Dax
. -rx_oneof_bmp: uses a prebuilt bitmap. This also recognizes that test 14 of rx.t no longer fails under Win32--it revokes its TODO status. This patch is NOT bytecode-compatible with the last version of regexes. --Brent Dax [EMAIL PROTECTED] Parrot Configure pumpking and regex hacker

Benchmarking regexes

2002-01-14 Thread Brent Dax
t: 0.24100 seconds for 10_000 iters Best: perl, worst: parrot. Spread of 0.21100. The program is attached; it requires my latest regex patch to work. You may need to tr{\\}{/} in a few places to get it to work on Unix systems. --Brent Dax [EMAIL PROTECTED] Parrot Configure pumpking and regex h

RE: Build on Win32 using MSVC (This time with attachment)

2002-01-15 Thread Brent Dax
released. I suggest you get the latest snapshot from http://cvs.perl.org/snapshots/parrot/parrot-latest.tar.gz, or even get the CVS program and use it to sync up with cvs.perl.org. --Brent Dax [EMAIL PROTECTED] Parrot Configure pumpking and regex hacker . hawt sysadmin chx0rs This is sad. I know

RE: gcc warnings: rx->startindex

2002-01-15 Thread Brent Dax
ce more of the contexts it's used in expect INTVALs than not. --Brent Dax [EMAIL PROTECTED] Parrot Configure pumpking and regex hacker . hawt sysadmin chx0rs This is sad. I know of *a* hawt sysamin chx0r. I know more than a few. obra: There are two? Are you sure it's not the same one?

[PATCH] Regular expression stacks

2002-01-16 Thread Brent Dax
improvements on BSD. They also take up less memory. All tests pass on both platforms; one warning is removed (as a side effect of the modified interface for regex stacks) and no new ones are introduced. --Brent Dax [EMAIL PROTECTED] Parrot Configure pumpking and regex hacker . hawt sysadmin

RE: [PATCH] Regular expression stacks

2002-01-16 Thread Brent Dax
Steve Fink: # On Wed, Jan 16, 2002 at 01:30:42AM -0800, Brent Dax wrote: # > The attached patch adds a new stack type that only handles INTVALs. # > These are much more efficient than generic stacks--on Win32 # they shave a # > few ten-thousandths of a second off each run of the # rx_po

RE: on parrot strings

2002-01-18 Thread Brent Dax
No exceptions. If you use a string in a regex, it'll be transcoded. I honestly can't think of a better way to guarantee efficient string indexing. --Brent Dax [EMAIL PROTECTED] Parrot Configure pumpking and regex hacker . hawt sysadmin chx0rs This is sad. I know of *a* hawt sysamin chx0r. I know more than a few. obra: There are two? Are you sure it's not the same one?

[A-Z]+\s*\{

2002-01-19 Thread Brent Dax
of the current block UNDOExecutes on "un-normal" exit of the current block --Brent Dax [EMAIL PROTECTED] Parrot Configure pumpking and regex hacker . hawt sysadmin chx0rs This is sad. I know of *a* hawt sysamin chx0r. I know more than a few. obra: There are tw

<    1   2   3   4   5   6   7   8   9   >