On Saturday, 3 June 2017 at 17:30:05 UTC, Jakub Szewczyk wrote:
Mono runtime is a cross-platform, open-source alternative to
Microsoft's .NET framework , and it can be embedded in other
applications as a "scripting" VM, but with JIT-compilation
enhanced performance and support of many languages such as C#,
F# or IronPython .
It provides a C API, so I've bound it to D as a Derelict-based
project, available at https://github.com/kubasz/derelict-mono,
and as a DUB package
(http://code.dlang.org/packages/derelict-mono). It currently
wraps the Mono 5.0 API.
There's also a simple example of calling a C# main from D code,
and C# code calling a native function implemented in D.
PS: Because I don't own a Mac I have no idea what the correct
paths to the Mono shared library are, so it'd be great if
someone could post/create a PR of them.
This is very cool - thank you for doing this. It could prove
Have you thought of/any interest in looking at automatically
generating C# wrapper and bindings for D code? (I'm interested
myself mostly in nested templated structs/arrays rather than
classes). It may not be relevant for you, but if it is please
drop me an email on laeeth
... at kaleidic.io