Nim – Natively compiled language with hot code-reloading at runtime [video]
1–10 of 118 posts
Re: Nim – Natively compiled language with hot code-reloading at runtime [video]
#2Re: Nim – Natively compiled language with hot code-reloading at runtime [video]
#3Re: Nim – Natively compiled language with hot code-reloading at runtime [video]
#4Afaik Common Lisp would be the first, wouldn't it?
Re: Nim – Natively compiled language with hot code-reloading at runtime [video]
#5(Natively compiled) Erlang might want to have a word with you.
Re: Nim – Natively compiled language with hot code-reloading at runtime [video]
#6Re: Nim – Natively compiled language with hot code-reloading at runtime [video]
#7However, Go and other languages have a huge ecosystem and many more libraries. Nim only has a few web servers/frameworks, for example. Even if Nim's web frameworks/servers (like httpbeast) are quite fast[2], they lack the completeness that exist for other languages.
Until then, if you are looking for a systems programming language, you owe it to yourself to investigate Nim[3], alongside Go, Crystal, Julia, D, Rust, Haskell, etc. The tooling is fantastic and the Nim compiler produces clean, cross-platform C code (or JS[4]!) that can be automatically fed into gcc, clang, mingw-w64, etc. It's a language that's undergoing rapid changes, but almost all of the changes are in the libraries and it's exciting to see all of the innovation there -- and as libraries increase and mature, it will become a really compelling application language as well.
The community is extremely active, and issues are promptly dealt with. For HNers, it's an opportunity to still make a huge difference by contributing to a relatively young language, compared to getting drowned out by all the noise in a more mature language community.
0. https://nim-lang.org/docs/tut1.html
1. https://en.wikipedia.org/wiki/Metaprogramming
2. https://www.techempower.com/benchmarks/
Re: Nim – Natively compiled language with hot code-reloading at runtime [video]
#8(Natively compiled) Erlang might want to have a word with you.
Educate me if I am wrong, but there are natively compiled Erlang modules, but no longer any natively compiled Erlang. It only runs on the BEAM, and ever since BEAM/C fell out of use in OTP R5 no native code is generated.
erlc +native
You will get beam file containing both the byte-code and native code.Re: Nim – Natively compiled language with hot code-reloading at runtime [video]
#9Afaik Common Lisp would be the first, wouldn't it?
The answer to that would depend on the CL implementation, since not all of them can do AOT compilation.
It's in the CL standard, and compliant implementations support it. SBCL, LispWorks, Allegro, CCL, and others all do AOT native compilation, from the REPL and via eval (which should be avoided, in any case). ABCL does AOT compilation to JVM bytecode, and Clisp to its own bytecode.
It's a cool feature for Nim to have, but claiming to be the first makes them look bad.