26

Know of an OCAML/CAML IDE? Especially one that runs on Linux?

Chris
  • 26,361
  • 5
  • 21
  • 42
DustinB
  • 11,037
  • 5
  • 46
  • 54

11 Answers11

25

Emacs in Caml mode, or Tuareg mode, or TypeRex mode. TypeRex adds auto-completion to Taureg in emacs - a really nice feature for people who prefer the more graphical IDE's.

ImAlsoGreg
  • 655
  • 6
  • 17
Alex M
  • 2,458
  • 20
  • 15
  • I use Emacs with Tuareg mode; most OCaml hackers use Emacs its seems. There do, however, exist other IDE's as mentioned in other answers. – Michael Ekstrand Jul 12 '09 at 01:17
  • @Pi. how can i download TypeRex on Ubuntu 12.04. I am new to Linux could you help ? Do i have to disable Tuareg mode when i install Type Rex, and how ? – Devid Apr 26 '13 at 16:02
  • 1
    a nice alternative to TypeRex for auto-completion is merlin: https://github.com/def-lkb/merlin – unhammer Aug 30 '14 at 14:53
15

There is Camelia. You can also integrate OCaml into Eclipse. Also in Emacs you can use ocaml-mode and tuareg-mode.

λ Jonas Gorauskas
  • 6,121
  • 6
  • 45
  • 66
11

I vote OcaIDE. Now it has upgraded to v1.2.5. it become an up-to-date IDE (supporting ocaml 3.10-3.11, especially ocamlbuild, which is a great time-saver) and armed with rich, stable features.

I've installed OcaIDE on an eclipse 3.5(Galileo) and it works well.

a_m0d
  • 12,034
  • 15
  • 57
  • 79
NullPointer
  • 202
  • 4
  • 10
7

There are 2 modes for Emacs for working with OCaml: ocaml-mode and tuareg-mode. Both are available via apt, or on the web.

They provide syntax-highlighting and tuareg-mode includes interfacing to the OCaml top-level and debugger.

Lucas Jones
  • 19,767
  • 8
  • 75
  • 88
Kyle Burton
  • 26,788
  • 9
  • 50
  • 60
6

There are also a few vim files you can load up... Take a look at the list of tools on the hump and godi, for extra tools. And be sure to compile with -dtypes on so you can take advantage of the annotation files to determine the types with a keystroke.

You can also use netbeans as an ide with an ocaml plugin.

nlucaroni
  • 47,556
  • 6
  • 64
  • 86
4

It's actually possible to use OCaml via DrScheme if that's your thing.

http://coach.cs.uchicago.edu:8080/display.ss?package=drocaml.plt&owner=abromfie

Just run '(require (planet abromfie/drocaml:2:0/tool))' in DrScheme and you'll then be able to select the OCaml language.

4

You can try NetBeans based OcamlIDE.

greg
  • 41
  • 2
2

http://ocaml.eclipse.ortsa.com:8480/ocaide/

I just found an eclipse plugin for it which may be promising. Doesn't look too active. I'll try it and report back on results.

ewwwe....emacs? anything in vi? ;)

DustinB
  • 11,037
  • 5
  • 46
  • 54
  • Thanks for all the suggestions. I've foudn that the plugin seems to work ok with Eclipse 3.4. It isn't very pretty, but it seems to be functional. I haven't tried the debugger yet, but when I do, I'll add another comment on my impressions. – DustinB Sep 23 '08 at 15:50
2

See my post here for TypeRex, a development environment for OCaml.

Community
  • 1
  • 1
Çağdaş Bozman
  • 2,537
  • 16
  • 21
1

Check out eclipse plugin for OCaml if you prefer to work on eclipse platform. For example, like this one: http://ocamldt.free.fr/

Other than that, starting directly from plain editors like emacs or vim is good enough for programming. Besides, it can help you to learn better about the syntax of the language and the compiling process.

liaison
  • 11
  • 1
0

You can try to edit, compile and run simple Ocaml codes even online with ideone. There are also apps for mobile devices, which allows you to program/experiment with your smartphone.

kuszi
  • 2,069
  • 29
  • 36