Username or EmailPassword
This is a very nice example of what a FLOSS implementation can bring to the table. Even Microsoft could/should be happy with this. If someone developed an iPhone-native game, it doesn't benefit Microsoft (or Nintendo) at all, while now they do. Additionally, it's relatively cheap for developers to make releases for multiple platforms. And in the end that seems something to strive for: applications that will seamlessly work on all major desktop, mobile, and gaming platforms.
Java and Android seem to be interesting in this respect as well. So, did anyone try creating native code for the iPhone through gcj? (Edit: I know that there could be GPL problems wrt Apple's iPhone policies.) Edited 2009-01-11 11:34 UTC
While I applaud the efforts of the Mono people, they attempts at bringing Microsoft platform technologies to other platforms seems odd as it tries to bring MS's concepts of an operating environment to other platforms.
I mean come on, don't you find it odd that your Mono apps compile to exe and dlls with the need for a Windows like registry on Linux/Mac? Why force MS's concept of an operating environment and application behavior in other OSes?
Java has done a much better job at keeping their platform agnostic of operating environments without having to force a Solaris-like operating environment into other platforms. My Java apps use plists on Macs and registry under Windows as expected by default, the same can't be said of Mono apps.
Don't worry, he is just being ignorant. On porpose.
Ignorant and annoying at the same time? You must be new here.
Mono provides an emulated Windows registry. There is even a tool that allows you to edit it on non-Windows platforms: http://email@example.com/msg21662.htm...
"They have also included a Mono migration analysis tool that will let you know if you are making calls that will work differently under Mono. Some .NET calls that access the Windows API mechanisms or low-level system calls will still work just fine, but the developer needs to keep in mind that the support is emulated or imitation -- it's not actually accessing the underlying mechanism. For example, accessing the registry is possible, but Mono creates a file-backed emulation of the registry and can only provide data that your application has stored in it to begin with. Something like trying to enumerate the NICs in the PC from the registry data will fail because those keys simply do not exist. You can also send the tool's output to Novell to get feedback on it."
don't you find it odd that your Mono apps compile to exe and dlls with the need for a Windows like registry on Linux/Mac?
Yes, that's being ignorant, because the .exe and dlls created by Mono indeed doesn't need the registry, is the for compatiblity for applications exported from windows to linux, is just there by choice and not by "need".
You are not making sense, if the registry is optional then there would be no need to emulate it. Then developers could do without it since running on Mono would require porting anyway. Sheesh! Try running a few ASP.Net apps under Mono then come back and post here!
Also, how about creating standard ELF binaries on Linux instead of the windows PE junk?
Sheesh! Try running a few ASP.Net apps under Mono then come back and post here!
Asp.Net applications use the Web.Config file, not the registry, wow, what an ignorant.
Actually he is partly right, I recall reading the Mono FAQ for ASP.Net warning devevelopers about the common porting problems and the registry was one of them.
Also you need to explicity use App.Config and Web.Config. Its not automatic.
Thanks mate. For a moment there I thought I was alone among all these lamers that were voting this guy up.
wow, you are talking out of your ass already, in windows programming is not mandatory the use of the registry, in my almost 10 yeas of windows programing I've used the registry once, and then I rewrote the same funtion to use local .ini file. So, telling the best aproach for a windows application is to use the registry just show how ignorant you are, you are a vb6 wannabe programmer for Christ sake.
But since you are just the official anti mono troll, what could I spect?
Well, you just said it all, no need for me to reply to his ignorance. You already did a good job.
Hmm, besides the personal attacks any links to MS documentation to prove your so-called expertise? Hmm?
Or are you just as good as blowing hot air as the rest of the .Net developer posers?
You are just ignorance as other people say and your quote proves that. Where in the quote says that you must use registry or so? It seems like Mono guys added emulation to that for completeness sake so to make mono compatible as much as possible. What is the matter with that?
Application settings generated during runtime by a majority of .Net apps are stored in the registry.
The .Net and Mono applicatios work with the App.config file(a XML file that store all the applicaitions settings), it doesn't nee the registry at all, even an amateur would know that.
Please, stop posting already, you are embarazing your self.
You should stop correcting people about things you know nothing about.
The registry is the old school way of doing configuration. App.config is the way that all .net apps are supposed to use. There is an entire namespace devoted to working with these files in System.Configuration. When using the .net configuration APIs, you specify whether you want to do application or user specific changes. If it is user specific, an app.config is generated in that users appdata folder.
You obviously know nothing about .net development, so why in the world would you jump in and correct the OP? I have been doing .net apps for about 3 years now and am very active in the .net open source community, and the only times I every see registry being used is when dealing with a legacy platform (like COM) Edited 2009-01-11 21:50 UTC
WTF? dude, stfu already, what a clueles troll. The app.config file is part of the domain of the application, and since all .NET applications run in a sandbox the .exe and the app.config run in the same domain.
The manifest is just to let know vista that it will need admin. priviledges, but this is in general, even Java apps. would need a manifest for the same porpose, because is a requirement of the OS, and is for all the applications, cross platform or not.
Im really getting tired of your clueless none sense trollish, so please, DON'T TALL ABOUT THINGS YOU DON'T KNOW JUST FOR TROLLING.
Then both of you noobs are welcome to point out to segedunum and me with links from MS documentation, that what you claim is the new way of doing things.
Look at *anything* in all of system.configuration. There are a few hundred classes, all of which have to do with app.config and user.config, not the registry
a google of "configuration .net" would have led you to about 37 million pages all talking about it, again, nothing to do with the registry
If you don't want to wade through millions of blog posts, here is a pretty good tutorial on codeproject, complete with examples on how to use the configuration api. Again, nothing to do with the registry
These links do not state that app.config and user.config are meant replace storage of configuration that is handled by the registry in .Net applications.
I have posted in this thread about those APIs and are nothing new to me. What you still haven't proven is that MS expects .Net developers to use these classes and not the registry! Get it?
This is null and void on a few levels:
If you are really a pro like you fictitiously claim to be then you would provide some links that back your claim. You have yet to explain why you brought up the GAC which has little to nothing to do with the registry.
FYI the configuration files accessible by System.Configuration have the following drawbacks:
"You use one of the Save methods to write configuration information. Note that the user or process that writes must have the following permissions:
* Write permission on the configuration file and directory at the current configuration hierarchy level.
*Read permissions on all the configuration files."
You can refer to this in this MSDN link:
We've had this experience before when attempting to modify the configuration file. But because the user had no permission to write to "Program Files" directory this was not recommended. You cannot assume the user will always be administrator when using your app!
Instead an MVP advised us to use the registry as MS has recommended here:
"This class provides the set of standard root keys found in the registry on machines running Windows. The registry is a storage facility for information about applications, users, and default system settings. For example, applications can use the registry for storing information that needs to be preserved after the application is closed, and access that same information when the application is reloaded. For instance, you can store color preferences, screen locations, or the size of the window. You can control this data for each user by storing the information in a different location in the registry."
Here is the link for that info in the MSDN .Net reference:
If you do not have any legitimate links to back up your so called facts, then you sir are a charlatan.
We've had this experience before when attempting to modify the configuration file. But because the user had no permission to write to "Program Files" directory this was not recommended. You cannot assume the user will always be administrator when using your app!
If a user doens't have priviledge to write to the program files directory then you use a manifest, the manifest will allow to the user to read tge app.config file, you need to do more investigation, or you are a very bad programmer.
"Charlatan" is a spanish word tha mean
something like scammer, I can write some words in spanish too, "Usted señor es un troll ignorante".
Sheesh, I guess you have a lot to learn besides .Net. The word charlatan I've used is an English word:
You are welcome to rebuke my post with actual references to MS documentation to support your claims.
I see you couldn't find anything wrong in what I wrote...
You are welcome to back up your claims with actual references to MS documentation. Until then what you post here is either inaccurate or fraudulent.
Oh, just because I expose you for the charlatan you are I am a fanboy? Try supporting your claims buddy, your blind MS fanboism doesn't bode well you.
The origin of this whole discussion is this ambiguous sentence:
It's actually very hard to access the registry from Java. You need JNI to do that.
Java is a better choice than C# in many ways.
1. Java is a more capable and more portable programming language.
2. Java is Open Source, C# is not.
3. By using C# applications, by programming in C# (especially on platforms other than Windows) you actually help Microsoft dominate the world.
Avoid Mono, Moonlight, Novell and Microsoft and maybe there is still hope for a better world. Edited 2009-01-11 19:57 UTC
How about the closed and patented .Net APIs?
So, firsth the "registry api" and now the API, dude, admit you don't like mono because it comes from a MS idea, nobody will put a gun in your head to use it, and let the people who really know enjoy it.
Those APIs are part of the .Net framework. The contents of those links are real, they are not FUD!
Mono is just an implementation of .NET created by <Microsoft> which is developed on <Windows>. And therefore it is quite sensible that Microsoft implemented classes to access registry to make .NET to cooperate with its native applications. So to make Mono compatible with .NET as much as possible, they better implement anything that Microsoft implemented. There is no big deal. I don't really get what is the problem with you. So do you want a crippled implementation which wouldn't work near 100% because you don't like some part of it? Then why not just fork Mono, remove unwanted stuff from it and use it in your own sake? Not everyone thinks the same way as you do. Please..
Now you are claiming Mono is near 100%? Have you actually even tried to use Mono for development or are you just delusional? Mono has always been implementing an incomplete .Net framework since v1.0.
The following .Net technologies are unsupported and are unlikely to be completed in Mono:
* Windows Presentation Foundation (.NET 3.0).
* Windows Workflow Foundation (.NET 3.0).
* Code Access Security (.NET 1.0).
* System.Management (All Versions)
Read about it here:
I was saying general stuff not Mono specific. And also I meant that dropping a part of it is also sacrificing compatibility. It wasn't the point of my post either. Do you have a kind of problem getting the point? Sacrificing compatibility because you don't want a part of it? doesn't matter other people might need that part of it? Great! not.
I also agree. All those developers and companies which thanks to Mono can now run their desktop and web applications in Linux are just idiots. All those companies which now can take advantage of a free operation system and contribute to it should better stick with Windows and leave us alone.
I do not get this unnecessary demonizing of the Mono community. They do Linux an immense favor by adding such a powerful language and framework to the platform.
I get it, some people are scared/hate Microsoft and proprietary platforms, but this is none of the sort. While I don't agree with Mono implementing patented and proprietary APIs (Outside those Microsoft has extended their OSP to), I do see nothing wrong with providing a clean implementation with OSS platforms built on top (See GTK# and MonoDevelop for awesome results of the Mono team's hard work).
I applaud them for their tireless efforts, and I wish some people could be more open minded.
If you go back to my original post:
I come to this thread expecting a little bit of discussion about Mono being used for cross-platform app development and the obligatory anti-mono trolls who inevitably show up in such threads. Instead I am treated to a half-dozen individuals who are obviously somewhat knowledgable about .Net coding and Mono's implementation of .Net bashing each other left and right arguing about things which only .Net developers even have a clue about.
If it were not for the vitriol I might even think some of what was being said was informative. But alas whatever informative value was burried by deliberate misunderstanding, name calling, and continuous bashing.
I must admit however that this thread went far beyond the normal anti-mono trolling which is par course for such threads. Perhaps the trolls are getting more sophisticated.
Now to try to add something constructive:
Getting upset about .exe and .dlls's, being windows-specific things brought into Linux(and other platforms)-seems on the surface to be really, really silly. The comments about the registry seem to indicate that all platforms supported by mono are "invaded" by the Evil(TM) MS-Windows registry. How preposterous.
The fact is that one of the first and foremost goals of Mono-as stated by Miguel- was to make it easier for windows .Net apps to be ported to other platforms and to offer an attractive alternative to .Net to get .Net devs who hitherto have only written for Windows to write their apps so that via Mono they can become cross-platform. To this end Mono by neccessity must have some number of kludges (taken from Windows) to ease this process-which means taking into account that some .Net devs indeed did use the registry.
This stuff is there for those devs who used that functionality-not because it is necessary, not because Miguel wants to faithfully replicate each and every MS tech in Mono-but because if a .Net dev did use the registry in their app they would not be faced with something completely insurmountable when first attempting to port it to mono. Seems quite reasonable to me. Miguel wants Mono to be an attractive alternative to .Net, Mono has been written with this mind since day one. Some devs will complain that not Mono is not absolutely identitical to .Net. Others will complain that Mono is way too much like .Net (including evil conspiracies of MS to overtake free software). Give me a break- no matter what Mono does some devs are going to be upset-given that the devs encompasses a large population of people comming from remarkably different backgrounds with different goals and different values. Surprise, Surprise.
Adkilla if I understand you correctly you are lamenting at once a) the fact that Mono has implemented a bunch of MS only kludges which have no bearing in a cross platform world and b) the fact that mono has not completely implemented each and every specific .Net tech. To be honest with ou I have no idea how Mono could not be guilty of a) if they do a good job at b). Seems to me like it is a no-win situation for Mono from your perspective. (If I misunderstood you please correct me)
Now how could Mono address your concerns ? If Mono were to become significantly attractive enough to .Net devs in the Windows world(the only place where .Net as such works) that devs were inclined to start coding in Mono and not for MS-exclusive .Net then Mono would have to start addressing a range of issues and could set themselves as the standard-ie. they could develop their own tech for each and every platform they support and apps would be written from the beginning to be cross-platform and only if the app dev only wanted their app to run on one platform (ie. windows) would they then convert their Mono app to the specific MS-exclusive tech in question (ie.registry).
If this were to come to pass then Mono would not contain a bunch of kludges for compatibility with apps written exclusively for Windows. Yet Mono is probably still a long way from attaining this goal-so far away that it is probably completely ridiculous to judge Mono according to it. On Windows Mono is really only an alternative to .Net for those devs and those projects where cross-platform compatibilty is an value-add to said projects. Mono is not a superior .Net implementation for apps written exclusively for windows. There may be some specific point where Mono is superior to .Net on windows, but .Net on windows encompasses much more than Mono. Yet the moment one considers other platforms Mono is the only answer because .Net only exists for windows. This is where Mono encompasses far much more than .Net. Last i remember .Net did not offer me a Gtk# implementation, or a cocoa#, did not offer me POSIX integration etc.
If I was a windows dev who wrote .Net apps exclusively for windows I would find Mono quite deficient-I would lament that this that and the other thing were not completely implemented in Mono and that I had to do a bunch of extra stuff, some quite tedious, to get my app up and running. But then again I would not be the primary target of Mono- it was not written for me. If I were a dev who was tasked to write an app leveraging .Net code for multiple different platforms I would probably be praising Mono from the left and the right and extolling its features -because without Mono it would be impossible to leverage my .Net code in a cross-platform app.
As is the case now-more and more apps are being written for Mono to take .Net cross-platform-for the ever growing number of devs who are writting such apps the superiority of .Net (ie. it's specifc tech which is not present or only partially implemented in Mono) is starting to fade in constrast to the advantages which Mono offers. In time there will be devs who look at .Net and see it as something quite deficient because it is not cross-platform, because it does not tie into other OS'S/toolkits etc. The number of devs who look at things this way now is probably quite small in contrast to the untold legions of .Net programmers programming away in utter oblivion to the existence of anything other than MS. But there are more and more of them each day-and Mono is bootstrapping a small industry -more and more companies leveraging Mono to carve out markets which hitherto simply did not exist.
This article started off by pointing out all of the apps written in Mono which run on the iphone. All I can say is wow-when Miguel started Mono Apple had just released OS X 1.0 and intel-macs were not even being specuated on and noone ever even imagined Apple producing phones. Now these phones from Apple run Mono apps using tech originally written exclusively for windows which have successfully been made cross-platform by Mono. I find that insanely cool. I wonder how many of those who originally created .Net ever thought that their tech would find it's way (via Mono) on Apples then non-existant iphones. Hats off to the Mono guys.
I would be lying to you if I told you I was privy to the rational behind Monos choices regarding exe/dll and S.W.F. Over the years I have seen many bitterly complain about both and these two items have been often cited as reasons against Mono. But from my vantage point I think that harping on these decisions detracts from the concrete benefits that have been realized by the Mono project. In other words: one is left comparing what-if's with the reality at hand-and frankly I do not think the reality at hand is all that bad.
Although far from optimal from the total cross-platform perspective I whole heartedly appreciate the work that was done to create Gtk#/cocoa#. Right now I have at least a dozen applications installed on my machine which make use of Gtk#- good applications which I enjoy using and which provide me with tangible benefits. The availability of Gtk# means that some of the brightest devs who support Linux are using this toolset to create applications which I enjoy using.
To be honest is it really any surprise that Miguel chose to poor more effort into bringing Mono to the GNOME desktop than to focusing on SWF? After all who was it who started the GNOME project ? Right, it was Miguel. Surely you have heard the endless tirade against Miguel because of his having supposedly "sold out" to the Evil(TM) MS world. You cannot make everyone happy: You cannot be everyones friend. With each decision you make you will gain some friends and lose some-such is life.
In Miguels estimation Linux was lacking in a comprehensive framework for rapid application development-he saw Mono as a solution to this problem: bringing the ease of app development of .Net to the Linux GNOME desktop. And for some non-insignificant number of GNOME hackers he was right-they embraced this tech and started making desktop apps which many user enjoy using. Furthermore I believe Mono was instrumental in Vala being so aggresively pursued-a lot of hackers these days do not want to break their heads on code written in C.
Gtk# illustrated an alternative way to create modern Linux desktop apps and if anything spurred more and more devs to invest energy in trying to bring the advantages of the programming styles present in .Net to Linux-and I believe that Vala is but one example of this-not that there is a direct link between Mono and Vala but that both are outlets for programmers wishing to have easier and better tools for creating applications which easens the burden of writing and maintaing applications. There have been calls from all quarters for years for GNOME to adopt a higher level language for app development-the political controversy about licensing pitted Gtk# versus Java, Vala is emerging as a 3rd alternative which has none of this baggage.
That Miguel would have wanted to see the fruits of his labor in creating Mono be available and immediately usable for GNOME hackers is hardly surprising-this is the community he came from, and he and others worked hard at creating a really good implementation of .Net custom-tailored to the Linux GNOME desktop, despite being attacked from the left and right continuously.
To a lesser extent Mono then extended this focus to cocoa#. From what I understand there are now a number of Mac apps written in cocoa#. Both Gtk# and cocoa# are targetting current devs in these respective communities offering them tools which have proven quite valuable to them. When we talk about devs we are talking for the most part about devs who are already committed to one OS/platform-only some of those devs are working on projects which are designed for cross-platform functionality. Cross-platform functionality is frequently an add-on, ie. once the initial app is completed and runs on *a* platform devs wish to extend it to other platforms (ie. google chrome). The number of devs working on projects which from conception are designed to be multi-platform is dwarfed by those working on apps for one platform which are then extended to become cross-platform. Mono made a strategic decision in choosing to focus on Gtk# and cocoa#. The Mono team also is fully cognisant of the conundrum where at once people want multi-platform apps and at the same time constantly bitch and moan about the lack of platform-specific integration(ie. trully multi-platform apps tend to be "at home" nowhere).
From the vantage point of those who wish to see Mono as a purely multi-platform framework surely many are greatly disappointed in Mono. But Mono is an alternative implementation of .Net which at once is custom-tailored to both Linux (via Gtk#) and Mac (via cocoa#) and which on these platform provides very "native" applications(at least this is true for Linux and probably to a lesser extent for Mac-I don't have a Mac so I can't say much about the degree of Mono's success in making itself "native" on Mac) AND at the same time Mono is generic enough to make it cross-platform for a wide range of apps (server(Second Life) and client) on a trully impressive range of platforms (Wii, iphone, Android, Maemo etc.). You could fault them for trying to much, but not for not trying hard enough.
I suspect that the decision against SWF had a bunch of factors. I think Mainsoft and the agreements between Mainsoft and Mono probably played a role in this. It is also possible that there were more patent concerns in this area and that MS had told them not to pursue this. And Miguel and his team have been privy to the planning of .Net far beyond what most .Net devs are and may have seen SWF as being but a short-lived tech which Microsoft itself would be leaving behind( I am not a .Net coder and no remarkably little about all the ins and outs but wasn't Avalon supposed to superced SWF ?-could be totally wrong but IIRC Miguel even mentioned this 2-3 years ago). At any rate I sill question the extent to which Mono could have created a multi-platform GUI which would not have been subject to derision by those who lament platform-specific integration. Java is only now becomming viable in this regard -people have bitched and moaned about Java being alien everywhere for so long-Java was practically forked for SWT to address this issue. Toolkits like Wx have only succeeded in addressing this issue to the extent that they have been successful and from my POV that success has been marginal. Qt seems to have the best cross-platform support-but there are issues there as well (licensing, costs, c++).
As regards the exe/dll: I simply do not see this as being such a big issue. Firstly I suspect if Mono was ever to reach the point that people considered Mono before considering .Net (ie. Mono became the standard) that this could be changed-perhaps it should-but not when the number of Mono developers is dwarfed 100 to 1 by .Net developers. Secondly I have no clue as to what would be involved in creating a format which ran natively (ie. without ilrun and other mechanisms)-is such even doable? Now making Mono target ELF for Linux apps would make a lot of sense-but I suspect that lot of Mono development still takes place in MS Visual Studio-perhaps this plays a role in this decision-I really don't know-but you know I have never cringed seeing a dll file in my file system, and I have not gotten a rash due to seeing exe files. Mono apps are usually started with a bash script -big friggin deal-do you *really* care so much about whether Linux can make use of the RES chunk of the exe/dll file? I just don't get why this is a *deal-breaker*.
I guess my last question is this: you seem to be quite competent in .Net programming- what is preventing *you* from offering your skills to implement the things you so wish to see ? I am not currently an active programmer and I would need to invest an awful lot of time and energy to be able to even be able to code something more than hello-world in c#, but then again I am not lambasting Mono for it's shortcommings -au contraire I thank the Mono team and devs for their work.
The anti-ms fanbois are out today.
Shame that most of this thread has been juvenile name calling and trolling.
I say this because the linked article is talking about some pretty fantastic technology.
All philosophical and licensing debates asside, I've always been impressed with Mono as a technology.
First Microsoft tried to embrace and extend Java directly, by adding their own extensions to their own implementation of Java that tied it to Windows. Sun sued them for that.
So Microsoft then embraced and extended Java by creating their own runtime/language that was very simimilar, but added their own cool goodies. The result was .Net CLR, Assemblies, and C#. No matter what camp you're from, these are simply great technology. And I'm saying that as a big Java/cross platform guy.
But MS did submit the CLI and C# to ECMA for standardization. Door open for someone to take it and run with it.
Enter Miguel and crew, and the creation of Mono. Mono, in my opinion, embraces and extendes MS .Net/C#, by adding cross platform capability, GTK#, and other goodies.
Enter really nice Mono GTK#/Gnome apps like Banshee, F-Spot, Blam, Gnome-Do, and MonoDevelop.
Enter stuff like MainSoft's product that adds ability to run ASP.Net stuff on JEE app servers.
Enter Moonlight, giving the ability to run Silverlight stuff on Linux.
Enter Untity, a Mono based games engine, which is obviously giving the ability to use Mono to build iPhone apps, as well as Wii and Xbox.
Enter Static linking and ahead of time compilation.
All great, great stuff.
And the ability to build apps and games for iPhone using Mono is truly a "killer app" for Mono. Let's face it, iPhone is one of the, if the, fastest growning platforms right now, along with other smart phone environments.
And there is aleady an impressive list of apps written in Mono for the iPhone.
> First Microsoft tried to embrace and extend
> Java directly, by adding their own extensions
> to their own implementation of Java that tied it
> to Windows. Sun sued them for that.
It was proven in a court of law that Microsoft intentionally introduced incompatibilities into their version of Java in an attempt to undermine Java. That's why Sun sued them. It was part of the whole laundry list of anti-trust claims against Microsoft from multiple other companies..
> But MS did submit the CLI and C# to ECMA
> for standardization. Door open for someone to
> take it and run with it.
The problem is that until Microsoft open sources the official .NET implementation, mono is always going to lag seriously behind .Net. And also, keep in mind that only the CLI and C# are standardized. Most of the .Net APIs are not. There are many features in .Net 3.5 for example, that, mono doesn't support, and probably never will. Porting .Net applications to mono often requires a significant amount of changes. And if you don't have the source code for the app, porting may also be impossible.
Mono is an interesting effort, sure. But right now, it comes NO where near the cross-platform capabilities of Java. And until Microsoft open sources the official .Net implementation, I doubt that it will ever compete with Java when it comes to truly cross-platform applications. Edited 2009-01-13 05:39 UTC
Is not nearly as easy as some to think it is. Part of the problem is that mono always lags at least one full version behind the official .NET implementation from Microsoft. Furthermore, there are features of the official .NET implementation (particularly when it comes to GUI stuff) that are not supported in mono, and probably never will be.
Porting .NET apps to mono can be extremely frustrating and often requires major portions of code to be rewritten.