Programming languages that compile to native code and have the batteries included

Sebtm picture Sebtm · Nov 25, 2009 · Viewed 10.9k times · Source

What are the programming languages that compile to native code and which have provided a comprehensive library with them?

Libraries that includes functionality such as Networking, File IO, RegEx, Database, Graphics, Multimedia, Win32 API bindings, File compression, etc.

Answer

Emil Ivanov picture Emil Ivanov · Nov 25, 2009
  • I'll assume everyone has thought of C and C++.
  • Haskell is the obvious one here. In particular, if you want batteries included, you want the Haskell Platform.
  • OCaml fits this category, as well.
  • Go is a new player that has (most of) the feature you asked.
  • The D programming language with it's standard library Phobos.
  • Some Lisp dialects include a native compiler, like Common Lisp with its SBCL, CCL or ECL (to C) compilers.
  • Rust is a system programming language but doesn't include batteries but has crates ― to avoid stale standard library modules