Re: [ClojureScript] Representing Signals

2015-12-10 Thread Erik Price
You can use a channel to capture this. Keep in mind that channels have different semantics from signals, so you'll write different code, but it can be done. You can also use RxJS. Leonardo Borges has a CLJS wrapper for it: https://github.com/leonardoborges/rx-cljs e On Thu, Dec 10, 2015 at 3:24

Re: [ClojureScript] Using a state machine to design/program UI ?

2015-05-13 Thread Erik Price
Finite state machines are a useful modeling tool, but when implemented in code they can involve a lot of boilerplate and complexity. These days I prefer Rx-like paradigms for sophisticated handling of asynchronous events. e On Wed, May 13, 2015 at 5:54 AM, Khalid Jebbari khalid.jebb...@gmail.com

Re: [ClojureScript] Two possible clojurescript errors with accompanying repos

2015-03-27 Thread Erik Price
This isn’t supported, the browser REPL relies fundamentally on loading code dynamically which is not supported in any way whatsoever under any optimization setting other than :none. Even an optimization of :whitespace is unsupported? e ​ On Fri, Mar 27, 2015 at 12:23 PM, David Nolen

Re: [ClojureScript] Two possible clojurescript errors with accompanying repos

2015-03-27 Thread Erik Price
to take ClojureScript we're just going to have to get more patches from the community to go there (and the maintenance work to stay there). David On Fri, Mar 27, 2015 at 2:21 PM, Erik Price e...@zensight.co wrote: Okay, thanks for answering that. There are few use cases for :simple ever

Re: [ClojureScript] Re: Clojurescript Protocol Usage

2015-03-26 Thread Erik Price
Writing code against an abstraction rather than against a concrete implementation is especially useful in ClojureScript, since the APIs can vary from browser to browser. e On Thu, Mar 26, 2015 at 8:27 AM, Thomas Heller th.hel...@gmail.com wrote: The general advice is to use Protocols if you

[ClojureScript] Add cljs-specific resources/ directory with lein?

2015-03-13 Thread Erik Price
Howdy, I’m using leiningen to build my Clojure/ClojureScript project. I’d like to use a macro from my ClojureScript code to read in some SVG files at build time, but I don’t want to put the SVG files into the “main” resources directory, because this is used by the Clojure portion of the project,

Re: [ClojureScript] Re: ANN: re-frame 0.1.7 Initial Release

2015-02-27 Thread Erik Price
On Thu, Feb 26, 2015 at 7:55 PM, Mike Thompson m.l.thompson...@gmail.com wrote: The key thing for me is: JUST. DON'T. USE. CURSORS. There I said it. They appear convenient, I know. They are a way of achieving reference transparency, I know. But I think they are a “local optimum”. Their use