One way of approaching this is to show the user progress in an interesting 
way. In this example 
<http://code.gampleman.eu/elm-visualization/ForceDirectedGraph/>, the 
computation that calculates the final layout of a network graph (which is 
pretty expensive) is animated so the user can watch the algorithm converge.

On Wednesday, 14 June 2017 04:39:57 UTC+3, Matthieu Pizenberg wrote:
>
> One thing that I think I would have tried in this case, it to delegate the 
>> long running computation to a webworker 
>> <http://caniuse.com/#search=Web%20Workers>, and then talk with it 
>> through a port.
>
>
> I'm not from the web community. I had bases in html+css+js, but pretty 
> much had to relearn my JS when started to try elm, so I've never used web 
> workers before. Not sure I'd like to take some time to learn how it works.
>
> On Wednesday, June 14, 2017 at 5:10:30 AM UTC+8, Rupert Smith wrote:
>>
>> Did you try this technique? Its not ideal, but at least it makes it no 
>> longer a stopper.
>>
>
> Nope, but thanks, I keep the idea in mind. Actually, It wasn't the only 
> issue I had since this was mainly image manipulation. The lack of binary 
> data type support was also very restricting. Then I didn't want to invest 
> too much energy in this. I prefer to wait and see for now, busy with other 
> matters. I'm still confident in the fact that elm is a great language and 
> evolves slowly but surely. I'm just here a bit too early for some of my 
> needs. For the rest, I'm very happy with elm.
>

-- 
You received this message because you are subscribed to the Google Groups "Elm 
Discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to