New Elm Array implementation available on elm-package

320 views
Skip to first unread message

Robin Heggelund Hansen

unread,
Nov 14, 2016, 6:35:35 PM11/14/16
to elm-dev
Version 1.0.0 of the new elm array implementation is now available on elm-package. 

If you have Elm 0.18 you can easily try it out by doing the following:

1) install the package with `elm package install Skinney/elm-array-exploration`
2) Use the correct namespace, import Array.Hamt instead of Array.
3) You're now using new Elm arrays :)

The most important part of the new implementation is that it's more stable. All the known issues with the core arrays should be fixed in this implementation. That being said, it could very well be the case this implementation has other bugs.

I would love for people to try this out :)

Noah Hall

unread,
Nov 14, 2016, 7:28:23 PM11/14/16
to elm...@googlegroups.com
I'll move elm-flat-matrix over to using it later this week and let you know
> --
> You received this message because you are subscribed to the Google Groups
> "elm-dev" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to elm-dev+u...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/elm-dev/f9fc4b3b-1e9c-4ebf-a8ae-1cc521452d10%40googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.

Max Goldstein

unread,
Nov 14, 2016, 8:41:26 PM11/14/16
to elm-dev
import Array.Hamt as Array

should make it easy to deploy in an existing code base, and save you the trouble of converting back when this implementation is merged into core.

Robin Heggelund Hansen

unread,
Nov 15, 2016, 12:48:51 AM11/15/16
to elm-dev
Noah: Cool, can't wait to hear your experience

Max: Good point.

I'm posting this on elm-discuss as well to get more exposure.

Evan Czaplicki

unread,
Nov 15, 2016, 1:15:24 AM11/15/16
to elm...@googlegroups.com
Exciting! Looking forward to the user feedback :D

--
You received this message because you are subscribed to the Google Groups "elm-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to elm-dev+u...@googlegroups.com.

For more options, visit https://groups.google.com/d/optout.
--
Sent from Gmail Mobile

Florian Zinggeler

unread,
Nov 15, 2016, 10:07:14 AM11/15/16
to elm-dev
Cool, it's finally out. Congrats!

Is there any reason you're exposing the type alias to the user? Or was it just an oversight?
Seems like an opaque type would be better here.  

Robin Heggelund Hansen

unread,
Nov 15, 2016, 10:32:49 AM11/15/16
to elm-dev
Oversight. I'll look into it, thanks for the heads up.

Rafał Cieślak

unread,
Nov 19, 2016, 9:28:23 AM11/19/16
to elm-dev
I migrated my simple app to Array.Hamt, I had to use a list before because I do some simple slicing and appending. https://github.com/ravicious/flux-challenge-elm/commit/2390260

No problems so far and all (three) fuzzy tests pass. Thank you so much for your work!


On Tuesday, November 15, 2016 at 12:35:35 AM UTC+1, Robin Heggelund Hansen wrote:

Robin Heggelund Hansen

unread,
Nov 19, 2016, 7:30:28 PM11/19/16
to elm-dev
Thank you for your feedback. :D
Reply all
Reply to author
Forward
0 new messages