[Mono-list] Re: Mono / C# JXTA port

Gregory Bowyer gbowyer@fastmail.co.uk
Fri, 19 Nov 2004 13:09:16 +0000

Battermann, Joerg wrote:
> Gregory,
> I am definetly interested - let me know what I can do / what kind of
> help you need. 

Mainly grunt porting work from the Java source code, the majority of 
which I cant seem being too bad, I have converted the old JXTA version 
(Java 2.1) with Microsoft's JLCA tool, I will start soon on the new 2.3 

The difficult bits as far as I can see are :
1) Changing the event model - The Java API uses the Java EventObject 	 
system this will need to be redone with delegates

2) Java specifics, namely parts of the security model, use of reflection 
AWT dialogs etc

3) Redefining how exceptions are handled - Whilst there is a lot of java 
style exception wrapping I personally think we need to find the bottom 
exception wrapper in a chain and only re-wrap where it makes sense (we 
are not trying to please the compiler after all)

4) As I am working through the JLCA converted sources I am changing the 
namespaces and method names to be more .net style so for example package 
net.JXTA.access becomes namespace Jxta.Access and camelCase becomes 
FullCase. This has the bonus of letting me know which files I have 
worked on as I am a believer in the idea that code I haven't touched in 
two weeks might as well be new.

5) Eventually the development of higher level code, some demo apps etc - 
It would be nice to leverage a simple model using attributes for the 
development of JXTA services as well as some of the java ideas such as 
having a JxtaSocket. The JxtaSocket could be difficult as I believe that 
the .net class namespace is sealed to its own .dll and cant be extended 
with a third party dll but I could be horrifically wrong.

Basically I am throwing this open for anyone to help so any commits to 
CVS at the moment are fine, when I have converted java-JXTA-2.,3 with 
JLCA I will submit the "grunt" work API to CVS.

> Best regards / MfG, 
> --
> Joerg Battermann
> jb@justBE.com 
> http://www.justBE.com 
> PGP-KeyID: 0x77007DA6
> PGP-Fingerprint: 0461 F2EC 53EB CEBE 6B73 8EEC 64AD 0606 7700 7DA6
> -----Original Message-----
> From: mono-list-admin@lists.ximian.com
> [mailto:mono-list-admin@lists.ximian.com] On Behalf Of Gregory Bowyer
> Sent: Friday, November 19, 2004 12:52 AM
> To: Mono-list@lists.ximian.com
> Subject: [Mono-list] Mono / C# JXTA port
> I am currently starting and working on porting the JXTA library to .net,
> Yes I am aware that the same deal can be done with IKVM but in due time
> it would be nice to take advantage of C# features (namely attributes and
> delegates) in JXTA. I hope that the c# impl can be compatible with all
> other implementations (it should be) and a reasonable performer. This
> port is done because imho JXTA should be on every major dev platform it
> it want to succeed.
> Anyone willing to pitch-in a hand or lend advice ????
> The project is in its initial stages at jxta4net.jxta.org
> _______________________________________________
> Mono-list maillist  -  Mono-list@lists.ximian.com
> http://lists.ximian.com/mailman/listinfo/mono-list
> _______________________________________________
> Mono-list maillist  -  Mono-list@lists.ximian.com
> http://lists.ximian.com/mailman/listinfo/mono-list