473,587 Members | 2,580 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 2432

"Godspeed" <bl******@bigpo nd.net.auwrote in message
news:9l******** ***********@new s-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 domainRestricti on, rangeRestrictio n, transitiveClosu re,
inverse, relationalCompo sition, relationalOverr ide should prove interesting
and satisfying.

"Oliver Wong" <ow***@castorte ch.comwrote in message
news:6z5Zg.1766 0$P7.1375@edtnp s90...
>
"Godspeed" <bl******@bigpo nd.net.auwrote in message
news:9l******** ***********@new s-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******@bigpo nd.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
6552
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 way to get javax packages? According to a web page at Sun, the crypto is supposed to be included with 1.4. (That's how they write it -- no 1.4.1...
5
14708
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 Files\DrJava\CustomJFrame.java
8
1795
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 Stack are the only "non-dictionary" avalaible containers, and only Stack has some complexity specifications). The worst thing however is the...
1
1162
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 understand it very much. There is someone on this google groups that have implements java collection in C#? In particular I've look that the linkedlist...
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 another object as its one of the data member. All these object are to be collections.
11
1661
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 close to the still-useful-today VB intrinsic Collection. Here's the challenge (I know I'm totally missing something here).... Implement a full...
12
11319
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 suddenly stopped even opening ? but when i run it form bat with JAVA_CLIENT parameter it throws javax.ejb.EJBException: nested exception is:...
8
6154
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 javax.naming.NoInitialContextException: Cannot instantiate class: org.exolab.jms .jndi.InitialContextFactory at...
16
5081
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 use the interface to these without having to know all of the implementation details. is there an interface to a library with these kind of methods...
0
7918
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main...
0
7843
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language...
1
7967
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For...
0
8220
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the...
0
6621
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then...
1
5713
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 presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes...
0
3840
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 last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in...
1
1452
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
1185
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 can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating...

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.