4

Are there any out there that work with 64 bits? So I can use it along IdHTPP.

Edit: I found SpiderMonkey for Delphi. It supports 64 bit but there is no 64 bit dll provided. "js64.dll" that is.

http://code.google.com/p/delphi-javascript/

Here is the 64 bit build. It works perfect with delphi-javascript

http://depositfiles.com/files/tfryg81ny

10
  • code.google.com/p/delphichromiumembedded ? Commented Nov 8, 2012 at 21:08
  • 1
    It doesn't provide js64.dll, but it doesn't provide js32.dll, either. I think you're supposed to get that from Mozilla (or compile it yourself from Mozilla's code). Commented Nov 8, 2012 at 22:25
  • 2
    It depends on what you are trying to achieve, but I found this recently and from what I have done with it so far it works great. Since Active Script is COM based I guess it doesn't matter about the 32/64 bit issue. I am only on D2010 and don't have 64-bit though. delphihaven.wordpress.com/… Commented Nov 8, 2012 at 22:58
  • @RobKennedy It does provide js32.dll code.google.com/p/delphi-javascript/source/browse/… Thats to bad that support is for 64 bit but no 64 bit dll.. Commented Nov 8, 2012 at 23:23
  • @RobKennedy Yep it must be compiled probably. Would be too hard i think. Commented Nov 8, 2012 at 23:27

4 Answers 4

10

You can try also BESEN which is a ECMAScript/JavaScript Engine written in ObjectPascal itself, without any external DLL libraries.

Sign up to request clarification or add additional context in comments.

1 Comment

Late reaction, but BESEN is an amazing piece of code. I'm even more amazed that one single person has been able to make something of this complexity work at all. Respect!
3

How about TWebBrowser?

Create 64bits Delphi application, drop a TWebBrowser on your form, and run this:

WebBrowser1.OleObject.Document.ParentWindow.execScript('alert("Hello")');

Voila, no extra components needed.


In Action

8 Comments

Yes i was thinking of using this and outputing the results to a 64 bit MySQL so i am not limited by memory there.
By the way, run this to see that it's actually the 64bits engine: WebBrowser1.OleObject.Document.ParentWindow.execScript('alert(navigator.userAgent)');. When you compile to 32bits, this won't show the x64 part.
Problem with IE is its a wrapper. It can't be threaded well very hard. Chrome Embedded would be better to use..
@RichardO'Reilly: yeah that might be better, but it doesn't exist today. Read this: chromium.org/developers/design-documents/64-bit-support
So it can be compiled as 64 bit :) ?
|
3

The mORMot ORM framework has a JavaScript Engine based on SpiderMonkey 45, which means it supports ES2015.

BTW, it also has a Node.js-compatible server-side JS implementation, very cool.


Apr 7, 2017 update: Now the SyNode JS engine included in mORMot is based on SpiderMonkey 52. github commit is here.

Comments

0

There is new Delphi wrapper for Google's V8 JS engine, available since Jun 1, 2016, called v8delphiwrapper

See some example code I demonstrated here.

Great thanks to it's developer @zolagiggszhou!

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.