[Mono-list] What application/library should be coding in C#

Jonathan Pryor jonpryor@vt.edu
Mon, 22 Mar 2004 07:06:53 -0500


On Mon, 2004-03-22 at 03:54, Harobed wrote:
> Hello all. 
>  
> I would like to know, when use C, and when use C#. 

Depends on your context.  For implementing Mono, C# is preferred when
possible, to ease maintenance, portability, and it's occasionally faster
than C (due to internal-call overhead, etc.).
 
> Exemple : gtk should be coding in C or in C#. Gtksourceview in C or C#
> ... ? What application, library should be coding in C# ? 

That's a very contentious issue, and has spawned a great multitude of
blog entries on http://planet.gnome.org.

For the time being, the status quo is probably best: GTK+ in C with C#
wrappers, GtkSourceView in C with C# wrappers, etc.

For new code, developers should use what they're most comfortable with. 
With large exceptions (until contentious issues are resolved): if it's
going to be part of the Gnome platform, it must (currently) be in C.  If
the targeted developer base (for libraries) wants C, use C.

In short, don't force people to use C#, as that's a good way to cause
needless hatred against Mono, making the contentious issues...more
contentious.

It all depends on the particular circumstances.
 
> What will be the performance of gtk if it is coded in C# ? 

Code it up and give us a performance comparison? ;-)

There are too many variables to answer this question.

 - Jon