crashingdutchman
Posts: 27
Joined: Sat Sep 10, 2011 6:31 pm

Re: Mono project

Tue Sep 13, 2011 10:02 pm

Will mono-project work on the Raspberry Pi?

Svartalf
Posts: 596
Joined: Fri Jul 29, 2011 6:50 pm

Re: Mono project

Tue Sep 13, 2011 10:19 pm

If it will compile on ARM and run in a 128-256Mb memory footprint as provided by the devices- yes.

User avatar
emercer
Posts: 165
Joined: Sun Aug 07, 2011 1:54 am
Location: Sao Paulo, Brazil
Contact: Website

Re: Mono project

Wed Sep 14, 2011 2:31 am

http://www.mono-project.com/Mono:ARM

Mono does, indeed, run on several ARM devices, including Nokia tablets, Android handsets and the iHellhound of Cupertino.

crashingdutchman
Posts: 27
Joined: Sat Sep 10, 2011 6:31 pm

Re: Mono project

Wed Sep 14, 2011 5:41 am

Thanks for the replies.

So, now the questions is: Will Mono work on this specific ARM processor (used in Raspberry Pi)?

I understand that Ubuntu doesn't support the Rpi ARM processor (anymore), so that is why I ask.

jamesh
Raspberry Pi Engineer & Forum Moderator
Raspberry Pi Engineer & Forum Moderator
Posts: 28358
Joined: Sat Jul 30, 2011 7:41 pm

Re: Mono project

Wed Sep 14, 2011 9:13 am

It will need to be tried. I'll put it on my list.
Principal Software Engineer at Raspberry Pi (Trading) Ltd.
Contrary to popular belief, humorous signatures are allowed.
I've been saying "Mucho" to my Spanish friend a lot more lately. It means a lot to him.

crashingdutchman
Posts: 27
Joined: Sat Sep 10, 2011 6:31 pm

Re: Mono project

Wed Sep 14, 2011 9:49 am

That is great, thank you.

I don't necessarily need to have Mono on the Raspberry Pi, but if I can compile a project on my Windows PC or a Linux box and target it to an ARM compatible program that works on Raspberry Pi, then I am happy camper.

eggn1n3
Posts: 106
Joined: Fri Jul 29, 2011 10:36 am

Re: Mono project

Wed Sep 14, 2011 10:07 am

@crashingdutchman: I understand that Ubuntu doesn't support the Rpi ARM processor (anymore), so that is why I ask. Debian still supports ARM.

crashingdutchman
Posts: 27
Joined: Sat Sep 10, 2011 6:31 pm

Re: Mono project

Wed Sep 14, 2011 10:42 am

Thanks, but I think you are missing my point. What I wanted to say was that since (the current) Ubuntu doesn't support the ARM processor used by the Rpi, it could be that Momo doesn't support this processor either.

But, I am not sure if that would be an issue. Anyway, it is on the 'to test' list from jamesh.

eggn1n3
Posts: 106
Joined: Fri Jul 29, 2011 10:36 am

Re: Mono project

Wed Sep 14, 2011 11:23 am

Well, if I understand you correctly, you want Mono for ARM and you think it's only provided by Ubuntu?
Checking Debian, there is a Mono version for ARM:
http://packages.debian.org/len.....e/download
http://packages.debian.org/squ.....e/download
I believe that this Debian version is supported by R-Pi. If not, you might want to compile it yourself.

crashingdutchman
Posts: 27
Joined: Sat Sep 10, 2011 6:31 pm

Re: Mono project

Wed Sep 14, 2011 12:04 pm

No, you don't understand me correctly, but that is probably because I don't describe very well what I want. Sorry, English is not my mother tongue and I have very little knowledge of Linux things...

I will try one more time. What I want to know if Mono can work on the RPi (jamesh is going to test that, some time, so I guess that will answer my question).

when jamesh has done the test, the following is less important: Ubuntu has said that they are not going to support the ARM used by the Raspberry Pi, so now I am wondering if Mono has to support this specific ARM processor too (not only the OS, Debian in this case) to be able to run on Debian.

jamesh
Raspberry Pi Engineer & Forum Moderator
Raspberry Pi Engineer & Forum Moderator
Posts: 28358
Joined: Sat Jul 30, 2011 7:41 pm

Re: Mono project

Wed Sep 14, 2011 1:57 pm

OK, think I understand. You are worried that because Ubuntu no longer support Armv6 builds, that the Mono project may be making the same decisions.

The Mono project and Ubuntu are different projects, so decisions made by Ubuntu are not necessarily reflected by Mono.

As eggn1n3 said, it appears that there is a version of Mono precompiled for Armv6 in the Debian repositories, so I will try that out. I won't have time to try and rebuild the mono project if it is not in the repos.
Principal Software Engineer at Raspberry Pi (Trading) Ltd.
Contrary to popular belief, humorous signatures are allowed.
I've been saying "Mucho" to my Spanish friend a lot more lately. It means a lot to him.

crashingdutchman
Posts: 27
Joined: Sat Sep 10, 2011 6:31 pm

Re: Mono project

Wed Sep 14, 2011 2:34 pm

You understood correctly and thank you for your reply and efforts to test this. It won't be a deal breaker for me if it doesn't work, but if I know it works, I have some time to prepare until Raspberry Pi comes out.

jamesh
Raspberry Pi Engineer & Forum Moderator
Raspberry Pi Engineer & Forum Moderator
Posts: 28358
Joined: Sat Jul 30, 2011 7:41 pm

Re: Mono project

Wed Sep 14, 2011 8:16 pm

OK, tried to install Mono from the Debian repo, but there is no install candidate. I don't have the time to see if it can be rebuilt for Arm I am afraid.

Error is that there is a package called mono referred from another package, but there is no install candidate.
Principal Software Engineer at Raspberry Pi (Trading) Ltd.
Contrary to popular belief, humorous signatures are allowed.
I've been saying "Mucho" to my Spanish friend a lot more lately. It means a lot to him.

crashingdutchman
Posts: 27
Joined: Sat Sep 10, 2011 6:31 pm

Re: Mono project

Wed Sep 14, 2011 8:29 pm

Thank you for taking the time to try this. It's much appreciated. Maybe someone else can try this when RPi comes available. Like I said, I am a Linux noob, so it will take some time for me to try this out.

Since the RPi is mainly designed for educational purposes and learn kids to program, this would have been nice.

Thanks again james

pieter
Posts: 34
Joined: Mon Aug 22, 2011 7:12 am
Contact: Website

Re: Mono project

Mon Sep 26, 2011 9:52 am

I just tried to install mono on my Guruplug (also arm) which is running debian Sid:

apt-get install mono-runtime
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following extra packages will be installed:
binfmt-support cli-common libmono-corlib2.0-cil libmono-i18n-west2.0-cil libmono-posix2.0-cil libmono-security2.0-cil libmono-system2.0-cil mono-2.0-gac mono-gac
Suggested packages:
libmono-i18n2.0-cil libgamin0 libgdiplus libmono-winforms2.0-cil
The following NEW packages will be installed:
binfmt-support cli-common libmono-corlib2.0-cil libmono-i18n-west2.0-cil libmono-posix2.0-cil libmono-security2.0-cil libmono-system2.0-cil mono-2.0-gac mono-gac
mono-runtime

It looks like mono wil be available on the r-pi.

Also from the debian site (http://packages.debian.org/sid.....no-runtime):
Mono currently only supports the X86, PowerPC, ARM, SPARC, S/390, AMD64 and IA64 architectures.

Disclaimer: I'm not very knowledgeable about mono/c#

tufty
Posts: 1456
Joined: Sun Sep 11, 2011 2:32 pm

Re: Mono project

Mon Sep 26, 2011 7:56 pm

Since the RPi is mainly designed for educational purposes and learn kids to program, this would have been nice.
That should be "and teaching kids to program".

As for the "would have been nice" bit, (and, obviously, IMNSHO) Mono is a not-terribly good implementation of one of the few decent things that MS has done recently. The VM underlying C# / .net is actually pretty good, and enables stuff like F# (in the same way that you can implement other programming languages for the JVM as well) as well as being used in some really interesting stuff in cutting edge PL research. However, in "real world" terms, programming on the Mono / .net VMs is almost exclusively done in C# or VB.net; neither of these are much cop as teaching languages, and both of them tend to "tie the student in" to MS technologies. Little better than teaching kids to use Flash and Dreamweaver, IMO.

crashingdutchman
Posts: 27
Joined: Sat Sep 10, 2011 6:31 pm

Re: Mono project

Mon Sep 26, 2011 8:14 pm


That should be "and teaching kids to program".


Thank you, learned something new today. English is not my mother tongue, when (or is it if) you are going to learn Dutch, let me know and I will teach you.

tufty
Posts: 1456
Joined: Sun Sep 11, 2011 2:32 pm

Re: Mono project

Tue Sep 27, 2011 3:48 pm

Quote from crashingdutchman on September 26, 2011, 21:14
English is not my mother tongue, when (or is it if) you are going to learn Dutch, let me know and I will teach you.
Ah, sorry about that. I should have guessed from your name, really. Learning Dutch could be an interesting exercise, but I'm currently working on Italian (Italy's just over the border) and once I have that cracked I might have a shot at Russian (lots of "new money" Russian tourists around here).

Anyway, sorry for being condescending. I should be more careful.

Simon

pepedog
Posts: 1043
Joined: Fri Oct 07, 2011 9:55 am

Re: Mono project

Tue Oct 25, 2011 11:48 am

I am running http://archlinuxarm.com on my rpi
Mono works, compiled and run helloworld basic example

crashingdutchman
Posts: 27
Joined: Sat Sep 10, 2011 6:31 pm

Re: Mono project

Tue Oct 25, 2011 11:50 am

Cool, that is great news!

Thanks for posting this.

User avatar
Beakster
Posts: 29
Joined: Mon Oct 24, 2011 6:03 pm

Re: Mono project

Tue Oct 25, 2011 6:58 pm

However, in "real world" terms, programming on the Mono / .net VMs is almost exclusively done in C# or VB.net; neither of these are much cop as teaching languages, and both of them tend to "tie the student in" to MS technologies. Little better than teaching kids to use Flash and Dreamweaver, IMO.

I'd agree with the above. If you want to teach a popular OO language Java would be a better option for using on the Pi. A lot of what I do in C# uses the Microsoft APIs which are not available in Mono and are closely tied to a Windows environment.

I learned to program in Java on a Pentium3 450MHz with 128MB (a lower spec than the Pi). Java was the language I used for most of my projects in my Computing Science degree, and the language used by the first professional software development job I got after university. When I later decided to jump ship and become a professional developer on the Microsoft platform, learning C#/.net was very easy as all the principles and much of the syntax from Java were the same. So for teaching I think Java offers far more advantages than .net.

Also, as I understand it the ARM processor is able to work with Java byte code directly which should mean it is potentially much faster to run Java code than .net/mono code on a Pi.

obarthelemy
Posts: 1410
Joined: Tue Aug 09, 2011 10:53 pm

Re: Mono project

Tue Oct 25, 2011 10:23 pm

Also, as I understand it the ARM processor is able to work with Java byte code directly which should mean it is potentially much faster to run Java code than .net/mono code on a Pi.

There's an "in theory" missing in there. In practice, that requires licensing Java from Oracle (if I understood well), and that's not on the books for the moment, the Pi people aren't even trying since Oracle's attitude will most certainly be... commercial :-p

User avatar
Jim Manley
Posts: 1600
Joined: Thu Feb 23, 2012 8:41 pm
Location: SillyCon Valley, California, and Powell, Wyoming, USA, plus The Universe
Contact: Website

Re: Mono project

Sat Mar 17, 2012 3:55 am

Oracle isn't as much of an ogre as Larry Ellison is - there are other people there who get to make decisions that are in the best interests of everyone, e.g., MySQL is and always will be free, and even Oracle 11g is free for databases smaller than 1 GB (granted, probably only useful for hobbyists and smaller businesses, but, that's what the R-Pi is all about).  Now that the potential market for R-Pi boards appears to be in the vicinity of something like 400,000 units and climbing, I'd bet that Oracle would be willing to get Java into schools at no charge, especially if people would be volunteering or being paid (for professional teachers) to educate students in Java.

As Apple has shown so successfully when they targeted educational institutions with Apple ][ and Mac systems at hefty discounts, what people learn to use in school can make a customer of them for life.  I happen to know the brother of an Oracle VP for licensing, so, if we need a friend on the inside, we may have at least one, probably many more from their education and government markets (the latter is HUGE).
The best things in life aren't things ... but, a Pi comes pretty darned close! :D
"Education is not the filling of a pail, but the lighting of a fire." -- W.B. Yeats
In theory, theory & practice are the same - in practice, they aren't!!!

danielclegg
Posts: 1
Joined: Fri Apr 13, 2012 6:09 pm
Contact: Website

Re: Mono project

Fri Apr 13, 2012 7:22 pm

I think you underestimate C# as modern language, its up to version 4.0 with 5.0 due in a few months time, but since version 2.0 the language has become very advanced. It now has generics, lambda functions, dynamic functions, LINQ, out of the box parallel programming, yield and due in 5.0 OTB async methods and compiler API's, allowing code access to the compiler itself. Not too shabby IMHO. Mono is currently upto version 4.0.

@Beakster Just interested what do you develop that needs Windows API calls, personally I've found as .Net matured that I've had to use less and less Windows API's till present I haven't had to use any in that last 3-4 years.

jools
Posts: 24
Joined: Sun Feb 19, 2012 9:47 pm

Re: Mono project

Fri May 25, 2012 7:54 pm

I don't know about VB .Net because I don't use it, but I think that C#'s introduction of generics, anonymous functions and lambdas have made it very elegant indeed. I don't agree that it is reliant on Microsoft API calls -that was true of the old VB and C++ Visual Studio, but not now.

Return to “Staffroom, classroom and projects”