loading...

Discussion on: Ellie Weekly Update 2017-10-28

Collapse
lukewestby profile image
Luke Westby Author

Totally! So Ellie's current build manager is a direct port of elm-make to Elm. It works and it's fast enough, and were I to leave Ellie as closed-source I probably wouldn't change it. The issue is: some of the code in the build manager requires writing Native modules in order for the whole thing to be understandable. Since this seems to pop up every couple of months as a charged subject in places like the Elm subreddit, I'm uncomfortable with Ellie being used as an example of a large, open-source project that "needs" Native code. I don't support any argument that Elm should have direct FFI to JS, so this weighs on me. I figured elm-make is written in Haskell anyway, it probably would be an even clearer and easier port to PureScript and would no longer be something people can use to argue for JS FFI in Elm. Plus PureScript is really fun!

The only other option that I think I could try would be to fork elm-make, exchange any file system stuff for code that writes to IndexedDB, and then compile everything with GHCJS. But the filesize concerns as well as the lack of control over parallelizing calls to the compiler pushed me toward PureScript.

Collapse
rickydelaveaga profile image