I agree that Elm is in some ways not as easy as it is made out to be, for some
people at least. Especially newer programmers that have been working chiefly
in JavaScrip for a while. Not that it is a problem with the language...just
very different from JS in many ways.
The great thing (and
Greetings, Everyone. I had been puzzling over something for a while and my
search eventually led me here.
What I was hoping to see demonstrated in Elm -- and have not found in my
searches -- is how one would accommodate a plugin architecture that allows
modules to be installed, activated, and
My use-case: I'm creating a debugger front-end for a NES emulator I'm
writing. Having to serialize binary data (in particular, 16KB of address
space) to be consumed by elm is inefficient in about every way possible. I
currently pack it into an array of 32-bit signed ints before serialization
At both https://github.com/evancz/guide.elm-lang.org/pulls
and https://github.com/elm-lang/elm-lang.org/pulls there's a decent number
of PRs that would be useful if merged.
A lot of these are simple gotchas that can save a beginner a lot of time.
--
You received this message because you are
Or how about adding an incoming subscription port when the localStorage
save finishes. Then you could put something in the model to indicate you
are waiting to close. Once the save message comes back, check to see if you
were waiting to close before sending the close message out the other port.
Per the discussion on the Html.Keyed thread, this problem can be addressed
using Html.Keyed. In particular, here is a solution that adds an After with
Keyed case that doesn't exhibit the problems of the After case:
https://gist.github.com/markhamburg/b17b6d0ecb19d73ab10f015f693c4a6b
The basic
Hi All,
Version 1.0 of elm-graphql is out. It's a build tool which, given a live
GraphQL endpoint, allows you to run:
elm graphql
And it will generate a typesafe client for any .graphql files in your Elm
project!
Note that the client simply executes the GraphQL queries (and decodes the
Thanks for the pointer. We hadn't dug into Phoenix deeply enough to see
that it has a request/response architecture at the channel level already,
so that was useful news. On the other hand, what that basically does is
says that for the special case of Phoenix channels where the need for a
callback
I'm no expert, and would like clarification on this as well, but "pages of
an app" seems like the main place where using nested modules makes sense --
unless your pages can be modeled more easily as variants of each other, as
sometimes happens.
My experience* has been that just about
On the one hand, yes, an effects manager seems like the way to do this. On
the other hand, effects manager documentation is largely absent and the
guide basically says that effects managers are only expected to be written
by a handful of people and therefore probably aren't a general purpose
Ahh...I see. Assuming you have some sort of autosave logic, how about two
messages: Save and SaveAndQuit? It seems reasonable to me to split the
actions this way...Save could be scheduled using Time.every and SaveAndQuit
could be both an explicit user interaction and an incoming port message
Is this article (and the one it refers to) taking a good or bad approach to
program structure?
http://7sharpnine.com/2016/10/03/building-an-spa-with-elm/
I copied the structure as a way of seeing how a program might perhaps be
broken down, but it feels like a very component based approach, given
The problem initially arose when I had two ports, one of which wrote to
local storage and the other of which closed the window. Nothing was ever
written to local storage because the window closed first. The reason I
went with two ports is because those actions are so conceptually different,
and
What do you find hard about learning Elm? We want Elm to be friendly to
beginners. It would be helpful to hear about your experience!
On Mon, Oct 17, 2016 at 9:08 AM, António Ramos wrote:
> Hello guys just trying to learm Elm but its not easy.
> I just found this js
>From what I can tell, port communication uses Cmd because interop with
JavaScript isn't necessarily a request-response communication pattern
(instead, port are pubsub).
But I do have a question: *Is the underlying problem a need to coordinate
access to a shared resource in JavaScript? *I ask
Yes I did
Zach
ᐧ
On Mon, Oct 17, 2016 at 2:31 AM, Max Goldstein
wrote:
> Fuzz.map4, which I think was only added in 2.1.0 so that's why Zachary
> didn't see it in August.
>
> --
> You received this message because you are subscribed to the Google Groups
> "Elm Discuss"
Hi, thanks for your answer, I also got the impression that component
approach was being discouraged as the notorious "dual counters" and "list
of counters" relying on the component approach have been withdrawn from
documentation as it seems...
To be fair I have already read the docs, but my
Cool little library, but the main thing that makes me use Elm is not TEA,
but rather the functional language. Having types removes entire classes of
bugs and immutability makes it easy to reason about a program flow. It is
just too easy to break both of those aspects in Javascript, even with
Hello guys just trying to learm Elm but its not easy.
I just found this js framework
https://github.com/yoshuawuyts/choo
i has the same concept as TEA
subscriptions , model, update and messages
Maybe i just learn it too, because i just feel that going back to
angular/react/vue is giving up in
Thanks! I'll try your version suggestion. I also understand why I
couldn't catch the error now too from this
post: https://groups.google.com/forum/#!topic/elm-discuss/vk4w_Ei8A84
Thanks,
Kevin
(Also, sorry for double posting!)
On Saturday, October 15, 2016 at 5:19:01 PM UTC-4, Peter Damoc
Here's my version (so far) that includes Effects Managers:
https://www.facebook.com/photo.php?fbid=10154586193039127=gm.1771231996493568=3
On Monday, May 30, 2016 at 8:14:38 PM UTC-7, 大魔头 wrote:
>
> hi,
>
> I've tried out examples in http://guide.elm-lang.org/ , now I want to
> prepare myself
Thanks for the explanation! Now that I understand what is happening I
think I'll go with the fix described
here https://groups.google.com/forum/#!topic/elm-discuss/F_oLy4PUF2o.
Thanks,
Kevin
(Also, sorry for double posting!)
On Saturday, October 15, 2016 at 7:59:15 PM UTC-4, OvermindDL1
The components mentioned in that page of the guide have more to do with the
Elm Components, the old nesting structure that was present in the elm
architecture tutorial before 0.17
Web components/ polymer integration is actually something very interesting
and a rather new topic to be explored:
sorry my lack of knowledge...
after i read
https://guide.elm-lang.org/reuse/
i understood that components are the same as web components and are not
the path offered by elm.
Also elm is an alternative to polymer/angular/vue/react and as such i dont
understand why are you trying to put them
Wow, that's incredible!
On this mailing list, I approve messages from newcomers at a rate of about
3 per day. (Once the first message is approved, they can send messages
without mod approval thereafter). It's neat to see how vibrant the growth
of this community is.
On Sun, Oct 16, 2016 at 6:09
Anybody at the #PolymerSummit in London? Maybe let's discuss Elm with Web
components?
--
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
This looks like an error in Ghostery browser extension not in your elm
code.
Disable the extension and try again. :)
On Mon, Oct 17, 2016 at 11:03 AM, kees Bleijenberg <
k.bleijenb...@lijbrandt.nl> wrote:
> I started my first Elm project. It compiles without errors. If I load the
> index.html
I believe ghostery.js is a Firefox plugin? What happens if you disable it
in your browser?
On Mon, Oct 17, 2016 at 2:03 AM, kees Bleijenberg <
k.bleijenb...@lijbrandt.nl> wrote:
> I started my first Elm project. It compiles without errors. If I load the
> index.html in Chrome I get:
> Uncaught
I started my first Elm project. It compiles without errors. If I load the
index.html in Chrome I get:
Uncaught TypeError: Cannot read property 'style' of null in ghostery.js
line 3
At all places I use div [] [] So the first arg is empty.
I'am using elm-reactor 0.17.1 on Windows.
What can I
Hi there :)
I noticed that* "Want to get featured? Let us know how your company uses
Elm on elm-discuss or twitter!"* from elm-lang.org has vanished. Wandering
if this was done on purpose or if it is just something that was forgotten
to be added on the new landing page. Does anyone know if it
hello i dont find any d3js library to use with elm 0.17
Any ideas?
thank you
--
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
It seems (I could be wrong; I often am) like creating an Effects manager
is the proper way to efficiently handle side state management.
https://github.com/elm-lang/core/blob/master/src/Platform.elm
An example:
https://gist.github.com/maxhoffmann/240574e892bf9118aeb2dd1e8a645e0a
Just a quick
On Monday, October 17, 2016 at 10:29:52 AM UTC+1, Rupert Smith wrote:
>
> On Friday, October 14, 2016 at 2:50:44 PM UTC+1, Peter Damoc wrote:
>>
>> On Fri, Oct 14, 2016 at 1:35 PM, 'Rupert Smith' via Elm Discuss <
>> elm-d...@googlegroups.com> wrote:
>>
>>> 1. Build some support into the Elm
On Friday, October 14, 2016 at 2:50:44 PM UTC+1, Peter Damoc wrote:
>
> On Fri, Oct 14, 2016 at 1:35 PM, 'Rupert Smith' via Elm Discuss <
> elm-d...@googlegroups.com > wrote:
>
>> 1. Build some support into the Elm compiler for webcomponents.
>>
>
> There could also be a direction where Elm
In another discussion, I was pointed to
http://faq.elm-community.org/17.html#what-is-the-difference-between-cmd-and-task,
which sheds some light on the issue, but also raises a few questions.
Specifically:
1. The article mentions that APIs generally expose Task in favor of Cmd.
Why is
update is a function that takes a message and a model and produces the
updated version of the model. In some cases, update also can produce some
requests for more input (http requests, requests for random numbers, ports
requests) this is why the top level update has (Model, Cmd Msg) as return.
yes thankyou :)
On Wednesday, October 12, 2016 at 6:55:15 PM UTC+8, Duane Johnson wrote:
>
> Recursion is the basic principle on which repetition is based in
> functional languages like Elm. However, in most cases, recursion is not
> needed for day to day programming, because functions such as
On Mon, Oct 17, 2016 at 8:02 AM, Janis Voigtländer <
janis.voigtlaen...@gmail.com> wrote:
> Peter, the problem in David’s case is that the actions he wants to order
> execution of are port data sending, and there is no “something lower level,
> like Tasks” for that. The only API available for
38 matches
Mail list logo