Having external compute run asynchronously opens the possibility of having
it run in parallel some day. That said, if Elm were to emphasize that sort
of programming, it might drive some shifts in how other pieces are
structured. The world is going async — see node.js — but it's a painful
process. Tasks might be enough but I don't know that anyone has written a
complex process around tasks and any such process wouldn't leverage the Elm
debugger. A bigger problem is that once you ask for something to be
computed, it really helps if there is a way to say "nevermind". Reactive
networks also help hide some of the management issues for this sort of work
but Elm has been moving away from those.

So, I embrace async tasks but I think they also then need to be embraced by
the language/runtime/app-architecture.

Mark

On Wed, Dec 14, 2016 at 9:03 PM, Desmond D'Souza <desm...@dsouzaville.com>
wrote:

>
>
> On Wednesday, December 14, 2016 at 1:30:48 PM UTC-6, Rupert Smith wrote:
>>
>> On Wednesday, December 14, 2016 at 6:00:14 PM UTC, Desmond D'Souza wrote:
>>>
>>> I would love to be able to make synchronous functional calls to js and
>>> get a Result back.
>>>
>>
>> Would you want to publish this code to elm-package?
>>
>
> Yes.
>
>
>>
>> Would the javascript your package calls be included in the package?
>>
>
> I don't know, but do have a naive answer. If I had written all of it in
> Elm, split into App.elm and GraphLayout.elm, I could publish both modules
> bundled into a single package or split into two, and Elm + elm-package
> spells out what a *package user* needs to know and do in both cases. If
> GraphLayout is in javascript, the overall package story should stay as
> close as reasonably possible *for the package user, *and Elm +
> elm-package should spell out what that user needs to know and do.
>
> --
> 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 elm-discuss+unsubscr...@googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.
>

-- 
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 elm-discuss+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to