Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsWhite Papers
Discussion GroupsFirst AidDatabasesJavaBeansGUIJava 3DVirtual MachineCORBASecurityToolsGeneral
Java DirectoryOpen Source ProjectsSample Book ChaptersUser GroupsWeb Resources
Related Topics
Databases.NETMore Topics ...

Java Forum / General / October 2006

Tip: Looking for answers? Try searching our database.

javax.z Yet Another Collections Library

Thread view: 
Godspeed - 17 Oct 2006 14:55 GMT
I have started writing a new collections library based on set theory as per
Spivey's Z notation. I have put the library on SourceForge. It is currently
in its infancy and it will be expanded fairly rapidly.

Let me know if you are interested in getting involved.

To try it out go to: http://sourceforge.net/projects/zedlib

... or search for project "javax.z"

I have resisted calling it yacl, but maybe that is more appropriate!

Brad.
Oliver Wong - 17 Oct 2006 15:14 GMT
>I have started writing a new collections library based on set theory as per
>Spivey's Z notation.
[...]

> To try it out go to: http://sourceforge.net/projects/zedlib

   Maybe you should put a little blurb on the homepage about why people
should prefer your library over Sun's.

   - Oliver
Godspeed - 17 Oct 2006 15:48 GMT
Good idea. Just for a teaser...

Sequence extends Function extends Relation extends Set implements
java.util.Set

Bag extends Function ...

IMO, Sun has incorrectly modelled Map (which is equivalent to Spivey's
Function) separate to a Set. However, a Function (Map) is actually a type of
Set. Sun's collections don't have a natural Relation class which is a
mapping of X to Y values, where X can be repeated if it maps to a different
Y (hence, different to Map). A Sun Map should be a type of Relation (IMO)
which I call a Function following Spivey.

I suppose there is a purist reason for using javax.z, and it should make
collections more useful and usable. One major improvement I should make is
to introduce interfaces (they are all classes at the moment). I'll do that
soon.

The ability to use domainRestriction, rangeRestriction, transitiveClosure,
inverse, relationalComposition, relationalOverride should prove interesting
and satisfying.

>>I have started writing a new collections library based on set theory as
>>per Spivey's Z notation.
[quoted text clipped - 6 lines]
>
>    - Oliver
Daniel Dyer - 17 Oct 2006 21:45 GMT
> I have started writing a new collections library based on set theory as  
> per
[quoted text clipped - 5 lines]
>
> To try it out go to: http://sourceforge.net/projects/zedlib

I went to have a look at the code but the CVS repository is empty.

It might be worthwhile uploading some Javadoc API documentation so people  
can get an idea of how the library fits together without having to  
download it first.

Dan.

Signature

Daniel Dyer
http://www.uncommons.org



Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.