D scripting in D

Stefan Koch via Digitalmars-d-learn digitalmars-d-learn at puremagic.com
Fri Jun 2 11:30:10 PDT 2017


On Friday, 2 June 2017 at 17:50:30 UTC, H. S. Teoh wrote:
> On Fri, Jun 02, 2017 at 05:22:20PM +0000, Stefan Koch via 
> Digitalmars-d-learn wrote:
>> On Friday, 2 June 2017 at 16:13:03 UTC, Laeeth Isharc wrote:
>> > [...]
>> 
>> No there is not.  First it's woefully incomplete and secondly 
>> it's tightly bound to dmd, and it's semantic phases
>
> Hmm. I wonder if there's a way for, say, ldc to export llvm 
> bytecode of a given D program, such that another program can 
> load this bytecode and interpret it at runtime?  Is it possible 
> to use llvm in such a way?
>
>
> T

Yes it is possible but you will be astonished how slow this will 
be.
It is probably more viable run dmd and have it compile into a 
shared library.


More information about the Digitalmars-d-learn mailing list