English 中文(简体)
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.

问题回答
  • 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

Delphi meets all those requirements. This is a development environment based on the Object Pascal language.

Is Objective-C with Cocoa/CocoaTouch an acceptable answer?

You can use this pair for programming applications running on devices with restrictive constraints on batteries (laptops and mobile phones).

Swift by Apple, but now Open Source, compiles to native code and is available for OS X and Linux.

Batteries are completely included for Mac OS X and iOS through Apple s extensive libraries/APIs, and support for OS independence is on the way with the development of core libraries.

Hmmm. The funny thing is, most OSes have native APIs for all that stuff. So all you really need is a language that can link in OS calls. Pretty much any compiled language worth its salt will do that.

I am currently working with Qt.

http://doc.trolltech.com/4.5/index.html

Edit: a Nitpick..

A programming language is a grammar and set of semantics and syntax. It contains NONE of the things you are asking about. What you want to know about is API s, not languages.





相关问题
Accessing native C++ data from managed C++

I have an native C++ library which makes use of a large static buffer (it acquires data from a device). Let s say this buffer is defined like this: unsigned char LargeBuffer[1000000]; Now I would ...

On Developing Native Windows Executables

Which technology stack do you recommend for developing native windows executable (has GUI), other than .NET stack? Other that C++ (MFC, ...) some could be named; yet which one is mature and pragmatic ...

Compiling C# to Native?

I think I m somewhat confused about compiling .NET byte-code to native code, or maybe I m confused about the end result. So please bear with me as I try to sort through what I think I understand so ...

C++/CLI : Casting from unmanaged enum to managed enum

What is the correct way of casting (in C++/CLI) from a native code enum to a managed code enum which contain the same enum values? Is there any difference with using the C# way of casting like for ...

How to preload custom colors in SWT ColorDialog

my application users the SWT Color Cell Editor to set a color property. This class in turn users the native color dialog - which offers preset and custom colors. My users are frustrated because ...

热门标签