Hacker News new | past | comments | ask | show | jobs | submit login

Such a pity they've become two projects. To have on lang for both BE and FE is really nice.



Honestly that was the selling point of ReasonML to me. Share business ___domain types and share common code but also get a native compiled backend. The pattern matching, variants, and syntax of Rescript are quite nice but unfortunately I don't find it enough of a selling point for frontend code that (in my experience) does not benefit as much from those previous points as say writing compilers or parsers because the majority of what youre writing is interacting with 3rd party libs and components, building forms etc in React, for which the code ends up looking pretty similar in rescript-react.


We tried doing this with darklang. It ended up not actually working that well (it took a lot of effort to have even a few shared types), and it didn't get us very much either.


I think I read your postmortem on that actually. Good stuff


Exactly. I could take the whole "generate API consumer client lib from API specification" out of the equation.


Well technically I guess you could still have that via node, just not native as with the Ocaml compiler?


I rather work with OCaml/httpaf[0] than with JS/express or what have you.

[0]: https://github.com/inhabitedtype/httpaf


And via Deno as well.




Consider applying for YC's Summer 2025 batch! Applications are open till May 13

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: