Live data from Hacker News

Mastering Nim – now available on Amazon

nim-lang.org

31–40 of 106 posts

Re: Mastering Nim – now available on Amazon

#31

I am hoping for an eBook. I don't have a lot of space for books, but my computer or phone is always nearby.

An e-book is going to heavily (and negatively) impact the sales figures for the print book. So I wouldn't hold out for that. Looking at the price of the book, he wants to make money from it, so no e-book is probably the right strategy.

> An e-book is going to heavily (and negatively) impact the sales figures for the print book

What? Do you have a source on that claim?

For me, I only get ebooks for programming books because I can have the IDE side by side with the PDF, no need to continuously look at the physical book and then back into my IDE, and I can copy paste code examples.

Re: Mastering Nim – now available on Amazon

#32
post #8

Earlier quoted context omitted.

This appears to have been fixed in the Amazon page I just pulled up. If so, that was a quick edit.

It's still there, at least on Amazon.com. I haven't checked other Amazon sites.

Amazon.com shows the correct English to me.

Re: Mastering Nim – now available on Amazon

#33
post #27
post #16

Earlier quoted context omitted.

Even Rust?

Nim gives you like 85% of the performance of Rust without having to worry about a borrow checker. It also solves concurrency problems via its use of Channels, like Go. So it's just hard to justify using Rust, for me. Unless you're writing a DB or something where a GC is a no go. But Nim's memory management seems pretty good, and many things are stack allocated.

Its nice being able to go all the way from fully GC reliant cyclic data-types with closures all the way to memory control-freak every byte and microsecond matters by using stack objects and 'var' parameters. Often you can keep 90% of the code and just tweak a few slow points.

Re: Mastering Nim – now available on Amazon

#34

Earlier quoted context omitted.

That’s how I feel about Elixir. Everything else just feels wrong now. I’d be curious to get your Nim highlights.

Elixir is not bad, but I definitely prefer static typed languages now after getting more into TypeScript. Not having types just feels wrong now.

Not having failure domains is worse than not having types IMO.

Re: Mastering Nim – now available on Amazon

#35

I am hoping for an eBook. I don't have a lot of space for books, but my computer or phone is always nearby.

An e-book is going to heavily (and negatively) impact the sales figures for the print book. So I wouldn't hold out for that. Looking at the price of the book, he wants to make money from it, so no e-book is probably the right strategy.

> Looking at the price of the book, he wants to make money from it

The price of a printed book includes:

- the price of materials

- the price of printing

- the price of transportation

- the price of storage

- the margins and profits of all of the above

- the margins and the profit of the store

And then, and only then, the author making money, if any.

How is e-book going to impact the author's profit, exactly?

Re: Mastering Nim – now available on Amazon

#36
post #14

Earlier quoted context omitted.

> An e-book is going to heavily (and negatively) impact the sales figures for the print book. Well, if the price is the same, that hardly matters? Or are you implying unpaid/illicit downloads will be worse with a legal digital version as opposed to an illicitly scanned copy? After buying an e-reader I can't defend buying print books from an environmental standpoint - it may be a sunk cost/resources fallacy - but with…

You can read a print book without wasting electricity every time you open it and the toxic materials used to produce a e-reader. Reading print is still a much more enjoyable experience (except in the tub -- a waterproof Kindle is still great and lightweight for that!), especially with the slow speed of e-ink screens. I can't defend ebooks compared to the reading, sharing, and the later selling at a used book store my…

I'm dubious the environmental difference is that much. 1 e-reader vs how many thousands of books? It's seems to me the e-reader is a one and done cost, but each book comes with it's own trees cut down for the paper, shipping, etc.

As for the deletion I'm with you. That's why I always buy DRM free, or promptly crack anything I buy.

Re: Mastering Nim – now available on Amazon

#37
There's 3 languages in the same class. Julia, Nim and Crystal.

I'm specifically curious about Crystal vs. Nim. Benchmarks show that crystal is pretty much faster, but I'd also like to know the advantages of why someone would choose Nim over Crystal I'm looking for reasoning that is deeper then just superficial language syntax differences.

Has anyone extensively used both? I would like an unbiased view from someone who has used both as opposed to someone who's only used one.

Re: Mastering Nim – now available on Amazon

#38

Earlier quoted context omitted.

An e-book is going to heavily (and negatively) impact the sales figures for the print book. So I wouldn't hold out for that. Looking at the price of the book, he wants to make money from it, so no e-book is probably the right strategy.

> An e-book is going to heavily (and negatively) impact the sales figures for the print book What? Do you have a source on that claim? For me, I only get ebooks for programming books because I can have the IDE side by side with the PDF, no need to continuously look at the physical book and then back into my IDE, and I can copy paste code examples.

No post body was provided.

Re: Mastering Nim – now available on Amazon

#39

Earlier quoted context omitted.

Elixir is not bad, but I definitely prefer static typed languages now after getting more into TypeScript. Not having types just feels wrong now.

Not having failure domains is worse than not having types IMO.

What are failure domains?

Re: Mastering Nim – now available on Amazon

#40

Earlier quoted context omitted.

> An e-book is going to heavily (and negatively) impact the sales figures for the print book What? Do you have a source on that claim? For me, I only get ebooks for programming books because I can have the IDE side by side with the PDF, no need to continuously look at the physical book and then back into my IDE, and I can copy paste code examples.

Quoted post unavailable.

You have a few different issues with the assumptions in your comment.

First, yes, one can ask for a source without a sincere request for it, known as sealioning. However, that was not what I was doing, because:

> While statistical data is much better then common sense reasoning, it's still possible to make claim via deduction and even anecdotal evidence.

Oftentimes, intuition is not correct. Think for example to the Monty Hall experiment where many people thought that the odds of two doors holding the winning prize, after a third door were opened, to be 1/2. However, on actual examination and statistical analysis, it is actually 2/3.

Similarly, simply because you believe that ebook sales reduce print book sales intuitively does not mean that this be so. In fact, based on other studies, it seems that piracy actually increases sales [0].

> Anecdotally if I see a book I like, the first thing I do is google for that book with a ".epub" or ".pdf" extension so I can download it for free. I figure other do-gooders are going to pay for the book so I might as well freeload a free version. It's logically the most cost effective move.

Second, just because you pirate does not mean everyone does. Ebook sales have overtaken print sales, showing that most consumers actually do not pirate. Those that do an action overestimate the percentage of others who also perform that same action, this is a known cognitive effect.

All in all, you have no source except intuition that can be shown to be wrong.

[0] https://www.cbc.ca/news/science/e-book-piracy-may-have-unexp...?

Post reply on HN