NYC OCaml

Community blog for OCaml programmers in New York. Open for anyone to post their insights, frustrations, and advice.

  • Interfacing with C

    • 1 Dec 2011
    • 1 Response
    •  views
    • Edit
    • Delete
    • Tags
    • Autopost

    At last night's meetup Niki told us about the glory and the horror of getting OCaml and C talking with each other. It's a little frustrating that OCaml exposes so much of its internal representation in the C API but if you want to write bindings for C libraries you have to know this stuff.

    • PDF of the presentation
    • Respository of code examples

    Other resources

    • A more detailed tutorial
    • The C interface section of "OCaml for Scientific Computation"
    • The manual's chapter on Interfacing C wth OCaml

     

     

    • Tweet
  • Getting started with OCaml

    • 12 Oct 2011
    • 0 Responses
    •  views
    • Edit
    • Delete
    • Tags
    • Autopost

    Someone recently asked me for a few links to help them get started programming in OCaml. I collected some tutorials, cheatsheets, books and blog posts and put them up here. 

    In addition to learning the language, it also helps to know about a few tools which will make your life easier.

    • Unit testing: OUnit
    • Finding a library: findlib
    • Building: ocamlbuild 
    • Coding in Emacs: TuaregMode
    • Coding in Eclipse: OcaIDE
    • Parsing: Menhir
    • Not rewriting the standard library: Core or Batteries

    For an example of a project with multiple source files and unit tests, check out ocaml_skeleton.

    • Tweet
  • About


    1078 Views
  • Archive

    • 2011 (3)
      • December (1)
      • October (2)

    Get Updates

    Follow this Space »
    You're following this Space (Edit)
    You're a contributor here (Edit)
    This is your Space (Edit)
    Follow by email »
    Get the latest updates in your email box automatically.
    Loading...
    Subscribe via RSS