sha1 in imcc

2004-05-06 Thread Cal Henderson
you can grab a copy here: http://code.iamcal.com/parrot/sha1.imc works on a few tested 32 bit platforms. fails on 64 bits, due to what looks like a bug with constants and/or sprintf (the low words of the final ints are correct, but trying to clear the high words causes wierdness - thomason is

Code snippets for the perl 6 compiler

2004-05-06 Thread Dan Sugalski
Since it looks like Larry's pretty much done with the meat of perl 6, it's time to start in on getting the compiler written. I'll go nudge Ask again to split the list up so the folks who don't care about Parrot and the folks that don't care about perl can do their respective work in peace. I t

Isolated ARENA_DOD_FLAGS problem on Cygwin

2004-05-06 Thread Joshua Gatcomb
Since I am unable to help with the C part of things, I figured I could at least track down where the problem was for everyone. I have isolated the ARENA_DOD_FLAGS problem on Cygwin to a change committed to CVS between 2004-04-15 10:00 and 10:15 EDT. After 10:15, I need to disable it for it to com

Re: [perl #29257] Build libnci.so by default

2004-05-06 Thread Adam Thomason
> -Original Message- > From: Leopold Toetsch [mailto:[EMAIL PROTECTED] > Sent: Tuesday, May 04, 2004 5:55 AM > To: [EMAIL PROTECTED] > Subject: Re: [perl #29257] Build libnci.so by default > > > Bernhard Schmalhofer <[EMAIL PROTECTED]> wrote: > > > 'libnci.so' is used for testing the na

Re: [perl #29257] Build libnci.so by default

2004-05-06 Thread Nicholas Clark
On Thu, May 06, 2004 at 06:21:23PM +0200, Leopold Toetsch wrote: > Nicholas Clark wrote: > > 0 loadlib P1, "libnci" - P1=NULL, > > 3 dlfunc P0, P1, "nci_pi", "pi"- P0=NULL, > > P1=ParrotLibrary=PMC(0x200f7f0), , DOD > > 8 set I5, 5- I5=0, > > That seems to be nci

Re: [CVS ci] NCI sub call syntax in PIR

2004-05-06 Thread Dan Sugalski
At 9:12 AM +0200 5/6/04, Leopold Toetsch wrote: A bit less typing for NCI calls: 1) declare the pmc type as NCI .local NCI the_sub # get it from somewhere e.g.: # the_sub = global "ncurses::initscr" 2) just call it: r = the_sub(args) Works only for named subs of course. This saves a save

Re: [perl #29257] Build libnci.so by default

2004-05-06 Thread Leopold Toetsch
Nicholas Clark wrote: 0 loadlib P1, "libnci" - P1=NULL, 3 dlfunc P0, P1, "nci_pi", "pi"- P0=NULL, P1=ParrotLibrary=PMC(0x200f7f0), , DOD 8 set I5, 5- I5=0, That seems to be nci_23 from CVS, which is weird: that looks totally different here. This test uses a

Parrot test results on Cygwin

2004-05-06 Thread Joshua Gatcomb
FYI: Extend test #12 was disabled because it was hanging on Cygwin and you had to kill the process in another window for the test suite to complete. This is now happening on #13 as well. Failed Test Stat Wstat Total Fail Failed List of Failed --

Re: [perl #29257] Build libnci.so by default

2004-05-06 Thread Andrew Dougherty
On Thu, 6 May 2004, Leopold Toetsch wrote: > Nicholas Clark <[EMAIL PROTECTED]> wrote: > > On Fri, Apr 30, 2004 at 01:14:21PM +0200, Leopold Toetsch wrote: > > >> Good. Do we have currently any platforms that don't support dynamic > >> loading at all? > > > Perl5 builds on UNICOS (Crays), which is

Re: Cygwin problems are GC not ICU

2004-05-06 Thread Joshua Gatcomb
--- Leopold Toetsch <[EMAIL PROTECTED]> wrote: > Somethings is *really* wrong here. I don't know > exactly what's happening > here, but I assume that the memalign function is > buggy. To nail that > further down: > > 1) Determine the used memalign function: > > $ grep memalign lib/Parrot/Config.p

Cygwin works - lessons learned

2004-05-06 Thread Joshua Gatcomb
All, It is still unclear to me if turning off ARENA_DOD_FLAGS in include/parrot/pobj.h is required yet or not. Leo suspects a broken memalign function but since parrot was working prior to April 7th and nothing changed except parrot, I am not too sure. As soon as this posts I will start digging a

Re: [perl #29257] Build libnci.so by default

2004-05-06 Thread Nicholas Clark
On Thu, May 06, 2004 at 04:43:53PM +0200, Leopold Toetsch wrote: > Nicholas Clark <[EMAIL PROTECTED]> wrote: > > > +$(LIBNCI_SO): $(SRC)/nci_test$(O) > > $(LD) $(LD_SHARED) $(LDFLAGS) \ > > $(LD_OUT)$@ $(SRC)/nci_test$(O) > > Win32 additionally needs the libnci.def thingy. (Except whe

Re: [perl #29385] [PROPOSED PATCH] Return Nested Structs from Structs

2004-05-06 Thread Leopold Toetsch
Chromatic <[EMAIL PROTECTED]> wrote: > The attached patch allows you to fetch nested structs from their > enclosing structs. Hehe, where's that "I'm not a C programer"? Great. > - it reuses the PMC from the struct initializer, so there's a > possibility of yanking the rug out from someone

Re: [perl #29257] Build libnci.so by default

2004-05-06 Thread Leopold Toetsch
Nicholas Clark <[EMAIL PROTECTED]> wrote: > +$(LIBNCI_SO): $(SRC)/nci_test$(O) > $(LD) $(LD_SHARED) $(LDFLAGS) \ > $(LD_OUT)$@ $(SRC)/nci_test$(O) Win32 additionally needs the libnci.def thingy. (Except when we put in the proposed dll_export macros). > (gdb) print *obj > $1 = { >

Re: [perl #29257] Build libnci.so by default

2004-05-06 Thread Nicholas Clark
On Tue, May 04, 2004 at 02:55:25PM +0200, Leopold Toetsch wrote: > Bernhard Schmalhofer <[EMAIL PROTECTED]> wrote: > > > 'libnci.so' is used for testing the native call interface. However I noticed > > that the tests in t/pmc/nci.t were skipped, because 'libnci.so' wasn't built > > by default. The

Re: parrot once again working on Cygwin

2004-05-06 Thread Leopold Toetsch
Joshua Gatcomb <[EMAIL PROTECTED]> wrote: > --- Leopold Toetsch <[EMAIL PROTECTED]> wrote: >> turn off >> ARENA_DOD_FLAGS in include/parrot/pobj.h line 25. > Is this a work-around or the actual fix? More the former. > because I plan on drafting up some notes on the > various ways to get ICU work

Re: Cygwin problems are GC not ICU

2004-05-06 Thread Leopold Toetsch
Joshua Gatcomb <[EMAIL PROTECTED]> wrote: > --- Leopold Toetsch <[EMAIL PROTECTED]> wrote: >> (gdb) bt >> (gdb) p pmc >> /gdb) p *((Dead_PObj*)pmc) >> would be good. > Program received signal SIGSEGV, Segmentation fault. > #5 0x0053fb75 in Parrot_ParrotInterpreter_class_init Early in program st

Re: [perl #29257] Build libnci.so by default

2004-05-06 Thread Leopold Toetsch
Nicholas Clark <[EMAIL PROTECTED]> wrote: > On Fri, Apr 30, 2004 at 01:14:21PM +0200, Leopold Toetsch wrote: >> Good. Do we have currently any platforms that don't support dynamic >> loading at all? > Perl5 builds on UNICOS (Crays), which is a Unix without dynamic linking. > (As my housemate expl

Re: [perl #29380] [Test PATCH] Accessing Pointers in Structs as Aggregates

2004-05-06 Thread Leopold Toetsch
Chromatic <[EMAIL PROTECTED]> wrote: > typedef struct SDL_Surface { > void *pixels; /* Read-write */ > ... > } > I'd like to be able to access pixels (an array of Uint32s) directly in > some cases. > + set P2[ 'i' ], .DATATYPE_PTR Why not

[CVS ci] NCI sub call syntax in PIR

2004-05-06 Thread Leopold Toetsch
A bit less typing for NCI calls: 1) declare the pmc type as NCI .local NCI the_sub # get it from somewhere e.g.: # the_sub = global "ncurses::initscr" 2) just call it: r = the_sub(args) Works only for named subs of course. This saves a savetop/restoretop pair and creating a return contin