New programming languages are shaped every other day. But, what’s the motivation behind them? It could be surely the urge to expand the capabilities of existing programming languages or introduce new features. By working on the shortcomings of vintage programming languages, relatively fresher languages like Swift and Go have managed to persuade developers.
Today, I’m going to tell you about one such new language named Nim. It has been under development since 2008 and its most recent release is 0.16, which was made obtainable earlier this month.
The syntax of Nim might remind you of Python as it uses indented code blocks and similar syntax at some occasions. Just like Rust and Go, it uses strong types and first class functions. Nim is object oriented, but with composition preferred over inheritance.nim programming language
Nim, formerly called Nimrod, calls itself a statically typed, imperative programming language that “gives the programmer ultimate power without runtime efficiency” compromises. What does it mean? It means that Nim focuses on compile-time mechanisms in their various forms. A semantic model supports soft real time GC on thread local heaps.
Nim focuses on thread local heaps and messages passed between threads. As each of them has dedicated GC, there’s no need of “stop the world” mechanism. Talking about the benchmarks, it’s comparable to C.
Nim compiler and library are MIT licensed. Thus, it allows you to use any license for your programs that use Nim.
What do you predict about Nim and other Programming Languages in 2017? Stay tuned with TechLinu.com to get the newest trends in Programming & Coding! 🙂