4

After looking at some OCaml graphics related projects it seems that no one using it for building GUI.

  • why ?
  • is there any modern alternatives to those outdated libraries ?
Pascal Cuoq
  • 79,187
  • 7
  • 161
  • 281
Salah Eddine Taouririt
  • 24,925
  • 20
  • 60
  • 96

3 Answers3

3

My colleagues and I use OCaml to build iOS apps that we sell. Everything is coded in OCaml, including the GUI. However, making a full OCaml binding to Cocoa Touch would be a very large undertaking, so we concentrate on building the parts that we need. It's definitely possible (and in fact enjoyable) to use OCaml for building real-world GUIs, but to get a really convenient environment would take some serious backing or a pretty big community effort. (If you're interested in our efforts, follow the link in my profile.)

Jeffrey Scofield
  • 65,646
  • 2
  • 72
  • 108
1

I don't think you will find recent GUI bindings on the old OCaml website. As a rule of thumb, you should consider anything not available through OPAM as outdated. The most "mature" and "wall-supported" bindings for OCaml seem to be LablGtk found here: http://lablgtk.forge.ocamlcore.org/

rgrinberg
  • 9,638
  • 7
  • 27
  • 44
1

Many people these days consider that the only GUI "library" that's not outdated is the Web. Whatever your stance on that matter, it's good to know that web is a portable alternative to traditional GUI, and that there are very serious libraries and tools available to program for the web with OCaml (from Ocsigen to Ocamlnet).

rixed
  • 96
  • 2