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

I really want to use Ocaml for web application back-ends, but last time I checked the ecosystem around that in Ocaml is less than extensive compared to languages like Python, JS, java, etc. It really is a shame. I need to set aside some time to really dive deep into Ocaml and make a simple micro framework or something.

From my small amount of exposure, I can say that I love Ocaml's expressiveness and flexibility.




There is some good work going on for the lower level pieces:

https://github.com/anmonteiro/ocaml-h2 - HTTP2 stack

https://github.com/inhabitedtype/httpaf - HTTP stack

For micro-frameworks there are a few options available like

https://github.com/rgrinberg/opium

https://github.com/ostera/httpkit

There are some scattered pieces in the ecosystem for routing, sessions etc but i agree that compared to Python, JS, etc the ecosystem might not look as cohesive or expansive for web applications. So there should definitely be room to have new solutions in this space


Did you check out F#? I’ve never personally used it, but I know it takes advantage of the .NET ecosystem (and with .NET Core, is no longer tied solely to windows).




Consider applying for YC's Fall 2025 batch! Applications are open till Aug 4

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

Search: