November 05, 2013 Re: Embed JavaScript into D | ||||
---|---|---|---|---|
| ||||
Posted in reply to Max Klyga | On Monday, 4 November 2013 at 22:22:32 UTC, Max Klyga wrote:
> On 2013-11-04 21:20:46 +0000, Adam D. Ruppe said:
>
>> On Monday, 4 November 2013 at 19:35:55 UTC, Jeroen Bollen wrote:
>>> Is there a way I can embed javascript into my D application?
>>
>> You could use any C javascript lib too, but for ones already wrapped or something, I know there's a few D implementations of javascript: dmdscript <http://www.digitalmars.com/dscript/index.html> (written in D1 but there's two or three ports out there to D2)
>
> D1 version is now on github:
> https://github.com/DigitalMars/DMDScript
>
> D2 version:
> http://dsource.org/projects/dmdscript-2/
> pretty sure it will need tweaks to compile with current DMD version
>
> You could rather easyly embed Mozilla Spidermonkey engine, as it provides a C api and D work great with C
I'm probably going with spidermonkey then. Didn't really know it had a C API... Thanks. :P
|
November 05, 2013 Re: Embed JavaScript into D | ||||
---|---|---|---|---|
| ||||
Posted in reply to Jeroen Bollen | On Tuesday, 5 November 2013 at 06:36:48 UTC, Jeroen Bollen wrote:
> I'm probably going with spidermonkey then. Didn't really know it had a C API... Thanks. :P
If your bindings end up being reusable, be sure to post them here so next time someone asks this, I can link to that too!
|
November 05, 2013 Re: Embed JavaScript into D | ||||
---|---|---|---|---|
| ||||
Posted in reply to Jeroen Bollen | On 2013-11-04 20:35, Jeroen Bollen wrote: > Is there a way I can embed javascript into my D application? I basically > want to create a modular application which allows adding and removing > plugins by dragging and dropping them into a folder. I love the idea of > them being editable on the fly. I have some bindings and simple wrappers for Ruby, if that is of interest: https://github.com/jacob-carlborg/orbit/tree/master/ruby -- /Jacob Carlborg |
Copyright © 1999-2021 by the D Language Foundation