[elm-discuss] Re: Json file size

2017-08-14 Thread David Legard
The other 2 modes of doing this failed as follows: 1) db.json. The JSON loaded fine, according to the Debug.log, but the program failed on the first user input. That is, when I changed the input [textarea [cols 70,rows 20,placeholder "Enter text here", onInput Change ] [] ... Change s -> ({m

[elm-discuss] Re: Json file size

2017-08-14 Thread David Legard
I ended up going the JS/ports route and it works fine now, so thanks for the suggestion. It was quite a shock going back to the catalogue of atrocities that is Javascript after so long writing in Elm. It was like being thrown back into a medieval time of druids and burning witches. Twenty lines

[elm-discuss] Re: Json file size

2017-08-14 Thread Steve Schafer
I think your problem is this bug: https://github.com/elm-lang/elm-compiler/issues/1521 The workaround is to disable the Elm debugger. On Friday, August 11, 2017 at 5:03:41 AM UTC-4, David Legard wrote: > > Thanks, I'll look through that code. > > A couple of minor points -- I am not using a Dic

[elm-discuss] Re: Json file size

2017-08-13 Thread Ian Mackenzie
I suspect there will be a way of making this work without dropping into JS. It looks like you're hitting some sort of very deep recursion which is causing a stack overflow - try seeing if you can isolate which of your function calls is triggering the stack overflow, and see if you can change som

[elm-discuss] Re: Json file size

2017-08-11 Thread David Legard
Thanks, I'll look through that code. A couple of minor points -- I am not using a Dict, simply a list of records holding the word pairs. Is Dict better performing in this situation? My use case is slightly different - as the source language (Thai) is written without spaces between words, I need