C types build

classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

C types build

Mihai Dobrescu
Hello,

What means a C types build?
What will be possible to achieve?
Is it easier to integrate and embed SpiderMonkey for C/C++ APIs?

Best Regards,
Mike
_______________________________________________
dev-tech-js-engine mailing list
[hidden email]
https://lists.mozilla.org/listinfo/dev-tech-js-engine
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: C types build

Terrence Cole-3
js-ctypes is a mozilla-custom, poorly-supported extension to vanilla js
that supports loading and working directly with C/C++ dynamically linked
libraries / shared objects. There is documentation at [1]. I believe our
implementation was heavily influenced if not directly based on the existing
module in python [2].

Passing --enable-ctypes to the build system will cause this module to be
built. When built, the functions in [1] are available only from JS: I do
not believe it adds any public symbols to SpiderMonkey's C or C++ API
surfaces.

1- https://developer.mozilla.org/en-US/docs/Mozilla/js-ctypes
2- https://docs.python.org/3/library/ctypes.html

On Wed, Sep 21, 2016 at 5:49 AM, Mihai Dobrescu <[hidden email]>
wrote:

> Hello,
>
> What means a C types build?
> What will be possible to achieve?
> Is it easier to integrate and embed SpiderMonkey for C/C++ APIs?
>
> Best Regards,
> Mike
> _______________________________________________
> dev-tech-js-engine mailing list
> [hidden email]
> https://lists.mozilla.org/listinfo/dev-tech-js-engine
>
_______________________________________________
dev-tech-js-engine mailing list
[hidden email]
https://lists.mozilla.org/listinfo/dev-tech-js-engine
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: C types build

Mihai Dobrescu
In reply to this post by Mihai Dobrescu
On Wednesday, September 21, 2016 at 8:12:23 PM UTC+3, Terrence Cole wrote:

> js-ctypes is a mozilla-custom, poorly-supported extension to vanilla js
> that supports loading and working directly with C/C++ dynamically linked
> libraries / shared objects. There is documentation at [1]. I believe our
> implementation was heavily influenced if not directly based on the existing
> module in python [2].
>
> Passing --enable-ctypes to the build system will cause this module to be
> built. When built, the functions in [1] are available only from JS: I do
> not believe it adds any public symbols to SpiderMonkey's C or C++ API
> surfaces.
>
> 1- https://developer.mozilla.org/en-US/docs/Mozilla/js-ctypes
> 2- https://docs.python.org/3/library/ctypes.html
>
> On Wed, Sep 21, 2016 at 5:49 AM, Mihai Dobrescu <[hidden email]>
> wrote:
>
> > Hello,
> >
> > What means a C types build?
> > What will be possible to achieve?
> > Is it easier to integrate and embed SpiderMonkey for C/C++ APIs?
> >
> > Best Regards,
> > Mike
> > _______________________________________________
> > dev-tech-js-engine mailing list
> > [hidden email]
> > https://lists.mozilla.org/listinfo/dev-tech-js-engine
> >

I have Illustrator API, where I need to handle char* and const char ** paramaters. Would ctypes or jni help?
_______________________________________________
dev-tech-js-engine mailing list
[hidden email]
https://lists.mozilla.org/listinfo/dev-tech-js-engine
Loading...