News for hackers. Stuff that matters.
Re:Cross Platform Development with Mono by gum_ina_package on Monday April 28, 2014 @10:40AM (#7660215)
Interesting to see all the recent activity on HN about cross platform development. Seems like, as far as native code solutions go, C#/.NET is our best bet. As a C# junkie I'm excited about this, but also kinda sad that HTML5 cross platform development never really took off.

Edit: When I said "native code", I meant that Mono allows you to wrap native libraries with greater ease than anything else I've ever encountered.

Re:Cross Platform Development with Mono by JasonFruit on Monday April 28, 2014 @11:24AM (#7660533)
I'm confused — how is C#.NET a "native code solution"? And what makes you say it's "our best bet"? I've been pretty pleased with PyGTK/PyQT cross-platform development, or, for that matter, Free Pascal LCL applications, if you want actual native code; I find them much less touchy to get working across platforms (though that could be just my relative level of experience with them).
Re:Cross Platform Development with Mono by leafartist on Monday April 28, 2014 @11:41AM (#7660679)
Have you tired c#.Net recently?
Re:Cross Platform Development with Mono by JasonFruit on Monday April 28, 2014 @02:10PM (#7661794)
It's been a couple of years; I've been writing for my own satisfaction, and C#, for all its inarguable advantages, is not that much fun.
Re:Cross Platform Development with Mono by adamors on Monday April 28, 2014 @12:15PM (#7660893)
.NET is definitely not our best bet, because once its out of Windows land, the quality falls sharply. Mono is seriously lacking [1] so does Monodevelop etc.

[1] http://mono-project.com/WPF

Re:Cross Platform Development with Mono by Touche on Monday April 28, 2014 @11:28AM (#7660565)
.NET isn't native code.
Re:Cross Platform Development with Mono by cwyers on Monday April 28, 2014 @11:36AM (#7660639)
There are multiple native compilers for .NET. Xamarin uses one for iOS and Android apps (well, in the case of Android, you're compiling to Dalvik bytecode, but it's just as native as any other Android app).
Re:Cross Platform Development with Mono by sochinochi on Monday April 28, 2014 @12:57PM (#7661202)
Xamarin.Android apps do not compile to Dalvik bytecode. Every app ships with MonoVM which runs side-by-side with Dalvik.
Re:Cross Platform Development with Mono by cwyers on Monday April 28, 2014 @01:05PM (#7661255)
Thank you for the correction; I seem to have had Xamarin on Android confused with Xamarin on iOS, which does compile to native code.[1]

1) http://docs.xamarin.com/guides/ios/advanced_topics/limitatio...

Re:Cross Platform Development with Mono by CmonDev on Monday April 28, 2014 @12:56PM (#7661193)
Of course it is not. It's a framework. C# on the other hand can compile to native. This is how it works on iOS.
Re:Cross Platform Development with Mono by visualR on Monday April 28, 2014 @11:34AM (#7660618)
No but you can wrap native UI libraries, the most critical piece that needs to be native. Contrast this with an HTML CSS UI.
Re:Cross Platform Development with Mono by Touche on Monday April 28, 2014 @11:50AM (#7660744)
You can wrap native UI libraries with just about every language in existence. That's not what people usually mean when they say "native" though. I think they mean precompiled to a binary for a specific architecture.
Re:Cross Platform Development with Mono by visualR on Monday April 28, 2014 @11:58AM (#7660793)
yeah you can. The whole native vs non native is about whether the UI is native and directly integrates with the platform, not the language or whether there is a runtime.
Re:Cross Platform Development with Mono by Touche on Monday April 28, 2014 @01:01PM (#7661235)
Err, well the article is about using Mono with GTK, which is not native outside of Gnome.
Re:Cross Platform Development with Mono by visualR on Monday April 28, 2014 @01:16PM (#7661358)
That's why you'd use monomac, mono touch or wpf on osx,iOS and windows, respectively. Xamarin also has a solution for android.
Re:Cross Platform Development with Mono by rplnt on Monday April 28, 2014 @11:08AM (#7660408)
What about Qt? With python, C++, whatever...
Re:Cross Platform Development with Mono by CmonDev on Monday April 28, 2014 @12:57PM (#7661199)
It really does feel like the best bet.