1 Nit is an expressive language with a script-like syntax, a friendly type-system and aims at elegance, simplicity and intuitiveness.
3 Nit has a simple straightforward style and can usually be picked up quickly, particularly by anyone who has programmed before.
4 While object-oriented, it allows procedural styles.
6 The Nit Compiler (nitc) produces efficient machine language binaries.
10 * Pure Object-Oriented.
11 * Multiple Inheritance.
12 * Realist typing policy.
13 * Light and clear syntax.
18 * gcc http://gcc.gnu.org/ (or a compatible C compiler)
19 * pkg-config http://www.freedesktop.org/wiki/Software/pkg-config/
20 * ccache http://ccache.samba.org/ to improve recompilation
21 * libgc-dev http://hboehm.info/gc/
22 * graphviz http://www.graphviz.org/ to enable graphs with the nitdoc tool
23 * libunwind http://nongnu.org/libunwind
25 Those are available in most Linux distributions
27 $ sudo apt-get install build-essential ccache libgc-dev graphviz libunwind-dev pkg-config
29 and on OS X using brew
31 $ brew install ccache bdw-gc graphviz libunwind-headers pkgconfig
35 $ sudo port install ccache boehmgc graphviz libunwind-headers pkgconfig
37 Important files and directories:
39 * benchmarks/ Script to bench the compilers
41 * c_src/ C code of nitc (needed to bootstrap)
42 * clib/ C code needed by nitc to compile programs
43 * contrib/ Various Nit programs (may or may not be useful)
45 * examples/ Program examples written in Nit
46 * lib/ Nit standard library
47 * LICENCE License of the software
48 * Makefile Bootstrap the Nit tools
49 * misc/ Some additional files for commons text editors and tools
50 * NOTICE.md List of the authors
52 * share/ Common resources used by tools
53 * src/ The Nit tool sources (written in Nit)
54 * tests/ Non-regression test-suite
60 $ bin/nitc examples/hello_world.nit
63 You can source `misc/nit_env.sh` to setup your environment like PATH, MANPATH and bash completion.
64 To have your environment automatically configured at login, just source it with `install` as argument.
66 $ . misc/nit_env.sh install
70 To contribute to Nit, please see [CONTRIBUTING](CONTRIBUTING.md).
72 The best way to ask the team for advice, submit bugs or request features, is through the use of Github issues, using the appropriate tag (`forum`, `feature-request`, `bug`).
74 Information, contacts and help:
76 * Website <http://www.nitlanguage.org>
77 * Issues <https://github.com/nitlang/nit/issues>
78 * Chatroom <https://gitter.im/nitlang/nit>