ebac5dba3bd86698c4e3db047fc81bdb9320a61a
[mono.git] / web / faq
1 ** Basics
2
3 Q: Is Mono the same as Microsoft's .NET initiative?
4
5 A: It is not. 
6
7    .NET is a company-wide initiative at Microsoft that
8    encompasses many different areas. The .NET development framework,
9    Passport, Biztalk, new server products, and anything that is
10    remotely connected to .NET gets the ".NET-stamping" treatment.
11    Some components of Microsoft's .NET initiative have been announced
12    and some others are in the works.
13
14   Mono is a project to implement several technologies developed by
15    Microsoft that have now been submitted to the ECMA Standards Body.   
16
17 Q: What technologies are included in Mono?
18
19 A: Mono contains a number of components useful for building new
20    software:
21
22         <ul>
23                 * A Common Language Infrastructure (CLI) virtual
24                   machine that contains a class loader, Just-in-time
25                   compiler, and a garbage collecting runtime.
26
27                 * A class library that can work with any language
28                   which works on the CLR.
29
30                 * A compiler for the C# language.  In the future we
31                   might work on other compilers that target the Common
32                   Language Runtime.
33
34                   Windows has compilers that target the
35                   virtual machine from
36                   <a href="http://msdn.microsoft.com/net/thirdparty/default.asp#lang">a
37                   number of languages:</a> Managed C++, Java Script,
38                   Eiffel, Component Pascal, APL, Cobol, Oberon, Perl,
39                   Python, Scheme, Smalltalk, Standard ML, Haskell,
40                   Mercury and Oberon.
41         </ul>
42
43    The CLR and the Common Type System (CTS) enables applications and
44    libraries to be written in a number of languages.  Classes and
45    methods created in one language can be used from a different
46    language. 
47
48    This means for example that if you define a class to do algebraic
49    manipulation in C#, that class can be reused from any other
50    language that supports the CLI.  You could create a class in C#,
51    subclass it in C++ and instantiate it in an Eiffel program. 
52
53    A single object system, threading system, class libraries, and
54    garbage collection system can be shared across all these languages.
55    
56 Q: Where can I find the specification for these technologies?
57
58 A: You can find the work-in-progress documentation from the T3G ECMA
59    group here:
60  
61    <a href="http://www.dotnetexperts.com">http://www.dotnetexperts.com</a>
62
63 Q: Will you implement the .NET Framework SDK class libraries?
64
65 A: Yes, we will be implementing the APIs of the .NET Framework SDK
66    class libraries. 
67
68 Q: What does Mono stand for?
69
70 A: Mono is the word for `Monkey' in Spanish. We like monkeys.
71
72 Q: When will you ship it?
73
74 A: We do not know when the code will be shipped.  The more
75    contributions we get to the project, the sooner it will ship.
76
77    A rough estimate is that we might be able to run our C# compiler on
78    Linux by the end of the year.  That means running the Windows
79    Executable generated by a Microsoft .NET compiler on the Linux
80    platform.
81
82    We expect that doing GUI applications will require more work on the
83    class libraries. That could take another six months.
84
85 Q: How can I contribute?
86
87 A: Check the <a href="contributing.html">contributing</a> section. 
88
89 Q: You guys should innovate instead of copying.
90
91 A: In this particular case, we see a clear advantage in the platform
92    and we are interested in using the features of the CLI on open source systems.
93
94    We have decided that we should spend our limited resources towards
95    implementing an existing specification instead of designing and
96    implementing our own.
97
98    Designing and implementing our own would be possible, but it doesn't make
99    sense to do that just because the specification comes from a
100    proprietary vendor.  
101
102 ** Ximian
103
104 Q: Why is Ximian working on .NET?
105
106 A: We are interested in providing the best tools for programmers to
107    develop applications for Free Operating Systems.  
108
109    For more information, read the project <a
110    href="rationale.html">rationale</a> page.
111
112 Q: Will Ximian be able to take on a project of this size?  
113
114 A: Ximian will not be able to taken on the whole project on its own.
115    Mono will be a free software/open source community project, that is
116    the only way we can hope to implement something of this size.  You
117    can <a href="contributing.html">contribute</a> to this effort.
118
119 Q: What pieces will Ximian be working on?
120
121 A: We will focus on building a development and execution
122    environment.  
123
124    The idea is to get Mono to a state of that would allow
125    third parties to actually be able to use it real-world development.
126
127 Q: Why does Ximian even care?
128
129 A: We like the features that the CLI and its related technologies
130    bring to the table.  An exciting addition to the developer toolkit.
131    The goal of Mono is to bring this technology to non-Windows
132    platforms (although we hope Mono will also run on Windows, for
133    debugging and comparative purposes).
134
135
136 ** Licensing
137
138 Q: What license is Mono on?
139
140 A: The C# Compiler is released under the terms of the GPL.  The
141    class libraries are under the LGPL.  The runtime libraries are
142    under the LGPL. 
143
144 Q: Will you accept code under the XXX License?
145
146 A: If the XXX License is compatible with the license we use in that
147    specific piece of code, then yes.  If you want to use the BSD license, make
148    sure you use the BSD license without the advertisement clause (The
149    `Ousterhout License').
150
151 ** Mono and .NET
152
153 Q: If applications use Mono, does that mean that I have to pay a service fee?
154
155 A: No.  Mono is not related to Microsoft's initiative of
156    software-as-a-service. 
157
158 Q: If you implement .NET, will I depend on Microsoft Passport to run my software?
159
160 A: No.  The .NET Framework is a runtime infrastructure and collection
161    of class libraries.  Passport may be required to access certain web
162    services written for that framework, but only if the programmer
163    chooses Passport as the authentication mechanism.
164
165 Q: Is .NET just a bunch of marketing slogans?
166
167 A: Although the `.NET initiative' is still quite nebulous, The .NET Framework
168    has been available for some time.  Mono is not an implementation of the .NET
169    initiative, just the development framework.
170
171 Q: What is a 100% .NET application?
172
173 A: A `100% .NET application' is one that only uses the APIs defined
174    under the System namespace and does not use PInvoke.  These
175    applications would in theory run unmodified on Windows, Linux,
176    HP-UX, Solaris, MacOS X and others. 
177
178 Q: But Microsoft will release a port of the real thing under the
179    `Shared Source' license, why bother with anything else?
180
181 A: The Shared Source implementation will not be usable for commercial
182    purposes.  We are working towards an implementation that will grant
183    a number of rights to recipients: use for any purpose,
184    redistribution, modification, and redistribution of modifications.
185
186    This is what we call <a
187    href="http://www.gnu.org/philosophy/free-sw.html">Free Software</a>
188
189 ** Passport
190
191 Q: Is this a free implementation of Passport?
192
193 A: No.  Passport is part of Microsoft's Hailstorm initiative.  Mono
194    is just a runtime, a compiler and a set of class libraries. 
195
196 Q: Will the System.Web.Security.PassportIdentity class, mean
197    that my software will depend on Passport?
198    
199 A: No.  That just means that applications might use that API to
200    contact a Passport site.  
201
202    As long as your application does not use Passport, you will not
203    need Passport.  
204
205    It might even be possible to implement that class with
206    a set of dummy functions, or use an alternate Passport implementation.
207
208    We do not know at this time whether the Passport protocol is
209    documented and whether we will be able to talk to
210    passport.com 
211
212 ** Mono and Windows
213
214 Q: Will Mono allow me to run Microsoft Office on Linux?
215
216 A: No, it will not.  Microsoft Office is a Windows application.  To
217    run Windows applications on Intel Unix systems refer to <a
218    href="http://www.winehq.com">the Wine Project</a>
219
220 ** GNOME
221
222 Q: How is this related to GNOME?
223
224 A: In a number of ways:
225
226         * Mono will use existing
227           components that have been developed for GNOME when it makes
228           sense.  For example on X systems, we will use Gtk+ and
229           Libart to implement Winforms and the Drawing2D API.  
230
231           For database access, we will use LibGDA (not really
232           depending on GNOME, but related to).
233
234         * This project was born out of the need of providing improved
235           tools for the GNOME community. 
236
237         * We would like to add support to our CLR implementation to
238           deal with GObjects (in GNOME 1.x, they are called
239           GtkObjects), and allow Mono developers to provide GObjects
240           or use and extend existing GObjects.
241
242 Q: Has the GNOME Foundation or the GNOME team adopted Mono?
243
244 A: Mono is too new to be adopted by those groups. We hope that the
245    tools that we will provide will be adopted by free software
246    programmers including the GNOME Foundation members and the GNOME
247    project generally.
248
249 Q: Should GNOME programmers switch over to Mono?
250
251 A: Mono will not be ready even within the next six months, and a
252    complete implementation is probably one year away.  
253
254    We encourage GNOME developers to continue using the existing tools,
255    libraries and components.  Improvements made to GNOME will have an
256    impact on Mono, as they will provide the "backend" for various
257    classes. 
258
259 Q: Will Mono include compatibility with Bonobo components?
260
261 A: Yes, we will provide a set of classes for implementing and using
262    Bonobo components from within Mono. 
263
264 ** Mono and the Web
265
266 Q: Is Mono a way of running Java applets?
267
268 A: No.
269
270 ** Web Services
271
272 Q: Is Mono just a new way of writing Web Services?
273
274 A: No.
275
276 Q: If this implements the SDK classes, will I be able to write and
277    execute .NET Web Services with this?
278    
279 A: Yes, you will.
280
281    When the project is finished, you will be able to use the same
282    technologies that are available through the .NET Framework SDK on
283    Windows to write Web Services.
284
285 Q: What about Soup?
286
287 A: Soup is a library for GNOME applications to create SOAP server and
288    SOAP clients.  
289
290 Q: Can I use CORBA?
291
292 A: Yes. The CLI contains enough information about a class that
293    exposing it to other RPC systems (like CORBA) is really simple, and
294    does not even require support from an object.  
295
296    We will be implementing CORBA interoperation as an extension to the
297    Mono classes so that we can integrate with Bonobo, just like
298    Microsoft provides COM interoperation classes and support
299    mechanisms. 
300
301 Q: Can I serialize my objects to other things other than XML?
302
303 A: Yes, although the serializing tools have not yet been planned, and
304 you would probably have to implement them yourself.
305
306 ** Development Tools 
307
308 Q: Will it be possible to use the CLI features without using bytecodes
309    or the JIT?
310
311 A: Yes. The CLI engine will be made available as a shared library.
312    The garbage collection engine, the threading abstraction, the
313    object system, the dynamic type code system and the JIT will be
314    available for C developers to integreate with their applications if
315    they wish to do so. 
316
317 Q: Will you have new development tools?
318
319 A: Hopefully Free Software enthusiasts will contribute tools to
320    improve the developer environment.  These tools could be developed
321    initially using Microsoft implementation of the CLI and then
322    executed later with Mono.
323
324 ** Mono and Java
325    
326 Q: What about using Java?  After all there are many languages that
327    target the Java VM.
328
329 A: You can get very good tools for doing Java development on free
330    systems right now.  <a href="http://www.redhat.com">Red Hat</a> has
331    contributed a <a href="http://gcc.gnu.org">GCC</a> <a
332    href="http://gcc.gnu.org/java">frontend for Java</a> that can take
333    Java sources or Java byte codes and generate native executables; <a
334    href="http://www.transvirtual.com">Transvirtual</a> has implemented
335    <a href="http://www.kaffe.org">Kaffe</a> a JIT engine for Java;
336    Intel also has a Java VM called <a
337    href="http://www.intel.com/research/mrl/orp">ORP</a>.
338
339    The JVM is not designed to be a general purpose virtual machine.
340    The Common Intermediate Language (CIL), on the other hand, is
341    designed to be a target for a
342    wide variety of programming languages, and has a set of rules
343    designed to be optimal for JITers.
344
345 Q: What kind of rules make the Common Intermediate Language useful for
346    JITers?
347
348 A: The main rule is that the stack in the CLI is not a general purpose
349    stack.   You are not allowed to use it for other purposes than
350    computing values and passing arguments to functions or return
351    values.  
352
353    At any given call or return instruction, the types on the stack
354    have to be the same independently of the flow of execution of your
355    code. 
356
357 ** Extending Mono
358
359 Q: Would you allow other classes other than those in the
360    specification?
361
362 A: Yes.  The Microsoft class collection is very big, but it is by no
363    means complete.  It would be nice to have a port of `Camel' (the
364    Mail API used by Evolution inspired by Java Mail) for Mono
365    applications.  
366
367    You might also want to look into implementing CORBA for Mono.  Not
368    only because it would be useful, but because it sounds like a fun
369    thing to do, given the fact that the CLI is such a type rich
370    system. 
371
372    For more information on extending Mono, see our <a
373    href="ideas.html">ideas</a> page.
374
375 ** Mono and portability
376
377 Q: Will Mono only work on Linux?
378
379 A: Currently, we are doing our work on Linux-based systems and
380    Windows.  We do not expect many Linux-isms in the code, so it
381    should be easy to port Mono to other UNIX variants.   
382
383 Q: What about Mono on non X-based systems?
384
385 A: Our main intention at Ximian is to be able to develop GNOME
386    applications with Mono, but if you are interested in providing a
387    port of the Winform classes to other platforms (frame buffer or
388    MacOS X for example), we would gladly integrate them, as long
389    they are under a Free Software License. 
390
391 ** Reusing existing Code
392
393 Q: What projects will you reuse or build upon?
394
395 A: We want to get Mono in the hands of programmers soon.  We are
396    interested in reusing existing open source software.
397
398 Q: What about Intel's research JIT framework, ORP?
399
400 A: At this time, we are investigating whether we can use elements of
401    ORP for Mono.   ORP is a research JIT engine that has a clear
402    defined API that splits the JIT from the GC system and the actual
403    byte code implementation.   It is a research product.
404
405 Q: What about using GNU Lightning?
406
407 A: We are also researching <a
408    href="http://www.gnu.org/software/lightning/lightning.html">GNU
409    Lightning</a>.
410
411 ** Ximian and Microsoft
412
413 Q: Didn't Miguel de Icaza say that `Unix Sucks'?
414
415 A: Yes, he did, as a catch phrase in his opening remark on the Ottawa
416    Linux Symposium.  His talk focused on various ways to improve Unix.
417
418    There is a paper describing some ways to improve Unix at:
419
420         <a href="http://primates.ximian.com/~miguel/bongo-bong.html">
421         http://primates.ximian.com/~miguel/bongo-bong.html</a>
422
423 Q: Didn't Ximian's Miguel work for Microsoft?
424
425 A: Actually, Nat Friedman (Ximian's co-founder) did work as an
426    intern for Microsoft for one summer but Miguel did not.
427
428 Q: Did Nat and Miguel meet at Microsoft?
429
430 A: They met online on the Linux IRC network;  They met in person for
431    the first time in 1997.
432
433 Q: How can you expect Mono to compete with Microsoft, wont this
434    require an effort too large?
435
436 A: You are right.  Mono will never become a reality without the help
437    of other contributors.  Ximian is a small company that can not
438    finish Mono alone.  We will be working with members of the
439    community to deliver the product.
440
441 ** Acronyms
442
443 Q: What is the difference between CLR (Common Language Runtime) and
444    CLI (Common Language Infrastructure)?
445
446 A: CLI is the specification of an execution system.  The Microsoft
447    implementation of this specification is named CLR. 
448
449    Unless we come up with our own acronym, we could just call ours
450    also CLR, just because it would do exactly the same thing the
451    Microsoft implementation does.
452
453 <a name="gcc">
454 ** Mono and GCC
455
456 Q: Should someone work on a GCC front-end to C#?
457
458 A: I would love if someone does, and we would love to help anyone that
459    takes on that task, but we do not have the time or expertise to
460    build a C# compiler with the GCC engine.  I find it a lot more fun
461    personally to work on C# on a C# compiler, which has an intrinsic
462    beauty.
463
464 Q: Should someone make a GCC backend that will generate CIL images?
465
466 A: I would love to see a backend to GCC that generates CIL images.  It
467    would provide a ton of free compilers that would generate CIL
468    code.  This is something that people would want to look into
469    anyways for Windows interoperation in the future.
470
471 Q: What about making a front-end to GCC that takes CIL images and
472    generates native code?
473
474 A: I would love to see this, specially since GCC supports this same
475    feature for Java Byte Codes.  You could use the metadata library
476    from Mono to read the byte codes (ie, this would be your
477    "front-end") and generate the trees that get passed to the
478    optimizer.
479
480    Ideally our implementation of the CLI will be available as a shared
481    library that could be linked with your application as its runtime
482    support. 
483
484 Q: But would this work around the GPL in the GCC compiler and allow
485    people to work on non-free front-ends?
486
487 A: People can already do this by targeting the JVM byte codes (there
488    are about 130 compilers for various languages that target the JVM).
489
490
491 ** Mono and Portability
492
493 Q: Will Mono work on other variants of Unix?
494
495 A: Yes.  We do not expect to add any gratuitous incompatibilities.
496
497 Q: Will Mono run on Windows?
498
499 A: Hopefully yes.  Currently some parts of Mono only run on Windows
500    (the C# compiler is a .NET executable) and other parts have only
501    been compiled on Linux, but work on Windows with Cygwin.
502
503 Q: Will Mono depend on GNOME?
504
505 A: It will depend only if you are using a particular assembly (for
506    example, for doing GUI applications).  If you are just interested
507    in Mono for implementing a `Hello World Enterprise P2P Web
508    Service', you will not need any GNOME component.