A few notes on choosing between Go and D for a quick project

John Colvin via Digitalmars-d digitalmars-d at puremagic.com
Thu Mar 19 04:53:21 PDT 2015


On Wednesday, 18 March 2015 at 01:52:00 UTC, Laeeth Isharc wrote:
> On Tuesday, 17 March 2015 at 21:00:11 UTC, bachmeier wrote:
>> On Tuesday, 17 March 2015 at 19:00:06 UTC, jmh530 wrote:
>>> In addition, further development of the ability to call D 
>>> from R or Python* or Julia (or vice-versa) would also be a 
>>> positive.
>>
>> What do you have in mind? I no longer work much with Python so 
>> my knowledge is limited, but calling D from R or Julia should 
>> be no different from calling C from those languages, as you 
>> normally compile your C code into a shared library anyway.
>>
>> I've done the R->D thing many times and in the process have 
>> worked with a big chunk of the R API. Things like allocating R 
>> data structures from a D function, adding assertions to your D 
>> code to allow for an easy exit when things don't work out, and 
>> calling functions in the R math library, among other things, 
>> are not difficult.
>
> (I wonder how well cython works with interfacing with D via the 
> C++ interface, because that way you could extend python with D 
> classes and have them be faster than going through PyD).

This is a good idea. dtoh could speed up this workflow, see 
https://github.com/adamdruppe/dtoh/blob/master/dtoh.d and 
http://forum.dlang.org/post/uyuwdptkpukshxzygqpn@forum.dlang.org


More information about the Digitalmars-d mailing list