Re: [elm-discuss] Re: Task ports: A proposal to make it easier to integrate JS with Elm.

2017-03-20 Thread Mark Hamburg
Agreed. Tasks actually were the core way to do things in 0.16 — though ports then were more focused on reactive programming models as I recall. Effects (what essentially became commands) were largely a shim on top of tasks. But then along came Elm 0.17 and it's emphasis on effects managers

[elm-discuss] Re: How do you handle dependencies between updaters?

2017-03-20 Thread Martin Norbäck Olivers
And it helps to not think about the functions "interacting" with each other. They don't. A function can call another function. Nothing is stopping you from calling the content update function or the user update function from another update function, but I find it helps to just factor out the

[elm-discuss] Re: How do you handle dependencies between updaters?

2017-03-20 Thread Martin Norbäck Olivers
> The challenge is when there are dependencies between Updaters, for example > the User Profile model might need data from the Session model, the Session > updater might need to send messages to the User updater (Load user profile > when session is updated), or the Content updater may need to

Re: [elm-discuss] Re: Is it possible to create a circular reference in Elm?

2017-03-20 Thread Martin Norbäck Olivers
> The reason I was thinking about it was not actually anything to do with > garbage collection. I have a data modelling language with a type system, > but it has grown in a slightly ad-hoc manner and needs some > rationalization. I was wondering how well the type alias records + tagged >

Re: [elm-discuss] Fwd: Us congress hearing of maan alsaan Money laundry قضية الكونغجرس لغسيل الأموال للمليادير معن الصانع

2017-03-20 Thread Chad Woolley
FYI, this spammer made it through the new moderate-first-post settings because we had forgotten to delete the membership, but there was already a prior post by the member. Membership is now deleted. Shouldn't happen again unless there's other already-posted sleeper spammers lurking in the

Re: [elm-discuss] Re: Post Examples of Painful Record Updates Here!

2017-03-20 Thread Max Goldstein
@art, I disagree about adding arbitrary expressions between { and |. You should use a let-binding for something like *Array.get (offset + i) arrayOfRecords |> Maybe.withDefault defaultRecord*. I know this is supposed to be pain points, not solutions, I'm going to try to coalesce some of the

[elm-discuss] Re: How do you handle dependencies between updaters?

2017-03-20 Thread Dmitry Utkin
I've came up with solution very similar to Oliver's :) Top `Page`(or `Screen`) update functions are getting the `Store` which is a top level app model. Alternative way is to have `mapToContext` function that receives some `Props` and `Store` and maps those to some useful context(it might be

[elm-discuss] How do you handle dependencies between updaters?

2017-03-20 Thread Eirik Sletteberg
In larger Elm apps, it makes sense to divide Updaters so you can package-by-feature. For example, a single page application could have updaters like this: - Configuration updater - Session updater - User Profile updater - User Settings updater - Content updater - Some other business specific

[elm-discuss] Fwd: Us congress hearing of maan alsaan Money laundry قضية الكونغجرس لغسيل الأموال للمليادير معن الصانع

2017-03-20 Thread sam a
*موقع اليوتيوب الذي عرض فيديوهات جلسة استماع الكونجرس الأمريكي * * لمتابعة نشاطات غسل الأموال ونشاطات* *السعودي معن عبدالواحد الصانع* *مالك مستشفى وشركة سعد ومدارس سعد بالمنطقة الشرقية** بالسعودية * * ورئيس مجلس ادارة بنك اوال البحريني* *وتعليق محطة سي ان بي سي التلفزيونية* *مترجم

Re: [elm-discuss] Re: Is it possible to create a circular reference in Elm?

2017-03-20 Thread 'Rupert Smith' via Elm Discuss
On Saturday, March 18, 2017 at 5:24:16 PM UTC, Mark Hamburg wrote: > > I've been thinking about this as well because functional languages should > provide a great basis for exploiting multi core systems. > The reason I was thinking about it was not actually anything to do with garbage