Live data from Hacker News

Show HN: Nim in Action

book.picheta.me

21–30 of 44 posts

Re: Show HN: Nim in Action

#22
Now that there'e even a book about Nim, what kind of production-level code do people write with it ? As a Python lover, Nim looks very nice on the surface...

Re: Show HN: Nim in Action

#23
post #14

Earlier quoted context omitted.

Perhaps you should make chapter 3 free too? That's the kind of material is want to see before I decide if I like the language or the book. Of course, you might have a good reason not to do it, but that was my first thought when looking at the web site.

That is the big advantage of getting books out on shelves, so people can look through them. That's harder to do with more independent works. Now that I think about it, I use to buy programming books in University and just after (2005-ish), but I haven't really since. Even when I work places where we have a book budget; I never request anything. These days I read the documentation, and if I get stuck, I go to a stack…

Hi Dan

Re: Show HN: Nim in Action

#25
post #24

Can Nim be used as drop-in replacement for C, like Rust?

Yes, the nim compiler outputs C-source code then passes that to your compiler. It can also output other languages. That said while a lot is configurable, I wouldn't consider the generated C as something a human can work on.

Re: Show HN: Nim in Action

#26
post #24

Can Nim be used as drop-in replacement for C, like Rust?

Yes, the nim compiler outputs C-source code then passes that to your compiler. It can also output other languages. That said while a lot is configurable, I wouldn't consider the generated C as something a human can work on.

Doesn't it has garbage collection?

Re: Show HN: Nim in Action

#27
post #26

Earlier quoted context omitted.

Yes, the nim compiler outputs C-source code then passes that to your compiler. It can also output other languages. That said while a lot is configurable, I wouldn't consider the generated C as something a human can work on.

Doesn't it has garbage collection?

Optional garbage collection, with choices on which type of garbage collection.

Re: Show HN: Nim in Action

#28
post #27
post #26

Earlier quoted context omitted.

Doesn't it has garbage collection?

Optional garbage collection, with choices on which type of garbage collection.

I wonder how well the Nim standard library handles this. D has been controversial with this because the standard library expected GC to be enabled although allowing it to be disabled. I think this story has improved but it may have hurt adoption as a systems programming language that is now hard to restore.

Re: Show HN: Nim in Action

#29
post #14
post #2

Author here. The development of this book has taken a while but I'm happy to say that it is now in print! Chapter 1 and 8 are free so be sure to give them a look if you're new to Nim. Previous discussion for the curious: https://news.ycombinator.com/item?id=10987975 Happy to answer any questions.

Perhaps you should make chapter 3 free too? That's the kind of material is want to see before I decide if I like the language or the book. Of course, you might have a good reason not to do it, but that was my first thought when looking at the web site.

If it was up to me I would make the whole thing free. The publisher has to make their money somehow though :)

I was given the option to make two chapters free. I figured an intro to Nim and an advanced chapter were good choices.

Re: Show HN: Nim in Action

#30
post #22

Now that there'e even a book about Nim, what kind of production-level code do people write with it ? As a Python lover, Nim looks very nice on the surface...

A lot of different things. CLI applications, games (a large proportion of the companies using Nim are doing this, and some indie devs[1]), web applications, GUI applications, some are using it for scientific applications. The list goes on and on :)

1 - https://impbox.itch.io/vektor2089

Post reply on HN