Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home
« Groups Home
Message from discussion Datatypes and protocols - update
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
Rich Hickey  
View profile  
 More options Nov 30 2009, 8:42 pm
From: Rich Hickey <richhic...@gmail.com>
Date: Mon, 30 Nov 2009 17:42:45 -0800 (PST)
Local: Mon, Nov 30 2009 8:42 pm
Subject: Datatypes and protocols - update
An updated version of the code for datatypes[1] and protocols[2] is
now available in the 'new' branch[3].

I have done a lot of work on performance, and refined the design. The
big news is that you can now directly implement a protocol inside a
deftype, and you can also reify protocols. This cements protocols as
the superior way to model the things for which they are suitable,
since they can match the performance of interfaces without their
limitations.

In addition, defprotocol automatically generates a corresponding
interface, which can be used to reach the protocol from Java with the
highest performance. This same interface is used internally by the
deftype and reify support described above.

Small changes include:

 - No more use of . in reify/deftype method names
 - No more implicit this in reify/deftype
 - Protocols are supported directly, where interfaces are, in reify
and deftype (and my be intermingled).

I've striven to make these features consistent, flexible, and high
performance, with good support for dynamic interactive development. If
you have the time and inclination, please try them out.

Feedback is particularly welcome as they are being finalized.

Thanks,
Rich

[1] http://www.assembla.com/wiki/show/clojure/Datatypes
[2] http://www.assembla.com/wiki/show/clojure/Protocols
[3] http://github.com/richhickey/clojure/tree/new
[4] http://build.clojure.org/


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.