473,513 Members | 2,513 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

javax.z Yet Another Collections Library

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.
Oct 17 '06 #1
3 2423

"Godspeed" <bl******@bigpond.net.auwrote in message
news:9l*******************@news-server.bigpond.net.au...
>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
Oct 17 '06 #2
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.

"Oliver Wong" <ow***@castortech.comwrote in message
news:6z5Zg.17660$P7.1375@edtnps90...
>
"Godspeed" <bl******@bigpond.net.auwrote in message
news:9l*******************@news-server.bigpond.net.au...
>>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

Oct 17 '06 #3
On Tue, 17 Oct 2006 14:59:33 +0100, Godspeed <bl******@bigpond.net.au>
wrote:
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
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.

--
Daniel Dyer
http://www.uncommons.org
Oct 17 '06 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
6548
by: Hal Vaughan | last post by:
I'm using JDK 1.4.1 for Java 2. According to the API docs, I can use javax packages, but when I add: import javax.crypto; I get an error that it can't find the package. Is there some special...
5
14696
by: Asad Khan | last post by:
Hi, I am using DrJava, and I am writing a program that has the following statement: import javax.swing; It gives me this error when compiled: File: C:\Program...
8
1781
by: Arnaud Debaene | last post by:
Hello all, One area where the .Net framework 1.1 is really poor is Collections : We've got very few choice concerning the containers and their characteristics (for example, ArrayList, Queue and...
1
1160
by: Fabrizio | last post by:
Hi I'm Fabrizio and I come from Turin in Italy. I'm a new user of C# until now I program only in Java or sometimes in C. I've problem because the C# collections are different and I don't...
1
276
by: Atif Jalal | last post by:
Need help in using collections. Any links or samples appreciated. I am trying to have collections for objects. I have an object which has another object has its data member which in turn has...
11
1654
by: CMM | last post by:
First let me say that maybe I'm having a "duh" moment and perhaps I'm missing something... but it seems to me that no one thing in the System.Collections namespace (even in .NET 2.0) even comes...
12
11307
oll3i
by: oll3i | last post by:
when i launch the application from sun application server the console opens throws something i cannt even read what and closes before the application opened and threw nullpointerexception now it...
8
6143
oll3i
by: oll3i | last post by:
it worked but suddenly when i run it and click a button it throws exception ? D:\SR>java Producent queue1 queue2 queue3 queue4 queue1,queue2,queue3,queue4...
16
5055
by: 3rdshiftcoder | last post by:
hi- where would someone find things like lists, sets, map classes like a hash map or tree map. not specifically those but in general is there a book section that deals with it? in java you can...
0
7260
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
7161
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
7539
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
1
5089
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
4746
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
3234
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
1596
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
1
802
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
456
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.