Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

You don't have to use TypeScript if you don't want to: you can compile Haskell, Ocaml, Rust, F#, ... to javascript. This is quite efficient, especially if your backend is already in one of those languages. It saves you from creating the same abstraction twice in different languages.


How does that work with JS frameworks like React, since most development takes place with them?


it's not that different compared to using the FFI.

The link below shows how it can work for Ocaml <-> TypeScript.

https://github.com/ocsigen/ts2ocaml




Consider applying for YC's Fall 2026 batch! Applications are open till July 27.

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

Search: