[ClojureScript] Re: Metadata via defn

2015-05-28 Thread Ruslan Prokopchuk
пользователь Mike Thompson написал: On Thursday, May 28, 2015 at 4:55:09 PM UTC+10, Ruslan Prokopchuk wrote: (meta #'f) Hmm. I think there's something fundamental I'm not grasping here. But I'm struggling to ask the right question to get the ahhh moment. Perhaps this: why, in my original

[ClojureScript] Re: Metadata via defn

2015-05-28 Thread Ruslan Prokopchuk
at 5:39:54 PM UTC+10, Ruslan Prokopchuk wrote: Okay, thanks, that makes some sense. So, attaching metadata to the var rather than the value the var is bound to. Got it. But ... I then performed this experiment where I feel I am attaching metadata to the value ... (def fff ^{:a 1} (fn

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

2015-05-17 Thread Ruslan Prokopchuk
Re: Javelin subscriptions. Code to mimic subscriptions with cells and to use them as ratoms in Reagent code is pretty straightforward: Definition: https://github.com/ul/ampere/blob/master/src/ampere/adapters/reagent.cljs#L5 Usage in Reagent view:

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

2015-05-14 Thread Ruslan Prokopchuk
And that is why they should be compiled, not implemented directly in main language of the project. I've made experimental yEd diagrams → CLJ(S) FSM compiler and executor (https://github.com/ul/vfsm). Simple example of its usage could be found here

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

2015-05-14 Thread Ruslan Prokopchuk
Jamie, exactly, I took re-frame (it's awesome!) and replaced subscriptions mechanism with Javelin cells. I like Javelin, it allows elegant and succinct data coordination. See todomvc example in the amper and re-frame repos for comparison. Also I've replaced Reagent with Om because of my

[ClojureScript] Re: ANN: ClojureScript 0.0-3255 - pretty printer latest Closure Compiler / Library

2015-05-11 Thread Ruslan Prokopchuk
With 3269 I have the following error: java.lang.IllegalArgumentException: /home/ul/Projects/project1/lib/transformflatgeom.js is not a relative path at clojure.java.io$as_relative_path.invoke (io.clj:405) config is: :compiler { :output-to resources/public/js/dev.js :output-dir

Re: [ClojureScript] Re: ANN: ClojureScript 0.0-3255 - pretty printer latest Closure Compiler / Library

2015-05-11 Thread Ruslan Prokopchuk
you don't need specify each library, `:libs [lib]` should suffice. David On Mon, May 11, 2015 at 1:10 AM, Ruslan Prokopchuk fer@gmail.com wrote: With 3269 I have the following error: java.lang.IllegalArgumentException: /home/ul/Projects/project1/lib/transformflatgeom.js

[ClojureScript] Re: [Om] Getting component owner

2015-04-04 Thread Ruslan Prokopchuk
One of solutions that I see now is to wrap `anchor` in div with :ref and get width of that div. Also, pass parent owner (or channel as alternative) to Popup component and give it responsibility to pass width to `popup` or ignore it. This problem is interesting as a class of similar problems, so

[ClojureScript] [Om] Getting component owner

2015-04-04 Thread Ruslan Prokopchuk
I want to make Om Popup component based on Closure Popup [1], which takes two results of `om/build` (let name it `anchor` and `popup`) and wraps them to add popup functionality to `popup`, anchoring its position to `anchor`. But in my component I need to get `anchor` and `popup` DOM elements to

Re: [ClojureScript] Anyone interested in some remote CLJS/Om development work?

2015-03-18 Thread Ruslan Prokopchuk
Salute! Prima facie, I have an interest to it, could you reach me by email fer.ob...@gmail.com with details? среда, 18 марта 2015 г., 1:03:51 UTC+3 пользователь Marc Fawzi написал: I started is a list for that. CC-ing Begin forwarded message: Hi All (I'm not sure how people feel

Re: [ClojureScript] Re: Using Polymer With Om or Freactive

2014-12-18 Thread Ruslan Prokopchuk
Works in my Firefox 34.0 on Linux. Does page produce any errors in Console? -- Note that posts from new members are moderated - please be patient with your first post. --- You received this message because you are subscribed to the Google Groups ClojureScript group. To unsubscribe from this

[ClojureScript] Re: My ClojureScript workflow eats up more than a 1gb RAM. Please review?

2014-11-22 Thread Ruslan Prokopchuk
I believe that lein-pdo [1] could help a little, but my workflow anyway heavyweight, I'm also will be grateful for suggestions. Example of using pdo: :aliases {dev-up [with-profile dev pdo cljx auto,

[ClojureScript] Re: My ClojureScript workflow eats up more than a 1gb RAM. Please review?

2014-11-22 Thread Ruslan Prokopchuk
суббота, 22 ноября 2014 г., 16:55:01 UTC+3 пользователь Ruslan Prokopchuk написал: I believe that lein-pdo [1] could help a little, but my workflow anyway heavyweight, I'm also will be grateful for suggestions. Example of using pdo: :aliases {dev-up [with-profile dev

[ClojureScript] Om + GSS

2014-10-19 Thread Ruslan Prokopchuk
Does anybody have experience using Om GSS (gridstylesheets.org) together? Especially in live environment like lein-figwheel. Plain Om + GSS combination works fine (as I hope; I haven't investigated this far because of struggling with problem described below), but when lein-figwheel sends

Re: [ClojureScript] Re: Organization of project file for multiple single-page apps

2014-09-12 Thread Ruslan Prokopchuk
And even more, you can define component systems for every endpoint (reusing components between them!) using [com.palletops/leaven] (or port to CLJS [com.stuartsierra/component] or [im.chit/hara.component] by yourself) and start necessary one on each endpoint. As bonus, if some or all of

Re: [ClojureScript] [Om] get-shared join

2014-01-21 Thread Ruslan Prokopchuk
David, thanks for reply. I like idea of om.core/join and vote for it if one will not complicate things. Because in my current project I have some global app options which could be changed and are used in several places of component hierarchy. I know, it is cheap to merge them to components'

[ClojureScript] [Om] get-shared join

2014-01-20 Thread Ruslan Prokopchuk
What is conceptual difference between get-shared and join? Should shared data be something like root-scope config, which is not meant to be changed during root lifecycle? And will component be rendered on om.core/join'ed data change? -- Note that posts from new members are moderated - please

Re: [ClojureScript] [Om] How to manage state

2014-01-15 Thread Ruslan Prokopchuk
Component is dropped by user near some position, in render this component sees it and snaps itself to this position. Then component and position ids should be reported to app global state. I've done it in render, but now I think about putting message with ids into core.async channel and process

[ClojureScript] Fun map over keyword

2014-01-15 Thread Ruslan Prokopchuk
cljs.user= (map identity :x) (: ' x) -- Note that posts from new members are moderated - please be patient with your first post. --- You received this message because you are subscribed to the Google Groups ClojureScript group. To unsubscribe from this group and stop receiving emails from it,