This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2015-11-02
Channels
- # admin-announcements (15)
- # aws (35)
- # beginners (6)
- # boot (183)
- # cider (51)
- # clara (17)
- # cljs-dev (32)
- # clojure (67)
- # clojure-dev (7)
- # clojure-india (1)
- # clojure-japan (3)
- # clojure-norway (1)
- # clojure-russia (26)
- # clojurescript (85)
- # clojurex (4)
- # community-development (1)
- # cursive (18)
- # data-science (1)
- # datomic (46)
- # devcards (29)
- # events (7)
- # funcool (21)
- # hoplon (10)
- # ldnclj (2)
- # lein-figwheel (16)
- # off-topic (60)
- # om (37)
- # onyx (8)
- # re-frame (23)
- # reagent (5)
- # yada (6)
[ 28.572s] [om.next] [object Object] query took 18.039999999993597 msecs
console.js:203
Heh, that didn't take long. Nice to have the warning 
@bbss: right thus warning only - I suspect JITing and other things could easily make that intermittent.
Hmm, I have a high dpi setting on my retina display, webapps have a hard time getting 60fps mostly.
But I am using datascript for my queries and I guess that might not be a "high performance" choice either.
right that’s another thing … 16ms may be unrealistic for typical DataScript queries … I’m just not that familiar with DataScript perf expectations
though in my mind any ClojureScript code that takes that long that’s involved in UI can’t be a good thing
60fps is something I care about though, having a low fps or unstable fps is something that annoys me. I know it's not consciously a big deal for most people but it still matters in how an app "feels".
I think that having an (optional) warning for queries that take more than 16ms is very useful
we as developers tend to have beefy machines anyway, so if it takes more then 16ms on our own machines, how long will it take on our mothers'?
Yeah, plus I want my app to run well on mobile, those don't have resources to spare either.
I’m more concerned about mobile actually - where JS performance is anywhere from 5-10X slower
I have a simple flashcard app that, after a correct response, increments the score of the Card, which has an ident, [:word/by-id id]. Works fine for the first card, but the second correct response evokes
Uncaught Error: Invalid key [:word/by-id 1], key must be ref or $next$protocols$IIndexer$key__GT_components$arity$2
So I am doing something wrong that is messing with the indexer, but I am not sure what.@monjohn: could probably be better error for that, but that probably means there is no component mounted with that ident
@dnolen: That is indeed what was going on. When I advance cards to the next one in the list, the data for the next card shows on the screen, but the original card is still mounted. How do I go about changing which card is mounted, or mounting the next card?
np, still terrible error for that bug https://github.com/omcljs/om/issues/457
Is closure "advanced compilation" still a TODO for Om Next, or is it worth entering issues related to this?
@drcode: advanced compilation should work in master if you’ve found a case where it doesn’t file an issue
Mmh, devcards are neat for testing different props and callbacks passed to Om Next components: http://jannis.github.io/om-next-kanban-demo/cards.html#!/cards.cards
@dnolen: Those are completely ignoring the reconciler/parser aspect. That's because I want to test them in complete isolation. However, it shouldn't be too hard to add a reconciler to the local devcard state and perform transactions against that for testing.