Better HN
topnewbestaskshowjobs
Log inSign up

justinw2

13 karma · joined Apr 6, 2017 (9y ago) · 3 submissions

Submissions

comment 9y ago · link · parent

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

comment 9y ago · link · parent

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

comment 9y ago · link · parent

You could also use Purescript, even sharing the same modules between the frontend and backend.