[preliminary PATCH] Parrot C Compiler Wrapper

2002-03-30 Thread Brent Dax
This patch adds a new utility to Parrot and modifies Makefile.in to use it. The utility is for wrapping C compilers and other tools we use, so we can avoid putting the logic in the Makefile and can potentially use totally different commands on different platforms. The patch is by no means ready

RE: Unicode thoughts...

2002-03-30 Thread Dan Sugalski
At 4:32 PM -0800 3/25/02, Brent Dax wrote: I *really* strongly suggest we include ICU in the distribution. I recently had to turn off mod_ssl in the Apache 2 distro because I couldn't get OpenSSL downloaded and configured. FWIW, ICU in the distribution is a given if we use it. Parrot will

Re: Computed-goto Patch

2002-03-30 Thread Dan Sugalski
At 11:19 AM -0800 3/29/02, Steve Fink wrote: On Thu, Mar 28, 2002 at 12:18:48AM -0500, Michel J Lambert wrote: Attached are my revised files. pbc2c.pl uses Parrot::OpTrans::Compiled, and this patch uses Parrot::OpTrans::CGoto. It also fixed the issues with the last patch: - removed

RE integer stack

2002-03-30 Thread Dan Sugalski
I'm going through the current RE ops looking to see what should get pulled out and used as part of the generic interpreter core. There's an integer stack the RE code uses for speed purposes, which is a cool thing, but there seems to be a private one for each RE object. Do we need this, or

Re: [APPLIED] Frame stack patch

2002-03-30 Thread Dan Sugalski
At 1:03 AM -0500 3/30/02, Melvin Smith wrote: Frame stacks now keep their size, no use in freeing the chunks; if we reached a frame depth N once, we will typically reach N many more times. If someone's feeling ambitious, code to check the number of unused chunks may be in order--that way if we

Re: Potential Memory Leaks

2002-03-30 Thread Dan Sugalski
At 4:43 AM -0500 3/26/02, Michel J Lambert wrote: Am I correct in assuming that the stacks stuff leaks memory? Both stacks.c and rxstacks.c allocate memory via mem_allocate_aligned, but never free it, relying on the GC for it (code written before the GC existed). Should these stacks be changed

Bugfix release?

2002-03-30 Thread Dan Sugalski
With the recent stack and GC patches, are we pretty much solid now? If so, a 0.0.5 bugfix release may well be in order. -- Dan --it's like this--- Dan Sugalski even samurai

Re: Stack sorting

2002-03-30 Thread Dan Sugalski
At 8:58 AM -0500 3/26/02, Clinton A. Pierce wrote: I took one of the smaller problems from the BASIC interpreter, sorting the stack, and posed it as a question on PerlMonks to see how a Mongolian Horde would handle the problem. The results are at:

Re: Bugfix release?

2002-03-30 Thread Peter Gibbs
Dan Sugalski [EMAIL PROTECTED] wrote With the recent stack and GC patches, are we pretty much solid now? If so, a 0.0.5 bugfix release may well be in order. The one outstanding issue that I know of is the mem_realloc problem in add_pmc_to_free and add_header_to_free. Since the problem is

Re: [preliminary PATCH] Parrot C Compiler Wrapper

2002-03-30 Thread Josh Wilmes
I've been thinking along these lines, but I'd decided on a different approach. I think that it's better to keep the magic to a minimum. Rather than relying on extensions, I was thinking about having a different wrapper for each task: - lib.pl: build static library from object files

Re: Unicode thoughts...

2002-03-30 Thread Josh Wilmes
Someone said that ICU requires a C++ compiler. That's concerning to me, as is the issue of how we bootstrap our build process. We were planning on a platform-neutral miniparrot, and IMHO that can't include ICU (as i'm sure it's not going to be written in pure ansi C) --Josh At 8:45 on

Re: [APPLIED] Frame stack patch

2002-03-30 Thread Melvin Smith
At 09:09 AM 3/30/2002 -0500, Dan Sugalski wrote: At 1:03 AM -0500 3/30/02, Melvin Smith wrote: Frame stacks now keep their size, no use in freeing the chunks; if we reached a frame depth N once, we will typically reach N many more times. If someone's feeling ambitious, code to check the number

Re: Bugfix release?

2002-03-30 Thread Melvin Smith
At 09:38 AM 3/30/2002 -0500, Dan Sugalski wrote: With the recent stack and GC patches, are we pretty much solid now? If so, a 0.0.5 bugfix release may well be in order. My crashme program crashes no more, we are 10x more stable than a week ago. I think Peter's patch or a variation is in order,

Test failing!

2002-03-30 Thread Steve Fink
Test 7 of t/op/stacks.t is failing for me right now. It fails even when I back up to version 1.25 of stacks.c, and anything earlier doesn't compile (without backing up other files too). [I sent this out last night, but a word of advice: don't do development on your active mail server!]

Re: Bugfix release?

2002-03-30 Thread Steve Fink
On Sat, Mar 30, 2002 at 09:38:31AM -0500, Dan Sugalski wrote: With the recent stack and GC patches, are we pretty much solid now? If so, a 0.0.5 bugfix release may well be in order. -- I'm still getting a test failure on stacks.t, in test #7. Until that's fixed, I'm holding off committing

Re: Bugfix release?

2002-03-30 Thread Steve Fink
On Sat, Mar 30, 2002 at 10:47:11AM -0800, Steve Fink wrote: On Sat, Mar 30, 2002 at 09:38:31AM -0500, Dan Sugalski wrote: With the recent stack and GC patches, are we pretty much solid now? If so, a 0.0.5 bugfix release may well be in order. -- I'm still getting a test failure on

Re: Bugfix release?

2002-03-30 Thread Nicholas Clark
On Sat, Mar 30, 2002 at 10:52:35AM -0500, Melvin Smith wrote: At 09:38 AM 3/30/2002 -0500, Dan Sugalski wrote: With the recent stack and GC patches, are we pretty much solid now? If so, a 0.0.5 bugfix release may well be in order. My crashme program crashes no more, we are 10x more stable

Re: Unicode thoughts...

2002-03-30 Thread Dan Sugalski
At 10:07 AM -0500 3/30/02, Josh Wilmes wrote: Someone said that ICU requires a C++ compiler. That's concerning to me, as is the issue of how we bootstrap our build process. We were planning on a platform-neutral miniparrot, and IMHO that can't include ICU (as i'm sure it's not going to be

Re: Bugfix release?

2002-03-30 Thread Dan Sugalski
At 6:45 PM + 3/30/02, Nicholas Clark wrote: On Sat, Mar 30, 2002 at 10:52:35AM -0500, Melvin Smith wrote: At 09:38 AM 3/30/2002 -0500, Dan Sugalski wrote: With the recent stack and GC patches, are we pretty much solid now? If so, a 0.0.5 bugfix release may well be in order. My

Re: [preliminary PATCH] Parrot C Compiler Wrapper

2002-03-30 Thread Nicholas Clark
On Sat, Mar 30, 2002 at 02:12:46AM -0800, Brent Dax wrote: If you have a Unix box and ten spare minutes, please apply this to a fresh checkout of Parrot, run 'make test', and tell me how well it works. FreeBSD did not enjoy it: 0 Patch did not apply cleanly: Patching file Makefile.in using

RE: [preliminary PATCH] Parrot C Compiler Wrapper

2002-03-30 Thread Brent Dax
Nicholas Clark: # On Sat, Mar 30, 2002 at 02:12:46AM -0800, Brent Dax wrote: # # If you have a Unix box and ten spare minutes, please apply this to a # fresh checkout of Parrot, run 'make test', and tell me how well it # works. # # FreeBSD did not enjoy it: # # 0 Patch did not apply cleanly: #

Re: Unicode thoughts...

2002-03-30 Thread Jeff
Dan Sugalski wrote: At 10:07 AM -0500 3/30/02, Josh Wilmes wrote: Someone said that ICU requires a C++ compiler. That's concerning to me, as is the issue of how we bootstrap our build process. We were planning on a platform-neutral miniparrot, and IMHO that can't include ICU (as i'm sure

Re: Bugfix release?

2002-03-30 Thread Michel J Lambert
Dan Sugalski [EMAIL PROTECTED] wrote With the recent stack and GC patches, are we pretty much solid now? If so, a 0.0.5 bugfix release may well be in order. The one outstanding issue that I know of is the mem_realloc problem in add_pmc_to_free and add_header_to_free. Since the problem is

Re: Bugfix release?

2002-03-30 Thread Melvin Smith
At 04:59 PM 3/30/2002 +0200, Peter Gibbs wrote: Dan Sugalski [EMAIL PROTECTED] wrote With the recent stack and GC patches, are we pretty much solid now? If so, a 0.0.5 bugfix release may well be in order. The one outstanding issue that I know of is the mem_realloc problem in add_pmc_to_free

Re: Bugfix release?

2002-03-30 Thread Melvin Smith
At 06:45 PM 3/30/2002 +, Nicholas Clark wrote: On Sat, Mar 30, 2002 at 10:52:35AM -0500, Melvin Smith wrote: At 09:38 AM 3/30/2002 -0500, Dan Sugalski wrote: With the recent stack and GC patches, are we pretty much solid now? If so, a 0.0.5 bugfix release may well be in order. My

Misc portability cleanups

2002-03-30 Thread Melvin Smith
I did some browsing of the code for potential problems in compiling for embedded platforms and/or general porting and here are some of the things I found. 1- assert.h and use of assert() assert is easy enough to implement we need to do this and not depend on its existence on the target

Re: Misc portability cleanups

2002-03-30 Thread Russ Allbery
Melvin Smith [EMAIL PROTECTED] writes: 5- Other misc includes that should be wrapped in ifdefs are: sys/types.h, sys/stat.h, fcntl.h (btw parrot.h includes fcntl.h twice, once inside an ifdef and then by default). What platform doesn't have sys/types.h? It's one of the few headers

Re: Misc portability cleanups

2002-03-30 Thread Josh Wilmes
You may be interested in the lib_deps target. --Josh At 0:49 on 03/31/2002 EST, Melvin Smith [EMAIL PROTECTED] wrote: I did some browsing of the code for potential problems in compiling for embedded platforms and/or general porting and here are some of the things I found. 1- assert.h and

Re: Misc portability cleanups

2002-03-30 Thread Melvin Smith
At 09:56 PM 3/30/2002 -0800, Russ Allbery wrote: Melvin Smith [EMAIL PROTECTED] writes: 5- Other misc includes that should be wrapped in ifdefs are: sys/types.h, sys/stat.h, fcntl.h (btw parrot.h includes fcntl.h twice, once inside an ifdef and then by default). What platform

Re: Misc portability cleanups

2002-03-30 Thread Michael G Schwern
On Sun, Mar 31, 2002 at 12:49:08AM -0500, Melvin Smith wrote: I did some browsing of the code for potential problems in compiling for embedded platforms and/or general porting and here are some of the things I found. Do embedded C compilers often not conform to ANSI C 89? 1- assert.h and

Re: Misc portability cleanups

2002-03-30 Thread Melvin Smith
At 01:06 AM 3/31/2002 -0500, Michael G Schwern wrote: On Sun, Mar 31, 2002 at 12:49:08AM -0500, Melvin Smith wrote: I did some browsing of the code for potential problems in compiling for embedded platforms and/or general porting and here are some of the things I found. Do embedded C

RE: Misc portability cleanups

2002-03-30 Thread Brent Dax
Melvin Smith: # At 01:06 AM 3/31/2002 -0500, Michael G Schwern wrote: # On Sun, Mar 31, 2002 at 12:49:08AM -0500, Melvin Smith wrote: # I did some browsing of the code for potential problems in # compiling # for embedded platforms and/or general porting and here # are some of the # things I

RE: Misc portability cleanups

2002-03-30 Thread Melvin Smith
At 10:56 PM 3/30/2002 -0800, Brent Dax wrote: Melvin Smith: # At 01:06 AM 3/31/2002 -0500, Michael G Schwern wrote: # On Sun, Mar 31, 2002 at 12:49:08AM -0500, Melvin Smith wrote: Ouch. They actually expect you to be able to do anything useful without the other headers? Grin, I agree -- go ask