2015-07-03 13:10:57 +0000 <ryantrinkle> saulzar_: haha yeah
2015-07-03 13:11:16 +0000 <ryantrinkle> well, maybe the toolchain will improve to the point where I don't have to recommend nix to newbies :)
2015-07-03 13:11:39 +0000 <saulzar_> Hehe
2015-07-03 13:13:57 +0000 <saulzar_> Btw, I figured out a good way (I think) to do typesafe wc3 Html. Also thought a bit about how you'd support a really good bootstrap lib (as in, how to remove all the extra wrapping and gunk needed for the styling)
2015-07-03 13:17:59 +0000 <ryantrinkle> nice
2015-07-03 13:18:08 +0000 <saulzar_> Getting ahead of myself, I know - but good to think about these things
2015-07-03 13:18:24 +0000 <ryantrinkle> yeah, definitely :)
2015-07-03 13:19:28 +0000 <martingale> From what I'm hearing, reflex does not support a "global" state approach out of the box. This seems in contrast to ryantrinkle's " allow app authors to choose whatever approach to state fits their problem best"
2015-07-03 13:19:36 +0000 <martingale> and forces them to either implement diffing themselves or adopt a more local approach
2015-07-03 13:19:40 +0000 <saulzar_> I figure you can make all elements go through a Config, then be able to transform children to add attributes/wrapping elements etc. Not for the user to use, but for a library writer
2015-07-03 13:19:46 +0000 <ryantrinkle> martingale: i'm not sure what you mean
2015-07-03 13:20:00 +0000 <ryantrinkle> what part doesn't it support?
2015-07-03 13:21:19 +0000 <mightybyte> martingale: My comment wasn't quite that definitive. I was mainly observing that keeping everything in a single Dynamic seems like it would cause a lot of stuff to fire.
2015-07-03 13:22:22 +0000joco42_(uid95472@gateway/web/irccloud.com/x-ggjrpifbikgpheks)
2015-07-03 13:22:55 +0000 <saulzar_> martingale, I think it does - just it might not be the simplest way for all cases. The root Dynamic might fire over and over, but as you decompose it you can filter parts of it out by nubDyn for example, so you're doing the diff yourself essentially
2015-07-03 13:23:39 +0000 <ryantrinkle> well, it's not just that; even if you don't nubDyn, the individual components are going to be pretty efficient about what to update and what not to update
2015-07-03 13:24:37 +0000 <ryantrinkle> it would be great to have some actual performance comparisons between Elm and Reflex
2015-07-03 13:24:40 +0000 <saulzar_> martingale, Also it's sometimes really useful not to have everything in a global state - for example it can be a pain to deal with all the character updates from an input box as you would in Elm
2015-07-03 13:29:36 +0000 <saulzar_> There's a benchmark on the TodoMVC it seems http://elm-lang.org/blog/blazing-fast-html
2015-07-03 13:29:45 +0000 <ryantrinkle> martingale: is there any particular functionality you're looking for? my intent is to have "global state" and "local state" both be easy, and treated exactly the same way - global state is just state that you establish at the top level of your application
2015-07-03 13:30:12 +0000 <ryantrinkle> so if there are things missing, i'll try to address them
2015-07-03 13:32:25 +0000 <martingale> ryantrinkle No there isn't anything missing, I was referring to mightybyte's comment about not being sure how to do global state in reflex
2015-07-03 13:33:10 +0000 <martingale> saulzar_ that's what I was trying to show with the gist i posted
2015-07-03 13:33:41 +0000 <martingale> that is - it's useful to have some local state
2015-07-03 13:33:41 +0000 <saulzar_> martingale, Ah - I wasn't around
2015-07-03 13:33:56 +0000 <ryantrinkle> martingale: yeah, makes sense
2015-07-03 13:34:09 +0000 <joco42_> it would be perhaps good to define what is global state and local state
2015-07-03 13:34:10 +0000 <martingale> saulzar_ https://gist.github.com/jeffreyrosenbluth/937d40c7d675d10bb85c
2015-07-03 13:34:25 +0000 <ryantrinkle> joco42_: well, i think there's actually some difficulty there
2015-07-03 13:34:34 +0000 <ryantrinkle> nothing in the universe is actually "global"
2015-07-03 13:34:39 +0000 <ryantrinkle> it always sits inside of *some* scope
2015-07-03 13:34:39 +0000 <joco42_> :)
2015-07-03 13:34:49 +0000 <ryantrinkle> with reflex, all scopes are treated equally
2015-07-03 13:34:51 +0000 <martingale> yes, that's why i keep putting "global" and "local" in quotes
2015-07-03 13:34:53 +0000 <joco42_> that is an awesome sentence...