Need help with learn-ocaml-workshop?
Click the “chat” button below for chat support from the developer who created it, or find similar developers for support.

About the developer

243 Stars 75 Forks Apache License 2.0 172 Commits 9 Opened issues


Exercises and projects for Jane Street's OCaml Workshop

Services available


Need anything else?

Contributors list

+TITLE: Jane Street OCaml Workshop

This repo contains exercises and build instructions to help you get started developing in OCaml.

  • Installing build tools and libraries See [[][ in install-ocaml]] for instructions.
  • Exercises The [[file:02-exercises][exercises]] directory contains a number of exercises to get you started with OCaml. Each one has some expect-tests embedded in it. The workflow is:

#+BEGINSRC bash cd 02-exercises/$problemdir

dune runtest # builds and runs inline tests # Look at test output and compiler errors, edit, rerun: dune runtest #+END_SRC * Snake, Lumines, and Frogger Once you're done with the exercises, you can also implement simplified clones of the following arcade games:

One library for writing code in this style is [[][Async]]. [[][Async]] provides ~Reader~ and ~Writer~ abstractions for I/O which, paired with the [[][Tcp]] module should have most of what you need for either of the projects below.

Before proceeding, it would probably be a good idea to read [[][Chapter 18]] of /Real World OCaml/. There is some example code in the next section which should set you on your way. * Bigger projects Once you've made it to this point, there are a few possible paths laid out for you:

  • You can work on writing a bot for a chat protocol called IRC. See the [[file:04-bigger-projects/irc-bot/][irc-bot README]] to get started!
  • You can work on writing your very own version of [[][fzf]] in OCaml. See the [[file:04-bigger-projects/fuzzy-finder/][fuzzy-finder README]] to get started!
  • Or, if you want, you can continue making improvements and extensions to your version of Frogger (see the [[file:03-frogger][frogger README]] for some ideas).

    • Documentation and resources ** OCaml
    • [[][Real World OCaml]]
    • [[][OCaml manual]] ** Jane Street libraries and tools
    • [[][An overview of Jane Street's open source things]]
    • [[][Documentation for Core]] ** dune
    • [[][Video tutorial]]
    • [[][Manual]]

We use cookies. If you continue to browse the site, you agree to the use of cookies. For more information on our use of cookies please see our Privacy Policy.