News for hackers. Stuff that matters.
Re:Elm 0.19 Broke Us by tbenst on Saturday August 25, 2018 @05:12PM (#17842590)
I looked at Elm a couple years back and decided on Purescript instead: http://www.purescript.org/

Has a much better FFI story with JavaScript than Elm, and has a more powerful type system (higher kinder types, etc). Row polymorphism makes writing pure code a joy, the effects system is unobtrusive. I actually enjoy programming purescript more than Haskell.

Re:Elm 0.19 Broke Us by arianvanp on Saturday August 25, 2018 @05:19PM (#17842628)
https://github.com/slamdata/purescript-halogen is a very nice frontend library with local state per component, such that not the entire vdom needs to be diffed.

However, if you want an easy migration path, there is https://github.com/pselm/core Which is a drop-in replacement of the Elm 0.18 API in purescript. You can almost directly copy your elm code to it and it will work with minor changes

Re:Elm 0.19 Broke Us by dan-robertson on Saturday August 25, 2018 @06:44PM (#17842982)
I recall looking at halogen a while ago (maybe a year?) and I didn’t really get where it was going. The goal is to do ui in a functional language and you chooses a functional language for various reasons. But then the halogen components are essentially reimplementing object orientation in purescript (so everything looks weird, there isn’t special syntax for common things, and the types are bizarre):

Components are these things that have a way to initialise themselves, an internal state, a way to receive messages and update their internal state, a way to compute from the internal state (ie rendering), and a way to reply to messages that are querying things (by having the message pass a callback for the reply as an argument). The only thing they have which is missing from standard oo is a way to pass up messages to their parent component.

After all that one must wonder what the point of using purescript for this is and why not just use a more object-oriented language fron the start?

Re:Elm 0.19 Broke Us by mbo on Saturday August 25, 2018 @06:48PM (#17843005)
That `core` `README` is really good! It's convinced me to look more into PureScript. Thank-you!
Re:Elm 0.19 Broke Us by platz on Saturday August 25, 2018 @05:23PM (#17842645)
I like halogen, but elm folks may want something more familiar (and with less type variables).
Re:Elm 0.19 Broke Us by arianvanp on Saturday August 25, 2018 @05:32PM (#17842677)
Definitely. One of the 'elm-like' libraries (like the one I also linked) are a great stepping stone to get started.
Re:Elm 0.19 Broke Us by platz on Saturday August 25, 2018 @05:33PM (#17842687)
I don't think you even need to call them stepping stones. They are perfectly fine libraries in their own regard.

Slamdata had some specific requirements with halogen that everyone may not need. And although the free monad approach is nice, it certainly is not fundamental or necessarily the best depending on the task to UI construction.

Re:Elm 0.19 Broke Us by platz on Saturday August 25, 2018 @05:21PM (#17842636)
Exactly, take a look at https://github.com/utkarshkukreti/purescript-hedwig/blob/mas...

I think anyone who is already comfortable with elm can look at that and be productive in purescript very quickly.

* Of course, with purescript there is going to be a bit less hand-holding. But the side-projects I see folks posting about in done with elm are done by folks that already do things on their own.

Re:Elm 0.19 Broke Us by haolez on Saturday August 25, 2018 @06:08PM (#17842848)
Is Purescript still around? It’s github repo shows very little activity, but this is not always a bad sign, so I’m curious.
Re:Elm 0.19 Broke Us by kepano on Sunday August 26, 2018 @11:00AM (#17846201)
PureScript is only getting more active as a community. Its creator, Phil Freeman, works at my company (Lumi). He recently wrote about how we use PureScript: https://medium.com/fuzzy-sharp/purescript-and-haskell-at-lum...
Re:Elm 0.19 Broke Us by k__ on Saturday August 25, 2018 @06:39PM (#17842973)
It was too Haskell for me and used Bower. Seemed like a project that was far to removed from JS and its eco system.
Re:Elm 0.19 Broke Us by g4k on Saturday August 25, 2018 @07:36PM (#17843188)
The inventor and lead mantainer giving up on his role a few months ago might have had a detrimental effect.
Re:Elm 0.19 Broke Us by georgeam on Saturday August 25, 2018 @10:28PM (#17843884)
Could you provide a reference for this? I'm just hoping you are not mixing up Python (by Guido van Rossum) and Purescript (by Phil A. Freeman).
Re:Elm 0.19 Broke Us by anothergoogler on Saturday August 25, 2018 @11:09PM (#17844002)
Re:Elm 0.19 Broke Us by georgeam on Saturday August 25, 2018 @11:16PM (#17844024)
Thanks for the reference -- that's rather unfortunate because Phil Freeman did a great job leading the project.

BTW my question could sound like I am hoping Phil Freeman has given up the project leadership, which isn't what I meant to say. I should have said "I was wondering whether you are mixing up ...".

Re:Elm 0.19 Broke Us by anothergoogler on Saturday August 25, 2018 @11:22PM (#17844049)
Oh, I didn't interpret your comment that way at all, your intended meaning was clear (to me).
Re:Elm 0.19 Broke Us by sixstringbudha on Saturday August 25, 2018 @11:41PM (#17844113)
How is performance and asset size like? For me those are a deal breaker.