from Hacker News

OCaml Canvas

by nickmain on 12/12/22, 2:30 PM with 22 comments

  • by thangngoc89 on 12/13/22, 7:52 AM

    OCaml is like an HN darling, always go to the front page. Hopefully, OCaml 5.0 would drive more adoptions to the language.
  • by frou_dh on 12/13/22, 8:15 AM

    In the strictly browser realm, there's also Brr: https://erratique.ch/software/brr/doc/Brr_canvas/index.html which is a recent reimagining of the traditional interface to browser APIs (provided by js_of_ocaml) in a much more idiomatic OCaml style.

    https://erratique.ch/software/brr/doc

  • by tommy92 on 12/13/22, 8:42 AM

    Whats the best book/resource to learn OCaml for someone new to FP?
  • by tempodox on 12/13/22, 8:30 AM

    This looks to be a much improved version of what used to be provided by the now defunct `Graphics` module. Definitely have to try it out. `Graphics` was X11-only, but it was the only way to produce on-screen graphics directly in OCaml (i.e. without using a web browser or other image display app). Very nice to have something like that again.
  • by HPMOR on 12/13/22, 6:48 AM

    So cool. Love to see high quality OCaml Libraries.