←back to thread

Nim 2.2.6

(nim-lang.org)
159 points xz18r | 1 comments | | HN request time: 0s | source
Show context
synergy20 ◴[] No.45772525[source]
nim is memory safe, python syntax, emits c/c++/js. It really deserves more love and publicity.

more mature than zig, much easier than rust.

replies(5): >>45772662 #>>45773011 #>>45773084 #>>45773138 #>>45777708 #
netbioserror ◴[] No.45772662[source]
It doesn't seem as exciting as those because it doesn't have a whiz-bang-pow killer feature (other than very robust metaprogramming), but it's very mature, and breezy to write high-performance software.
replies(1): >>45773862 #
almostgotcaught ◴[] No.45773862[source]
> other than very robust metaprogramming

lol then i guess zig's comptime isn't a "whiz-bang-pow killer feature" either

replies(2): >>45773958 #>>45774826 #
netbioserror ◴[] No.45773958[source]
Metaprogramming isn't exactly new. I guess the novelty is that its history in the systems language space is spotty, and has only recently become usable in the way a Lisper might want to use it.
replies(2): >>45775103 #>>45783338 #
QQ00 ◴[] No.45775103[source]
what programming languages have the metaprogramming capabilities that a lisper would want to look at to learn/use it?
replies(2): >>45778549 #>>45786997 #
1. netbioserror ◴[] No.45778549[source]
Nim, for one. It has an incredibly powerful macro and template system. But other languages with similar macro power include Elixir and Julia.

D has a generic system similar to Nim's, and a mixin system similar to Nim's templates, but doesn't have a powerful AST-manipulating macro system like the above languages.