[e-lang] Forwarded thoughts on asynchronous programming APIs from Constantine

Constantine Plotnikov constantine.plotnikov at gmail.com
Wed Apr 18 05:08:42 CDT 2007


Some additional notes about project:

1. There is the class BinaryData that could be interesting for E. It
represents an immutable collection of bytes.

http://asyncobjects.svn.sourceforge.net/viewvc/asyncobjects/asyncobjects/trunk/src/net.sf.asyncobjects.io/src/net/sf/asyncobjects/io/BinaryData.java?view=markup

The class is optimized to support relatively fast subrange and
concatenation operations. Iteration is also fast. However random
access is O(log(number of segments)). Class was created to simplify
implementation of common internet protocols protocols like HTTP, FTP,
SIP, and BEEP.

2. AsyncObjects framework can live upon foreign event loops (for
example AWT event loop). This feature was inspired by similar E
feature.

http://asyncobjects.svn.sourceforge.net/viewvc/asyncobjects/asyncobjects/trunk/src/net.sf.asyncobjects.awt/src/net/sf/asyncobjects/awt/

AsyncObjects vats have quite straightforward interface and can be
likely used by E runners.

http://asyncobjects.svn.sourceforge.net/viewvc/asyncobjects/asyncobjects/trunk/src/net.sf.asyncobjects/src/net/sf/asyncobjects/Vat.java?revision=132&view=markup

So it might be possible to use AO's IO API for implementing E-on-Java
IO support in the future.

3. The only way to download code right now is through SVN.
Instructions are available at.
http://sourceforge.net/svn/?group_id=170750. There is no working build
script. Eclipse 3.2 can be used to build the sources.

Constantine


More information about the e-lang mailing list