ATTENTION: You are viewing a page formatted for mobile devices; to view the full web page, click HERE.

Other Software > Developer's Corner

Anyone tried the Nim language yet?


There was an article on slashdot recently about the Nim language, and I have to admit I'm intrigued by the motivational guiding principles:

"Nim is a statically typed, imperative programming language that tries to give the programmer ultimate power without compromises on runtime efficiency. This means it focuses on compile-time mechanisms in all their various forms.
Beneath a nice infix/indentation based syntax with a powerful (AST based, hygienic) macro system lies a semantic model that supports a soft realtime GC on thread local heaps. Asynchronous message passing is used between threads, so no "stop the world" mechanism is necessary. An unsafe shared memory heap is also provided for the increased efficiency that results from that model."

I skimmed half of , and the basic syntax doesn't look bad... but indentation based syntax is enough to put me off, especially when I don't see something that strikes me as a killer feature.

A powerful macro system with the ability to modify the AST might be interesting, but... dunno. I'm just not "feeling it" :)

Was testing someone's code recently and installed nim in the process.

In addition to the items advertised in the OP, it appears the resulting binaries appear to be on the small side, which seems nice.

On a side note, there appears to be ongoing work toward a functional REPL for it:


[0] Message Index

Go to full version