What are the biggest reasons newcomers give up on OCaml?

I hope this isn’t off topic.

I’ve been using OCaml in an Honors CS1 course since 2014. My dept. is unlikely to continue using OCaml in that course now that I’ve finished teaching it, even though OCaml is truly great for teaching once you overcome the barriers-to-entry. The stronger students in the Honors course love OCaml but it doesn’t resonate as well for the average student who is wondering why we aren’t using resume-friendly Python like their friends. Some grudgingly accept learning OCaml in part because they see that it’s used in prestigious schools like Cornell & Harvard. If Cornell & Harvard stopped using OCaml enrollment in my Honors course would drop.

Installation of OCaml and graphics libraries is a very significant problem. Wealthier students have Macs so they have less trouble but many students have inexpensive Windows systems and installation issues for Windows students have been a show-stopper for many of them.
The situation has been improving but not enough to win over enough students and I’ve made no headway in recruiting colleagues to continue using OCaml in Honors CS1. It’s a bummer. If OCaml had a one-click install teaching environment things might be different.

14 Likes