[zeromq-dev] [PATCH] Common Lisp binding: handy 'msg-rebuild' method

Vitaly Mayatskikh v.mayatskih at gmail.com
Thu Oct 7 17:35:33 CEST 2010


At Thu, 7 Oct 2010 19:26:53 +0700, Kamil Shakirov wrote:
 
> Would it be great if we could reuse created messages, similar to
> zmq::message_t::rebuild() method found in 0MQ C++ binding. The patch
> is attached.

IMO, it is more lispy to define setf functions for msg-data-as-foo and
modify msg objects by setf.

Perhaps, it is also a good idea to replace a variety of msg-data-as-*
by one msg-data, which takes keyword argument :array, :string,
etc. However, I'm reluctant to make such change in 2.0. Fore coming
API-incompatible version (2.1 or 3.0) is a right places to do API
change in cl-zmq also.

Oh, well! It is also a good idea to get rid of CLOS object wrapper and
switch to structure, it is much faster...

And rewrite consy poll... ;)

-- 
wbr, Vitaly



More information about the zeromq-dev mailing list