Nimble package structure

2018-03-11 Thread monster
Hi, I "published" a new package to Nimble today. Based on the nimble doc, under the src directory, I had created a directory. And Nimble complained today that it had to be called instead (which I found strange), so I just renamed the directory, and Nimble was happy and I could then publish

Concepts: how to check if a field exists without reading it?

2018-03-11 Thread StasB
So I ran into a funny problem today. Let me to illustrate with a contrived example: {.experimental.} type Vec2 = tuple[x, y: float] Kinetic = concept g g.pos is Vec2 g.vel is Vec2 IKinetic = object converter

Re: Nim T-shirts and mugs now available

2018-03-11 Thread Yobmod
I just ordered a t-shirt, and it seems they print on demand. Would it be easy to add a selection colours in that case? Black looks fine, but not very compatible with white dog hair!

Re: Before you start !

2018-03-11 Thread dom96
> Is it still worth investing in the book NIM IN ACTION where it is better to > wait for a next issue ? It's worth investing now, we are going to ensure that v1 is compatible with the book

Re: thanks for init.sh

2018-03-11 Thread dom96
Thanks! Glad you like it, it's called `choosenim` btw. Your request is already an issue: [https://github.com/dom96/choosenim/issues/28](https://github.com/dom96/choosenim/issues/28)

Defining variable in nim.cfg

2018-03-11 Thread c0ntribut0r
Hello, I have a long compilation command like this: nim c -r -o=../build -d:myUglyVariable:"myUglyValue" main.nim --loglevel=DEBUG I'd like to move all that in nim.cfg, or at least that ugly variable, so that I type just nim c -r main.nim Is that

Re: Compiler crash when pointers to generics from template

2018-03-11 Thread Araq
Compiler bug aside, you need to instantiate the procs, like `@[presentModeA[string], presentModeB[string]]`.

thanks for init.sh

2018-03-11 Thread lightness1024
this: https://nim-lang.org/choosenim/init.sh -sSf | sh was the easiest awesomiest install from source I've ever executed. Thanks to the person who set this up. just at the end letting the user modify his path manually seems a bit peanuts to do automatically compared to what the

Re: what use instead of 'capitalize'?

2018-03-11 Thread r3d9u11
thanks!

Re: Physical processes modeling --- libs recommendations?

2018-03-11 Thread miran
> There are some updates here: > [https://github.com/konqoro/nimgnuplotlib](https://github.com/konqoro/nimgnuplotlib) If the author is reading this - a readme would be very helpful, at least to tell us why this is preferred over his previous library (gnuplot-nim).

Re: Physical processes modeling --- libs recommendations?

2018-03-11 Thread miran
Most of the points you mention are tracked in [Are we scientists yet?](https://github.com/nim-lang/needed-libraries/issues/77) > I've coded some simple things myself ... Maybe you can add some of your stuff to this list

Re: Physical processes modeling --- libs recommendations?

2018-03-11 Thread planhths
@Udiknedormin Awesome! There are some updates here: [https://github.com/konqoro/nimgnuplotlib](https://github.com/konqoro/nimgnuplotlib)

Re: Before you start !

2018-03-11 Thread mashingan
> I was able to read on the web efficient garbage collector offers you, it's > fine but is it possible to use it without... in the manner of Rust for > example ? Nim has option `--gc:none` if you need to manage memory manually. [writetracking](https://nim-lang.org/araq/writetracking.html) and

what use instead of 'capitalize'?

2018-03-11 Thread r3d9u11
Hi. I have warning: "message: 'capitalize is deprecated [Deprecated]'". What function I can use instead of it?

Re: Before you start !

2018-03-11 Thread Libman
> I was able to read on the web efficient garbage collector offers you, it's > fine but is it possible to use it without... in the manner of Rust for > example ? Nim is GC by default - which is the way to go for the vast majority of cases, and most people who think they need manual memory

Before you start !

2018-03-11 Thread Diabolik
Hello, Interesting by this language I wish to have more information before committing myself : * I was able to read on the web efficient garbage collector offers you, it's fine but is it possible to use it without... in the manner of Rust for example ? * Is it still worth investing in the

Re: Physical processes modeling --- libs recommendations?

2018-03-11 Thread Udiknedormin
Update: I succeeded the first project. Used gnuplot-nim for plotting, it's not bad (I'll make some PR soon, though).

Compiler crash when pointers to generics from template

2018-03-11 Thread lucian
I have stumbled this error: "nim c main" gives "SIGSEGV: Illegal storage access. (Attempt to read from nil?)" on machine setup: Nim Compiler Version 0.18.0 [Windows: amd64], "uname -a" -> MINGW64_NT-10.0 2.9.0(0.318/5/3) 2017-09-13 23:16 x86_64 Msys Simple sources are as: #