Tom Faulhaber wrote a great article which uses fill-queue to create a
lazy-seq from a data stream, I think you might find it quite
applicable:
http://infolace.blogspot.com/2009/08/simple-webhooks-with-clojure-and-ring.html
http://richhickey.github.com/clojure-contrib/seq-utils-api.html#fill-queue


On Sep 23, 4:17 pm, David Nolen <dnolen.li...@gmail.com> wrote:
> Dear Clojurians,
>
> Are lazy-seqs good for streaming data that arrives at indeterminate
> intervals? if not any pointers about which approach to take?
>
> I'm working on a simple serial port library for Clojure and I'm trying to
> understand how to best model a solution. Basically serial events will happen
> periodically on the port and I'd rather design my program in a functional
> way then just trying to translate Java serial port code that I've seen.
>
> Thanks,
>
> David
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google
Groups "Clojure" group.
To post to this group, send email to clojure@googlegroups.com
Note that posts from new members are moderated - please be patient with your 
first post.
To unsubscribe from this group, send email to
clojure+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to