www.digitalmars.com         C & C++   DMDScript  

digitalmars.D - .NET Library In D

reply FoxyBrown <Foxy Brown.IPT> writes:
I was able to get my C# to D convert to convert about 25% of the 
.net library v4.6

It converts the following libs:

// System.CodeDom
// System.CodeDom.Compiler
// System.Collections.Concurrent
// System.Collections.Generic
// System.Collections.ObjectModel
// System.Collections.Specialized
// System.ComponentModel
// System.ComponentModel.Design
// System.ComponentModel.Design.Serialization
// System.Configuration
// System.Configuration.Internal
// System.Diagnostics
// System.Diagnostics.CodeAnalysis
// System.IO
// System.IO.Compression
// System.IO.Ports
// System.Media
// System.Timers
// System.Text.RegularExpressions

Not all code works depending on the specific but 90%+ does.

The goal is that, one day, we can effectively replace the phobos 
with .NET semantics if we want. It, being a nicer library, and 
all the source code available through reflection, makes it a nice 
target.  While the source code cannot be distributed, the 
recompiler can. In C# maps to D farily well, it is not a 
difficult ask.
Jul 10
next sibling parent rjframe <dlang ryanjframe.com> writes:
On Mon, 10 Jul 2017 21:36:05 +0000, FoxyBrown wrote:

 The goal is that, one day, we can effectively replace the phobos with
 .NET semantics if we want. It, being a nicer library, and all the source
 code available through reflection, makes it a nice target.  While the
 source code cannot be distributed, the recompiler can. In C# maps to D
 farily well, it is not a difficult ask.
Mono is mostly MIT, so could be redistributed (they haven't developed the full framework, but the common stuff works). https://github.com/mono/mono/tree/master/mcs/class This would be very helpful for porting libraries from .NET; do you have a public repository?
Jul 10
prev sibling parent =?UTF-8?B?6bKc5Y2R5ouT6LeL5p6r?= <hkli2012 126.com> writes:
On Monday, 10 July 2017 at 21:36:05 UTC, FoxyBrown wrote:
 I was able to get my C# to D convert to convert about 25% of 
 the .net library v4.6

 [...]
Would you please publish your C# to D converter? I really need it!
Jul 12