hn.today

Nimony 0.6.4 release, a new compiler for the next Nim

nimony.org6 points0 comments
Screenshot of Nimony 0.6.4 release, a new compiler for the next Nim

Nimony 0.6.4 is presented as the final release before a planned 6.0.0 launch in December 2026, which will be the compiler’s first stable release. Its numbering follows a time-based scheme rather than strict semantic versioning: the major number identifies the product line, the minor number helps indicate the release year, and odd patch numbers mark development builds while even ones identify official releases. The 6.x line is expected to continue through 2027, with releases roughly every three months. The developer says Nimony already represents a substantial evolution of Nim, incorporating a NIF-based plugin system and static contract checking, without intending to make backward compatibility breaks the purpose of a new major line.

A central focus of 0.6.4 is preventing “accepts-invalid” compiler bugs, where ill-formed programs are mistakenly allowed to compile. The release argues that compiler bug fixes can break builds by exposing code that relied on incorrect acceptance, so they should not be treated as harmless updates; making more programs valid later is safer than invalidating programs that once compiled. Security fixes and straightforward crash fixes are singled out as cases that should be delivered more aggressively. A parallel-loop example shows the compiler rejecting a nested write to the same array element: iterations of the outer parallel loop may span adjacent chunks, creating a data race. The diagnostic advises moving the write out of the inner loop, illustrating how Nimony checks parallel code rather than merely providing parallel-loop syntax.

Read on nimony.org0 comments on Hacker News

Summary generated by AI from the linked article. hn.today is not affiliated with Hacker News or Y Combinator.

More in Programming

The daily digest

Today's best Hacker News stories, summarized and screenshotted, one email a day.