Working Notes: a commonplace notebook for recording & exploring ideas.
Home. Site Map. Subscribe. More at expLog.
Elm
- Experience
- Loving that it's a /small/, opinionated DSL that reminds me a lot of Haskell
- The developer tools are excellent and very helpful, which makes this pleasant
- Documentation is spread across versions, which can be a little tricky when reading tutorials
- UI development might actually be pleasant for me, this time
- Shorter overviews
- CSS in Elm?
- Elm setup
- Use a =Browser.application= from the beginning to really build a web-app
- Elm-live works really well: enough that I prefer it to elm-reactor to avoid manual refreshes
- Within emacs
- Explicitly added =elm-stuff= to =.gitignore=
- Elm internals?
- List implementation: look at this by generating code through the compiler
- The code is surprisingly readable
- Looks like a direct translation to javascript, eg. F2 takes a function and makes it resemble haskell
- I'm a little bit surprised at good performance in this case because Elm is spending a lot of VM memory, functions, etc.
- Presumably v8 simply absorbs it all?
- Implementation of cons:
function _List_Cons(hd, tl) { return { $: '::', a: hd, b: tl }; }
— Kunal