News for hackers. Stuff that matters.
Re:The future of .NET by Meai on Sunday October 21, 2012 @04:04AM (#4679250)
What it would take for me to consider .NET/C# more often, is easier interop with C. I really like the way Golang does it, I know P/Invoke isn't terribly hard, but it's still messy and you have to muck around with attributes and annotations. In Golang I did some interop by simply pasting lines and names of header files around. That's a lot more convenient than having to decide how to layout a struct, at least that was my impression when I looked into it. Mono documentation is very sparse as well, they basically tell you to just look for the msdn docs, which splits your efforts up and makes you uneasy whether you'll run into Mono specific things. (which there are)
Re:The future of .NET by jstclair on Sunday October 21, 2012 @04:55AM (#4679302)
You raise a good point: is there something like http://pinvoke.net/ for non-windows interop? I know that mono is wrapping things themselves, but on open wiki might help.
Re:The future of .NET by sparkie on Sunday October 21, 2012 @08:25AM (#4679558)
Many open source libraries already have .Net bindings available, a quick search can discover them. They're also packaged into assemblies or made into higher level APIs, which sure beats copy-pasting from a webpage.

There's the [P/Invoke interop assistant](http://clrinterop.codeplex.com/) which can help you create a wrapper for C APIs, and the mono team have created [Cxxi](https://github.com/mono/cxxi), a binding generator for C++ APIs.

Re:The future of .NET by lucajona on Sunday October 21, 2012 @04:32AM (#4679275)
If Go already does C interop easily, what other factors make you want to consider using .NET instead?
Re:The future of .NET by migueldeicaza on Sunday October 21, 2012 @01:08PM (#4680100)
Generics, iterators, functional-style programming, LINQ, asynchronous programming, dynamic, Reflection.Emit are the things that I would miss.
Re:The future of .NET by Meai on Sunday October 21, 2012 @04:57AM (#4679306)
Existing API support, frameworks, libraries and IDE support.