On Tuesday, August 27, 2013 6:03:29 PM UTC+2, daveray wrote:
Hi.
I'm writing to see if there's anyone out there using RxJava [1] from
Clojure and to get their opinion on it's current, built-in support for
non-Java languages.
Just to recap, the current implementation knows about clojure.lang.IFn
allowing functions to be passed directly to RxJava methods:
(- my-observable
(.map (fn [v] (Long/parseLong v)))
(.reduce +))
RxJava will automatically convert these functions to the underlying
rx.util.functions.FuncX interface and re-dispatch to the appropriate method.
So, the question is: as a user of RxJava, how valuable is this feature? Do
you just end up wrapping things anyway,
We are using RxJava and Hystrix with Clojure @ SoundCloud. All our
Observables come from Hystrix cmds.
I've have not added any wrappers around the RxJava stuff yet, not really
felt the need.
I've found it convenient to pass in fns but I would also be happy with what
you suggest below (rx/fn).
I suspect in those cases I might start wrapping rx/fn, so it continues to
look like the current behaviour (recognising Clojure fns).
Thanks,
--
Joseph Wilk
http://blog.josephwilk.net
@josephwilk
so you could easily perform the same transformation in your wrapper? Would
helper fns/macros be a sufficient alternative:
(- my-observable
(.map (rx/fn [v] (Long/parseLong v)))
(.reduce (rx/fn* +)))
There will be some changes in this area in the near future and we'd like
to get a feel for if/how people are using RxJava from Clojure.
Thanks!
Dave
[1] https://github.com/Netflix/RxJava
--
--
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
---
You received this message because you are subscribed to the Google Groups
Clojure group.
To unsubscribe from this group and stop receiving emails from it, send an email
to clojure+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.