writing library in D for Linux and other OSes

2013-02-14 Thread mrkafk
Hello, D (complete) newbie here. Being sick of C/C++ I would like to write my next library in D lang. It seems that wrting Win DLL is easy or perhaps workable at least (http://dlang.org/dll.html ), but what about other OSes, Linux at least? And iOS + OS X? Specifically, I need to write libr

Re: writing library in D for Linux and other OSes

2013-02-14 Thread Martin Nowak
Specifically, I need to write library usable from Python. There's PYD, I know, but in general, if I wanted to call that library from other languages using C interface, how well it works in practice? see "Status of Dynamically Loadable D Libraries" post from http://forum.dlang.org/thread/sixndlza

Re: writing library in D for Linux and other OSes

2013-02-19 Thread mrkafk
Another issue is GC: can I use D's garbage collection (realtime-like performance is not necessary for my needs) in the library and it will "just work" in say Python code? Or not? Hard to say, it depends on the implementation of your language's interpreter and might break at some point (preci

Re: writing library in D for Linux and other OSes

2013-05-19 Thread lomereiter
Hard to say, it depends on the implementation of your language's interpreter and might break at some point (precise collector). Can you please elaborate on this? Recently I tried to make bindings for a D library to use it via FFI. They work just fine with Python 2.7 and PyPy 2.0, but segfaul