There point is that J does not require the user to make
a specific step to load the library and then
to pass the ID around. Instead the name (path to)
library is included in every function definition.

Whereas R closely models system api requiring
GetProcAddress to be done separately.

Other than that any DLL that R call call, J can call too.


--- bill lam <[EMAIL PROTECTED]> wrote:

> I meant to say J cannot load a dll or so and return the pointer of the loaded 
> library similar to the example provided by Kamakura
>    dyn.load("directory/foo.so")
> This is different from calling a function inside that library.
> 
> Raul Miller wrote:
> > On 4/7/07, bill lam <[EMAIL PROTECTED]> wrote:
> >> kamakura wrote:
> >> > Does J support dynamic loading C or Fortran object file?  If so, I 
> >> would
> >> > like to know the syntax for invoking C or Fortran subprograms.  I 
> >> want a
> >> > simple J function with arguments of 'function name' and function 
> >> arguments.
> >>
> >> I think that J does not support dynamic loading dll or so directly and 
> >> I wish
> >> that this can be supported in the next beta.
> > 
> > I believe you intended to say that J does not directly support dynamic
> > loading of object file formats other than shared library formats.
> > 
> > Of course, as you indicated, the 15!: series
> > (http://www.jsoftware.com/help/dictionary/dx015.htm) do support dynamic
> > loading of PEX .DLLs (windows) or ELF .SOs (linux and perhaps mac).
> > 
> > If you have code from some other language which dynamically loads other
> > file formats (such as COFF .Os), you could have that code made available
> > to J in an appropriate PEX or ELF file and then your code could dynamically
> > load whatever other formats for J (presumably implementinging a system
> > modeled after 15!:).
> > 
> > If you have a good candidate for inclusion in some future version of J
> > (plausibly simple, and at least hinting at a model for clean interfaces),
> > send it to Roger Hui -- I'm sure he'd be happy with your participation.
> > 
> 
> 
> -- 
> regards,
> bill
> ----------------------------------------------------------------------
> For information about J forums see http://www.jsoftware.com/forums.htm
> 



 
____________________________________________________________________________________
Now that's room service!  Choose from over 150,000 hotels
in 45,000 destinations on Yahoo! Travel to find your fit.
http://farechase.yahoo.com/promo-generic-14795097
----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm

Reply via email to