Top 4 OCaml HTTP Projects
Tidy, feature-complete Web frameworkProject mention: Dream – Tidy Web Framework for OCaml and ReasonML | news.ycombinator.com | 2021-04-09
Yes. OCaml + all of the 3 OCaml-to-JS compilers support OCaml syntax.
Dream itself demonstrates:
- Server and client both written in Reason, using ocamlc+Melange https://github.com/aantron/dream/tree/master/example/r-fulls...
That example could also have been written in OCaml syntax, because ocamlc (native) and Melange (JS) both support OCaml. However, Reason is nicer if you want to use React with JSX.
- Server and client both written in OCaml, using ocamlc+Js_of_ocaml https://github.com/aantron/dream/tree/master/example/w-fulls...
The remaining example uses Ocaml on the server and ReScript on the client, using the ReScript compiler. However, you could use OCaml on the client with the ReScript compiler. Just as with Melange, you would lose access to nice JSX syntax https://github.com/aantron/dream/tree/master/example/r-fulls...
It's definitely a lot and not user-friendly to have to decide between all these options, but the community is experimenting greatly right now... so it's good and bad, and that's how it is :/
As for Node.js, using ReScript syntax requires you to use Node.js on the native side, but that is the only coupling. If you write your native side in OCaml or Reason, you can compile it to native code with ocamlc (technically, ocamlopt is the internal command; nobody uses either one directly, but the build system calls them).
An OCaml library for HTTP clients and servers using Lwt or AsyncProject mention: Cohttp 4.0.0 | reddit.com/r/ocaml | 2021-03-24
Scout APM: A developer's best friend. Try free for 14-days. Scout APM uses tracing logic that ties bottlenecks to source code so you know the exact line of code causing performance issues and can get back to building a great product faster.
A high performance, memory efficient, and scalable web server written in OCaml
A REST toolkit for OCaml
OCaml HTTP related posts
1 project | reddit.com/r/ocaml | 24 Mar 2021
The RustyHermit Unikernel: unikernel written in Rust
4 projects | news.ycombinator.com | 25 Jan 2021
What are some of the best open-source HTTP projects in OCaml? This list will help you:
Are you hiring? Post a new remote job listing for free.