#1 2016-06-24 10:01:04

erayszn
Member
Registered: 2016-06-24
Posts: 6

64 Bit support

There is only 32bit spidermonkey dll in download section. Doesnt mORMot framework supports 64bit? If so, mORMmot servers stuck in 32bit?

Offline

#2 2016-06-24 10:09:18

ab
Administrator
From: France
Registered: 2010-06-21
Posts: 14,655
Website

Re: 64 Bit support

There is no 64 bit version of SpiderMonkey dll by now, you are right.

You may ask user "mpv" for additional info.
http://synopse.info/forum/profile.php?id=630

Offline

#3 2016-06-24 10:25:35

miab3
Member
From: Poland
Registered: 2014-10-01
Posts: 188

Re: 64 Bit support

But in Chromium with (and) V8 already are 64-bit.

Michal

Offline

#4 2016-06-24 11:33:58

erayszn
Member
Registered: 2016-06-24
Posts: 6

Re: 64 Bit support

miab3 wrote:

But in Chromium with (and) V8 already are 64-bit.

Michal

Do you know any wrapper of V8 for Delphi?

Offline

#5 2016-06-24 11:47:26

mpv
Member
From: Ukraine
Registered: 2012-03-24
Posts: 1,571
Website

Re: 64 Bit support

Compiling of SpiderMonkey itself for the x64 is possible, but our main product is x32, so we do not test it for a x64. You can try to compile a SpiderMonkey x64 dll -  instruction is here and test a wrapper for a x64.

It is near to impossible to write a wrapper of V8 for Delphi - V8 is pure C++.  Even more - V8 engine is for single-thread application (with event loop). mORMot is a multithread. In 2013 for example mongoDb try to migrate to V8, but return to SpiderMonkey - you can read this mongoDB blog for a reasons

Last edited by mpv (2016-06-24 11:55:26)

Offline

#6 2016-06-24 12:07:47

miab3
Member
From: Poland
Registered: 2014-10-01
Posts: 188

Re: 64 Bit support

erayszn wrote:
miab3 wrote:

But in Chromium with (and) V8 already are 64-bit.

Michal

Do you know any wrapper of V8 for Delphi?

https://en.wikipedia.org/wiki/Chromium_ … _Framework

Michal

Offline

#7 2016-06-24 12:13:24

mpv
Member
From: Ukraine
Registered: 2012-03-24
Posts: 1,571
Website

Re: 64 Bit support

This is client-side software

Offline

#8 2016-06-24 12:22:22

miab3
Member
From: Poland
Registered: 2014-10-01
Posts: 188

Re: 64 Bit support

mpv wrote:

This is client-side software

What do you mean?
The library is a library,

Michal

Offline

#9 2016-06-24 12:24:30

miab3
Member
From: Poland
Registered: 2014-10-01
Posts: 188

Re: 64 Bit support

Offline

#10 2016-06-24 14:34:16

erayszn
Member
Registered: 2016-06-24
Posts: 6

Re: 64 Bit support

mpv wrote:

This is client-side software

Chromium is a client side software but V8. V8 supports 64, what about SpiderMonkey.
If not, why it is chosen SpiderMonkey againest V8?

mORMot is more like a server software. And 64 support is very important at server side. Am i wrong?

Offline

#11 2016-06-24 14:42:35

Chaa
Member
Registered: 2011-03-26
Posts: 248

Re: 64 Bit support

See http://synopse.info/forum/viewtopic.php?id=1044
There are answers to your questions.

Offline

#12 2016-06-24 16:21:42

erayszn
Member
Registered: 2016-06-24
Posts: 6

Re: 64 Bit support

mpv wrote:

Compiling of SpiderMonkey itself for the x64 is possible, but our main product is x32, so we do not test it for a x64. You can try to compile a SpiderMonkey x64 dll -  instruction is here and test a wrapper for a x64.

It is near to impossible to write a wrapper of V8 for Delphi - V8 is pure C++.  Even more - V8 engine is for single-thread application (with event loop). mORMot is a multithread. In 2013 for example mongoDb try to migrate to V8, but return to SpiderMonkey - you can read this mongoDB blog for a reasons

mpv wrote:

We are working on SpiderMonkey 38 version. But mozilla team decide to migrate from C to C++, so we need to write a huge number of wrappers. Win64 version of SpiderMonkey itself is just for toy, very slow and unoptimized, so no plan to support it. But even with SpiderMonkey 24 you have many ES6 features, arrow function for example. Class suport not implemented in SM release yet.


I ve read in a topic, "64bit SpiderMonkey is slow". Is this why you dont use 64 bit of SpiderMonkey?

Last edited by erayszn (2016-06-27 08:58:09)

Offline

Board footer

Powered by FluxBB