Live data from Hacker News

The Nim programming language

nim-lang.org

31–40 of 97 posts

Re: The Nim programming language

#32

Earlier quoted context omitted.

How does it accomplish tracing GC without a runtime?

It doesn't have a tracing GC (or at least, the primary portion isn't tracing). The garbage collector is outlined at https://nim-lang.org/docs/gc.html

It says it has to scan the entire threadlocal heap with mark and sweep. What am I missing?

Anyways I'm sorta being pedantic that it obviously has some sort of runtime. Maybe they meant to say not a runtime like a full VM ala Java?

Re: The Nim programming language

#33
post #2

Nim is the language I have always thought was a brilliant idea that I never get to use. It's a shame. Nim is to C/C++ as CoffeeScript is to JavaScript. A highly extensible template language atop a portable language with libraries for practically everything. So why haven't I hopped on the bandwagon? Outside of C++, C, and Fortran - the only way I have ever learned a new language is through using a REPL. How much of Py…

+1 to the usefulness of a REPL. Anyone know of a good one for the vanilla Java language?

Re: The Nim programming language

#35
post #7

Earlier quoted context omitted.

Which IDE?

Emacs. I have the nim-mode and smart-compile packages installed, and I have bound F9 to compile the nim code in the current buffer, and run it in the emacs-inbuilt eshell. I have configured so that the point and buffer switching 'does the right thing'. - If the compilation fails, show the compilation buffer in the other window, and do not execute the binary, and keep the point in the code window. - If the compilation…

Hey, fancy meeting you here. :) Thanks for sharing that, I'll have to give it a try.

Re: The Nim programming language

#36
When trying out a new language, one of the first things I look for is a Getting Started/Quick Start guide that'll get me up and running with executing some code on my computer.

Is there something like that on the Nim website? There's a code example on the home page but after doing a `brew install nim` I don't actually know how to run it. In the Documentation section there are guides about the standard library and so on but I can't find a 'quick start' that'll get my hands just a little dirty without feeling overwhelmed with too much information.

Re: The Nim programming language

#37

Earlier quoted context omitted.

It doesn't have a tracing GC (or at least, the primary portion isn't tracing). The garbage collector is outlined at https://nim-lang.org/docs/gc.html

It says it has to scan the entire threadlocal heap with mark and sweep. What am I missing? Anyways I'm sorta being pedantic that it obviously has some sort of runtime. Maybe they meant to say not a runtime like a full VM ala Java?

The whole language compiles to C, C++, or Javascript. It presumably uses whatever runtime the compiled-to language provides.

Re: The Nim programming language

#38

When trying out a new language, one of the first things I look for is a Getting Started/Quick Start guide that'll get me up and running with executing some code on my computer. Is there something like that on the Nim website? There's a code example on the home page but after doing a `brew install nim` I don't actually know how to run it. In the Documentation section there are guides about the standard library and so…

Nim by Example (https://nim-by-example.github.io/getting_started/) should help out there.

Re: The Nim programming language

#40

When trying out a new language, one of the first things I look for is a Getting Started/Quick Start guide that'll get me up and running with executing some code on my computer. Is there something like that on the Nim website? There's a code example on the home page but after doing a `brew install nim` I don't actually know how to run it. In the Documentation section there are guides about the standard library and so…

There is "How I start" http://howistart.org/posts/nim/1/index.html
Post reply on HN