From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-wg0-x233.google.com (mail-wg0-x233.google.com [IPv6:2a00:1450:400c:c00::233]) by hurricane.the-brannons.com (Postfix) with ESMTPS id E914577B05 for ; Sun, 22 Dec 2013 08:48:58 -0800 (PST) Received: by mail-wg0-f51.google.com with SMTP id b13so4229748wgh.30 for ; Sun, 22 Dec 2013 08:48:55 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=date:from:to:cc:subject:message-id:references:mime-version :content-type:content-disposition:in-reply-to:user-agent; bh=8millj+cc9zK6Lc2/3rjd41o63Ej0m4LtDTY50ruayQ=; b=mgdMmiTfFBJQ909a9Mc12CyZr97iq+tGXd6/7olC2cevRRGgaUWgfuD/SNOVyRIZpo 5hDMHalMfZLZdlOBYNbG0SQqX20GUKi8peXvOTogiYAta7KpZgQbHDEFkRf4RLphtGps y6d6n+HyRptMuH8hr9CJjbo0NNjRAceeMnFuFL4oJI0OLEg+oyeYzLzzWkEGCJcfvUy8 EWuNK80v/FfWaqf+8yN7gsT+C/v8wUFDgV2V5RCrXXnjP0v8SYuxRHeSE74gU+SJ7qX+ NhEJmmQbPickgU27hiXS7I7k2gOVNcXy88VuLHL2VHoCEXy8wSrx9AORTKo87HOby9bZ QHVg== X-Received: by 10.180.90.37 with SMTP id bt5mr15623857wib.43.1387730934499; Sun, 22 Dec 2013 08:48:54 -0800 (PST) Received: from toaster.adamthompson.me.uk (toaster.adamthompson.me.uk. [2001:8b0:1142:9042::2]) by mx.google.com with ESMTPSA id bj3sm7784900wjb.14.2013.12.22.08.48.52 for (version=TLSv1.2 cipher=RC4-SHA bits=128/128); Sun, 22 Dec 2013 08:48:53 -0800 (PST) Date: Sun, 22 Dec 2013 16:48:13 +0000 From: Adam Thompson To: Chris Brannon Message-ID: <20131222164813.GA12841@toaster.adamthompson.me.uk> References: <20131118134511.eklhad@comcast.net> <52B5D75A.8020804@free.fr> <87sitkdh98.fsf@mushroom.PK5001Z> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <87sitkdh98.fsf@mushroom.PK5001Z> User-Agent: Mutt/1.5.21 (2010-09-15) Cc: edbrowse-dev@lists.the-brannons.com Subject: Re: [Edbrowse-dev] Javascript support X-BeenThere: edbrowse-dev@lists.the-brannons.com X-Mailman-Version: 2.1.17 Precedence: list List-Id: Edbrowse Development List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 22 Dec 2013 16:48:59 -0000 Hi, On Sun, Dec 22, 2013 at 07:42:27AM -0800, Chris Brannon wrote: > MENGUAL Jean-Philippe writes: > > > > Can you tell me if some plan exist to enable edbrowse to support > > Javascript from libmozjs version 26? > > Hi. I don't know anything about libmozjs version 26, but I'll look into > it. It isn't even packaged for my distro though. Any idea what is > needed to build with it? According to the mozilla website the most recent version is version 24 [1]. My initial investigations into building edbrowse against this yielded this quote from the mozilla website [2]: "SpiderMonkey now provides a fully C++ interface, so embedders relying on embeddability in C projects will have to convert to C++, or implement their own adapter code." This, along with my initial attempts to build the current edbrowse with g++ indicate that this is probably not going to be a small change unless we implement our own "adapter code" to interface with the engine and even then I suspect there'll be quite a lot of work involved. It's a good point about the old version of the engine used by edbrowse though, on Debian it's built (I believe) against version 1.85 which is seriously old now. For what it's worth my thoughts on this are: - it's going to be a lot of work to switch to the new mozilla engine - we probably should switch to something newer than the current SpiderMonkey version for security reasons as well as supporting newer javascript language features - I've yet to find a javascript engine which is both mature and provides a pure C api (or anything which'd compile with a C compiler) - we shouldn't go back to a hand-made javascript engine I don't have a massive amount of time (due to university work) but I may be able to help with development as I've done quite a bit of C and C++. Cheers, Adam. [1] https://developer.mozilla.org/en-US/docs/Mozilla/Projects/SpiderMonkey [2] https://developer.mozilla.org/en-US/docs/SpiderMonkey/24