News for hackers. Stuff that matters.
Re:Mono for Android released with Visual Studio 2010 integra... by bradhe on Wednesday April 06, 2011 @01:51PM (#2416089)
Hmm, mono is a really curious thing to me. Maybe someone can explain this to me: Why doesn't MS commit to it?

One of the tenets of .NET was that it was to be platform-agnostic a la JVM but the story seems to be that they just didn't...get around...to implementing a Linux or Mac stack for various reasons (tight coupling to Win32 and existing COM servers, maybe?).

Now, Mono is reaching a state of extreme maturity. Why doesn't MS invest in this? It seems like their best way forward is dropping their single-vendor-stack mantra? Or perhaps they don't need to do so strategically yet -- once people really start demanding *nix and mac support they can "suddenly" change heart on mono?? This confuses me...but I'm not much of a strategist.

Re:Mono for Android released with Visual Studio 2010 integra... by jimmyjazz14 on Wednesday April 06, 2011 @01:53PM (#2416111)
They promised not to sue them, thats something I guess.
Re:Mono for Android released with Visual Studio 2010 integra... by rbanffy on Wednesday April 06, 2011 @04:13PM (#2416772)
I always wonder how binding that promise is.
Re:Mono for Android released with Visual Studio 2010 integra... by jimmyjazz14 on Wednesday April 06, 2011 @04:23PM (#2416814)
legally binding actually.
Re:Mono for Android released with Visual Studio 2010 integra... by rbanffy on Wednesday April 06, 2011 @04:33PM (#2416847)
Any restrictions in the promise? Does it cover all of Mono or just some parts? Does it cover all of .NET or just a subset? Does it impose any restrictions on what you do with the technology, what products you can build with it?
Re:Mono for Android released with Visual Studio 2010 integra... by viraptor on Wednesday April 06, 2011 @07:42PM (#2417512)
Here's the text with full list of covered technologies. http://www.microsoft.com/interop/cp/default.mspx It's not the same as the Novell deal which happened before the promise.

In short it's - as long as you conform to the specs, you're ok (no limits). On the other hand "Partial implementations are not covered.", so in practice anything could be argued here ;)

Re:Mono for Android released with Visual Studio 2010 integra... by rbanffy on Thursday April 07, 2011 @09:06AM (#2419289)
Does it covers supersets of the spec? I understand not all of the .NET platform is part of a formal standard.
Re:Mono for Android released with Visual Studio 2010 integra... by krakensden on Wednesday April 06, 2011 @04:46PM (#2416886)
It only covers Novell and its customers, IIRC.
Re:Mono for Android released with Visual Studio 2010 integra... by SeveredCross on Thursday April 07, 2011 @01:07AM (#2418272)
Actually, it covers all implementors (the community promise does, that is).
Re:Mono for Android released with Visual Studio 2010 integra... by tedunangst on Wednesday April 06, 2011 @04:21PM (#2416807)
.NET is platform agnostic, MS makes one implementation. This is actually rather like the JVM. While most people are familiar with the implementation that does run on multiple desktop platforms, there are other implementations out there (android being an obvious one, blackberry's another, IBM has several).

Anyone wishing to run .NET code can write a VM for it (like mono). As hard as this sounds, it's still easier than reverse engineering all of MFC (like wine).

Re:Mono for Android released with Visual Studio 2010 integra... by bradhe on Wednesday April 06, 2011 @05:39PM (#2417095)
Yeah, what I was trying to get at was I thought the expectation was that MS would produce/maintain them.
Re:Mono for Android released with Visual Studio 2010 integra... by pero on Wednesday April 06, 2011 @02:07PM (#2416182)
I think you were looking for tenets--quotes not necessary.
Re:Mono for Android released with Visual Studio 2010 integra... by bradhe on Wednesday April 06, 2011 @02:12PM (#2416201)
thanks, corrected.
Re:Mono for Android released with Visual Studio 2010 integra... by leon_ on Thursday April 07, 2011 @02:07AM (#2418409)
> Why doesn't MS commit to it?

Because MS can't sell overpriced linux licenses to mid tier businesses?

Re:Mono for Android released with Visual Studio 2010 integra... by dman on Thursday April 07, 2011 @02:15AM (#2418425)
Actually Microsoft has done that in the past!! - http://www.crn.com/blogs-op-ed/the-chart/208402155/microsoft...

Funnily enough I was a Novell shareholder back then. From what I remember the Microsoft sales team outsold the Novell sales team on Novell sales licenses.

Re:Mono for Android released with Visual Studio 2010 integra... by daniel_solano on Wednesday April 06, 2011 @02:24PM (#2416263)
For a free and open source effort, check out https://github.com/koush/androidmono. I just came across this and have not used it, but it looks promising.
Re:Mono for Android released with Visual Studio 2010 integra... by koushd on Wednesday April 06, 2011 @02:41PM (#2416343)
Hey, I'm the creator of said project. I started that 2-3 years ago, but abandoned it once I heard of Mono for Android officially being supported :)
Re:Mono for Android released with Visual Studio 2010 integra... by HardyLeung on Wednesday April 06, 2011 @03:10PM (#2416477)
I wish you didn't.
Re:Mono for Android released with Visual Studio 2010 integra... by jhack on Wednesday April 06, 2011 @10:24PM (#2417922)
That's too bad. I really like the idea but not at $400.
Re:Mono for Android released with Visual Studio 2010 integra... by ericHosick on Wednesday April 06, 2011 @01:58PM (#2416133)
I develop on a Mac using Mono and MonoDevelop. I just want to say I greatly appreciate all of the work that has gone into Mono and MonoDevelop. Thank you. :-)
Re:Mono for Android released with Visual Studio 2010 integra... by pmjordan on Wednesday April 06, 2011 @02:47PM (#2416378)
Do you use MonoMac? If so: I'm currently looking into that, but the mailing list (mono-osx) seems pretty dead, with lots of unanswered questions (including mine). Is there a better place to ask questions? I'm a little concerned about building on a platform with minimal community support.
Re:Mono for Android released with Visual Studio 2010 integra... by ericHosick on Thursday April 07, 2011 @07:37AM (#2419071)
Yes. I am using MonoMac and I also watch that mailing list. There are quite a few objective-c bridge solutions and I looked into most of them. MonoMac seemed to be the one that made most sense but mostly because some source code of MonoMac is shared with MonoTouch (or visa-versa). So, I think MonoMac is a stable/good choice for that reason. In the end, I was much happier with Carbon but that is another story.
Re:Mono for Android released with Visual Studio 2010 integra... by jasongullickson on Wednesday April 06, 2011 @02:31PM (#2416304)
Out of curiosity, can you use MonoDevelop as a direct alternative to Visual Studio?
Re:Mono for Android released with Visual Studio 2010 integra... by Jarred on Wednesday April 06, 2011 @05:24PM (#2417039)
To my knowledge it's primary use is for people using platforms other than Windows for Mono/.NET development. If you don't have the Mono runtime installed on Windows and you have MonoDevelop installed it will by default compile with the C# .NET compiler. Banshee (Ubuntu's default media player) is most likely coded using MonoDevelop, as it uses C# with GTK#

I've used MonoDevelop, and it's okay, but Visual Studio is way more convenient to code in.

They need to focus on making nicer development tools though, especially with UI Design. Expression Blend/Web and Visual Studio are still the best way to go with designing any user interface (in my opinion)

Re:Mono for Android released with Visual Studio 2010 integra... by hanifvirani on Wednesday April 06, 2011 @02:07PM (#2416179)
Looks like there is no free version and the single developer license costs about 400$. That is going to be a big hurdle to get the casual indie developers interested.
Re:Mono for Android released with Visual Studio 2010 integra... by markkanof on Wednesday April 06, 2011 @05:32PM (#2417072)
I'm not sure the casual indie developer is their target market. Microsoft has always been strong in the enterprise market, thus a tool (Mono) that allows developers to write for Android while staying in the Microsoft ecosystem will probably have huge appeal for large enterprise development groups. Those kind of users usually don't have an issue with a tool priced under say $1000.

I'm certainly not saying that no indie developers use Microsoft tool, because they do. And sure, it would be great if there was a free open source version of this tool available. But I suspect there is a nice market for these tools that has deep enough pockets to pay the licensing fees.

Re:Mono for Android released with Visual Studio 2010 integra... by hanifvirani on Wednesday April 06, 2011 @06:02PM (#2417187)
I certainly agree with you, and I didn't imply that their target market is casual indie developers. Surely they are targeting enterprise here. But I am guessing that indie developers itself is a huge market and say if they went with a single developer license costing somewhere like 30$, they would surely be boosting sales.
Re:Mono for Android released with Visual Studio 2010 integra... by danieldk on Wednesday April 06, 2011 @03:01PM (#2416438)
True, it would be nice if there was a non-commercial license. On the other hand, if you want to make a serious income with applications, spending $400 on a good development tool is not a huge investment (in the West).
Re:Mono for Android released with Visual Studio 2010 integra... by benologist on Wednesday April 06, 2011 @04:45PM (#2416881)
There's still AIR / Flash on Android with some great tools like http://flashdevelop.org/ available you can build with, and of course JavaScript which is pretty ubiquitous amongst devs these days.
Re:Mono for Android released with Visual Studio 2010 integra... by jimmyjazz14 on Wednesday April 06, 2011 @03:32PM (#2416571)
Yeah I gotta say the pricing is pretty disappointing especially since I was kinda expecting it might be free and open source.
Re:Mono for Android released with Visual Studio 2010 integra... by joe_the_user on Thursday April 07, 2011 @12:45AM (#2418225)
Indeed...

I spent a five minutes looking for any small-text link to the source code - doesn't mean they aren't there. But...

Uh can someone "explain" how, exactly, there's no free version of this hypothetically free software?

???

Mono's had a dubious reputation

Re:Mono for Android released with Visual Studio 2010 integra... by pmjordan on Thursday April 07, 2011 @05:55AM (#2418908)
Mono is available under the MIT license, which permits proprietary forks. Their versions for game consoles are also proprietary, and have been so for years.
Re:Mono for Android released with Visual Studio 2010 integra... by jimmyjazz14 on Wednesday April 06, 2011 @01:52PM (#2416098)
So is the paid version the only way to go here? Since everything else in the Mono world is mostly free and open source I was hoping for the same with the mobile versions.
Re:Mono for Android released with Visual Studio 2010 integra... by tedunangst on Wednesday April 06, 2011 @04:23PM (#2416813)
The direct equivalent for iphone http://monotouch.net/ is not free either.
Re:Mono for Android released with Visual Studio 2010 integra... by th0ma5 on Wednesday April 06, 2011 @02:03PM (#2416158)
yes this is my question too... was a pisser for me when i wanted to try the ios mono stuff, but alas
Re:Mono for Android released with Visual Studio 2010 integra... by Killah911 on Wednesday April 06, 2011 @03:02PM (#2416447)
I've got yet another .NET shop, and have been meaning to break into mobile market(beside WP7, I know). Trying to weigh the benefits of going native (i.e. learning/hiring iOS/Java) vs using something like mono & present talent. Feedback would be greatly appreciated :)
Re:Mono for Android released with Visual Studio 2010 integra... by glhaynes on Wednesday April 06, 2011 @03:32PM (#2416575)
My first thought would be that going from C# to Java or ObjC shouldn't be too difficult for decent programmers - that that's maybe 20% of the needed effort, tops. The "hard part" is learning the frameworks and patterns of the new platform. Additionally, not being able to directly use/learn from sample code (from the platform vendor or free on the net) is a significant downside.
Re:Mono for Android released with Visual Studio 2010 integra... by loire280 on Wednesday April 06, 2011 @05:01PM (#2416943)
This has been my experience learning to program the iPhone. A few hours reading "Objective-C Phrasebook" by David Chisnall got me enough Objective-C to be comfortable with the syntax and understand some basic patterns. It took weeks of reading and experimenting before I felt like I wasn't cargo-culting the framework parts.
Re:Mono for Android released with Visual Studio 2010 integra... by Glide on Wednesday April 06, 2011 @04:36PM (#2416858)
I'll just add that lot of iOS libraries out there have instructions like "copy the files into your project" in order to use the library. It might be difficult to use those projects in mono based iOS projects.
Re:Mono for Android released with Visual Studio 2010 integra... by Killah911 on Thursday April 07, 2011 @03:48PM (#2420952)
Thanks, I'll invest in the books instead :)
Re:Mono for Android released with Visual Studio 2010 integra... by victorantos on Wednesday April 06, 2011 @03:43PM (#2416624)
ok, I've just run my first android app. it took me about 1.5 hours to download/install everthing Emulator is really slow, it took me ages first run in Debug mode and the UI response time is bad so far http://flic.kr/p/9wsYQ8

so back to WP7?

Re:Mono for Android released with Visual Studio 2010 integra... by ryanhuff on Wednesday April 06, 2011 @05:34PM (#2417080)
In my experience, the Android emulator is slow when coding with the standard Android tools (Java, Eclipse, etc). So I wouldn't say that a slow emulator is necessarily a result of using Mono.
Re:Mono for Android released with Visual Studio 2010 integra... by snewman on Wednesday April 06, 2011 @06:55PM (#2417344)
Yes, the Android emulator is quite slow. I generally find it much better to test on an actual Android device. With the standard Eclipse-based tools, at least, the build + push to phone + launch cycle is fast enough to be quite usable for development. Note, running on an actual phone is still slow (though faster than the emulator) if you run from Eclipse in Debug mode, so for full performance make sure to run in non-debugging mode (use "Run", not "Debug", from Eclipse). Presumably the Mono tools have an equivalent distinction.
Re:Mono for Android released with Visual Studio 2010 integra... by MatthewPhillips on Wednesday April 06, 2011 @02:21PM (#2416250)
There are few differences between Java and C#. There are even fewer differences between this and Android (java) development.

This Hello World is virtually identical to an Android hello world.

http://mono-android.net/Tutorials/Hello_World

Re:Mono for Android released with Visual Studio 2010 integra... by pmjordan on Wednesday April 06, 2011 @02:59PM (#2416427)
There are few differences between Java and C#.

I'd say that was true in the .NET 1.1 days, but really doesn't apply anymore nowadays. The C# language's feature set has expanded much faster than Java's, which alone drives up the number of differences. There is a kind of "why would you want this" undertone to your comment - to address that: I feel there are fewer mistakes in C#'s design (generics...) than in Java's. I'd als say C# is significantly more expressive than Java at this stage. (of course, there are other languages for both runtimes)

Re:Mono for Android released with Visual Studio 2010 integra... by MatthewPhillips on Wednesday April 06, 2011 @03:37PM (#2416597)
Java has generics too. But I agree that C# has expanded faster (though expansion isn't necessarily good). I'm not sure that you get any of that by using this framework though. It seems to be near one-to-one translation of the java classes and methods. Sure you can do lambas, but can you use Parallel? I doubt it. LINQ to Sql? Doesn't look like it, the docs use Cursors, like in the Java Android.

It's $400 to have your braces line up.

Re:Mono for Android released with Visual Studio 2010 integra... by pmjordan on Wednesday April 06, 2011 @03:50PM (#2416660)
Java has generics too.

Yeah, unfortunately they're implemented via type erasure, unlike in C#, where they're actually part of the type system (for example, since C# 4.0 generics can be covariant and/or contravariant on the type parameters).

Re:Mono for Android released with Visual Studio 2010 integra... by InclinedPlane on Wednesday April 06, 2011 @08:09PM (#2417603)
Yeah, Java doesn't really have generics. Java has syntactic sugar which provides a good portion of the benefit of generics. But type erasure is not the same thing as generics.
Re:Mono for Android released with Visual Studio 2010 integra... by pmjordan on Thursday April 07, 2011 @05:52AM (#2418898)
Indeed. Unfortunately, that didn't stop them from calling them generics. This choice also pretty much blew the chance of properly integrating true generics into the type system later for backwards compatibility reasons. Well, there's always Scala I suppose.
Re:Mono for Android released with Visual Studio 2010 integra... by viraptor on Wednesday April 06, 2011 @07:48PM (#2417532)
They're just reusing existing API, which seems like an obvious step for a start. The features are there, so if you actually want to write your LINQ layer on top of whatever storage is available, you should be able to do so.
Re:Mono for Android released with Visual Studio 2010 integra... by flipdeadshot on Wednesday April 06, 2011 @04:46PM (#2416883)
This is idiotic, you have no idea what you're talking about.
Re:Mono for Android released with Visual Studio 2010 integra... by deskamess on Wednesday April 06, 2011 @03:06PM (#2416467)
I read through the Architecture doc and it explains how they do it. However I cannot get an idea of how large the mono runtime on Android would be. Any ideas?

For small apps, the runtime could be the largest part of the app since the 'callable wrappers' are just proxying calls to the app.

Re:Mono for Android released with Visual Studio 2010 integra... by ohhnoodont on Wednesday April 06, 2011 @03:41PM (#2416611)
It's not small. There are actually two runtimes installed, one is 18 MB and the other is 12.25MB (over 30MB required).

I've been using the monodroid developer preview for a few weeks. When I started, the runtime could only be installed to internal storage. This was one of the biggest challenges when trying to use it. Hopefully that has changed now.

Re:Mono for Android released with Visual Studio 2010 integra... by deskamess on Wednesday April 06, 2011 @04:23PM (#2416811)
Thanks for the response.

30M - wow! Well, at least shared runtimes are possible per their release/roadmap document. Hopefully future runtimes will be backward compatible so that it can 'update over' instead of install side-by-side.

Re:Mono for Android released with Visual Studio 2010 integra... by sapper2 on Wednesday April 06, 2011 @01:37PM (#2416038)
As a C# developer this is great news for me. Finally, I can join the mobile crowd.
Re:Mono for Android released with Visual Studio 2010 integra... by allwein on Wednesday April 06, 2011 @02:24PM (#2416266)
I'm already developing natively for iPhone and Windows Phone 7. I hate Java with a passion, so this is probably the only way I'd ever get around to working on Android apps.
Re:Mono for Android released with Visual Studio 2010 integra... by bradhe on Wednesday April 06, 2011 @01:46PM (#2416077)
Join the mobile crowd? What about WP7?

/sarcasm

Re:Mono for Android released with Visual Studio 2010 integra... by binarycheese on Wednesday April 06, 2011 @01:55PM (#2416123)
WP7 requires Windows 7 and a lot of us are still developing on XP
Re:Mono for Android released with Visual Studio 2010 integra... by bradhe on Wednesday April 06, 2011 @02:01PM (#2416149)
What really? Why?

Edit: Why am I getting downvoted for this? Someone give me a legit reason as to why you'd choose a 10-year-old, nearly obsolete OS over an industry-leading one.

Re:Mono for Android released with Visual Studio 2010 integra... by victorantos on Wednesday April 06, 2011 @02:44PM (#2416365)
windows 7 is the best OS, devs that are using XP are not real devs
Re:Mono for Android released with Visual Studio 2010 integra... by bradhe on Wednesday April 06, 2011 @02:59PM (#2416428)
I wouldn't go that far but I would definitely say that if you're on XP you're being quite short-sighted.
Re:Mono for Android released with Visual Studio 2010 integra... by arrogant on Wednesday April 06, 2011 @03:30PM (#2416564)
I think the point here is that the developers themselves aren't generally the ones that are choosing to use XP: they're stuck on the platform that the IT department supports. Getting upgrades can be challenging, especially in a large corporate environment.
Re:Mono for Android released with Visual Studio 2010 integra... by HockeyBiasDotCo on Wednesday April 06, 2011 @03:51PM (#2416663)
Indeed. That is the case in many places throughout the Twin Cities and I doubt it is unique to this region.
Re:Mono for Android released with Visual Studio 2010 integra... by HockeyBiasDotCo on Wednesday April 06, 2011 @03:00PM (#2416432)
I disagree. Many large corps. still use XP. There thousands of 'real devs' using XP.
Re:Mono for Android released with Visual Studio 2010 integra... by rbanffy on Wednesday April 06, 2011 @04:18PM (#2416796)
But if their job requires them to develop for WP7 then it's easy to procure a second Win 7 PC.

Back in 2002 I had two PCs on my desk. One I had Administrator access and where I could run Visual C++ and the Windows CE toolchain hooked up to a prototype voting ballot and the other that was connected to the corporate network where I could read e-mail.

At the time, of course, both ran the same OS, but I gather it's more or less the same idea.

If WP7 is his hobby, I assume using Windows 7 is not a big deal.

Re:Mono for Android released with Visual Studio 2010 integra... by nigelsampson on Wednesday April 06, 2011 @05:25PM (#2417042)
The development tools require either Vista or Windows 7 as per the release notes http://download.microsoft.com/download/1/7/7/177D6AF8-17FA-4...
Re:Mono for Android released with Visual Studio 2010 integra... by intellectronica on Wednesday April 06, 2011 @04:49PM (#2416899)
If you can use IronPython to build these apps this may be the first complete Python environment for Android, and that's huge.
Re:Mono for Android released with Visual Studio 2010 integra... by hiena03 on Wednesday April 06, 2011 @04:58PM (#2416933)
This says in limitations: "Android callable wrappers are needed any time the Android runtime needs to invoke managed code. Android callable wrappers are generated at compile time by the monodroid.exe tool, based on static analysis of IL. The net result of this: you cannot use dynamic languages (IronPython, IronRuby, etc.) in any scenario where subclassing of Java types is required (including indirect subclassing), as there's no way of extracting these dynamic types at compile time to generate the necessary Android callable wrappers."
Re:Mono for Android released with Visual Studio 2010 integra... by maheshs on Wednesday April 06, 2011 @01:54PM (#2416120)
Is there any develop on mono for android? Please share couple of example if any?

It will give me confidence about developing apps through this.

Re:Mono for Android released with Visual Studio 2010 integra... by th0ma5 on Wednesday April 06, 2011 @01:48PM (#2416085)
There is no open source version?