Thread overview
.NET Library In D
Jul 10, 2017
FoxyBrown
Jul 10, 2017
rjframe
Jul 12, 2017
鲜卑拓跋枫
July 10, 2017
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.




July 10, 2017
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?
July 12, 2017
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!