Hacker News new | ask | show | jobs
by 1-more 24 days ago
Slightly important point: it's still safe FFI! Everything that crosses the JS/Elm boundary has to be encoded/decoded from serialized JS Objects. So it's hacky BUT it's not actually unsafe, which is kind of funny. I have an example where I use it to effect locale-aware sort. This repo is a benchmark test of that: https://github.com/perkee/elm-js-sort-ffi-speed-test/tree/ma...
1 comments

Great hack, thanks! And yea I was missing some native string api when I abandoned Elm at 0.19.