Live data from Hacker News

Show HN: “Nim in Action” is now available

nim-lang.org

101–110 of 139 posts

Re: Show HN: “Nim in Action” is now available

#101
post #96
post #95

Earlier quoted context omitted.

If you're adding comparisons I'd suggest OCaml (which would be my go-to language for that kind of problem). Maybe also Dylan if you're emphasising the metaprogramming side of things.

Maybe. I wouldn't want to overwhelm the reader. I will take a look at both and see if they add value :) Thank you for your feedback!

I'm coming at this from a starting point of "I want a fairly safe modern compiled language" - I'm a lot more interested in hearing why I'd choose nim over a similar language than why I'd choose it over e.g. python (which is such a different language that it's hard hard to even begin to compare, IMO). Maybe that's not the same question that a general audience would ask.

Re: Show HN: “Nim in Action” is now available

#102
post #101
post #96

Earlier quoted context omitted.

Maybe. I wouldn't want to overwhelm the reader. I will take a look at both and see if they add value :) Thank you for your feedback!

I'm coming at this from a starting point of "I want a fairly safe modern compiled language" - I'm a lot more interested in hearing why I'd choose nim over a similar language than why I'd choose it over e.g. python (which is such a different language that it's hard hard to even begin to compare, IMO). Maybe that's not the same question that a general audience would ask.

I think that you make a good point, there will likely be a fair amount of readers asking those questions.

Re: Show HN: “Nim in Action” is now available

#103
post #15

Great to see Nim getting an official book, (Dominick is almost like a co-author of Nim at this point :-). My impression of Nim is that it is what Go should have been, if language developments of the past 40 years were taken into account, so if you like the simplicity of Go's syntax, but want modern features, seriously consider Nim. I personally couldn't get over the significant whitespace, (relying on invisible chara…

Thank you for the kind words! I'm happy that you can see the positives in Nim even though you dislike one of its most prominent features. Personally I love significant whitespace and have started using Nim because of this feature, basically back in the day I just wanted a Python alternative that was compiled. If you really dislike it that much, you may be able to convince Araq to bring back his old time idea of allow…

The first chapter talks too often about the Python2/3 problem, I'd say. Python users know this subject very well and others couldn't care less.

Re: Show HN: “Nim in Action” is now available

#104
post #71
post #15

Earlier quoted context omitted.

Thank you for the kind words! I'm happy that you can see the positives in Nim even though you dislike one of its most prominent features. Personally I love significant whitespace and have started using Nim because of this feature, basically back in the day I just wanted a Python alternative that was compiled. If you really dislike it that much, you may be able to convince Araq to bring back his old time idea of allow…

A major concern to me is how to Debug Nim. Considering it compiles into C as a first step, I would have thought that Debugging may have quite a few issues and gotchas as well as some good tips and tricks. I am not sure if this is covered, but did not notice it mentioned in the contents.

This will be covered as part of Chapter 5.

Re: Show HN: “Nim in Action” is now available

#105
post #67
post #19

Could be of interest if the creator didn't self-promote the language through an aggressive tone "after a few beers" https://hero.handmadedev.org/forum/code-discussion/937-i-wou...

The creator? I may be daft but that is someone saying he/she has been using Nim for one year?

You are right, that is just some random drunk person on an internet forum recommending Nim (who has apparently picked it up recently, and says they are going to write their next project in it). It's not creator Andreas Rumpf or anybody central to the Nim project.

Re: Show HN: “Nim in Action” is now available

#106
post #73
post #71

Earlier quoted context omitted.

A major concern to me is how to Debug Nim. Considering it compiles into C as a first step, I would have thought that Debugging may have quite a few issues and gotchas as well as some good tips and tricks. I am not sure if this is covered, but did not notice it mentioned in the contents.

Debugging via gdb and frontends using gdb like KDevelop or QtCreator works very well - except data drilling. But that may be solved eventually.

But gdb probably will point to C source line instead of nim's source. That might be a problem.

Re: Show HN: “Nim in Action” is now available

#107
post #106
post #73

Earlier quoted context omitted.

Debugging via gdb and frontends using gdb like KDevelop or QtCreator works very well - except data drilling. But that may be solved eventually.

But gdb probably will point to C source line instead of nim's source. That might be a problem.

No, you get Nim source code debugging using line number directives etc, works great including breakpoints and all. I have tested several IDEs and it works. But data inspection does generally not work - that would require some work to support GDB protocols.

Re: Show HN: “Nim in Action” is now available

#109

Earlier quoted context omitted.

Rust has extremely good FFI to C as well, if you were using that as a differentiation. No memory layout issues, etc like Go's issues. (Nothing against Nim, I haven't worked with it yet)

Go doesn't have memory layout issues as far as the FFI is concerned. Its memory layout is basically as defined as C's is.

I thought Go had to treat compact structs from C specially.

But I stand corrected.

Re: Show HN: “Nim in Action” is now available

#110

Earlier quoted context omitted.

This website is _extremely_ outdated, please don't take it as accurate.

Can't anybody from the rust community take over this site? Creating a completely new site might be a fallback, but arewewebyet is referenced / linked very often and ranks high. https://github.com/teepee/arewewebyet looks abandoned.

We have tried but the author has not gotten back the few times we've tried. Tried again today, check the issues there.
Post reply on HN