You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@couchdb.apache.org by Benoit Chesneau <bc...@gmail.com> on 2013/03/28 03:36:44 UTC

[feedback] mozjs17.0.0

Hi,

As promised, I finally had time to test a build of Apache CouchDB
using latest stable spidermonkey from Mozilla [1] . For this test I
used rcouch which only use the spidermonkey 1.8.5 version of couchjs
but the code is similar to the one in Apache CouchDB.

All tests are green. It didn't imply any changes in the source code.

Some important changes though:

This version of spidermonkey can't be built with llvm gcc. It requires
either clang or gcc. It also requires a new version of NSPR. I used
latest (4.9.6) .

Anyway that's good news. Now we need to update configure to handle this version.

- benoît.

[1] https://developer.mozilla.org/en-US/docs/SpiderMonkey/17

Re: [feedback] mozjs17.0.0

Posted by Noah Slater <ns...@apache.org>.
On 31 March 2013 00:03, Benoit Chesneau <bc...@gmail.com> wrote:

>
> I will stop here the effort in porting couchjs to this new platform. I
> think i'm done with spidermonkey for awhile. Will rather port my
> effort on something based  on v8 and other languages alternatives:
> dart and lua are good alternatives to the JS.
>

I, for one, am excited about the possibilities V8 would open up for us. My
excitement is less about the technical strengths of V8 when compared to
Dart or whatever. And more the ecosystem it joins us up with...


-- 
NS

Re: [feedback] mozjs17.0.0

Posted by Benoit Chesneau <bc...@gmail.com>.
On Sat, Mar 30, 2013 at 11:20 PM, Dave Cottlehuber <dc...@jsonified.com> wrote:
>> On 29 March 2013 03:35, Benoit Chesneau <bc...@gmail.com> wrote:
>> Sound like more changes are needed. I will post a new patch with that.
>>
>> - benoit
>
> Woo! What platform/OS was that on please?


I had to go back to 1.8.5 on the platform I was testing. There are too
much changes needed for now imo including some types etc. The HTTP api
need a lot of changes for ex. And some stuffs aren't documented in the
spidermonkey changes.

I will stop here the effort in porting couchjs to this new platform. I
think i'm done with spidermonkey for awhile. Will rather port my
effort on something based  on v8 and other languages alternatives:
dart and lua are good alternatives to the JS.

- benoît

Re: [feedback] mozjs17.0.0

Posted by Dave Cottlehuber <dc...@jsonified.com>.
> On 29 March 2013 03:35, Benoit Chesneau <bc...@gmail.com> wrote:
> Sound like more changes are needed. I will post a new patch with that.
>
> - benoit

Woo! What platform/OS was that on please?

Re: [feedback] mozjs17.0.0

Posted by Benoit Chesneau <bc...@gmail.com>.
Sound like more changes are needed. I will post a new patch with that.

- benoit

On Thu, Mar 28, 2013 at 6:05 PM, Randall Leeds <ra...@gmail.com> wrote:
> lgtm but I'll test it today
>
> On Thu, Mar 28, 2013 at 3:26 AM, Benoit Chesneau <bc...@gmail.com> wrote:
>> This patch seems to be enough but I will let Randall decide:
>>
>>     diff --git a/configure.ac b/configure.ac
>>     index 91e2d3d..285ab03 100644
>>     --- a/configure.ac
>>     +++ b/configure.ac
>>     @@ -241,6 +241,7 @@ Are the Mozilla SpiderMonkey headers installed?])
>>          ])
>>      ])
>>
>>     +AC_CHECK_LIB([mozjs-17.0], [JS_NewContext], [JS_LIB_BASE=mozjs-17.0], [
>>        AC_CHECK_LIB([mozjs185], [JS_NewContext], [JS_LIB_BASE=mozjs185], [
>>          AC_CHECK_LIB([mozjs185-1.0], [JS_NewContext],
>> [JS_LIB_BASE=mozjs185-1.0], [
>>              AC_CHECK_LIB([mozjs], [JS_NewContext], [JS_LIB_BASE=mozjs], [
>>     @@ -256,6 +257,7 @@ Is the Mozilla SpiderMonkey library installed?])
>>              ])
>>          ])
>>        ])
>>     +])
>>
>>      # Figure out what version of SpiderMonkey to use
>>
>>
>>
>> - benoît
>>
>> On Thu, Mar 28, 2013 at 4:54 AM, Wendall Cada <we...@apache.org> wrote:
>>> On 03/27/2013 07:36 PM, Benoit Chesneau wrote:
>>>>
>>>> Hi,
>>>>
>>>> As promised, I finally had time to test a build of Apache CouchDB
>>>> using latest stable spidermonkey from Mozilla [1] . For this test I
>>>> used rcouch which only use the spidermonkey 1.8.5 version of couchjs
>>>> but the code is similar to the one in Apache CouchDB.
>>>>
>>>> All tests are green. It didn't imply any changes in the source code.
>>>>
>>>> Some important changes though:
>>>>
>>>> This version of spidermonkey can't be built with llvm gcc. It requires
>>>> either clang or gcc. It also requires a new version of NSPR. I used
>>>> latest (4.9.6) .
>>>>
>>>> Anyway that's good news. Now we need to update configure to handle this
>>>> version.
>>>>
>>>> - benoīt.
>>>>
>>>> [1] https://developer.mozilla.org/en-US/docs/SpiderMonkey/17
>>>
>>> Fantastic news Benoit! Thanks for testing this.
>>>
>>> Wendall

Re: [feedback] mozjs17.0.0

Posted by Randall Leeds <ra...@gmail.com>.
lgtm but I'll test it today

On Thu, Mar 28, 2013 at 3:26 AM, Benoit Chesneau <bc...@gmail.com> wrote:
> This patch seems to be enough but I will let Randall decide:
>
>     diff --git a/configure.ac b/configure.ac
>     index 91e2d3d..285ab03 100644
>     --- a/configure.ac
>     +++ b/configure.ac
>     @@ -241,6 +241,7 @@ Are the Mozilla SpiderMonkey headers installed?])
>          ])
>      ])
>
>     +AC_CHECK_LIB([mozjs-17.0], [JS_NewContext], [JS_LIB_BASE=mozjs-17.0], [
>        AC_CHECK_LIB([mozjs185], [JS_NewContext], [JS_LIB_BASE=mozjs185], [
>          AC_CHECK_LIB([mozjs185-1.0], [JS_NewContext],
> [JS_LIB_BASE=mozjs185-1.0], [
>              AC_CHECK_LIB([mozjs], [JS_NewContext], [JS_LIB_BASE=mozjs], [
>     @@ -256,6 +257,7 @@ Is the Mozilla SpiderMonkey library installed?])
>              ])
>          ])
>        ])
>     +])
>
>      # Figure out what version of SpiderMonkey to use
>
>
>
> - benoît
>
> On Thu, Mar 28, 2013 at 4:54 AM, Wendall Cada <we...@apache.org> wrote:
>> On 03/27/2013 07:36 PM, Benoit Chesneau wrote:
>>>
>>> Hi,
>>>
>>> As promised, I finally had time to test a build of Apache CouchDB
>>> using latest stable spidermonkey from Mozilla [1] . For this test I
>>> used rcouch which only use the spidermonkey 1.8.5 version of couchjs
>>> but the code is similar to the one in Apache CouchDB.
>>>
>>> All tests are green. It didn't imply any changes in the source code.
>>>
>>> Some important changes though:
>>>
>>> This version of spidermonkey can't be built with llvm gcc. It requires
>>> either clang or gcc. It also requires a new version of NSPR. I used
>>> latest (4.9.6) .
>>>
>>> Anyway that's good news. Now we need to update configure to handle this
>>> version.
>>>
>>> - benoīt.
>>>
>>> [1] https://developer.mozilla.org/en-US/docs/SpiderMonkey/17
>>
>> Fantastic news Benoit! Thanks for testing this.
>>
>> Wendall

Re: [feedback] mozjs17.0.0

Posted by Benoit Chesneau <bc...@gmail.com>.
This patch seems to be enough but I will let Randall decide:

    diff --git a/configure.ac b/configure.ac
    index 91e2d3d..285ab03 100644
    --- a/configure.ac
    +++ b/configure.ac
    @@ -241,6 +241,7 @@ Are the Mozilla SpiderMonkey headers installed?])
         ])
     ])

    +AC_CHECK_LIB([mozjs-17.0], [JS_NewContext], [JS_LIB_BASE=mozjs-17.0], [
       AC_CHECK_LIB([mozjs185], [JS_NewContext], [JS_LIB_BASE=mozjs185], [
         AC_CHECK_LIB([mozjs185-1.0], [JS_NewContext],
[JS_LIB_BASE=mozjs185-1.0], [
             AC_CHECK_LIB([mozjs], [JS_NewContext], [JS_LIB_BASE=mozjs], [
    @@ -256,6 +257,7 @@ Is the Mozilla SpiderMonkey library installed?])
             ])
         ])
       ])
    +])

     # Figure out what version of SpiderMonkey to use



- benoît

On Thu, Mar 28, 2013 at 4:54 AM, Wendall Cada <we...@apache.org> wrote:
> On 03/27/2013 07:36 PM, Benoit Chesneau wrote:
>>
>> Hi,
>>
>> As promised, I finally had time to test a build of Apache CouchDB
>> using latest stable spidermonkey from Mozilla [1] . For this test I
>> used rcouch which only use the spidermonkey 1.8.5 version of couchjs
>> but the code is similar to the one in Apache CouchDB.
>>
>> All tests are green. It didn't imply any changes in the source code.
>>
>> Some important changes though:
>>
>> This version of spidermonkey can't be built with llvm gcc. It requires
>> either clang or gcc. It also requires a new version of NSPR. I used
>> latest (4.9.6) .
>>
>> Anyway that's good news. Now we need to update configure to handle this
>> version.
>>
>> - benoīt.
>>
>> [1] https://developer.mozilla.org/en-US/docs/SpiderMonkey/17
>
> Fantastic news Benoit! Thanks for testing this.
>
> Wendall

Re: [feedback] mozjs17.0.0

Posted by Wendall Cada <we...@apache.org>.
On 03/27/2013 07:36 PM, Benoit Chesneau wrote:
> Hi,
>
> As promised, I finally had time to test a build of Apache CouchDB
> using latest stable spidermonkey from Mozilla [1] . For this test I
> used rcouch which only use the spidermonkey 1.8.5 version of couchjs
> but the code is similar to the one in Apache CouchDB.
>
> All tests are green. It didn't imply any changes in the source code.
>
> Some important changes though:
>
> This version of spidermonkey can't be built with llvm gcc. It requires
> either clang or gcc. It also requires a new version of NSPR. I used
> latest (4.9.6) .
>
> Anyway that's good news. Now we need to update configure to handle this version.
>
> - benoît.
>
> [1] https://developer.mozilla.org/en-US/docs/SpiderMonkey/17
Fantastic news Benoit! Thanks for testing this.

Wendall