Re: JS engine(s) provided by gnustep
"H. Nikolaus Schaller" <[email protected]> Sun, 10 Sep 2023 15:52:00 +0200
| Newsgroups | gmane.comp.lib.gnustep.general,gmane.comp.lib.gnustep.applications,gmane.comp.lib.gnustep.user,gmane.comp.lib.gnustep.devel,gmane.comp.lib.gnustep.bugs,gmane.comp.lib.gnustep.packagers,gmane.comp.lib.gnustep.ui,gmane.comp.lib.gnustep.marketing |
|---|---|
| Message-ID | <[email protected]> |
SimpleWebKit had all WebView interfaces to call JS and itself contains = some incomplete JS (ECMA-Script) interpreter. There wasn't much activity (besides Riccardo) from the community to work = on this framework and make it more useful and for example provide the = JSVirtualMachine class. Key question is if you want DOM integration (i.e. JS within a browser) = or a stand-alone JSVirtualMachine class. BR, NIkolaus > Am 10.09.2023 um 15:08 schrieb David Chisnall = <[email protected]>: >=20 > Hi, >=20 > As far as I know, no one has ported JavaScriptCore to GNUstep. It = might not be a huge amount of work but that last time I looked at it = (ten or so years ago) the build system for JSC conflated a lot of things = in the Apple paths that would need disentangling if you want the Cocoa = bits but ELF and the Linux calling conventions, for example. >=20 > If you don=E2=80=99t care about performance, there are a couple of = small JavaScript interpreters (jsQuick and DukTape) that would be fairly = easy to bridge to Objective-C. I played with using DukTape and GNUstep = ages ago and it looked as if it would be quite easy to add an = implementation of the APIs that JSC exposes on macOS, but it would give = around 10% of the performance. >=20 > David >=20 >> On 9 Sep 2023, at 16:22, loserism <[email protected]> wrote: >>=20 >> =EF=BB=BF >> Hello friends. >> I'm trying to use JavaScriptCore through gnustep and found that = gnustep doesn't find JavaScriptCore, does anyone know how to fix it? I = know I can use other third party js engines, but I only want to use the = interface provided by Apple, does gnustep provide an implementation of = this interface? Is there an easy way to implement these interfaces that = are not implemented or provided in gnustep, other than implementing them = myself? >>=20 >> Lastly, thanks for all the replies and help. >> Best regards. >=20