faq 47 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234
  1. <a href="#basics">Basics</a><br>
  2. <a href="#ximian">The Ximian Role in the Mono project</a><br>
  3. <a href="#gnome">Mono and GNOME</a><br>
  4. <a href="#gui">Building GUI applications with Mono</a><br>
  5. <a href="#msft">Mono and Microsoft</a><br>
  6. <a href="#platforms">Mono platforms</a><br>
  7. <a href="#pnpproject">Mono and the Portable.NET Project</a><br>
  8. <a href="#webservices">Web Services</a><br>
  9. <a href="#asp">Mono and ASP.NET</a><br>
  10. <a href="#ado">Mono and ADO.NET</a><br>
  11. <a href="#monodoc">MonoDoc</a><br>
  12. <a href="#devel">Development Tools and Issues</a><br>
  13. <a href="#java">Mono and Java</a><br>
  14. <a href="#extending">Extending Mono</a><br>
  15. <a href="#portability">Portability</a><br>
  16. <a href="#reuse">Reusing Existing Code</a><br>
  17. <a href="#gcc">Mono and GCC</a><br>
  18. <a href="#performance">Performance</a><br>
  19. <a href="#licensing">Licensing</a><br>
  20. <a href="#patents">Patents</a><br>
  21. <a href="#etc">Miscellaneous Questions</a><br>
  22. <a href="#problems">Mono Common Problems</a><br>
  23. A <a
  24. href="http://www.es.gnome.org/documentacion/articulos/mono-puf/mono-puf/">Spanish
  25. translation</a> is also available
  26. <a name="basics"></a>
  27. ** Basics
  28. Q: What is Mono exactly?
  29. A: The Mono Project is an open development initiative sponsored by
  30. Ximian that is working to develop an open source, Unix
  31. version of the Microsoft .NET development platform. Its objective
  32. is to enable Unix developers to build and
  33. deploy cross-platform .NET Applications. The project will
  34. implement various technologies developed by Microsoft that have now
  35. been submitted to the ECMA for standardization.
  36. Q: What is the difference between Mono and the .NET Initiative?
  37. A: The ".NET Initiative" is a somewhat nebulous company-wide effort by
  38. Microsoft, one part of which is a cross-platform development
  39. framework. Mono is an implementation of the development framework,
  40. but not an implementation of anything else related to the .NET
  41. Initiative, such as Passport, software-as-a-service, or
  42. corporate re-branding.
  43. Q: What technologies are included in Mono?
  44. A: Mono contains a number of components useful for building new
  45. software:
  46. <ul>
  47. * A Common Language Infrastructure (CLI) virtual
  48. machine that contains a class loader, Just-in-time
  49. compiler, and a garbage collecting runtime.
  50. * A class library that can work with any language
  51. which works on the CLR.
  52. * A compiler for the C# language. In the future we
  53. might work on other compilers that target the Common
  54. Language Runtime.
  55. </ul>
  56. Windows has compilers that target the virtual machine from <a
  57. href="http://msdn.microsoft.com/net/thirdparty/default.asp#lang">a
  58. number of languages:</a> Managed C++, Java Script, Eiffel,
  59. Component Pascal, APL, Cobol, Perl, Python, Scheme,
  60. Smalltalk, Standard ML, Haskell, Mercury and Oberon.
  61. The CLR and the Common Type System (CTS) enables applications and
  62. libraries to be written in a collection of different languages that
  63. target the byte code
  64. This means for example that if you define a class to do algebraic
  65. manipulation in C#, that class can be reused from any other
  66. language that supports the CLI. You could create a class in C#,
  67. subclass it in C++ and instantiate it in an Eiffel program.
  68. A single object system, threading system, class libraries, and
  69. garbage collection system can be shared across all these languages.
  70. Q: Where can I find the specification for these technologies?
  71. A: You can find the information here:
  72. C# <a href="http://www.ecma.ch/ecma1/STAND/ecma-334.htm">http://www.ecma.ch/ecma1/STAND/ecma-334.htm</a>
  73. CLI <a href="http://www.ecma.ch/ecma1/STAND/ecma-335.htm">http://www.ecma.ch/ecma1/STAND/ecma-335.htm</a>
  74. Q: Will you implement the .NET Framework SDK class libraries?
  75. A: Yes, we will be implementing the APIs of the .NET Framework SDK
  76. class libraries.
  77. Q: Will you offer an ECMA-compliant set of class libraries?
  78. A: Eventually we will. Our current focus is on inter-operating
  79. with the Microsoft SDK, but we will also offer an ECMA compliant
  80. set of libraries.
  81. Q: What does the name "Mono" mean?
  82. A: Mono is the word for `monkey' in Spanish. We like monkeys.
  83. Q: Is Mono usable?
  84. A: The JIT engine is usable on Intel x86 machines. An interpreter
  85. can be used on other non-Intel x86 machines.
  86. The class libraries are mature enough to run some real applications
  87. (the compiler for instance, and every day more and more applications
  88. are natively developed with Mono).
  89. Q: When will you ship it?
  90. A: Different parts of Mono will achieve usability at different stages,
  91. once we are comfortable with the compiler, we will release "Mono Core",
  92. which contains everything needed to develop applications with the base
  93. class libraries, this will happen soon and in the meantime you can
  94. download daily snapshots of our work. Also the full ASP.NET support is
  95. close to completion.
  96. Other higher level class libraries (ASP.NET, ADO.NET, WinForms) will
  97. be released when they become stable.
  98. Q: What major components will you include in Mono?
  99. A: Hopefully everything that Microsoft ships on their Framework
  100. (ADO.NET, ASP.NET, WinForms), and we encourage third party developers to
  101. create reusable components that work on both Mono and Windows.
  102. Q: How can I contribute?
  103. A: Check the <a href="contributing.html">contributing</a> section.
  104. Q: Aren't you just copying someone else's work?
  105. A: We are interested in providing the best tools for programmers to
  106. develop applications for Free Operating Systems. We also want to help
  107. provide the interoperability that will allow those systems to fit in
  108. with other standards.
  109. For more background, read the <a href="http://www.go-mono.com/rationale.html">Mono
  110. Project white paper</a>.
  111. the project.
  112. Q: Miguel said once that Mono was being implemented in COBOL. Is that true?.
  113. A: No. It was a joke.
  114. <a name="ximian"></a>
  115. ** The Ximian Role in the Mono Project
  116. Q: Why is Ximian working on .NET?
  117. A: Ximian is interested in providing the best tools for programmers to
  118. develop applications for Free Operating Systems.
  119. For more information, read the project <a
  120. href="rationale.html">rationale</a> page.
  121. Q: Will Ximian be able to take on a project of this size?
  122. A: Of course not. Ximian a supporter of the Mono project, but the only way
  123. to implement something of this size is for the entire free software
  124. community to get involved. Visit the <a href="contributing.html">contributing</a>
  125. page if you'd like to help out.
  126. Q: What pieces will Ximian be working on?
  127. A: We will devote most of our resources to work on the pieces which are
  128. on the critical path to release a development and execution
  129. environment. Once the project is at a stage where it is useful in
  130. the real world, it will achieve a critical mass of developers to
  131. improve it further.
  132. Q: Will Ximian offer Mono commercially?
  133. A: When Mono is ready to be shipped Ximian will offer a commercial
  134. support and services for Mono.
  135. Q: Does Ximian provide consulting services around Mono?
  136. A: Yes, Ximian does provide consulting services around Mono to
  137. make it suitable to your needs. Porting the runtime engine,
  138. customizing it, working on specific classes or tuning the code
  139. for your particular needs.
  140. Q: Will you wait until Mono is finished?
  141. A: Mono will ship on various stages as they mature. Some people
  142. require only a subset of the technologies, those will ship first.
  143. More advanced features will take more time to develop. A support
  144. time line will be available in June 2002.
  145. <a name="gnome"></a>
  146. ** Mono and GNOME
  147. Q: How is Mono related to GNOME?
  148. A: In a number of ways. This project was born out of the need of
  149. providing improved tools for the GNOME community, and will use
  150. existing components that have been developed for GNOME when they
  151. are available. For example, we plan to use Gtk+ and Libart to
  152. implement Winforms and the Drawing2D API and are considering
  153. GObject support.
  154. Q: Has the GNOME Foundation or the GNOME team adopted Mono?
  155. A: Mono is too new to be adopted by those groups. We hope that the
  156. tools that we will provide will be adopted by free software
  157. programmers including the GNOME Foundation members and the GNOME
  158. project generally.
  159. Q: Should GNOME programmers switch over to Mono now?
  160. A: It is still far to early for discussions of "switching over." No
  161. pieces of Mono will be ready within the next six months, and a
  162. complete implementation is roughly one year away.
  163. We encourage GNOME developers to continue using the existing tools,
  164. libraries and components. Improvements made to GNOME will have an
  165. impact on Mono, as they would be the "back-end" for various classes.
  166. Q: Will Mono include compatibility with Bonobo components? What is the
  167. relationship between Mono and Bonobo?
  168. A: Yes, we will provide a set of classes for implementing and using
  169. Bonobo components from within Mono. Mono should allow you to write
  170. Bonobo components more easily, just like .NET on Windows allows you
  171. to export .NET components to COM.
  172. Q: Does Mono depend on GNOME?
  173. A: No, Mono does not depend on GNOME. We use a few packages produced by
  174. the GNOME team like the `glib' library.
  175. Q: But will I be able to build GNOME applications?
  176. A: Yes, we will enable people to write GNOME applications using Mono.
  177. Q: Do you have C# bindings for GNOME?.
  178. A: Yes, we currently bind libgnome, libgnomecanvas, and libgnomeui --
  179. although I dare say I have no idea how functional the bindings are
  180. outside of what I tested in the sample app. I imagine other libraries
  181. under the GNOME framework will be added on an as-needed (and as-requested)
  182. basis...although a truly good bonobo binding will have to wait on the CORBA
  183. remoting support which has been started recently.
  184. <a name="gui"></a>
  185. ** GUI applications
  186. Q: Will Mono enable GUI applications to be authored?
  187. A: Yes, you will be able to build GUI applications. Indeed, that is our
  188. main focus. We will provide both the Windows.Forms API and the Gtk# API.
  189. Q: What is the difference between Gtk# and System.Windows.Forms?
  190. A: Gtk# is a set of bindings for the Gtk+ toolkit for C# (and other
  191. CIL-enabled languages). System.Windows.Forms is an API defined
  192. by Microsoft to build GUI applications.
  193. Q: Will I be able to run my smart clients on systems powered by Mono?
  194. A: As long as your applications are 100% .NET and do not make use
  195. of P/Invoke to call Win32 functions, your smart client applications
  196. will run on Mono platforms.
  197. Q: Where can I learn more about Gtk#?
  198. A: The following <a href="http://gtk-sharp.sourceforge.net>link</a> sends you to the page of the project.
  199. Q: What can I do with Gtk#?.
  200. A: Gtk# is becoming very usable and you can create applications and
  201. applets like those you see in a GNOME desktop environment. It's
  202. easy to install so it's worth a try.
  203. Q: How can I compile my HelloWorld.cs which uses Gtk#?.
  204. A: Try: mcs --unsafe -o HelloWorld.exe -r glib-sharp -r pango-sharp -r
  205. atk-sharp -r gdk-sharp -r gtk-sharp -r gdk-imaging-sharp
  206. HelloWorld.cs
  207. Q: Is there any way how to connect DataAdapter to some GTK# controls?
  208. A: There is a sample file called `DbClient' in gtk-sharp/samples that you
  209. might to look at. It is a sample program in Gtk# that adds/updates/deletes
  210. information on a Postgress database. When we have the new table/tree widgets,
  211. I am sure someone would write an adapter for System.Data (in Gtk2 the
  212. tree/list widgets are written using a view/model, so you only need to write
  213. a model that maps to the database). You can have a look at
  214. gtk-sharp/sample/DbClient, where there is a GTK# application that uses
  215. System.Data. It does not use DataAdapter, but DataReader though.
  216. Q: Do you have an estimate for when Windows.Forms will be released?
  217. A: We do not know, volunteers are working on this, but there is no set
  218. date yet. The current approach is using the Wine Library to implement
  219. it.
  220. <a name="msft"></a>
  221. ** Mono and Microsoft
  222. Q: Is Microsoft helping Ximian with this project?
  223. A: There is no high level communication between Ximian and Microsoft
  224. at this point, but engineers who work on .NET or the ECMA groups
  225. have been very friendly, and very nice to answer our questions, or
  226. clarify part of the specification for us.
  227. Microsoft is interested in other implementations of .NET and are
  228. willing to help make the ECMA spec more accurate for this purpose.
  229. Ximian was also invited to participate in the ECMA committee
  230. meetings for C# and the CLI.
  231. Q: Is Microsoft or Corel paying Ximian to do this?
  232. A: No.
  233. Q: Do you fear that Microsoft will change the spec and render Mono
  234. useless?
  235. A: No. Microsoft proved with the CLI and the C# language that it was
  236. possible to create a powerful foundation for many languages to
  237. inter-operate. We will always have that.
  238. Even if changes happened in the platform which were undocumented,
  239. the existing platform would a value on its own.
  240. Q: Are you writing Mono from the ECMA specs?
  241. A: Yes, we are writing them from the ECMA specs and the published
  242. materials in print about .NET.
  243. Q: If my applications use Mono, will I have to pay a service fee?
  244. A: No. Mono is not related to Microsoft's initiative of
  245. software-as-a-service.
  246. Q: Is the Mono Project is related to the Microsoft Hailstorm effort? Is
  247. Ximian endorsing Hailstorm?
  248. A: No. The Mono Project is focused on providing a compatible set of
  249. tools for the Microsoft .NET development platform. It does not
  250. address, require, or otherwise endorse the MS Passport-based
  251. Hailstorm single sign-on system that is part of Windows XP and
  252. other services.
  253. Q: Will Mono or .NET applications depend on Microsoft Passport?
  254. A: No. MS Passport is unrelated to running .NET compatible applications
  255. produced with the Mono tools. The only thing you will need is a
  256. just-in-time compiler (JIT).
  257. Q: What is a 100% .NET application?
  258. A: A `100% .NET application' is one that only uses the APIs defined
  259. under the System namespace and does not use PInvoke. These
  260. applications would in theory run unmodified on Windows, Linux,
  261. HP-UX, Solaris, MacOS X and others.
  262. Q: If Microsoft will release a port of their .NET platform under the
  263. `Shared Source' license, why should I bother with anything else?
  264. A: The Shared Source implementation will be expensive and its uses
  265. will be tightly restricted, especially for commercial use. We are
  266. working towards an implementation that will grant a number of
  267. important rights to recipients: use for any purpose,
  268. redistribution, modification, and redistribution of modifications.
  269. This is what we call <a
  270. href="http://www.gnu.org/philosophy/free-sw.html">Free Software</a>
  271. Q: Is Mono a free implementation of Passport?
  272. A: No. Mono is just a runtime, a compiler and a set of class
  273. libraries.
  274. Q: Will the System.Web.Security.PassportIdentity class mean
  275. that my software will depend on Passport?
  276. A: No. Applications may use that API to contact a Passport site, but
  277. are not required to do so.
  278. As long as your application does not use Passport, you will not
  279. need Passport.
  280. Q: Will Mono running on Linux make Passport available for Linux?
  281. A: No. However, the Passport toolkit for Linux-based web servers is
  282. available from Microsoft.
  283. Q: Will Mono allow me to run Microsoft Office on Linux?
  284. A: No, it will not. Microsoft Office is a Windows application. To
  285. learn more about running Windows applications on Intel Unix systems
  286. refer to <a href="http://www.winehq.com">the Wine Project</a>.
  287. Q: Will I be able to compile a Microsoft VB.NET application and execute
  288. the resultant MSIL file under MONO on Linux without converting to C#
  289. and recompiling?
  290. A: Once we have a complete VisualBasic runtime, yes.
  291. Q: Can mono run the WebMatrix?
  292. A: No. That requires System.Windows.Forms support which is not
  293. currently implemented.
  294. Q: Does mono have something like Passport?
  295. Will mono have a server side Passport/Similar framework for XSP as well as client classes?
  296. A: Not yet, but the client side API for authentication is not the problem.
  297. We will likely have a lot of other authentication APIs, like the Liberty
  298. Alliance APIs. The problem is people on the web provider end that might use
  299. this for authentication.
  300. <a name="platforms"></a>
  301. ** Mono Platforms
  302. Q: What operating systems does Mono run on?
  303. A: Mono is known to run on Linux, Unix and Windows systems.
  304. Q: What architectures does Mono support?
  305. A: Mono today ships with a Just-in-Time compiler for x86-based
  306. systems. It is tested regularly on Linux, FreeBSD and Windows
  307. (with the XP/NT core).
  308. There is also an interpreter, which is slower that runs on the
  309. s390, SPARC and PowerPC architectures.
  310. Q: Can Mono run on Windows 9x, or ME editions?
  311. A: Mono requires Unicode versions of Win32 APIs to run,
  312. and only a handful of *W functions is supported under Win9x.
  313. There is Microsoft Layer for Unicode that provides implementation
  314. of these APIs on 9x systems.
  315. Unfortunately it uses linker trick for delayed load that is not
  316. supported by ld, so some sort of adapter is necessary.
  317. You will need MSLU and one of the following libs to link Mono to
  318. unicows.dll <a
  319. href="http://mono.eurosoft.od.ua/files/unimono.zip">http://mono.eurosoft.od.ua/files/unimono.zip</a>
  320. or alternatively search the net for "libunicows".
  321. No changes to Mono source code required, the only thing is to make
  322. sure that linker will resolve imports to adapter library instead of
  323. Win32 libs. This is achieved by inserting -lunimono before
  324. -lkerner32/user32 in the linker's specs file.
  325. <a name="pnpproject"></a>
  326. ** Mono and Portable.NET
  327. Q: What are the differences between Mono and Portable.NET?
  328. A: Most of Mono is being written using C#, with only
  329. a few parts written in C (The JIT engine, the runtime, the
  330. interfaces to the garbage collection system).
  331. It is easier to describe what is unique about Mono:
  332. <ul>
  333. <li> A Just-in-Time compiler engine. This is important for
  334. making your applications fast.
  335. <li> A self-hosting C# compiler written in C#, which is clean, easy
  336. to maintain.
  337. <li> Focus on the .NET Framework: we are tracking down the .NET
  338. Framework API definition, as we believe it is the API people
  339. will be most familiar with.
  340. <li> A multi-platform runtime engine: both a JIT engine and an
  341. interpreter exist. The JIT engine runs currently on x86
  342. systems, while the interpreter works on SPARC, StrongARM,
  343. s390 and PowerPC systems.
  344. <li> Supports Linux, Windows and Solaris at this point.
  345. <li> The JIT engine is written using a portable instruction
  346. selector which not only generates good code (we are told
  347. that we are faster than Rotor, but it is hard to tell) but
  348. is also the foundation to re-target the JIT engine to other
  349. systems.
  350. The system employed is described in various compiler
  351. books and it is very similar to what is described in the
  352. book that covers LCC, the ANSI C retargetable C compiler.
  353. <li> The JIT engine supports in-lining, constant folding and propagation,
  354. <li> Full support for remoting in the runtime, but the class
  355. libraries are still behind.
  356. <li> The C# compiler, the JIT engine and the class libraries are
  357. mature enough that the whole system is self-hosting. This means that
  358. we develop Mono completely with itself at this point.
  359. <li> We are not yet done, and there is a lot of work left to be
  360. done
  361. <li> We have a great community of developers, without which Mono
  362. would not be possible.
  363. <li> We are working on an ahead of time compilation mode to
  364. pre-compile code for the target architecture (this is part
  365. of our new code generation effort).
  366. </ul>
  367. <a name="webservices"></a>
  368. ** Web Services
  369. Q: How is Mono related to Web Services?
  370. A: Mono is only related to Web Services in that it will implement the
  371. same set of classes that have been authored in the .NET Framework
  372. to simplify and streamline the process of building Web Services.
  373. But most importantly, Mono is an Open Source implementation of the
  374. .NET Framework.
  375. Q: Can I author Web Services with Mono?
  376. A: You will be able to write Web Services on .NET that run on Mono and
  377. vice-versa.
  378. Q: If Mono implements the SDK classes, will I be able to write and
  379. execute .NET Web Services with it?
  380. A: Yes. When the project is finished, you will be able to use the
  381. same technologies that are available through the .NET Framework SDK
  382. on Windows to write Web Services.
  383. Q: What about Soup? Can I use Soup without Mono?
  384. A: Soup is a library for GNOME applications to create SOAP servers and
  385. SOAP clients, and can be used without Mono. You can browse the
  386. source code for soup using <a
  387. href="http://cvs.gnome.org/bonsai">GNOME's Bonsai</a>.
  388. Q: Can I use CORBA?
  389. A: Yes. The CLI contains enough information about a class that
  390. exposing it to other RPC systems (like CORBA) is really simple, and
  391. does not even require support from an object.
  392. We will be implementing CORBA inter-operation as an extension to the
  393. Mono classes so that we can integrate with Bonobo, just like
  394. Microsoft provides COM inter-operation classes and support
  395. mechanisms.
  396. Q: Can I serialize my objects to other things other than XML?
  397. A: Yes, although the serializing tools have not yet been planned, and
  398. you would probably have to implement them yourself.
  399. Q: Will Mono use ORBit?
  400. A: No. Mono will be using a new implementation of CORBA that isn't still started.
  401. <a name="monodoc"></a>
  402. ** MonoDoc
  403. Q: What is MonoDoc?
  404. A: MonoDoc is a graphical documentation editor and viewer. Currently, MonoDoc
  405. consists of a Gtk# application and is in heavy development. There is also a
  406. Qt# version of it.
  407. <a name="devel"></a>
  408. ** Development Tools and Issues
  409. Q: Will it be possible to use the CLI features without using byte codes
  410. or the JIT?
  411. A: Yes. The CLI engine will be made available as a shared library.
  412. The garbage collection engine, the threading abstraction, the
  413. object system, the dynamic type code system and the JIT will be
  414. available for C developers to integrate with their applications if
  415. they wish to do so.
  416. Q: Will you have new development tools?
  417. A: With any luck, Free Software enthusiasts will contribute tools to
  418. improve the developer environment. These tools could be developed
  419. initially using the Microsoft implementation of the CLI and then
  420. executed later with Mono.
  421. Q: What kind of rules make the Common Intermediate Language useful for
  422. JITers?
  423. A: The main rule is that the stack in the CLI is not a general purpose
  424. stack. You are not allowed to use it for other purposes than
  425. computing values and passing arguments to functions or return
  426. values.
  427. At any given call or return instruction, the types on the stack
  428. have to be the same independently of the flow of execution of your
  429. code.
  430. Q: Is it true that the CIL is ideal for JITing and not efficient for
  431. interpreters?
  432. A: The CIL is better suited to be JITed than JVM byte codes, but you
  433. can interpret them as trivially as you can interpret JVM byte
  434. codes.
  435. Q: Isn't it a little bit confusing to have the name of "XSP" (the same
  436. as in the Apache Project) for the ASP.NET support in Mono?.
  437. A: In Mono, xsp is just the name of the C# code generator for ASP.NET
  438. pages. In the Apache Project, it is a term for the "eXtensible Server
  439. Pages" technology so as they are very different things, they don't
  440. conflict.
  441. Q: What about using something like Jabber instead of the System.Messaging
  442. namespace?.
  443. A: In short, MSMQ is not something like Jabber, but asynchronous messaging
  444. through queues. Useful queues do more than serialize messages, they are
  445. also platform bridges.
  446. Q: Are you supporting XMLDocument and relatives?.
  447. A: Currently, we aren't implementing them yet. It would require updates to
  448. most of the XmlNode derivatives so it's not a trivial task. We are
  449. currently focusing on getting XPath support working.
  450. Q: Is there any plan to develop an aspx server for Mono?.
  451. A: The web server turned out to be very simple compared to the rest of the
  452. work. Gonzalo has got the page generator mostly done (a module called
  453. xsp, who has nothing to do with the XSP term used in the Apache Project).
  454. Patrik has done a lot of the work to get the ProcessRequest to work.
  455. You can try to help in the final touches to the System.Web classes and
  456. writing regression tests for the widgets we have.
  457. Q: Is there any way I can develop the class libraries using Linux yet?
  458. A: Yes. Some class libraries can be developed on Linux. Search for
  459. Paolo's post (he lists which classes can be compiled fine now).
  460. Q: Is there any way I can install a known working copy of mono in /usr,
  461. and an experimental copy somewhere else, and have both copies use
  462. their own libraries? (I'm still not very good at library paths in
  463. Linux)
  464. A: Yes. Just use two installation prefixes.
  465. Q: How should I write tests or a tests suite?
  466. A: If you do a test suite for C#, you might want to keep it
  467. independent of the Mono C# compiler, so that other compiler
  468. implementations can later use it.
  469. Q: Would it be too terrible to have another corlib signed as mscorlib?
  470. A: We rename corlib to mscorlib also when saving the PE files, in fact,
  471. the runtime can execute program created by mono just fine.
  472. Q: Is there a relatively straightforward way to repeat the steps taken
  473. by Paolo to get Mono completely self-hosted on Linux?
  474. A: To build the compiler and class libraries in Linux, run:
  475. <ul><li>make -f makefile.gnu. To install them, run: </li>
  476. <li>make -f makefile.gnu install prefix=/opt/mono</li>
  477. </ul>
  478. If you want to produce and distribute a monocharge tarball, run:
  479. make -f makefile.gnu dist
  480. Of course you have to run these in the top level mcs directory.
  481. Q: Is it possible to build a C# file to some sort of intermediate format which
  482. can linked into a final module, like the traditional .c -> .o -> .so path?
  483. A: You could do: mcs /target:module file1.cs, mcs /target:module file2.cs,
  484. mcs /target:exe file1.dll file2.dll /out:mybin.exe
  485. Q: Is there any plans for implementing remoting in the near future?, When will
  486. work in System.Runtime.Remoting.dll start?
  487. A: The remoting infrastructure is in place. Some of the channels and
  488. formatters are not.
  489. Q: I'm wondering if there are any plans to start using nant to build the
  490. class lib + test lib. i think that every project need/should use an
  491. automated build process and nant + a couple of tools enables this. is
  492. the problem that the compiler can't run nant yet?
  493. A: Maybe well be doing some sort of automated build process + testing when
  494. the summer finish.
  495. Q: My C code uses the __stdcall which is not availble on Linux, how can I
  496. make the code portable Windows/Unix across platforms?
  497. A: Replace the __stdcall attribute with the STDCALL macro, and include this
  498. in your C code for newer gcc versions:
  499. #ifndef STDCALL
  500. #define STDCALL __attribute__((stdcall))
  501. #endif
  502. <a name="asp">
  503. ** Mono and ASP.NET
  504. Q: Is Mono supporting ASP.NET?
  505. A: Yes. The development of the support for ASP.NET comes in various stages,
  506. here is what Gonzalo has been working on: 1. The Parser. 2. Getting the
  507. parser to generate output compatible with ASP.NET. 3. Running the sample
  508. output with the real Microsoft runtime but using our generated page. 4.
  509. Running the sample with our classes with the .NET runtime. 5. Running
  510. our sample code with our classes with our runtime. This is the process
  511. we are following. Currently Gonzalo has reached point 5.
  512. Q: Do I need install cygwin to work on ASP.NET in mono or Linux is enough since
  513. it is self host right now.
  514. A: Linux is enough.
  515. Q: Any plan to make ASP.NET in mono works with Apache in Linux?.
  516. A: Yes, we have plans to do so, but we need to wait for Patrik's patches to
  517. HttpRuntime. Once that is there, writing a mod_mono should be trivial
  518. (look at mono/samples/embed for a sample embedded application).
  519. <a name="ado">
  520. ** Mono and ADO.NET
  521. Q: What is the status of ADO.NET support?. Could I start migrating
  522. applications from MS.NET to Mono?.
  523. A: You could start right now using the ADO.NET support in mono, of course,
  524. if you want to help filling the missing gaps while you develop your app
  525. :-) Well, what I mean is that we're not that far to having full ADO.NET
  526. support in Mono, and we've got a lot of working things, so if we could
  527. get more help, we'd finish it really soon :-)
  528. Q: In developing the data architecture for the application are there and
  529. objects I should stay away from in order to insure the smoothest possible
  530. transition (minimum code rewrite) to Mono's ADO.NET implementation? (For
  531. example, strongly typed datasets versus untyped datasets, etc...)
  532. A: We are implementing all the classes in Microsoft .NET's System.Data, so
  533. you can be sure that things will work the same in Mono as with the Microsoft
  534. implementation.
  535. Q: Does Mono can to connect to Sybase by using Mono.Data.*?
  536. A: Yes. use Mono.Data.SybaseClient. First of all you have to create a
  537. SybaseConnection, and then, from it, use it as any other
  538. IDbConnection-based class.
  539. <a name="java">
  540. ** Mono and Java
  541. Q: Why don't you use Java? After all, there are many languages that
  542. target the Java VM.
  543. A: You can get very good tools for doing Java development on free
  544. systems right now. <a href="http://www.redhat.com">Red Hat</a> has
  545. contributed a <a href="http://gcc.gnu.org">GCC</a> <a
  546. href="http://gcc.gnu.org/java">front-end for Java</a> that can take
  547. Java sources or Java byte codes and generate native executables; <a
  548. href="http://www.transvirtual.com">Transvirtual</a> has implemented
  549. <a href="http://www.kaffe.org">Kaffe</a> a JIT engine for Java;
  550. Intel also has a Java VM called <a
  551. href="http://www.intel.com/research/mrl/orp">ORP</a>.
  552. The JVM is not designed to be a general purpose virtual machine.
  553. The Common Intermediate Language (CIL), on the other hand, is
  554. designed to be a target for a
  555. wide variety of programming languages, and has a set of rules
  556. designed to be optimal for JITers.
  557. Q: Could Java target the CLI?
  558. A: Yes, Java could target the CLI. We have details on a <a
  559. href="ideas.html#guavac">project</a> that someone could take on to
  560. make this happen.
  561. Microsoft has an implementation of the Java language called J# that
  562. can target the CIL execution engine.
  563. Q: Is it possible to write a JVM byte code to CIL converter?
  564. A: Yes, it is possible. Here are a few starting point:
  565. <ul>
  566. * A byte code representation is really a flattened forest of
  567. trees. Look at the Mono JIT engine to see how we compute
  568. the basic blocks (this is used to figure out the "trees").
  569. The forest is just an array of trees.
  570. Indeed, run the JIT engine with -d (mono -d prog.exe) and
  571. you will see how these trees look like.
  572. You will have to do something similar for Java.
  573. * Each "forest of trees" has a meaning. This meaning can now
  574. be translated into the equivalent "meaning" in CLR-land.
  575. </ul>
  576. Q: Could mono become a hybrid CIL/java platform?
  577. A: No. It is quite far from the philosophy of the project. The idea of Mono
  578. is, to have only _one_ VM, on which all can run. And if there existing a
  579. binary-converter from Java-.class to IL and if there existing something
  580. like J-Sharp on Mono, you can write programs in Java, which than can run
  581. on Mono. You do not need two bindings (like your example: GTK-Sharp _and_
  582. Java-Gnome). You need only _one_ of it (GTK-Sharp). Thats the idea of Mono.
  583. An other point is, that there are no people, who use Open Source-JVMs. They
  584. all prefer Suns original. But for Unix there don't exist a .NET-Framework.
  585. So it is possible, that in the future Mono is the standard .NET for Unixes.
  586. Q: Do you plan to implement a Javascript compiler?
  587. A: Yes. Eto Demerzal has started a Rhino port to C#.
  588. After this is completed, we will begin developing
  589. the JavaScript compiler.
  590. Q: Can Mono or .NET share system classes (loaded from mscore.dll and other
  591. libs) or will it behave like Sun's Java VM?
  592. A: What you can do with mono is to load different applications in their own
  593. application domain: this is a feature of the CLR that allows sandboxing
  594. applications inside a single process space. This is usualy exploited to
  595. compartmentalize different parts of the same app, but it can also be
  596. effectively used to reduce the startup and memory overhead.
  597. Using different appdomains the runtime representation of types and
  598. methods is shared across applications.
  599. <a name="extending"></a>
  600. ** Extending Mono
  601. Q: Would you allow other classes other than those in the
  602. specification?
  603. A: Yes. The Microsoft class collection is very big, but it is by no
  604. means complete. It would be nice to have a port of `Camel' (the
  605. Mail API used by Evolution inspired by Java Mail) for Mono
  606. applications.
  607. You might also want to look into implementing CORBA for Mono. Not
  608. only because it would be useful, but because it sounds like a fun
  609. thing to do, given the fact that the CLI is such a type rich
  610. system.
  611. For more information on extending Mono, see our <a
  612. href="ideas.html">ideas</a> page.
  613. Q: Do you plan to Embrace and Extend .NET?
  614. A: Embracing a good technology is good. Extending technologies in
  615. incompatible ways is bad for the users, so we do not plan on
  616. extending the technologies.
  617. If you have innovative ideas, and want to create new classes, we
  618. encourage you to make those classes operate correctly well in both
  619. Mono and .NET.
  620. Q: Is there any way I can develop the class libraries using Linux yet?
  621. A: Yes. Some class libraries can be developed on Linux. Search for
  622. Paolo's post (he lists which classes can be compiled fine now).
  623. Q: Is there any way I can install a known working copy of mono in /usr,
  624. and an experimental copy somewhere else, and have both copies use
  625. their own libraries? (I'm still not very good at library paths in
  626. Linux)
  627. A: Yes. Just use two installation prefixes.
  628. <a name="portability"></a>
  629. ** Portability
  630. Q: Will Mono only work on Linux?
  631. A: Currently, we are doing our work on Linux-based systems and
  632. Windows. We do not expect many Linux-isms in the code, so it
  633. should be easy to port Mono to other UNIX variants.
  634. Q: What about Mono on non Linux-based systems?
  635. A: Our main intention at Ximian is to be able to develop GNOME
  636. applications with Mono, but if you are interested in providing a
  637. port of the Winforms classes to other platforms (frame buffer or
  638. MacOS X for example), we would gladly integrate them, as long
  639. they are under an open source license.
  640. Q: What operating systems/CPUs do you support
  641. A: Mono currently runs on Linux, Windows, Solaris and FreeBSD.
  642. There is a JIT engine available for x86 processors that can
  643. generate code and optimizations tailored for a particular CPU.
  644. Interpreters exist for the SPARC, PowerPC and StrongARM CPUs.
  645. Q: Does Mono run on Windows?
  646. A: Yes. You can get pre-compiled
  647. binaries from <a href="http://www.go-mono.com/download.html">http://www.go-mono.com/download.html</a>
  648. Q: Does Mono run on Linux?
  649. A: Yes. You can get pre-compiled
  650. binaries from <a href="http://www.go-mono.com/download.html">http://www.go-mono.com/download.html</a>
  651. Q: Will I require Cygwin to run mono?
  652. A: No. Cygwin is only required to build Mono.
  653. Q: Will Mono depend on GNOME?
  654. A: It will depend only if you are using a particular assembly (for
  655. example, for doing GUI applications). If you are just interested
  656. in Mono for implementing a `Hello World Enterprise P2P Web
  657. Service', you will not need any GNOME components.
  658. Q: Is anyone working on porting Mono to IA-64?
  659. A: Nobody is working on such port.
  660. Q: If I were about to start a Mono port to IA-64,would the same lburg code
  661. generator work for IA-64 also? or anything else need to be used for code
  662. generation(as the processor architecture is totally different from IA32)
  663. A: The lburg approach can be use for any processor architecture. But you might
  664. think in another better approach.
  665. Q: Do you plan to port Rhino to C#?.
  666. A: Eto Demerzal has started a Rhino port to C#.
  667. Q: Has anyone succeeded in building a Mac version of the C# environment.
  668. If so can you explain how?
  669. A: You could try to check with the Darwin people, or the Fink people.
  670. Mono/C# is self hosting on Linux/PPC which is the hard part, so it
  671. should be relatively simple to get it to work on MacOS
  672. <a name="reuse"></a>
  673. ** Reusing Existing Code
  674. Q: What projects will you reuse or build upon?
  675. A: We want to get Mono in the hands of programmers soon. We are
  676. interested in reusing existing open source software.
  677. Q: What about Intel's research JIT framework, ORP?
  678. A: At this time, we are investigating whether we can use elements of
  679. ORP for Mono. ORP is a research JIT engine that has a clearly
  680. defined API that splits the JIT from the GC system and the actual
  681. byte code implementation.
  682. We are using some pieces of ORP (Their code generation interface)
  683. and we use it as a source of inspiration for optimizations. Paolo
  684. and Dietmar consider ORP as being one of the best JIT engines out
  685. there (and their research work and papers are very useful if you are
  686. interested in JIT technology).
  687. Q: What about using GNU Lightning?
  688. A: We are not using GNU Lightning. Our JIT is using an instruction
  689. selector based on tree-pattern matching, and a code generation
  690. interface that is very tied to the current architecture.
  691. Q: Will I be able to use Microsoft SQL Server 2000 or will I need to switch
  692. to a specific Open Source Database. Will I need to recode?
  693. A: There should not be any need to recode.
  694. Q: What do I need to watch out for when programming in VB.NET so that I'm
  695. sure to be able to run those apps on Linux?
  696. A: Not making any PInvoke or DLL calls should and not using anything in
  697. the Microsoft.* namespaces should suffice. Also do not use any
  698. Methods/Classes marked as "This type/method supports the .NET Framework
  699. infrastructure and is not intended to be used directly from your code."
  700. even if you know what these classes/methods do.
  701. Q: Will built-in reporting be supported for crystal reports? This is a
  702. heavily used part of our system.
  703. A: Probably not. Crystal Reports are propriety. Someone may try to emulate
  704. the behavior, but no-one has yet volunteered.
  705. Q: Who about writing to the registry? As I understand it, Linux does not have
  706. a counterpart to the registry. Should I avoid relying on that feature?
  707. A: Try to avoid it. Although there would be a emulation for registry in
  708. Mono too. GNOME does have a registry like mechanism for configuration. But
  709. Even if gnome has a configuration system similar to the registry, the keys
  710. will not be equal, so you will probably end up having to do some runtime
  711. detection, and depending on this load an assembly that has your
  712. platform-specific hacks.
  713. Q: System.Data.SqlClient with FreeTDS, will you port parts of these to C# and
  714. use them?
  715. A: if their license is compatible with mono's, yes, we'd think about porting
  716. them. If not, we'll continue with the plan of using FreeTDS.
  717. <a name="gcc"></a>
  718. ** Mono and GCC
  719. Q: Are you working on a GCC front-end to C#? A GCC back-end that will
  720. generate CIL images? What about making a front-end to GCC that
  721. takes CIL images and generates native code?
  722. A: We are currently seeking volunteers for those projects.
  723. Visit the <a href="contributing.html">contributing</a> section if
  724. you are interested.
  725. Q: But would this work around the GPL in the GCC compiler and allow
  726. people to work on non-free front-ends?
  727. A: People can already do this by targeting the JVM byte codes (there
  728. are about 130 compilers for various languages that target the JVM).
  729. Q: Why are you writing a JIT engine instead of a front-end to GCC?
  730. A: We want the JIT engine and runtime engine because they will be able
  731. to execute CIL executables generated on Windows, and so no recompilation
  732. will be necessary.
  733. <a name="performance"></a>
  734. ** Performance
  735. Q: How fast will Mono be?
  736. A: We can not predict the future, but a conservative estimate is that
  737. it would be at least `as fast as other JIT engines'.
  738. We would like to ship various JIT engines with Mono, just like
  739. Microsoft has done with their .NET development platform. We could
  740. provide a faster, JIT for fast load times but lower performance,
  741. and an and an optimizing JIT that would be slower at generating
  742. code but produce more optimal output.
  743. The CIL has some advantages over the Java byte code: it is really
  744. an intermediate representation and there are a number of
  745. restrictions on how you can emit CIL code that simplify creating
  746. better JIT engines.
  747. For example, on the CIL, the stack is not really an abstraction
  748. available for the code generator to use at will. Rather, it is a
  749. way of creating a postfix representation of the parsed tree. At
  750. any given call point or return point, the contents of the stack are
  751. expected to contain the same object types independently of how the
  752. instruction was reached.
  753. <a name="licensing"></a>
  754. ** Licensing
  755. Q: Will I be able to write proprietary applications that run with
  756. Mono?
  757. A: Yes. The licensing scheme is planned to allow proprietary
  758. developers to write applications with Mono.
  759. Q: What license or licenses are you using for the Mono Project?
  760. A: The C# Compiler is released under the terms of the <a
  761. href="http://www.opensource.org/licenses/gpl-license.html">GNU GPL</a>. The runtime
  762. libraries are under the <a
  763. href="http://www.opensource.org/licenses/lgpl-license.html">GNU
  764. Library GPL</a>. And the class libraries are released
  765. under the terms of the <a
  766. href="http://www.opensource.org/licenses/mit-license.html">MIT X11</a>
  767. license.
  768. The Mono runtime and the Mono C# Compiler are also available under
  769. a proprietary license for those who can not use the LGPL and the
  770. GPL in their code.
  771. For licensing details, contact <a
  772. href="mailto:[email protected]">[email protected]</a>
  773. Q: I would like to contribute code to Mono under a particular
  774. license. What licenses will you accept?
  775. A: We will have to evaluate the licenses for compatibility first,
  776. but as a general rule, we will accept the code under the same
  777. terms of the "container" module.
  778. Q: Is the Mono
  779. <a name="patents"></a>
  780. ** Patents
  781. Q: Could patents be used to completely disable Mono (either submarine
  782. patents filed now, or changes made by Microsoft specifically to
  783. create patent problems)?
  784. A: No. First, its basic functional capabilities have pre-existed too
  785. long to be held up by patents. The basic components of Mono are
  786. technologically equivalent to Sun's Java technology, which has been
  787. around for years.
  788. Mono will also implement multi-language and
  789. multi-architecture support, but there are previous technologies
  790. such as UCSD p-code and ANDF that also support multiple languages
  791. using a common intermediate language. The libraries are similar
  792. to other language's libraries, so again, they're too similar to
  793. be patentable in large measure.
  794. However, if Microsoft does patent some technology, then our plan is
  795. to either (1) work around it, (2) chop out patented pieces, (3)
  796. find prior art that would render the patent useless.
  797. Not providing a patented capability would weaken the
  798. interoperability, but it would still provide the free software /
  799. open source software community with good development tools, which
  800. is the primary reason for developing Mono.
  801. <a name="etc"></a>
  802. ** Miscellaneous Questions
  803. Q: You say that the CLI allows multiple languages to execute on the
  804. same environment. Isn't this the purpose of CORBA?
  805. A: The key difference between CORBA (and COM) and the CLI is that the
  806. CLI allows "data-level interoperability" because every
  807. language/component uses the same data layout and memory management.
  808. This means you can operate directly upon the data types that someone
  809. else provides, without having to go via their interfaces. It also
  810. means you don't have to "marshal" (convert) parameters (data
  811. layouts are the same, so you can just pass components directly) and
  812. you don't have to worry about memory management, because all
  813. languages/components share the same garbage collector and address
  814. space. This means much less copying and no need for reference
  815. counting.
  816. Q: Will you support COM?
  817. A: The runtime will support XPCOM on Unix systems and COM on Windows.
  818. Most of the code for dynamic trampolines exists already.
  819. Q: Will Ximian offer certifications on Mono or related technologies?.
  820. A: It's possible. But there is no plan about this. So the short answer is no.
  821. Q: Are there any Boehm's GC binaries?
  822. A: Yes. You can find RPMs <a href="http://java.thn.htu.se/~toor/">here</a>, though
  823. if your distribution provides the correct packages, you should use those.
  824. The suggested version of the Boehm GC is 6.1.
  825. Q: How can I report a bug?
  826. A: The best thing is to track down the bug and provide a simple test to
  827. reproduce the bug. You can then add the bug to the
  828. <a href="http://bugzilla.ximian.com/enter_bug.cgi">bugtracking system</a>.
  829. Please provide information about what version of mono you're using
  830. and any relevant details to be able to reproduce the bug. Note that
  831. bugs reported on the mailing-list may be easily forgotten, so it's
  832. better to file them in the <a href="http://bugzilla.ximian.com/enter_bug.cgi">bug tracking system</a>.
  833. Q: Does mcs support the same command line options as the MS C#
  834. compiler?
  835. A: The Mono C# compiler now supports the same command line
  836. arguments as the Microsoft C# compiler does.
  837. Q: How about getting searchable archives on lists.ximian.com?
  838. A: You can perform a search on the mono-related mailing lists
  839. <a href="http://www.go-mono.com/mailing-lists.html">here</a>.
  840. Q: When using mono from cvs or from a snapshot, I get an error messaage
  841. saying that Mono and the runtime are out of sync. How do I fix that?
  842. A: If you use mono from cvs, you need to be prepared for changes in the
  843. runtime internals. This means that you should keep a working setup
  844. before blindling updating (a working setup may just be the last released
  845. tarball or a recent binary snapshot).
  846. Usually, compiling corlib with mcs before recompiling the C runtime does
  847. the right thing (but occasionally you may need to do it the other
  848. way around).
  849. Q: Why are you going for a GtkHtml implementation?
  850. A: GtkHTML is just a lightweight HTML rendering engine that does not
  851. support CSS, so we need it to look decent for those of us that will
  852. be using the documentation in our day-to-day work on Linux. The
  853. Web-based interfaces lack the agility that you get from a native GUI
  854. tool to browse your documentation. Probably later on, we will write
  855. scripts and generate a full documentation set that is web-browsable,
  856. but we need a command-line and GUI tools that we can use natively on
  857. Linux when disconnected from the Web (and that has better
  858. interactions than a web page).
  859. Q: Is there a command-line tool that allows me to access .NET interactively?
  860. A: There are several but one that is free software and uses MCS is the one
  861. Dennis Lu from Rice University is working on; a REPL C# interpreter.
  862. Q: Is it possible to use Visual C++ with Mono?.
  863. A: Well, It's possible to run VC++ generated apps under Mono though.
  864. <a name="problems"></a>
  865. ** Mono Common Problems
  866. If you are having problems compiling or running Mono software
  867. or if you think that you found a bug, etc. Please visit the
  868. <a href="http://geneura.ugr.es/~jaime/deploy/mono-common-problems.html">Mono Common Problems</a> document and try there.