News for hackers. Stuff that matters.
Re:Elm in Production: 25K Lines Later by justinw2 on Monday July 31, 2017 @04:18AM (#14890271)
It seems like there's no solutions for generic JSON encoding for OCaml/BuckleScript/Reason either though.

I've worked on various ways to do JSON encoding in Purescript through datatype generics, but the recent RowToList machinery lets us use record types directly. I have a post and some links collected if anyone is interested:

https://www.reddit.com/r/purescript/comments/6mss5o/new_in_p...

http://qiita.com/kimagure/items/d8a0681ae05b605c5abe

Re:Elm in Production: 25K Lines Later by shakna on Monday July 31, 2017 @05:12AM (#14890483)
Yojson [0] provides a generic way to read JSON in OCaml. Mostly by pre-defining a type that contains any valid json value.

[0] https://github.com/mjambon/yojson

Re:Elm in Production: 25K Lines Later by justinw2 on Monday July 31, 2017 @06:01AM (#14890665)
Right, there are some various approaches but I've had a few OCaml users tell me there were some reasons why they weren't/couldn't be used on the front end, sadly. Would really like to see some demos otherwise though
Re:Elm in Production: 25K Lines Later by 3pt14159 on Monday July 31, 2017 @05:02AM (#14890453)
The only JSON encoder / decoder / manipulator that I've seen that is typed and reasonably flexible is Nim's, but even there it's still 5 times more complicated than say Ruby.