[elm-discuss] How to manage long running computations in Elm?

2017-06-06 Thread 'Rupert Smith' via Elm Discuss
The problem with long running computations in a single threaded UI is that they may cause the UI to block and become unresponsive for a period. Definitely not an acceptable user experience. I have created a library for helping with AI-type searches. This provides a 'next' function that steps

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

2017-06-06 Thread Jakub Hampl
I've spent some time working on a QuadTree based approach, but haven't had the time to benchmark it properly yet. I don't see why it would be significantly slower than D3, as the algorithm underpinning it would be the same. Sent from my iPhone On 5 June 2017 at 22:49, Erkal Selman

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

2017-06-06 Thread Francesco Orsenigo
Coupling view and style is not the problem, it's the *goal*. Right now, you can't declare CSS in the place where you use it: you need to create a separate stylesheet with references, use those references in your view and then put the stylesheet somewhere. This is not how we write all the rest

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

2017-06-06 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