www.digitalmars.com         C & C++   DMDScript  

digitalmars.D - Communication with other languages via wrappers

reply "seany" <seany uni-bonn.de> writes:
I am starting this thread to quench my thirst for knowledge.

I notice, that the existing wrappers to other languages are:

C                : D can natively interface to C
C++              : Some interfacing possible
Lua              : There is LuaD and DLua
Objective C      : This : 
https://michelf.ca/projects/d-objc-bridge/

Would someone like to add some more?
Aug 21 2014
next sibling parent reply Justin Whear <justin economicmodeling.com> writes:
On Thu, 21 Aug 2014 13:20:02 +0000, seany wrote:

 I am starting this thread to quench my thirst for knowledge.
 
 I notice, that the existing wrappers to other languages are:
 
 C                : D can natively interface to C
 C++              : Some interfacing possible
 Lua              : There is LuaD and DLua
 Objective C      : This : 
 https://michelf.ca/projects/d-objc-bridge/
 
 Would someone like to add some more?
PyD: https://bitbucket.org/ariovistus/pyd/wiki/Home
Aug 21 2014
parent Xavier Bigand <flamaros.xavier gmail.com> writes:
Le 21/08/2014 17:19, Justin Whear a écrit :
 On Thu, 21 Aug 2014 13:20:02 +0000, seany wrote:

 I am starting this thread to quench my thirst for knowledge.

 I notice, that the existing wrappers to other languages are:

 C                : D can natively interface to C
 C++              : Some interfacing possible
 Lua              : There is LuaD and DLua
 Objective C      : This :
 https://michelf.ca/projects/d-objc-bridge/

 Would someone like to add some more?
PyD: https://bitbucket.org/ariovistus/pyd/wiki/Home
It seems to be the same as for Lua. Integrating a language VM in a application can really be seen just like if the language used for the application communicate with the one running in the VM?
Sep 03 2014
prev sibling parent reply Xavier Bigand <flamaros.xavier gmail.com> writes:
Le 21/08/2014 15:20, seany a écrit :
 I am starting this thread to quench my thirst for knowledge.

 I notice, that the existing wrappers to other languages are:

 C                : D can natively interface to C
 C++              : Some interfacing possible
 Lua              : There is LuaD and DLua
 Objective C      : This : https://michelf.ca/projects/d-objc-bridge/

 Would someone like to add some more?
As I know LuaD and DLua doesn't allow D to be interfaced with Lua code. LuaD and DLua are wrappers of the Lua library written in C, that not exactly the same thing. So LuaD and DLua help you to make your application extensible throw the Lua scripting language (it replace a plugin system).
Sep 03 2014
parent "Jakob Ovrum" <jakobovrum gmail.com> writes:
On Wednesday, 3 September 2014 at 22:23:48 UTC, Xavier Bigand
wrote:
 Le 21/08/2014 15:20, seany a écrit :
 I am starting this thread to quench my thirst for knowledge.

 I notice, that the existing wrappers to other languages are:

 C                : D can natively interface to C
 C++              : Some interfacing possible
 Lua              : There is LuaD and DLua
 Objective C      : This : 
 https://michelf.ca/projects/d-objc-bridge/

 Would someone like to add some more?
As I know LuaD and DLua doesn't allow D to be interfaced with Lua code. LuaD and DLua are wrappers of the Lua library written in C, that not exactly the same thing. So LuaD and DLua help you to make your application extensible throw the Lua scripting language (it replace a plugin system).
Not entirely sure what you're saying here, but it goes both ways. LuaD also helps you write shared libraries that can be loaded from a Lua application.
Sep 03 2014