Nim Reaches 1.0
Written by Kay Ewbank   
Monday, 30 September 2019

The Nim Team has announced version 1.0 of the language. Nim is a compiled statically typed language focusing on efficiency, readability and flexibility, and the developers say Version 1.0 marks the beginning of a stable base and that future versions of Nim won’t break the code you have written with the current version.

Nim is strongly typed and has first class functions. It is object oriented, but with composition preferred over inheritance. Nim compiles to C as its default, but can be used with different compiler back-ends to produce JavaScript, C++, or Objective-C.

nim

Nim's options include a deferred reference counting garbage collector that is fast, incremental and pauseless; or a soft real-time garbage collector that lets you specify its max pause time. There are also other options for garbage collection. At the moment there are more than 1000 packages available for Nim, and the developers hope and expect more packages to be developed now Nim has reached 1.0.

In a blog post about the new release, Andreas Rumpf, the developer who first invented Nim, said that the main aim has been that Nim should be a small language with a macro system, which should be capable of extending Nim with all the features that the small core is missing. The current compiler plus the parts of the standard library it uses has roughly 140,000 lines of code, runs on many operating systems, and can also compile Nim code to C++ and JavaScript. Rumpf said:

"We want to focus on Nim's tooling, including Nimsuggest (Nim's code completion engine for diverse editors), Nimble (Nim's package manager) and Nimpretty (Nim's source code formatting tool). Personally I regard "incremental recompilation" (IC) the next big milestone for the Nim compiler. IC will further speed up Nim's already fast compile-times and cache the results of macro expansions and other constructs." 

 

nim

More Information

Nim Language Site

Related Articles

Nim Reaches Release Candidate Stage 

Nim Improves Async  

Nim 0.15

 

 

To be informed about new articles on I Programmer, sign up for our weekly newsletter, subscribe to the RSS feed and follow us on Twitter, Facebook or Linkedin.

Banner


Google Opensources Privacy Library
08/11/2024

Google is making a new differential privacy library available as open source. PipelineDP4J is a Java-based library that can be used to analyse data sets while preserving privacy.



Looking Forward To NAO 7
03/11/2024

Introduced to the world in 2004 by its creator Bruno Maisonnier the kid-sized, autonomous humanoid robot NAO, turns 20 this year. At less than 2 ft tall, it is small in stature, but plays a big r [ ... ]


More News

espbook

 

Comments




or email your comment to: comments@i-programmer.info

Last Updated ( Monday, 30 September 2019 )