[Mono-list] binding

Sebastien Lambla sebastien.lambla@6sens.com
Tue, 10 Jul 2001 23:25:05 -0700


I think we should concentrate on having all possible classes built on C#,
mainly because when the library writing is complete, it will be easier to
port a very small number of OS dependant classes to new platforms and have
most of the classes running out of the box.

On the other hand, on a per-os basis, it would be great to have optimized
classes for a specific platform, but when and only when pure C# classes
exists.

What do you think?

Sebastien Lambla

-----Original Message-----
From: mono-list-admin@ximian.com [mailto:mono-list-admin@ximian.com]On
Behalf Of Stefan Arentz
Sent: mardi 10 juillet 2001 13:49
To: Bob Smith
Cc: mono-list@ximian.com
Subject: Re: [Mono-list] binding


On Tue, Jul 10, 2001 at 01:25:33PM -0600, Bob Smith wrote:
> I'm looking at implementing the Math class and I was wondering would it
> be better to implement it from scratch in C#, or bind it to standard C
> math functions. Each way is just as portable as the other, both I think
> will be just about the same performance, the C binding requires less
> work, and the C# way would probably be cleaner. What is the general
> consensus about binding vs codeing when it comes to making use of
> standard C libs?

Compiled C code has dependencies to support libraries. Bytecode can be
run immediately on any platform.

If speed is a problem, it's probably possible to do both a bytecode
and native version, and let the runtime decide which one to use?

 Stefan


_______________________________________________
Mono-list maillist  -  Mono-list@ximian.com
http://lists.ximian.com/mailman/listinfo/mono-list