Re: [perl #59546] [PATCH] Combine hash exists/get into a new opcode (5% performance gain)

2008-10-14 Thread Nick Glencross
Chromatic, All, Fair enough. What with the recent merges, and maybe a problem with PMC** in the pmc compiler, I've not had a chance to recut the patch. Since about 1/3 time seemed to be spend in the GC (and some more in memory allocation), this is one area where huge wins might be possible. (Some

Re: [perl #59546] [PATCH] Combine hash exists/get into a new opcode (5% performance gain)

2008-10-02 Thread Nick Glencross
NotFound, That would look cleaner, wouldn't it? I'll give it a go. Nick On Thu, Oct 2, 2008 at 3:35 PM, NotFound <[EMAIL PROTECTED]> wrote: > I think will be better the other way, using the return value to flag > existence, and passing a pointer to store the result. This will allow > shorter and

Re: [perl #59546] [PATCH] Combine hash exists/get into a new opcode (5% performance gain)

2008-10-02 Thread Nick Glencross
All, Sorry, I see that I said opcode a new times, when of course I meant PMC vtable entry. Nick

Re: Benchmarking findings

2008-09-29 Thread Nick Glencross
ere aren't many objects to consider, and it seems to have only shaved off 5% or so (not the 20 or so I was hoping for). Will see if I can improve things over the coming days. Nick On Mon, Sep 29, 2008 at 5:28 PM, Andrew Whitworth <[EMAIL PROTECTED]> wrote: > On Mon, Sep 29, 2008 at 12:15

Benchmarking findings

2008-09-29 Thread Nick Glencross
Hi all, I've given the perl6 wiki 'november' (http://github.com/viklund/november/tree/master) a go out of curiosity, and being surprised at the run times (page 35 of http://viklund.pp.se/november.pdf) have done some profiling using valgrind. For the test case all I've been using is running test_w

Re: [perl #37997] r10604 build failure on Cygwin

2007-03-28 Thread Nick Glencross
Hi All! On 28/03/07, Ron Blaschke <[EMAIL PROTECTED]> wrote: Joshua Gatcomb wrote: > On 3/26/07, Ron Blaschke <[EMAIL PROTECTED]> wrote: >> >> Not sure about the details of this issue, but r17772 seems to build fine >> on Cygwin. > > Really? No one on #parrot has been able to get parrot to work

Re: [perl #40030] [PATCH] compiler/imcc missing dependency

2006-08-03 Thread Nick Glencross
On 02/08/06, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: On 8/2/06, Leopold Toetsch <[EMAIL PROTECTED]> wrote: > > Am Mittwoch, 2. August 2006 19:52 schrieb [EMAIL PROTECTED]: > > > There must be some other problem elsewhere. > > > > Found the problem... it was MY problem... I had rests of an ol

Re: installing svn parrot

2006-04-07 Thread Nick Glencross
On 06/04/06, Sean Sieger <[EMAIL PROTECTED]> wrote: > Is parrot broken? I am getting an error that reads, > config.fpmc is truncated. You'll probably find that runtime/parrot/include/config.fpmc is zero bytes, in which case try removing it and rerunning make. If the problem persists, there's a pro

Re: libparrot.so.0.4.2

2006-03-27 Thread Nick Glencross
e a bit of thought to the problem. My solution is either to remove -L's which Perl supplies, or move them later in the link line) Nick On 27/03/06, Andrew Dougherty <[EMAIL PROTECTED]> wrote: > On Mon, 27 Mar 2006, Nick Glencross wrote: > > > On 26/03/06, Sean Sieger <[EMAIL

Re: libparrot.so.0.4.2

2006-03-26 Thread Nick Glencross
On 26/03/06, Sean Sieger <[EMAIL PROTECTED]> wrote: > On 3/25/06, Nick Glencross <[EMAIL PROTECTED]> wrote: > > > Is it possible that a 'make install' has previously been done on this > > computer, so that there is a libparrot in /usr/local/lib? > &

Re: libparrot.so.0.4.2

2006-03-25 Thread Nick Glencross
On 25/03/06, Sean Sieger <[EMAIL PROTECTED]> wrote: > I cannot get Parrot from svn on Ubuntu 5.10 Server to run: > > parrot: error while loading shared libraries: libparrot.so.0.4.2: cannot > open shared object file: No such file or directory Sean, I did briefly see this mentioned on pugs IRC the

Re: Building parrot-0.4.1 on Win32

2006-02-21 Thread Nick Glencross
On 2/20/06, Joshua Hoblitt <[EMAIL PROTECTED]> wrote: > On Tue, Feb 21, 2006 at 10:06:36AM +1100, Sisyphus wrote: > > Yes, /usr/local/lib is already in /etc/ld.so.conf. > > Perhaps you need to run `ldconfig` as root. > > > $LD_LIBRARY_PATH is initially empty. If I don't add '/usr/local/lib' to it,

Re: Building parrot-0.4.1 on Win32

2006-02-20 Thread Nick Glencross
On 2/20/06, Sisyphus <[EMAIL PROTECTED]> wrote: > Oh one other thing on Linux I had to add (the standard location) > /usr/local/lib to LD_LIBRARY_PATH. I've not had to do that before ... and > the README suggests that I shouldn't have to do it wrt parrot. It says: > > "But please note th

Re: [perl #38429] [BUG] --parrot_is_shared=0 and dynpmc

2006-02-04 Thread Nick Glencross
Leopold Toetsch (via RT) wrote: # New Ticket Created by Leopold Toetsch # Please include the string: [perl #38429] # in the subject line of all future correspondence about this issue. # https://rt.perl.org/rt3/Ticket/Display.html?id=38429 > Platform x86/linux Compiling a static Parrot sim

Re: Revert r11320 - it b0rked all src tests on at least OS/X and x86/linux

2006-01-24 Thread Nick Glencross
Leopold Toetsch wrote: I've unapplied r11320. * revert the whole patch * some of it might be correct, though, please review And a final note: please no checkins w/o testing, especially not for config and build stuff. Thanks. My apologies for causing breakage -- pretty serious breakage by th

Re: [perl #38217] r11124: Cygwin build fails

2006-01-23 Thread Nick Glencross
Even with r11320, the extend tests are failing with linkage errors on cygwin. I note that extend.h does not have PARROT_APIs in it. Should it by right? (It's possible that extend.o is linked with directly) I'm tempted as a short term fix to remove the sym_import/export (cygwin) hints. Would anyone

Re: [perl #38217] r11124: Cygwin build fails

2006-01-23 Thread Nick Glencross
I have committed a fix in r11320 so that the build doesn't pick up system-wide libparrots, which has certainly been the cause of some linkage problems over the last few days. [As background, since my previous email didn't make it into RT, the circumstances for this are: * A system-wide libparro

Re: [perl #38217] r11124: Cygwin build fails

2006-01-22 Thread Nick Glencross
Nick Glencross wrote: There seem to be a few recent events which can now trigger a newish problem: The real problem is that -L/usr/local/lib is brought in from parrot, so we have a few choices: * Just remove -Ls brought in from 'lddflags', which seems safe to me, or *

Re: [perl #38217] r11124: Cygwin build fails

2006-01-22 Thread Nick Glencross
Jonathan Worthington wrote: "Greg Bacon" <[EMAIL PROTECTED]> wrote: I'm still seeing a link failure with r11221. Discovered I have cygwin on this PC, went to investigate and..the link failure is gone as well as the auto-import warnings. Sadly, there's a new problem that I really have n

Re: [perl #38217] r11124: Cygwin build fails

2006-01-13 Thread Nick Glencross
On 1/13/06, Jonathan Worthington <[EMAIL PROTECTED]> wrote: > "Greg Bacon" <[EMAIL PROTECTED]> wrote: > > Not quite. At r11144 on Cygwin, I see > > > > [...] > > gcc -o miniparrot.exe -s -L/usr/local/lib compilers/imcc/main.o \ > > -L/home/gbacon/src/parrot/blib/lib -lparrot -lcrypt src/null_con

Re: [perl #38216] [PATCH] fix parrot.pc.in

2006-01-12 Thread Nick Glencross
Greg Bacon (via RT) wrote: # New Ticket Created by Greg Bacon # Please include the string: [perl #38216] # in the subject line of all future correspondence about this issue. # https://rt.perl.org/rt3/Ticket/Display.html?id=38216 > There appears to have been some slop in the ${foo} -> @foo@

Re: [perl #38197] [TODO] docs - add linking discussion to docs/embed.pod

2006-01-10 Thread Nick Glencross
On 1/10/06, Nick Glencross <[EMAIL PROTECTED]> wrote: > On 1/10/06, Nick Glencross <[EMAIL PROTECTED]> wrote: > > On 1/10/06, via RT Joshua Hoblitt <[EMAIL PROTECTED]> wrote: > > > # New Ticket Created by Joshua Hoblitt > > > # Please include the strin

Re: [perl #38197] [TODO] docs - add linking discussion to docs/embed.pod

2006-01-10 Thread Nick Glencross
On 1/10/06, Nick Glencross <[EMAIL PROTECTED]> wrote: > On 1/10/06, via RT Joshua Hoblitt <[EMAIL PROTECTED]> wrote: > > # New Ticket Created by Joshua Hoblitt > > # Please include the string: [perl #38197] > > # in the subject line of all future corresponde

Re: [perl #38197] [TODO] docs - add linking discussion to docs/embed.pod

2006-01-10 Thread Nick Glencross
On 1/10/06, via RT Joshua Hoblitt <[EMAIL PROTECTED]> wrote: > # New Ticket Created by Joshua Hoblitt > # Please include the string: [perl #38197] > # in the subject line of all future correspondence about this issue. > # https://rt.perl.org/rt3/Ticket/Display.html?id=38197 > > > > Using pkg-conf

Re: [svn ci] Changes to dynoplibs build process

2006-01-10 Thread Nick Glencross
On 1/10/06, Jonathan Worthington <[EMAIL PROTECTED]> wrote: > "Jonathan Worthington" <[EMAIL PROTECTED]> wrote: > > Note that dynamic op libs do not *work* on Win32 yet > They do now - I'm using them with my .NET to PIR translator and they work > nicely. > > I would really like some feedback from M

Re: [perl #38023] [TODO] build - support pkgconfig

2006-01-10 Thread Nick Glencross
On 1/10/06, Joshua Hoblitt <[EMAIL PROTECTED]> wrote: > On Tue, Jan 10, 2006 at 01:06:29AM +0000, Nick Glencross wrote: > > Joshua Hoblitt (via RT) wrote: > > > > >Parrot should support pkgconfig by installing a pc data file. It should > > >probably be named

Re: [perl #38023] [TODO] build - support pkgconfig

2006-01-09 Thread Nick Glencross
Joshua Hoblitt (via RT) wrote: Parrot should support pkgconfig by installing a pc data file. It should probably be named parrot.pc. Ok, I can do this. I've had an initial stab at it, and one thing that I've had to do is provide a quoting mechanism into the configuration file substitution bec

[PATCH] Final cygwin patch/PLATFORMS

2006-01-08 Thread Nick Glencross
(I've missed the window to get this into 0.41, but not a problem) This cygwin patch is now required as both static and shared versions of libparrot being built (which they weren't when I first wrote the patch which went in last night). Strangely, cygwin ld prefers to link with libparrot.a in pref

Re: build patch

2006-01-07 Thread Nick Glencross
On 1/8/06, Jonathan Worthington <[EMAIL PROTECTED]> wrote: > "Nick Glencross" <[EMAIL PROTECTED]> wrote: > > I'd appreciate a few volunteers to try out this patch and make sure that > > it doesn't break building on your favourite platform. > >

build patch

2006-01-07 Thread Nick Glencross
I'd appreciate a few volunteers to try out this patch and make sure that it doesn't break building on your favourite platform. A similar change to the one in dynclasses_pl.in may be required in application directories at some point to run on certain win32 flavours (e.g. mingw). Cheers, Nick

Re: Parrot under Cygwin

2006-01-06 Thread Nick Glencross
On 1/6/06, Alberto Simões <[EMAIL PROTECTED]> wrote: > > Probably, I'm doing something wrong... but this is the output compiling > parrot on my cygwin... > > http://nopaste.snit.ch:8001/6180 I've seen more talk on cygwin in the last week or two than in the last year! Yes, building the dynamicall

[PATCH] Small tweak to libparrot configure for rpath

2006-01-06 Thread Nick Glencross
This patch does a check for the existence of the 'rpath' attribute before using it.There will be platforms which have dynamic loading, but no capability to hard code the path of the library into the executable. We therefore need to cater for the case where parrot_is_shared is set, but rpath is not.

[PATCH] HP-UX shared libparrot support

2006-01-06 Thread Nick Glencross
This patch adds the necessary hints for HP-UX to build using shared libraries by default.I only have access to gcc on HP-UX, but the necessary compiler flags for the HP commericial compiler are there too.Cheers, Nick Index: config/init/hints/hpux.pm =

Re: [perl #37303] [PATCH] Relaxing parrot dependency on parrot_config

2006-01-05 Thread Nick Glencross
Guys, I've been wanting to relax the dependency that parrot's core has on parrot_config. As things stand at the moment, src/global_setup.c makes a call to parrot_get_config which is linked into the executable itself by selecting either null_config.o, parrot_config.o or install_config.o. Qu

Re: libparrot improvements

2006-01-05 Thread Nick Glencross
blib/lib/libparrot.a. Also it's an advantage to have both static and > shared libraries installed. Executables are linked against one of them, > preferably the shared one. > > Here's a patch that addresses this issue that ^conner already raised > when Nick Glencross poste

Re: Revisiting parrot_get_config_string

2006-01-05 Thread Nick Glencross
On 1/5/06, Leopold Toetsch <[EMAIL PROTECTED]> wrote: > > Nick Glencross wrote: > > The first patch modifies the parrot VM so as not to call > > parrot_get_config_string on startup, which currently resides in the > > calling executable. Instead, the

Revisiting parrot_get_config_string

2006-01-05 Thread Nick Glencross
Guys, I shall shortly update the relevant calls, but I'd just like to check a few things first. These patches update the patches in #37303 and #36836, relating to parrot_get_config_string and cygwin dynclasses. The first patch modifies the parrot VM so as not to call parrot_get_config_string on

[PATCH] Shared libraries on MacOS

2006-01-04 Thread Nick Glencross
Thanks to everyone, particularly rafl, for getting shared libraries in. I hope that it hasn't been too painful, and that we get support for most platforms. Here's a patch which provides initial support for Darwin. I've only just got a Mac, so am learning as I go along (e.g. http://fink.sourceforge

Bus errors in floatvalarray.t on HP-UX

2006-01-03 Thread Nick Glencross
Guy, There are a few red splodged in smoke on HP-UX which I can elaborate on. The actual line causing problems is list.c:1042 (r10861) , and I suspect are caused by pointer alignment, but frustratingly gdb doesn't help much. # ./parrot t/pmc/floatvalarray_4.pasm Bus error(coredump) A typical ba

[PATCH] Fix for cwd in os.pmc on HP-UX

2006-01-03 Thread Nick Glencross
This tidy patch makes cwd work on HP-UX. As it stands at the moment it gives an 'invalid argument' exception (although it gave a more meaningful message earlier this morning). The manual page for getcwd says: If buf is a NULL pointer, getcwd() obtains size bytes of space using malloc(

Re: Cygwin versun plain XP (for working with Pugs+Parrot together)

2005-12-27 Thread Nick Glencross
On 12/27/05, Peter Schwenn <[EMAIL PROTECTED]> wrote: > Dear Nick > > thanks. by the way how does one signal Pugs that Parrot is to be used > "Externally".? Although I've played with pugs for a few hours, it was on Linux, and I didn't get around to investigating the backends (especially as the pa

Re: Cygwin versun plain XP (for working with Pugs+Parrot together)

2005-12-27 Thread Nick Glencross
On 12/26/05, jerry gay <[EMAIL PROTECTED]> wrote: > cygwin *should* compile parrot just fine. the last report i see on > http://smoke.parrotcode.org/smoke/ for i386-cygwin-gcc is from r10487, > which is a few weeks old, though. can any other cygwin users confirm > peter's report? there have been so

Re: [PATCH] Better support for libparrot.so (revived)

2005-12-24 Thread Nick Glencross
On 12/25/05, Nick Glencross <[EMAIL PROTECTED]> wrote: > Guys, Sorry, it wasn't intentional that I was sending HTML emails; only just noticed. Nick

Re: [PATCH] Better support for libparrot.so (revived)

2005-12-24 Thread Nick Glencross
Guys, On 12/24/05, Leopold Toetsch <[EMAIL PROTECTED]> wrote: > > > On Dec 24, 2005, at 21:07, Nick Glencross wrote: > > > ... The configuration comes when the application is additionally linked > > with null_config.o, parrot_config.o or install_config. > &

Re: [PATCH] Better support for libparrot.so (revived)

2005-12-24 Thread Nick Glencross
On 12/23/05, Joshua Hoblitt <[EMAIL PROTECTED]> wrote: > > Below are my thoughts on this patch in it's current form. > > I don't like the function of ld_libparrot_soname because it has the > soname mixed up with the linker flags. I'd rather see something like > ld_soflags and libparrot_soname (I d

Re: [PATCH] Better support for libparrot.so (revived)

2005-12-24 Thread Nick Glencross
On 12/23/05, Joshua Hoblitt <[EMAIL PROTECTED]> wrote: > > Nick, > > I'll try to take a look at all of this patch today. Quick questions - > why is: > > +src/install_config.o [main]lib > > being added to MANIFEST.generated? > > -J > > Let me explain my reasoning on this

Re: [PATCH] Better support for libparrot.so (revived)

2005-12-23 Thread Nick Glencross
Nick Glencross wrote: Guys, Here's an updated version of the libparrot shared library patch. Sorry, omitted one of the configure files! I should mention that you probably want to remove config/inter/libparrot.pm before ever reapplying the patch otherwise you'll get the same con

Re: [PATCH] Better support for libparrot.so (revived)

2005-12-23 Thread Nick Glencross
Guys, Here's an updated version of the libparrot shared library patch. It primarily adds back the functionality for SOVERSION. To do this I have created two new compile flags which will usually be set in the platform hints. * ld_libparrot_soname: Supplied to ld to set the library version o

Re: [PATCH] Better support for libparrot.so (revived)

2005-12-23 Thread Nick Glencross
On 12/23/05, François PERRAD <[EMAIL PROTECTED]> wrote: > > OK with static on Win32 + gcc (MinGW). > > Shared on Win32, always the same linking problem with > parrot_get_config_string() > (see https://rt.perl.org/rt3/Ticket/Display.html?id=37303) > > g++ -shared -o blib\lib\libparrot.dll ... > >

Re: [PATCH] Better support for libparrot.so (revived)

2005-12-22 Thread Nick Glencross
On 12/22/05, Florian Ragwitz <[EMAIL PROTECTED]> wrote: > > On Thu, Dec 22, 2005 at 12:51:39PM +, Nick Glencross wrote: > > I'd like to revive this patch which I posted a while back, but has > > needed bringing up to date due to subsequent changes. > &g

[PATCH] Better support for libparrot.so (revived)

2005-12-22 Thread Nick Glencross
Guys, I'd like to revive this patch which I posted a while back, but has needed bringing up to date due to subsequent changes. It has a few key intentions: * Makes libparrot.so a 'first class citizen' * Allows the installed version of parrot and its utilities to be either shared or static

Re: [perl #37997] r10604 build failure on Cygwin

2005-12-21 Thread Nick Glencross
On 12/21/05, via RT Justin Koser <[EMAIL PROTECTED]> wrote: > # New Ticket Created by Justin Koser > # Please include the string: [perl #37997] > # in the subject line of all future correspondence about this issue. > # https://rt.perl.org/rt3/Ticket/Display.html?id=37997 > > > > Hello Parrot hac

Re: punie's demo uses *a lot* of memory on win32

2005-12-02 Thread Nick Glencross
jerry gay wrote: it seems punie's using way too much memory. in fact, it's running out of memory on my 512MB system, and peaks at 480MB usage during PAST generation on my machine with 1.5GB. these are win32, using msvc, and the command i ran was ... Seems like way too much memory considering th

Re: The next release ...

2005-12-02 Thread Nick Glencross
Leopold Toetsch wrote: - please test on all available platforms and 'make smoke' and/or update PLATFORMS With the recent Stash changes and (I presume) a fix to avoid reloading pbc files, we're passing all tests on HP-UX! Something's happened to spoil languages in the last day, but I don't b

Re: [BUG] coroutine_3.pasm trampling memory?

2005-11-16 Thread Nick Glencross
On 11/16/05, Leopold Toetsch <[EMAIL PROTECTED]> wrote: > Nick Glencross wrote: > > coroutine_3.pasm seems to have some problems with scratchpads, but I > > don't know whether the problem is with parrot or the test. > > > ==15739== Thread 1: > > ==15739=

[BUG] coroutine_3.pasm trampling memory?

2005-11-16 Thread Nick Glencross
coroutine_3.pasm seems to have some problems with scratchpads, but I don't know whether the problem is with parrot or the test. In line 105 of lexical.c (r10019) there is a buffer being overflowed because the buffer for base is larger than pad_pmc. valgrind reports 4 occurrences of this for t

Re: HLL Debug Segments

2005-11-14 Thread Nick Glencross
Roger Browne wrote: Nick Glencross wrote: .hll_debug_end line .hll_debug_begin line 2 I don't think the "end" directives add much. There's almost always going to be an "end line" before a "begin line", so why not let 'begin line'

Re: HLL Debug Segments

2005-11-14 Thread Nick Glencross
On 11/14/05, Nick Glencross <[EMAIL PROTECTED]> wrote: > Jonathan Worthington wrote: > > > I'm looking to work > > on enabling Parrot to store away HLL debug info - that is, the file name, > > line number, columns etc in the high level language source code. Thi

Re: HLL Debug Segments

2005-11-14 Thread Nick Glencross
[Disclaimer: I've only just started thinking about this in the last hour, and don't want to appear all knowledgeable or anything!] On 11/14/05, Jonathan Worthington <[EMAIL PROTECTED]> wrote: > My current thinking on this is that a HLL will define a sub that knows how > to print errors for that HL

Re: HLL Debug Segments

2005-11-14 Thread Nick Glencross
[Sorry if this doesn't thread in your reader] Jonathan Worthington wrote: > I'm looking to work > on enabling Parrot to store away HLL debug info - that is, the file name, > line number, columns etc in the high level language source code. This data > can then be used to emit useful error message

Re: smoke results

2005-11-06 Thread Nick Glencross
Nick Glencross wrote: A few new red splodges have appeared on the HP-UX smokes. In future does it seem helpful if I investigate these? I've just had a quick look at some of them now: freeze_26/27: exposes a potential problem in the imcc optmiser which I also see in valgrind on Linu

smoke results

2005-11-06 Thread Nick Glencross
A few new red splodges have appeared on the HP-UX smokes. In future does it seem helpful if I investigate these? I've just had a quick look at some of them now: freeze_26/27: exposes a potential problem in the imcc optmiser which I also see in valgrind on Linux. In try_allocate, mem_sys_allocate

Re: [perl #37577] [PATCH] Fix a couple of minor niggles (-1 -> uint, K&R prototype)

2005-11-05 Thread Nick Glencross
On 11/5/05, Joshua Hoblitt via RT <[EMAIL PROTECTED]> wrote: > > [EMAIL PROTECTED] - Tue Nov 01 04:52:22 2005]: > > > > This patch fixes two classes of issue. > > > > * Don't assign -1 to an unsigned variable; use ~0U instead as it > > makes it clear that the value is intended to be out-of-band (

A step closer to ffcall NCI

2005-11-04 Thread Nick Glencross
Here's another update to the ffcall POC that I posted a week or two ago. It's now got a Configure test to work out which backend to use (and an --ask option to override). It still needs more work (which is fine as there's a feature freeze), and some work on memory allocation and stuff. I also need

Re: [POC] nci interface using ffcall library

2005-10-31 Thread Nick Glencross
Garrett Goebel wrote: Nick Glencross wrote: As mentioned on the list yesterday I started evaluating ffcall as a way of providing NCI functionality. http://www.haible.de/bruno/packages-ffcall.html I actually really like the current NCI implementation, although it suffers from a large nci.c

Re: [POC] nci interface using ffcall library - updated

2005-10-30 Thread Nick Glencross
Nick Glencross wrote: Guys, As mentioned on the list yesterday I started evaluating ffcall as a way of providing NCI functionality. Ok, here's an updated version with (hopefully) working callbacks -- at least enough for a POC. If you tried out my previous version, run 'rm

Re: Passing arguments to parrot from C

2005-10-30 Thread Nick Glencross
Leopold Toetsch wrote: On Oct 30, 2005, at 1:54, Nick Glencross wrote: Quick question... I've been looking through inter_run and extend to see how to pass arguments to a parrot method/function from C, but all the prototypes that I've seen have '...' or 'va_list

Passing arguments to parrot from C

2005-10-29 Thread Nick Glencross
Quick question... I've been looking through inter_run and extend to see how to pass arguments to a parrot method/function from C, but all the prototypes that I've seen have '...' or 'va_list' to accept the arguments. If I don't know what the arguments or their respective types are at compile

Re: [POC] nci interface using ffcall library

2005-10-28 Thread Nick Glencross
Leopold Toetsch wrote: On Oct 28, 2005, at 22:22, Nick Glencross wrote: Guys, As mentioned on the list yesterday I started evaluating ffcall as a way of providing NCI functionality. http://www.haible.de/bruno/packages-ffcall.html I've downloaded it and had a short look into so

Re: [POC] nci interface using ffcall library

2005-10-28 Thread Nick Glencross
Nick Glencross wrote: Nick Glencross wrote: Guys, As mentioned on the list yesterday I started evaluating ffcall as a way of providing NCI functionality. I seem to be seeing rather strange, and it's probably a misunderstanding on my part. Ok, I see what the problem is. PMC_data(

Re: [POC] nci interface using ffcall library

2005-10-28 Thread Nick Glencross
Nick Glencross wrote: Guys, As mentioned on the list yesterday I started evaluating ffcall as a way of providing NCI functionality. I seem to be seeing rather strange, and it's probably a misunderstanding on my part. I've pinched the GET_NCI_x(n) macros and accompanying

[POC] nci interface using ffcall library

2005-10-28 Thread Nick Glencross
Guys, As mentioned on the list yesterday I started evaluating ffcall as a way of providing NCI functionality. http://www.haible.de/bruno/packages-ffcall.html I actually really like the current NCI implementation, although it suffers from a large nci.c file and all the usable prototypes need

Re: Compiling parrot with c++

2005-10-27 Thread Nick Glencross
Leopold Toetsch wrote: On Oct 27, 2005, at 22:31, Nick Glencross wrote: There are a few cases of -1 being assigned to unsigneds. Anyone know if that's deliberate? Yup. Some special out-of-band values. I thought as much. Nothing to worry about there then... One other thing I forg

Re: Compiling parrot with c++

2005-10-27 Thread Nick Glencross
Gabriel Dos Reis wrote: Matt Fowles <[EMAIL PROTECTED]> writes: | Nick~ | | On 10/26/05, Nick Glencross <[EMAIL PROTECTED]> wrote: | > Guy, | > | > As a follow-up to a discussion a few days ago about binding parrot to | > C++ functions, is making it possible to

Re: parrot callbacks

2005-10-27 Thread Nick Glencross
Leopold Toetsch wrote: On Oct 25, 2005, at 23:32, Nick Glencross wrote: I was looking at callbacks the other evening. Am I right in thinking that only two callback prototypes are supported, or have I missed a trick there as well? That's right. There are 2 callbacks (functions w

Compiling parrot with c++

2005-10-26 Thread Nick Glencross
Guy, As a follow-up to a discussion a few days ago about binding parrot to C++ functions, is making it possible to compile parrot with a C++ compiler a 'Bad Thing'? If anything, it should strengthen the code base. I had a dabble a few weeks ago to see how big a job it would be, and quickly c

Re: [perl #37512] [PATCH] Adds nci support for 'T' and 'L' prototypes

2005-10-25 Thread Nick Glencross
Leopold Toetsch via RT wrote: On Oct 23, 2005, at 17:08, Nick Glencross (via RT) wrote: Guys, call_list.txt lists 'T' and 'L' as being prototypes for passing arrays to nci functions, but no implementation exists in build_nativecall.pl. This patch provides an implementa

Re: [perl #37481] [PATCH] Better osname for cygwin

2005-10-19 Thread Nick Glencross
On 10/19/05, Bernhard Schmalhofer via RT <[EMAIL PROTECTED]> wrote: > > [EMAIL PROTECTED] - Mi 19. Okt 2005, 08:05:56]: > > > Configure picks up the osname of a cygwin system as 'thread' which > > isn't very helpful (see the smoke screen). This patch does something > > similar to other platforms an

Re: [perl #37483] [PATCH] Pass pcre tests on cygwin

2005-10-19 Thread Nick Glencross
Strange... I could have sworn I attached the patch. Here it is. Nick Index: runtime/parrot/library/pcre.imc === --- runtime/parrot/library/pcre.imc (revision 9513) +++ runtime/parrot/library/pcre.imc (working copy) @@ -52,6 +5

Re: [perl #37483] [PATCH] Pass pcre tests on cygwin

2005-10-19 Thread Nick Glencross
Nick Glencross (via RT) wrote: More low hanging fruit. This patch provides pcre.imc with the correct DLL name for libpcre, enabling the pcre.t tests to pass. Note: This patch has #37481 as a prerequisite to provide the correct osname. I'm pretty sure that I attached the patch, but a

Re: [perl #37303] [PATCH] Relaxing parrot dependency on parrot_config

2005-10-18 Thread Nick Glencross
Leopold Toetsch wrote: Nick Glencross wrote: Let me try reposting the patch, which gives me the opportunity to bit twiddle a bit more: * Removed the mmap nonsense which was sent by accident * Renamed config.c to config_string.c to make it less generic * Moved a couple externs from a

Re: [perl #37303] [PATCH] Relaxing parrot dependency on parrot_config

2005-10-18 Thread Nick Glencross
For starters, it gives you a libparrot which doesn't have any external dependencies. Much nicer, if only aesthetically. Nick On 10/18/05, Joshua Hoblitt via RT <[EMAIL PROTECTED]> wrote: > Chip, > > Looks like a design call.

Re: [perl #37303] [PATCH] Relaxing parrot dependency on parrot_config

2005-10-17 Thread Nick Glencross
Let me try reposting the patch, which gives me the opportunity to bit twiddle a bit more: * Removed the mmap nonsense which was sent by accident * Renamed config.c to config_string.c to make it less generic * Moved a couple externs from a core parrot library into the main executable, where

Re: [perl #37303] [PATCH] Relaxing parrot dependency on parrot_config

2005-10-17 Thread Nick Glencross
I promptly sent a follow-up after I spotted this, but it didn't seem to make it into RT. Well spotted! (I'd been checking that an HP-UX-related patch didn't break things) I also think that it would also be cleaner to move the lines const char* parrot_config_ptr; unsigned int parrot_config_size;

Re: [perl #37303] [PATCH] Relaxing parrot dependency on parrot_config

2005-10-16 Thread Nick Glencross
Here's an updated version of a patch to change how parrot picks up its built-in configuration values. They are currently picked up by the parrot library through globals linked against the executable. This patch changes the API so that the parrot environment starts without a config (which makes

eval_12.pir failure on HP-UX

2005-10-16 Thread Nick Glencross
eval_12.pir is one of the few tests which are failing on HP-UX. It writes some bytecode to a file and executes it, and then does it again with a slight variation. Running the test gives: # ./parrot t/pmc/eval_12.pir hello from foo_1 Parrot VM: Can't mmap file /var/tmp/build/src/parrot_hpux/./t

[PATCH] Trivial typo fixes

2005-10-12 Thread Nick Glencross
Guys, Nothing too much to this patch. A fix to a couple of typos ('unimplemented' and 'too') and a few paths in examples. Regards, Nick Index: src/pmc_freeze.c === --- src/pmc_freeze.c(revision 9465) +++ src/pmc_freeze.c(

Re: Smoke not accepted from cygwin

2005-10-11 Thread Nick Glencross
Nick Glencross wrote: Guys, I have tried to submit a smoke from cygwin, but the server does not accept the smoke file (which I've attached). Can someone in-the-know about what criteria the server uses shed any light on it? I note that the file is bzip'd whereas on Linux it

Re: [perl #36119] [PATCH] Reapply execute permissions on dynclasses for HP-UX

2005-10-10 Thread Nick Glencross
Joshua Hoblitt via RT wrote: As a general comment, 36119 makes me a little nervous as 'chmod' isn't something you can count on unless your on a POSIX like system and osname ne 'MSWin32' certainly would encompass non-POSIX systems. Are you planning on retool this patch to be more pedantic about

Re: [perl #36119] [PATCH] Reapply execute permissions on dynclasses for HP-UX

2005-10-10 Thread Nick Glencross
Joshua Hoblitt via RT wrote: -copy("$_$LOAD_EXT", $dest) or die "Copy $_$LOAD_EXT failed ($?)\n"; +File::Copy::syscopy("$_$LOAD_EXT", $dest) or die "Copy $_$LOAD_EXT failed ($?)\n"; Certainly on cygwin File::Copy::syscopy also seems to lose execute permissions, despite what th

Re: Smoke not accepted from cygwin

2005-10-10 Thread Nick Glencross
Here (hopefully) is the generated smoke file which might hold some clues... Nick Nick Glencross wrote: Guys, I have tried to submit a smoke from cygwin, but the server does not accept the smoke file (which I've attached). Can someone in-the-know about what criteria the server uses

Re: Smoke not accepted from cygwin

2005-10-10 Thread Nick Glencross
Strange, something has stripped the attachment (I didn't forget to attach it, honest!). I'll try again in a few hours using SMTP instead of NNTP. Nick Nick Glencross wrote: Guys, I have tried to submit a smoke from cygwin, but the server does not accept the smoke file (

Smoke not accepted from cygwin

2005-10-10 Thread Nick Glencross
Guys, I have tried to submit a smoke from cygwin, but the server does not accept the smoke file (which I've attached). Can someone in-the-know about what criteria the server uses shed any light on it? I note that the file is bzip'd whereas on Linux it is gzip'd. For the record, after runnin

Re: [perl #29936] JIT debugging on Cygwin not working

2005-10-07 Thread Nick Glencross
Joshua Gatcomb wrote: --- Joshua Hoblitt via RT <[EMAIL PROTECTED]> wrote: Can you still recreate this issue? I haven't been involved in Parrot development for some time now. When I was involved I was pretty much the only Cygwin user actively participating so it was frustrating not

Re: [perl #34991] More const weirdness

2005-10-04 Thread Nick Glencross
Joshua Hoblitt via RT wrote: [nickg - Thu Apr 14 15:12:00 2005]: Here's another odd one, which looks const-related. Uncommenting the '+=' line causes a compile error when 'c' is subsequently used. It looks like there is still support for .const in the lexer. Is this still an issue? I did t

Re: Two core dumps... (r9297)

2005-10-02 Thread Nick Glencross
Leopold Toetsch wrote: Nick Glencross wrote: I haven't seen this mentioned on the list, and it might be widely known... on i386 linux there are two core dumps left behind after a make test. Well, there are several TODO tests, which execute and fail more or less deadly. That

[PATCH] Better support for libparrot.so

2005-10-02 Thread Nick Glencross
Guys, This preliminary patch aims to add better support for a shared libparrot library (don't apply it yet!). * First I've added config/inter/libparrot.pl to interactively prompt for whether a shared library should be built. This can be defaulted by platform hints (defaulting off for now, w

Two core dumps... (r9297)

2005-10-02 Thread Nick Glencross
I haven't seen this mentioned on the list, and it might be widely known... on i386 linux there are two core dumps left behind after a make test. I believe one to be NCI related (japh_10.pasm). (gdb) where #0 0x0812f738 in clone_regs_interp (d=0x0, s=0x8276d88, dest=0x843ca98) at parrotinte

Re: [perl #37303] [PATCH] Relaxing parrot dependency on parrot_config

2005-10-01 Thread Nick Glencross
s issue. > # https://rt.perl.org/rt3/Ticket/Display.html?id=37303 > > > > - Forwarded message from Nick Glencross <[EMAIL PROTECTED]> - > > From: Nick Glencross <[EMAIL PROTECTED]> > > Guys, > > I've been wanting to relax the dependency

Relaxing parrot dependency on parrot_config

2005-09-28 Thread Nick Glencross
Guys, I've been wanting to relax the dependency that parrot's core has on parrot_config. As things stand at the moment, src/global_setup.c makes a call to parrot_get_config which is linked into the executable itself by selecting either null_config.o, parrot_config.o or install_config.o. This work

  1   2   >