java - Ocaml learning resources -


we thinking of using functional languages in our projects. i'm trying collect points on functional language can start with(we java developers). thinking of using ocaml. tried learning website ocaml.org. i've following questions use ocaml @ workplace.

  1. does ocaml reduce lines of code compared java?
  2. what editors use ?
  3. i have see there many ocaml library implementations- batteries,core etc.in beginning can batteries suffice?
  4. do use ocaml core(by jane street)? how different compared standard one?

in beginning, planing use ocaml in small amount,possibly in house project.

at vector fabrics, using ocaml extensively.

having recognised advantages functional programming bring our engineering activities (we constructing software tools analysing c , c++ programs), considered both haskell , ocaml languages use. in end, decided go ocaml, because execution model simpler (eager evaluation vs. haskell's lazy evaluation) , therefore reasoning behaviour of programs simpler programmers not have background in functional programming (we concerned reasoning space behaviour of programs, is, experts, quite challenging in haskell).

ocaml allowing selectively "escape" imperative , object-oriented programming comes in handy not recommend our programmers practice in everyday programming. our rationale: once adopt functional programming language, better use functional programming in, otherwise can end writing imperative , object-oriented programs in (for purposes) clumsy syntax. after all, if you're problem domain better served object-oriented programming, you're better off selecting language java far better suited that.

answering questions:

  1. does ocaml reduce lines of code compared java? yes, if indeed adopt "functional style" of programming. also, careful: functional programs can beautifully concise, notation can obscure inherent complexity of algorithms.
  2. what editors use? use general-purpose editors emacs , vim.
  3. i have see there many ocaml library implementations- batteries,core etc.in beginning can batteries suffice? batteries makes nice , arguably powerful-enough standard library (but core). depending on problem domain, may need extend standard libraries own utility libraries.
  4. do use ocaml core(by jane street)? how different compared standard one? don't use it, see, e.g., what pros , cons of batteries , core?.

note these questions have many possible answers , have answered them large extent exclusively vector fabrics perspective. in fact, question may bit broad stack overflow.


Comments

Popular posts from this blog

ruby on rails - RuntimeError: Circular dependency detected while autoloading constant - ActiveAdmin.register Role -

c++ - OpenMP unpredictable overhead -

javascript - Wordpress slider, not displayed 100% width -