[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: JS engine(s) provided by gnustep

From: H. Nikolaus Schaller
Subject: Re: JS engine(s) provided by gnustep
Date: Sun, 10 Sep 2023 15:52:00 +0200

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 <gnustep@theravensnest.org>:
> Hi,
> 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.
> If you don’t 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.
> David
>> On 9 Sep 2023, at 16:22, loserism <loserism@88.com> wrote:
>> 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?
>> Lastly, thanks for all the replies and help.
>> Best regards.

reply via email to

[Prev in Thread] Current Thread [Next in Thread]