News for hackers. Stuff that matters.
Re:Small Assets without the Headache in Elm 0.19 by roadbeats on Tuesday August 21, 2018 @10:00AM (#17809585)
I’m an happy Elm user; but I wonder if it’s a worth investment to start using Elm when we’re heading to a new ecosystem on top of WebAssembly. I use Go on backend, and would feel satisfied when Go and Webassembly works together fine.
Re:Small Assets without the Headache in Elm 0.19 by skybrian on Tuesday August 21, 2018 @12:42PM (#17811185)
To target the web, you need a team dedicated to building HTML library stuff like interaction with the DOM. It's unclear whether Go even has that, and it will take longer to see if it proves popular, so waiting for Go for generic UI seems very premature.

On the other hand, Elm is not 1.0 yet. They are still breaking the ecosystem with new releases.

Re:Small Assets without the Headache in Elm 0.19 by Skinney on Tuesday August 21, 2018 @10:13AM (#17809732)
WebAssembly is still far away from being any sort of default for web development yet (if only because IE11 doesn't support it).

I also wouldn't be surprised if Elm compiled to wasm in the future.

Re:Small Assets without the Headache in Elm 0.19 by dorian-graph on Tuesday August 21, 2018 @10:21AM (#17809828)
It's openly a desired/considered goal for Elm to compile to wasm.
Re:Small Assets without the Headache in Elm 0.19 by Skinney on Tuesday August 21, 2018 @01:08PM (#17811512)
I know, I'm one of the people looking into it.
Re:Small Assets without the Headache in Elm 0.19 by dorian-graph on Tuesday August 21, 2018 @02:42PM (#17812497)
Oh, haha! Cool.
Re:Small Assets without the Headache in Elm 0.19 by vimslayer on Tuesday August 21, 2018 @11:35AM (#17810515)
Most compilers that target WebAssembly can also target asm.js, which is compatible with IE.

AFAIK it's more about missing stuff like DOM access and GC that stands in the way.

Re:Small Assets without the Headache in Elm 0.19 by Skinney on Tuesday August 21, 2018 @01:14PM (#17811588)
> Most compilers that target WebAssembly can also target asm.js, which is compatible with IE.

asm.js is different enough that it's just not about adding a seperate asmjs "compatibility" target. On the top of my head you don't have 64-bit ints or floats and I believe the way you call asm.js fns from/to JS is different from wasm. Adding asm.js support just for IE 11 wouldn't be worth the effort.

Re:Small Assets without the Headache in Elm 0.19 by jxxcarlson on Tuesday August 21, 2018 @11:03AM (#17810201)
At present, Elm compiles to javascript. But when the time is right, it will have other compilation targets as well, e.g Webaassmebly