Scientific computing in D

bachmeier via Digitalmars-d digitalmars-d at puremagic.com
Tue Nov 10 12:44:15 PST 2015


On Tuesday, 10 November 2015 at 10:18:14 UTC, Idan Arye wrote:
>> That's what dmdinline does.
>
> From the examples, it seems like it doesn't. It seems like it's 
> compiling D code on the fly, rather than loading pre-compiled 
> libraries as R extensions.

Okay, I see what you're saying. You are correct that the examples 
look like that. That's because it is common in the R community to 
write your C/C++ code inline. It becomes an interactive process, 
and works good for debugging.

You can take the same D functions, insert them in a D file inside 
an R package, include a Makefile, and your D functions become 
part of that package. They'll be compiled when you install the 
package. That way you only compile once.


More information about the Digitalmars-d mailing list