[ClojureScript] Re: Error with Quick Start / Swannodette/mies

2015-08-14 Thread jack james
the quick-start uses the cljs 1.7.48 jar. 1.7.48 had a windows regression, which was fixed in 1.7.58 ( see: https://github.com/clojure/clojurescript/releases ). i'm guessing that's what's causing this error. w/ mies, you could probably try bumping cljs up to 1.7.58 (or even 1.7.107). for the q

[ClojureScript] Re: How to create UUIDs?

2015-05-25 Thread jack james
On Monday, May 25, 2015 at 4:32:37 PM UTC-5, Colin Yates wrote: > Hi all, > > (UUID. "214ecb53-2815-492a-aa11-209843bef82a") gives "WARNING: Wrong number > of args (1) passed to UUID at line 1 " > > What's the correct usage? > > Thanks! pretty sure that's the correct usage. works for me at the

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

2015-05-12 Thread jack james
mies is out of date and uses an old version of cljs and clojure 1.6. lein ancient doesn't upgrade clojure unless you use the :check-clojure option. so it upgrades cljs to 3269, but leaves clojure at 1.6.0, and that won't fly. On Tuesday, May 12, 2015 at 9:05:22 AM UTC-5, g vim wrote: > lein mie

[ClojureScript] Re: Updating local state in IWillUpdate

2014-12-31 Thread jack james
On Wednesday, December 31, 2014 5:47:09 AM UTC-6, Andrew wrote: > As a followup to this, I'm trying to understand why line 70 prints "not > found": > > https://www.refheap.com/95618#L-70 > > I am trying to understand the various mechanisms that go into drag and drop > and am loosely following t

Re: [ClojureScript] Re: Updating sorted set inside go block

2014-12-25 Thread Tom Jack
Maps aren't comparable, so they don't make sense with sorted-set. This is not a bug. On Dec 25, 2014 12:25 PM, "Sven Richter" wrote: > Hi, > > while I was preparing the bug report Captaion Obvious hit me again. This > also occurs in clojure: > > As Thomas said, this is enough to reproduce it: > >

Re: [ClojureScript] Re: Troubles with om's `update!` in regards to `transact!`

2014-12-13 Thread jack james
14 11:15:00 AM UTC-6, David Mohl wrote: > Hey Jack, > > > > > here are 2 specific examples taken from my codebase. One inside a render, one > inside a will-mount: https://www.refheap.com/fec9b8d2d50ce755214817b21 > > > > > In both cases, if I use update! inst

[ClojureScript] Re: Om - Components in Components

2014-12-11 Thread jack james
om/build expects a map for its third argument. your code should work if you replace (om/build child app owner) with (om/build child app). On Thursday, December 11, 2014 6:39:24 PM UTC-6, Bob Erb wrote: > I'm having trouble building Om components that consist of other Om > components. I can't fig

[ClojureScript] Re: Om opts is ignored, why?

2014-12-11 Thread jack james
The best way to get help with this is to post (gist, refheap, or similar) a complete but minimal case that demonstrates the issue. Here's an example that you may find helpful that includes (a contrived use of) build-all, opts, and render-state: https://www.refheap.com/94767 On Thursday, Decemb

[ClojureScript] Re: Om or quiescent ?

2014-11-28 Thread jack james
The quiescent readme provides a lot of specific information about the comparison: https://github.com/levand/quiescent#comparison-with-om FWIW, I'd encourage you to make the investment and learn Om. It doesn't take long before the stuff that you're not understanding at first glance seems trivia

[ClojureScript] Re: Troubles with om's `update!` in regards to `transact!`

2014-11-28 Thread jack james
i can't reproduce this. can you post a minimal case showing an example where transact! succeeds and update! fails? https://www.refheap.com/94143 On Friday, November 28, 2014 3:28:25 AM UTC-6, David Mohl wrote: > Hey there. I am constantly running into a small issue with om/update! and > om/tr

Re: [ClojureScript] Re: om (0.8alpha1) resolved cursor != contents of cursor

2014-11-08 Thread jack james
challenge. > > The approach,  if I may generalise is by all means project off app-state but > keep it alongside (e.g. through opts as you show), rather than intermingled > with? > > Essentially,  it all went wrong when I mutated the cursor itself. > > Thanks James, >

[ClojureScript] Re: om (0.8alpha1) resolved cursor != contents of cursor

2014-11-08 Thread jack james
I don't think this is a bug. When you deref a cursor, you get the values stored in the underlying app-state atom. Here, you're storing a cursor in a component's local state. When you deref it later, you're still only going to get the values stored the the cursor's underlying app-state atom...

[ClojureScript] Re: om questions

2014-11-03 Thread jack james
On Monday, November 3, 2014 3:53:45 AM UTC-6, Colin Yates wrote: > The performance problem was due to me incorrectly mutating the data to the > component. Rather than: > > (om/build-all child-component (map (fn [child] (assoc child :selected? (= > (:id child) selected-id) :selected-row-fn (fn [p

[ClojureScript] Re: Confusion about owner and inter component communication

2014-11-02 Thread jack james
It's very complicated, but I don't think it needs to be. You're using channels and ref-cursors in ways that introduce complexity without any benefit that i can see. For your purposes, I think it's a lot simpler without either: https://www.refheap.com/92626 Or maybe i'm overlooking something?

[ClojureScript] Re: om questions

2014-11-02 Thread jack james
On Sunday, November 2, 2014 10:47:13 AM UTC-6, Colin Yates wrote: > (om newbie, but getting less so :)) > > [overhead] > Is there any overhead for a react component at runtime? If I have a single > component which emits a bunch of , is there any cost to having each > be an instance of a compone

[ClojureScript] Re: om questions

2014-11-02 Thread jack james
On Sunday, November 2, 2014 10:47:13 AM UTC-6, Colin Yates wrote: > (om newbie, but getting less so :)) > > [overhead] > Is there any overhead for a react component at runtime? If I have a single > component which emits a bunch of , is there any cost to having each > be an instance of a compone

Re: [ClojureScript] Om: Question about how best to structure app state and use cursors

2014-09-18 Thread jack james
On Saturday, September 13, 2014 8:58:38 AM UTC-5, Brian Gaines wrote: > I have noticed you have posted updates since this thread died, but I didn't > see the feature added. Are you still working on it, or is there another > method preferred for handling this issue, or have I overlooked it in one

[ClojureScript] Re: [Om] [om-bootstrap] Programatically populate items in om-bootstrap dropdown

2014-09-04 Thread jack james
On Thursday, September 4, 2014 9:50:41 PM UTC-5, Tom George wrote: > Hi, > > I'm doing my first real work in clojurescript/om. I have a little web > service that queries a database and returns a JSON message of all known > schema owners. I want to use this data source to populate a dropdown. >

[ClojureScript] Re: Om: beginner question regarding build-all

2014-08-17 Thread jack james
On Sunday, August 17, 2014 3:22:53 PM UTC-5, Ryan Waters wrote: > The following does not render a vector of numbers like I would expect - what > (assuredly) simple thing am I missing? > > Thank you. > > ;; > > > > > (def

[ClojureScript] Re: Om: beginner question regarding build-all

2014-08-17 Thread jack james
On Sunday, August 17, 2014 3:22:53 PM UTC-5, Ryan Waters wrote: > The following does not render a vector of numbers like I would expect - what > (assuredly) simple thing am I missing? > > Thank you. > > ;; > > > > > (def

[ClojureScript] Advanced compilation file size increase/regression

2014-08-05 Thread Jack
The compiled output size for samples/hello project has increased since I last played around clojurescript. It's currently 62k with advanced compilation, without gzip. I ran a git bisect and found that the following commit bloated the hello world file size from 14k to 56k: commit 29c8597a2c818fb

Re: [ClojureScript] [ANN] Ominate - animate your Om components

2014-05-06 Thread Jack Schaedler
ys on getting something going > and then we can compare notes! > > The big question for me has always been how to deal with the add/remove item > from a list enter/exit animation that Jack is talking about. > > Ideally animation could shouldn't pollute your application,

Re: [ClojureScript] [ANN] Ominate - animate your Om components

2014-05-05 Thread Jack Schaedler
HI Daniel, Apologies in advance for the probably stupid question: My main use case is to animate elements as they enter and leave the Dom. Something similar to the way that CSSTransitionGroups work, but hopefully with more of the power you are providing with the easing functions and timing mec

[ClojureScript] Re: [ANN] Ominate - animate your Om components

2014-05-04 Thread Jack Schaedler
Very cool. I tried to use the CSSTransitionGroup on Goya, but it left a bit to be desired. I'm going to try incorporating this tonight! On Sunday, May 4, 2014 2:48:37 PM UTC+2, Daniel Kersten wrote: > Just pushed an update which adds the ability to watch app-state changes to > trigger animation

[ClojureScript] Re: Om: where to organize shared state?

2014-05-02 Thread Jack Schaedler
My feeling is that your app-state atom should contain everything that would be saved into a document if your user did a File->Save in a conventional desktop application. Given that, it wouldn't seem appropriate to put things like channels or flags for tracking mouse/hover state and that sort of

Re: [ClojureScript] Om: where to organize shared state?

2014-05-02 Thread Jack Schaedler
My feeling is that your app-state atom should contain everything that would be saved into a document if your user did a File->Save in a conventional desktop application. Given that, it wouldn't seem appropriate to put things like channels or flags for tracking mouse/hover state and that sort of

Re: [ClojureScript] Re: ANN: Om 0.6.1, moving towards independently addressable components

2014-04-28 Thread Jack Schaedler
No problem. If you'd like me to test any changes, just let me know! On Monday, April 28, 2014 9:46:38 PM UTC+2, David Nolen wrote: > Thanks for the report! This seems like a bug, I went ahead and filed an issue > for it. > > > David > > > > On Mon, Apr 28,

[ClojureScript] Re: ANN: Om 0.6.1, moving towards independently addressable components

2014-04-28 Thread Jack Schaedler
0.6.2 seems to work great! I did have one issue with the tx-listen mechanism. I have a bunch of root components, and had to move the registration of the tx-listen function to the first call to om/root. Otherwise, the tx-listen function would not get called. I noticed that there was a bug-fix com

Re: [ClojureScript] Pixel Art Editor - Built with Om

2014-04-17 Thread Jack Schaedler
iteup. Glad to hear that you don't find the multiple roots too nasty. I was tempted to switch to a single root which passes cursor(s) to all of the child components, but the multiple roots approach is quite handy! Best, -jack On Thursday, April 17, 2014 5:12:04 PM UTC+2, David Nolen wrote

Re: [ClojureScript] Pixel Art Editor - Built with Om

2014-04-17 Thread Jack Schaedler
ter coming from imperative/PLOP land. I finally feel like I'm not building a pyramid anymore ;) Thanks for linking from the Om readme! That's good motivation for me to clean up some of my messy code. Best, -jack On Thursday, April 17, 2014 3:07:31 PM UTC+2, David Nolen wrote: > Wo

[ClojureScript] Pixel Art Editor - Built with Om

2014-04-17 Thread Jack Schaedler
there for public critique as the whole thing is meant to be a learning exercise. Any and all advice or criticism is welcomed! Best, Hopefully the code doesn't make your eyes bleed, -jack -- Note that posts from new members are moderated - please be patient with your first post. --- You

Re: [ClojureScript] Om: Question about how best to structure app state and use cursors

2014-04-10 Thread Jack Schaedler
Does it make any sense to allow components to reference multiple cursors? Instead of specifying a single path into the application state, you would specify a collection of paths within the state atom, all of which would trigger re-renders and allow for transact! and update!? I often find myself

Re: [ClojureScript] OM: What is the best way of introducing animation/effects during application state transition ?

2014-03-16 Thread Jack Schaedler
-enter-active { opacity: 1; } .example-leave { opacity: 1; transition: opacity .5s ease-in; } .example-leave.example-leave-active { opacity: 0.01; } Best, -jack On Saturday, March 15, 2014 5:20:07 PM UTC+1, David Nolen wrote: > Several people have successfully used the CSS transit

Re: [ClojureScript] OM: What is the best way of introducing animation/effects during application state transition ?

2014-03-15 Thread Jack Schaedler
le within Om? Sorry in advance for the probably silly question! -jack On Saturday, March 8, 2014 3:08:52 AM UTC+1, David Nolen wrote: > I would probably do this by hooking into IWillUpdate. Generally whatever > solution makes sense for React will make sense for Om. > > > David