Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

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.

like image 290
Sebtm Avatar asked Nov 25 '09 14:11

Sebtm


People also ask

Which programming languages are specified as native code programming languages?

Typically programmers will code in high-level languages such as C, C++, Pascal, (or other directly compiled languages) which gets translated into assembly code, which then translates it into machine code (or in most cases the compiler generates machine code directly).

What is a native coding language?

Native code is computer programming (code) that is compiled to run with a particular processor (such as an Intel x86-class processor) and its set of instructions.

What is a compiled language in programming?

A compiled language is a programming language which are generally compiled and not interpreted. It is one where the program, once compiled, is expressed in the instructions of the target machine; this machine code is undecipherable by humans. Types of compiled language – C, C++, C#, CLEO, COBOL, etc.

What is native code compiler?

Native compiler are compilers that generates code for the same Platform on which it runs. It converts high language into computer's native language. For example Turbo C or GCC compiler. 2.


1 Answers

  • 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
like image 71
Emil Ivanov Avatar answered Sep 17 '22 16:09

Emil Ivanov