[perl6/specs] 0f5bdf: added NCI

2015-03-20 Thread GitHub
S99-glossary.pod Log Message: --- added NCI

[perl #62244] [BUG] recent rakudo changes have broken NCI

2012-01-30 Thread Will Coleda via RT
On Mon Jan 12 07:34:33 2009, donaldhunter wrote: > It appears that rakudo changes committed over the weekend have broken NCI. > The last known working revision was #35300 for ext/SQLite3/t/test.p6 which > is crashing on #35440. > You'll need to patch ext/SQLite3/Makefile.PL

Re: [perl #62244] [BUG] recent rakudo changes have broken NCI

2009-01-13 Thread Patrick R. Michaud
On Mon, Jan 12, 2009 at 07:34:33AM -0800, Donald Hunter wrote: > It appears that rakudo changes committed over the weekend have broken NCI. > The last known working revision was #35300 for ext/SQLite3/t/test.p6 which > is crashing on #35440. > You'll need to patch ext/SQLite3/Ma

Re: [perl #62244] AutoReply: [BUG] recent rakudo changes have broken NCI

2009-01-12 Thread Donald Hunter
grind.pid12075 Description: Binary data

[perl #62244] [BUG] recent rakudo changes have broken NCI

2009-01-12 Thread via RT
# New Ticket Created by Donald Hunter # Please include the string: [perl #62244] # in the subject line of all future correspondence about this issue. # http://rt.perl.org/rt3/Ticket/Display.html?id=62244 > It appears that rakudo changes committed over the weekend have broken NCI. The l

[perl #60338] [BUG] NCI segfaults with null pcc_params_signature

2008-11-05 Thread via RT
an uninitialized string. specifically, the pcc_params_signature NCI attribute is null. not sure if this corresponds to a specific parrot test... creating the signature as a constant string appears to cause this problem, as removing PObj_constant_FLAG from src/pmc/nci.pmc:82 "fixes" the i

[perl #58438] [PATCH] nci can't pass NULL string arguments

2008-09-07 Thread NotFound via RT
No objections and no problems, closing ticket.

Re: [perl #58438] [PATCH] nci can't pass NULL string arguments

2008-09-05 Thread NotFound
Hearing no objections, and because I needed it to be able to do tests with mysqlclient, applied in r30790 -- Salu2

[perl #58438] [PATCH] nci can't pass NULL string arguments

2008-08-29 Thread via RT
# New Ticket Created by NotFound # Please include the string: [perl #58438] # in the subject line of all future correspondence about this issue. # http://rt.perl.org/rt3/Ticket/Display.html?id=58438 > I was doing a simple test of NCI calls with the xlib function XDisplayName, and found t

Re: NCI and Calling Conventions (esp. on Windows)

2008-08-20 Thread Geoffrey Broadwell
as a calling convention is usually used consistently, and > providing defaults for well known libraries. tewk's C99 parser / NCI JIT code should handle part of this (and could be expanded to do more). We may want to just settle on extending that work as needed, rather than trying to shoehorn i

NCI and Calling Conventions (esp. on Windows)

2008-08-20 Thread Ron Blaschke
AFAICT, Parrot uses function pointers for NCI. This means NCI uses whatever calling convention the compiler uses by default. Unfortunately, there's More Than One Way To Do It. On Windows, there's the C calling convention (__cdecl), which is usually used by default by the Visual C+

Re: [perl #53406] [TODO] Add 'long long' to types supported by NCI

2008-05-06 Thread chromatic
On Sunday 27 April 2008 18:08:08 Mark Glines wrote: > In the future, INTVAL will probably be 128 bits for some platforms. > I'd really like to see a set of fixed-width types (similar to what p5 > has for pack and unpack), so you have the option of "native int" or > "exactly 32 bits" or whatever yo

Re: [perl #53406] [TODO] Add 'long long' to types supported by NCI

2008-04-27 Thread Mark Glines
,12 @@ my %func_call_assign = ( p => "return_data = ", i => "return_data = ", +2 => "return_data = ", 3 => "return_data = ", -2 => "return_data = ", 4 => "return_data = ", +5 =>

[perl #53406] [TODO] Add 'long long' to types supported by NCI

2008-04-27 Thread via RT
g C or C. There is no way to correctly handle this with Parrot's NCI signature types. Currently both MySQL and OpenGL are just substituting C instead, which will work on 64-bit architectures, but fail miserably on 32-bit arches. (I wish we could just insist that INTVAL be 64 bits everywhere,

Re: [perl #52916] [PATCH] Making NCI test C++ compatible

2008-04-19 Thread Mark Glines
On Sat, 19 Apr 2008 11:26:13 +0530 "Senaka Fernando" <[EMAIL PROTECTED]> wrote: > Hi Mark, > > What does the fix to 't/codingstd/c_indent.t' do? Does it ignore > anything inside #ifdef __cplusplus blocks? Yes. This lets us add any g++-specific stuff without throwing off the indentation. Mark

Re: [perl #52916] [PATCH] Making NCI test C++ compatible

2008-04-18 Thread Senaka Fernando
Hi Mark, What does the fix to 't/codingstd/c_indent.t' do? Does it ignore anything inside #ifdef __cplusplus blocks? Regards, Senaka On Sat, Apr 19, 2008 at 6:38 AM, Mark Glines via RT < [EMAIL PROTECTED]> wrote: > On Thu Apr 17 09:03:57 2008, infinoid wrote: > > On Tue Apr 15 02:58:18 2008, [E

NCI questions

2008-04-17 Thread Geoffrey Broadwell
I've been working on parsing the function prototypes in the GL/GLU/GLUT/GLX headers, in preparation for generating bindings for all of them during the Parrot build. Currently my prototype parser is able to compute NCI signatures for all but 14 out of the 1835 total prototypes found in my sys

[perl #52916] [PATCH] Making NCI test C++ compatible

2008-04-15 Thread Senaka Fernando
f +#ifdef __cplusplus +} +#endif + /* =back Hi all, The provided patch makes the NCI test C++ compatible. Regards, Senaka

Portable OpenGL via Parrot - was: Extending Parrot NCI callback functionality Options

2008-03-27 Thread Bob Free
;Grafman" <[EMAIL PROTECTED]> Cc: <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]> Sent: Wednesday, March 26, 2008 3:44 PM Subject: Re: Extending Parrot NCI callback functionality Options On Wed, 2008-03-26 at 09:31 -0700, Grafman wrote: He lives! Just kidding, I know you'v

Re: Portable OpenGL via Parrot - was: Extending Parrot NCI callback functionality Options

2008-03-26 Thread Geoffrey Broadwell
ry > distros for Windows (PPMs) works on any Windows box with an OpenGL driver > (standard on NT/XP/Vista) - this doesn't work for other platforms. I keep thinking we should just do runtime stub patching everywhere, as with GLee/GLEW/SDL/etc. The nice thing is that this can be done

Re: Extending Parrot NCI callback functionality Options

2008-03-26 Thread Arcady Goldmints-Orlov
"current" context state). As such, GLUT was > designed to assume single-threaded uses - which is why it's callbacks > do not have user data. > > It has been suggested that one might "fix" Parrot's NCI to support > generic callbacks. There's

Re: Extending Parrot NCI callback functionality Options

2008-03-26 Thread Geoffrey Broadwell
not use callbacks, it is assumed to be single- > threaded (there's a "current" context state). Well, at least that there is only one thread doing rendering; there may freely be other threads doing non-rendering tasks. > It has been suggested that one might "fix" Parrot&#x

Extending Parrot NCI callback functionality Options

2008-03-26 Thread Grafman
-oriented for server- side use. While OpenGL itself does not use callbacks, it is assumed to be single- threaded (there's a "current" context state). As such, GLUT was designed to assume single-threaded uses - which is why it's callbacks do not have user data. It has been sugg

[perl #50360] Redesign Parrot NCI callback functionality

2008-01-28 Thread via RT
# New Ticket Created by Geoffrey Broadwell # Please include the string: [perl #50360] # in the subject line of all future correspondence about this issue. # http://rt.perl.org/rt3/Ticket/Display.html?id=50360 > Parrot's NCI callback subsystem design will not work (and cannot be

Re: Crazy NCI Callback Solution Idea

2008-01-20 Thread Allison Randal
chromatic wrote: Here's my crazy idea. When you register a callback into PIR from C, you need to pass a few arguments: the interpreter into which to call, the PMC Sub to call, and the C signature of the C function which gets called from C. I presume that the PIR function will get called thro

Re: Extending Parrot NCI callback functionality

2008-01-20 Thread Allison Randal
chromatic wrote: On Friday 18 January 2008 20:25:16 Allison Randal wrote: It's true that the generalized solution for varying callback signatures doesn't exist yet, but it's easy enough to create your own C callback layer, with a separate C function for each callback you need. (Note, not one-pe

Re: Extending Parrot NCI callback functionality

2008-01-19 Thread Joshua Juran
On Jan 16, 2008, at 7:39 PM, Geoffrey Broadwell wrote: I am starting to implement a GLUT and OpenGL binding for Parrot. GLUT is extremely callback-oriented. Unfortunately, none of the GLUT callbacks fall within the current limitations on Parrot NCI callbacks. As you've discovered, call

Crazy NCI Callback Solution Idea

2008-01-18 Thread chromatic
Here's my crazy idea. When you register a callback into PIR from C, you need to pass a few arguments: the interpreter into which to call, the PMC Sub to call, and the C signature of the C function which gets called from C. I presume that the PIR function will get called through one of the exter

Re: Extending Parrot NCI callback functionality

2008-01-18 Thread chromatic
On Friday 18 January 2008 20:25:16 Allison Randal wrote: > It's true that the generalized solution for varying callback signatures > doesn't exist yet, but it's easy enough to create your own C callback > layer, with a separate C function for each callback you need. (Note, not > one-per-signature,

Re: Extending Parrot NCI callback functionality

2008-01-18 Thread Geoffrey Broadwell
On Sat, 2008-01-19 at 17:25 +1300, Allison Randal wrote: > Geoffrey Broadwell wrote: > > On Wed, 2008-01-16 at 22:38 -0700, Paul Seamons wrote: > >>> I am starting to implement a GLUT and OpenGL binding for Parrot. > [...] > > I don't often get concentrated time > > to help out with Parrot and Perl

Re: Extending Parrot NCI callback functionality

2008-01-18 Thread Allison Randal
Geoffrey Broadwell wrote: On Wed, 2008-01-16 at 22:38 -0700, Paul Seamons wrote: I am starting to implement a GLUT and OpenGL binding for Parrot. [...] I don't often get concentrated time to help out with Parrot and Perl 6, but I have some now. If this is going to be blocked indefinitely, my

Re: Extending Parrot NCI callback functionality

2008-01-17 Thread Geoffrey Broadwell
think I got a little farther, but I'm blocked now just as you were, on the same problem. > It appears that NCI is on the roadmap a couple of months out (or more), but > that when it is done it will be done right - for some definition of right. I think that Allison hand-waved over exactly

Re: Extending Parrot NCI callback functionality

2008-01-17 Thread Paul Seamons
spatch information in a user data argument. It appears that NCI is on the roadmap a couple of months out (or more), but that when it is done it will be done right - for some definition of right. I would've put more work into a temporary solution, but real life has interfered. I'm glad

Extending Parrot NCI callback functionality

2008-01-16 Thread Geoffrey Broadwell
Right now, Parrot's support for NCI callbacks (C code calling back into PIR code) is relatively limited. In particular, there are at least the following limitations: 1. The return type must be void (C library does not expect a response). 2. The callback must have exactly two arguments

Re: A quick NCI question

2008-01-09 Thread robby
Sorry, essentially what I'm asking is if i can pass a pir method as a function pointer on a c call. essentially what I'm looking to do is get into the message pump on windows, and I'm trying to keep all of the code within pir. I'm trying to see how many hoops I need to do in order to write a

Re: A quick NCI question

2008-01-07 Thread chromatic
On Monday 07 January 2008 09:22:43 robby wrote: > With skimming across the past 400 or so messages on this list I'm not > exactly sure if this would be the correct list to post this, but I have > a quick question regarding NCI's and callbacks. > > I've read http://www.parrotcode.org/docs/pdd/pdd16

A quick NCI question

2008-01-07 Thread robby
With skimming across the past 400 or so messages on this list I'm not exactly sure if this would be the correct list to post this, but I have a quick question regarding NCI's and callbacks. I've read http://www.parrotcode.org/docs/pdd/pdd16_native_call.htm and nci.t and I haven't came up with

Re: NCI PMC comments

2007-12-16 Thread Klaas-Jan Stol
These statements are removed in r23981. kjs On Dec 16, 2007 4:16 PM, Allison Randal <[EMAIL PROTECTED]> wrote: > Jonathan Worthington wrote: > > Hi, > > > > At the top of the NCI PMC, there are these comments: > > > > -- > > Invoking an NCI funct

Re: NCI PMC comments

2007-12-16 Thread Allison Randal
Jonathan Worthington wrote: Hi, At the top of the NCI PMC, there are these comments: -- Invoking an NCI function changes some registers according to PDD 3. The caller has to preserve registers if needed. -- Am I right in thinking that's no longer true? Yes, PDD 3 no longer uses spe

NCI PMC comments

2007-12-15 Thread Jonathan Worthington
Hi, At the top of the NCI PMC, there are these comments: -- Invoking an NCI function changes some registers according to PDD 3. The caller has to preserve registers if needed. -- Am I right in thinking that's no longer true? Thanks, Jonathan

Re: [DOCS] NCI

2007-11-26 Thread parrotcode
On Nov 26, 7:42 am, [EMAIL PROTECTED] (Will Coleda) wrote: > # New Ticket Created by Will Coleda > # Please include the string: [perl #47826] > # in the subject line of all future correspondence about this issue. > # http://rt.perl.org/rt3/Ticket/Display.html?id=47826> > > T

[perl #47826] [DOCS] NCI

2007-11-25 Thread via RT
# New Ticket Created by Will Coleda # Please include the string: [perl #47826] # in the subject line of all future correspondence about this issue. # http://rt.perl.org/rt3/Ticket/Display.html?id=47826 > The NCI information in docs/books is out of date. per codyl on #parrot, the c

Re: Generic callback mechanism in NCI

2007-10-19 Thread Allison Randal
mechanism in NCI? - Is this a relatively sane/clean way to do it? - Is there a better way to generate the functions for each signature? - What is the right way to store that global user_data until the callbacks are fired? NCI isn't fully specified yet, but I'll outline some of our current

Generic callback mechanism in NCI

2007-10-19 Thread Paul Seamons
should be used to run the sub stored in the PMC. The pdd says that outside the two provided signatures, anybody wanting to implement NCI connections to callback functions will need to do some hand C coding. Hand C coding isn't at all bad, but it would be nice to have a generic mechanism for st

Generic callback mechanism in NCI

2007-10-18 Thread parrot
should be used to run the sub stored in the PMC. The pdd says that outside the two provided signatures, anybody wanting to implement NCI connections to callback functions will need to do some hand C coding. Hand C coding isn't at all bad, but it would be nice to have a generic mechanism for st

Re: Ease of Committing Tests (was Re: [svn ci] NCI methods now name-mangled)

2007-04-06 Thread Joshua Isom
On Apr 6, 2007, at 11:48 AM, chromatic wrote: On Friday 06 April 2007 00:58, Joshua Isom wrote: What if we had a repository, ala pugs with it's "open" commits, solely for people to commit tests.  It could help improve bug discovery and test coverage, as well as ambiguity about features in par

Ease of Committing Tests (was Re: [svn ci] NCI methods now name-mangled)

2007-04-06 Thread chromatic
On Friday 06 April 2007 00:58, Joshua Isom wrote: > What if we had a repository, ala pugs with it's "open" commits, solely > for people to commit tests.  It could help improve bug discovery and > test coverage, as well as ambiguity about features in parrot.  Then > developers could just update it

Re: [svn ci] NCI methods now name-mangled

2007-04-06 Thread Joshua Isom
On Apr 5, 2007, at 5:45 PM, Leopold Toetsch wrote: Am Donnerstag, 5. April 2007 00:39 schrieb Jonathan Worthington: Don't really need a policy to tell me that breaking stuff for languages folks sucks. :-) I try hard to avoid it, but unfortunately stuff slips through the net occasionally. In t

Re: [svn ci] NCI methods now name-mangled

2007-04-05 Thread Leopold Toetsch
Am Donnerstag, 5. April 2007 00:39 schrieb Jonathan Worthington: > Don't really need a policy to tell me that breaking stuff for languages > folks sucks. :-) I try hard to avoid it, but unfortunately stuff slips > through the net occasionally. In this case, I wasn't even aware that you > could use

Re: [svn ci] NCI methods now name-mangled

2007-04-04 Thread Allison Randal
Jonathan Worthington wrote: Anyway, fixed in r17982. May need a realclean - I had to do one anyway to run the buildtools tests. Awesome. Works for me even without realclean. Thanks! Allison

Re: [svn ci] NCI methods now name-mangled

2007-04-04 Thread Jonathan Worthington
Allison Randal wrote: This is a leftover from the old days when the way to override a vtable method was to define a method with an '__' name, so they never conflicted. Not really - this was a conflict in the names of the methods at a C level. The '__' prefix was a PIR-level thing. In PIR we ma

Re: [svn ci] NCI methods now name-mangled

2007-04-04 Thread Jonathan Worthington
Allison Randal wrote: For me too, even after a 'make realclean' on Parrot. In the interests of our developing policy on a stable trunk: Jonathan, fix the problem for Lua or revert the change before continuing with further development. Don't really need a policy to tell me that breaking stuff for

Re: [svn ci] NCI methods now name-mangled

2007-04-04 Thread Jonathan Worthington
François PERRAD wrote: This new behavior breaks the build of Lua PMC. Argh, sorry. :-( Thanks for the detailed bug report - I know where the problem is, and am working on a fix. Jonathan

Re: [svn ci] NCI methods now name-mangled

2007-04-04 Thread Allison Randal
Jonathan Worthington wrote: Hi, I was working on starting to move class functionality into v-table methods, as discussed on list recently. However, I hit an interesting issue - you cannot have a METHOD or PCCMETHOD with the same name as a vtable method. We need to be able to do that to implem

Re: [svn ci] NCI methods now name-mangled

2007-04-04 Thread Allison Randal
François PERRAD wrote: Anyway, hope this is agreeable, and please do report any issues. This new behavior breaks the build of Lua PMC. For me too, even after a 'make realclean' on Parrot. In the interests of our developing policy on a stable trunk: Jonathan, fix the problem for Lua or reve

Re: [svn ci] NCI methods now name-mangled

2007-04-04 Thread François PERRAD
At 01:33 04/04/2007 +0100, Jonathan Worthington wrote: Hi, I was working on starting to move class functionality into v-table methods, as discussed on list recently. However, I hit an interesting issue - you cannot have a METHOD or PCCMETHOD with the same name as a vtable method. We need to b

[svn ci] NCI methods now name-mangled

2007-04-03 Thread Jonathan Worthington
Hi, I was working on starting to move class functionality into v-table methods, as discussed on list recently. However, I hit an interesting issue - you cannot have a METHOD or PCCMETHOD with the same name as a vtable method. We need to be able to do that to implement the interface specified

Re: [PATCH] PDD16 NCI update with simple example

2007-02-23 Thread chromatic
g > changes pending?). > If desired, I'd be happy to do more updates. Please let me know. > At least there's full working code to do a simple NCI invocation. Please do. There are no big changes pending. Thanks, applied as r17164. -- c

[PATCH] PDD16 NCI update with simple example

2007-02-23 Thread Klaas-Jan Stol
hi, I've been playing with NCI calls and more fun (embedding a Parrot, that runs a PIR program, which invokes a C function, that then invokes a PIR callback function). As a result, I added a simple example to PDD16. I didnt' put too much work in it (there are many more places tha

[perl #40822] Pg NCI Test Makes Unportable Connection

2006-11-11 Thread via RT
onnectdb'('') # assume table = user is present I have PostgreSQL installed, but this assumption doesn't work for me. I've checked in a skip for the remaining tests in this case, as there's no point in running them. (They cause NCI assertion failures, as the N

Re: NCI and libparrot Question

2006-07-21 Thread chromatic
eter as the parent argument to Parrot_new()). > You migh also grep for enter_nci_method in src/pmc/*.c - all METHODs in > .pmc are converted to NCI calls in the .c files with appropriate > signatures. That ought to work. -- c

Re: NCI and libparrot Question

2006-07-21 Thread Leopold Toetsch
> > I don't see documentation for the S or I parameters anywhere in the NCI > PDD. Is there a better place for them? src/call_list.txt is probably the best place to look. And a good one to look into occasionally, I've mixed up 'I' and 'J' - sorry. > I

Re: NCI and libparrot Question

2006-07-21 Thread chromatic
On Friday 21 July 2006 00:57, Leopold Toetsch wrote: > This can't work for several reasons: > > 1) the NCI call signatures don't match the C functions' args: > > .store_nci_func( 'const_string', 'ppt' ) > > sh

Re: NCI and libparrot Question

2006-07-21 Thread Leopold Toetsch
Am Freitag, 21. Juli 2006 07:53 schrieb chromatic: > Should this code work? I think so. This can't work for several reasons: 1) the NCI call signatures don't match the C functions' args: .store_nci_func( 'const_string', 'ppt' ) should be: 

NCI and libparrot Question

2006-07-20 Thread chromatic
Should this code work? I think so. I don't think it's necessarily *good* practice, but I do think it should work. -- c

[perl #39771] [PATCH] missing signature for examples/nci/win32api.pir

2006-07-09 Thread Will Coleda via RT
Thanks, appled as r13221

[perl #39771] [PATCH] missing signature for examples/nci/win32api.pir

2006-07-09 Thread via RT
# New Ticket Created by Rene Hangstrup Møller # Please include the string: [perl #39771] # in the subject line of all future correspondence about this issue. # http://rt.perl.org/rt3/Ticket/Display.html?id=39771 > The win32 example in parrot/examples/nci/win32api.pir fails because

Re: NCI 'v' vs '' in function parameter signatures

2006-03-03 Thread chromatic
On Friday 03 March 2006 02:41, Tim Bunce wrote: > Any news on this? Is it okay? Should I send it via parrotbug? It looked good to me. I say check it in and see what the smokes do. -- c

Re: NCI 'v' vs '' in function parameter signatures

2006-03-03 Thread Tim Bunce
gt; +# Edited copy of mysql.h using vi by doing g/, *$/j (repeat) then g/\* *$/j > (repeat) > +# to get all functions on one line each. > +# Extracted list of api func names from > http://dev.mysql.com/doc/refman/4.1/en/c-api-functions.html > +# and copied to a temporary file to clean up (mysql_a

Re: NCI 'v' vs '' in function parameter signatures

2006-02-28 Thread Tim Bunce
ripped down to bare names and merged into one line separated by | +# then egrep -w `cat mysql_api_names.txt` mysql.h > mysql_api.ncidef +# then edit mysql_api.ncidef in vi: %s/^/ # / +# to create space for nci signatures and to use original definition as a # comment. +# This method isn'

Re: NCI 'v' vs '' in function parameter signatures

2006-02-14 Thread Leopold Toetsch
On Feb 14, 2006, at 18:29, Tim Bunce wrote: I'll aim to work up a patch this week. Great, thanks. The runtime dlfunc code will need to be altered to normalize away the trailing v so old code won't break. Should it warn about that? Yes, a warning please. Tim. leo

Re: NCI 'v' vs '' in function parameter signatures

2006-02-14 Thread Leopold Toetsch
On Feb 14, 2006, at 21:45, chromatic wrote: To avoid confusion, I suggest requiring that functions returning void always use 'v' and disallowing the signature ''. Exactly my thoughts too. leo

Re: NCI 'v' vs '' in function parameter signatures

2006-02-14 Thread chromatic
On Tuesday 14 February 2006 05:48, Leopold Toetsch wrote: > I'd say, we should drop all the '?v' variants. The extra 'v' doesn't > cover any information, it's just causing an init call to the argument > passing code. To avoid confusion, I suggest requiring that functions returning void always us

Re: NCI 'v' vs '' in function parameter signatures

2006-02-14 Thread Tim Bunce
On Tue, Feb 14, 2006 at 02:48:41PM +0100, Leopold Toetsch wrote: > Tim Bunce wrote: > >What's the difference between 'v' and '' for NCI function parameters? > > There isn't any, except the extra 'v' char. > > >I ask because bot

Re: NCI 'v' vs '' in function parameter signatures

2006-02-14 Thread Leopold Toetsch
Tim Bunce wrote: What's the difference between 'v' and '' for NCI function parameters? There isn't any, except the extra 'v' char. I ask because both 'fv' and 'f' are in src/call_list.txt Yeah. In fact there are several 'd

NCI 'v' vs '' in function parameter signatures

2006-02-13 Thread Tim Bunce
What's the difference between 'v' and '' for NCI function parameters? Here, for example, is the code for 'fv' and 'f': static void pcf_f_v(Interp *interpreter, PMC *self) { typedef float (*func_t)(void); func_t pointer;

Re: T and L parameter types for NCI

2006-01-02 Thread Leopold Toetsch
On Jan 2, 2006, at 19:36, Dan Sugalski wrote: The big hang up has been the removal of the T and L parameter types for NCI calls. T was a string pointer array and L was a long array. [ ... ] Are there alternatives? The documentation for this stuff is worse now than when I wrote it

T and L parameter types for NCI

2006-01-02 Thread Dan Sugalski
I just went, after ages, and sync'd up with a current parrot for my work project. Fixing things to work with the changes has been... interesting. The big hang up has been the removal of the T and L parameter types for NCI calls. T was a string pointer array and L was a long array. Th

A step closer to ffcall NCI

2005-11-04 Thread Nick Glencross
d stuff. I also need to clarify a few things; such a when I allocate some PMCs in C whether I need to mark them so that they aren't swept away by a DOD (I suspect so). Some known issues: * Can't clone the NCI object * compilers/pge/mklib.pir might die during the build; I can't d

Re: [POC] nci interface using ffcall library

2005-10-31 Thread chromatic
On Mon, 2005-10-31 at 20:12 +, Nick Glencross wrote: > I certainly agree about what was being said about supporting multiple > backends as it protects us against future nasty platforms. However, I'm > unclear what the benefits of the favoured option of using JIT code was; > that sounds like

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

2005-10-31 Thread Garrett Goebel
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 fro

Re: [POC] nci interface using ffcall library

2005-10-31 Thread Leopold Toetsch
On Oct 31, 2005, at 7:49, John Lenz wrote: On Fri, October 28, 2005 2:22 pm, Nick Glencross said: 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 am a SWIG (www.swig.org

Re: [POC] nci interface using ffcall library

2005-10-30 Thread John Lenz
On Fri, October 28, 2005 2:22 pm, Nick Glencross said: > 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 am a SWIG (www.swig.org) developer, and I recent

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: [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

Re: [POC] nci interface using ffcall library

2005-10-28 Thread Leopold Toetsch
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 sources. The list of supp

[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

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

2005-10-25 Thread Leopold Toetsch
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 with 2 arguments only), one with the

NCI callbacks

2005-10-25 Thread Bernhard Schmalhofer
Nick Glencross schrieb: 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? Yes, I think that hasn't changed since I've looking into interfacing Parrot with libsyck. As far as I rememb

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 #37512] [PATCH] Adds nci support for 'T' and 'L' prototypes

2005-10-23 Thread Leopold Toetsch
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 implementation, as well as new tests. I d

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

2005-10-23 Thread via RT
for passing arrays to nci functions, but no implementation exists in build_nativecall.pl. This patch provides an implementation, as well as new tests. Someone might raise the point as to whether the data should be read back into parrot's array, but this is generally going to be tricky and a j

[perl #37439] [PATCH] Skip two nci tests on HP-UX

2005-10-17 Thread Joshua Hoblitt via RT
Applied as r9496. Thanks. -J

[perl #37439] [PATCH] Skip two nci tests on HP-UX

2005-10-14 Thread via RT
we skip two nci tests which are causing hangs on HP-UX and as such prevent smoke testing. Once this patch is in I'll set up automated HP-UX smoke testing next week. FYI the smoke entry for HP-UX has some failed MANIFEST tests; one is due to the image having been checked out from subve

Re: NCI: passing PMCs and using them

2005-08-23 Thread Leopold Toetsch
tandard PMCs, so accessing the intval for the Integer PMC and its decendents, floatval for Float PMC, stringval for String PMCs, etc) ? Have a look at src/extend.c for the most abstract API. You might also consider switching to branches/leo-ctx5. The new calling conventions do auto-conversion betw

Re: NCI: passing PMCs and using them

2005-08-23 Thread Klaas-Jan Stol
Leopold Toetsch wrote: Klaas-Jan Stol wrote: hi, I'm currently trying to check out the NCI. As my Lua compiler only uses PMCs (and not I/N/S registers), calling C functions will only be done with PMCs. I couldn't find info on this matter: suppose I have this string PMC,

Re: NCI: passing PMCs and using them

2005-08-22 Thread Leopold Toetsch
Klaas-Jan Stol wrote: hi, I'm currently trying to check out the NCI. As my Lua compiler only uses PMCs (and not I/N/S registers), calling C functions will only be done with PMCs. I couldn't find info on this matter: suppose I have this string PMC, how can I access the actual st

  1   2   3   4   >