www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.announce - Dynamic loading of D modules

reply Steve Teale <steve.teale britseyeview.com> writes:
If you want something along the lines of DDL, but for D2.x and Phobos, please
check out http://www.britseyeview.com/dml/.

Very much work in progress.
Mar 31 2009
next sibling parent Tim Matthews <tim.matthews7 gmail.com> writes:
On Tue, 31 Mar 2009 13:45:08 -0400
Steve Teale <steve.teale britseyeview.com> wrote:

 If you want something along the lines of DDL, but for D2.x and
 Phobos, please check out http://www.britseyeview.com/dml/.
 
 Very much work in progress.
 
Interesting. I really liked ddl so good to see it being kept alive.
Apr 01 2009
prev sibling parent "Unknown W. Brackets" <unknown simplemachines.org> writes:
Steve,

This is very interesting, and pertinent to things I want to do with D.

I notice you talk about removing all but OMF support.  OMF is typically 
used on Windows-only.  To support Linux, it may be necessary to support 
Linux (it may not, but then you *cannot* use any functions not defined 
in phobos .o's, afaik.)

Also, it strikes me that the example seems needlessly long (why no 
exceptions for failures, they seem like something you wouldn't expect?)

How interested are you in getting this working on Linux?

Also, from your documentation, getting around (5) on the OS level is the 
right way (elsewise you will run into the NX bit)... for Windows, I 
think the right way is to VirtualAlloc() it, then write to it, then 
VirtualProtect() it so it's now executable but not writable anymore.

http://msdn.microsoft.com/en-us/library/aa366553.aspx

On Linux, it's done with mprotect() and PROT_EXEC afaik.  Basically the 
same idea.

-[Unknown]


Steve Teale wrote:
 If you want something along the lines of DDL, but for D2.x and Phobos, please
check out http://www.britseyeview.com/dml/.
 
 Very much work in progress.
 
Apr 26 2009