Re: [elm-discuss] Adding CSS produced by a view function to the document's

2017-06-05 Thread Peter Damoc
It seams that you have driven yourself into a corner because of a series of choices that you made with your code architecture. The best way forward is to refactor you code so that you decouple the style from the view. You should be able to get both of them from the model independently. Once you'v

[elm-discuss] Re: Seeking feedback: CSS Modules in Elm

2017-06-05 Thread Kevin Yank
Neat project, thanks for sharing Marek! CSS Modules, of course, have additional features such as the ability to include unique hashes in class names and IDs (so that you can have two CSS modules with the same name, both containing identically-named classes, and have them still not conflict with

[elm-discuss] Re: Force directed graph drawing in Elm

2017-06-05 Thread Erkal Selman
I would be very interested in the pure elm implementations of force-directed graph drawing. For this project: https://erkal.github.io/kite/ Currently, I interact with D3 via ports. I have a question: Is it possible to compete with D3-Force in performance? O

[elm-discuss] Re: Adding CSS produced by a view function to the document's

2017-06-05 Thread 'Jonas Schürmann' via Elm Discuss
I am unsure what your goal is, but perhaps elm-css can help you. If you want to generate styles dynamically, it is probably best to use inline styles. Am Montag, 5. Juni 2017 12:46:47 UTC+2 schrieb Francesco Orsenigo: > > I am experimenting with view functi

[elm-discuss] elm-conf 2017 Speaker Lineup

2017-06-05 Thread Brian Hicks
Hey all! We've just announced the 2017 elm-conf speaker lineup. You can find it here: https://www.elm-conf.us/news/lineup/ (link to a news post with more details and an downloadable schedule) Registration for elm-conf opens with Strange Loop's on Thursday,

[elm-discuss] Adding CSS produced by a view function to the document's

2017-06-05 Thread Francesco Orsenigo
I am experimenting with view functions that produce both html content and the style that should be applied to that markup, as in myView : Model -> ( Html msg, List CssRule ) So far, I have been rendering the above by creating a

Re: [elm-discuss] Unexpected Time.every drift over time

2017-06-05 Thread Zachary Kessin
Trying to keep a server and clients in time sync is a really hard problem! Actually, it's more or less an impossible problem in the general case as time drift between nodes in inevitable and timing accuracy is limited by relativity. I would look at this article http://infiniteundo.com/post/25326999

Re: [elm-discuss] Unexpected Time.every drift over time

2017-06-05 Thread RGBboy
On Safari/node setInterval does indeed exhibit the same issue so this is not a bug in Elms core. However Elm does have an opportunity to smooth this inconsistency out. What I have done so far to mitigate this issue is essentially what you describe. I have experimented with a couple of different