Re: Perfecting Nim

2018-05-06 Thread twetzel59
I never thought anything was inconsistent about `newSeq` and `newString`. Strings and sequences are value types, but they are still GC'd. * * * Oh, and the other thing to note is that we're working on the new runtime, where strings and sequences can be non-GC. This brings both types closer in

clang 6 compiling error

2018-05-06 Thread jzakiya
A 64-bit Linux distro I run in VirtualBox updated from clang 3.9 to 6.0, so I recompiled some code to compare the differences. The code compiled with `--cc:clang` on 3.9, but using 6.0 it gives the following error output. Hint: [Link] /usr/bin/ld: cannot find crtbegin.o: No

Re: Returning types that are defined but not exported

2018-05-06 Thread bronikowski
> There should be an error for exported procs that take private types as > parameters or return types IMO. Agreed, that's what put me in a head scratching moment. > I also advise you don't use this library in normal code as the person who > wrote it is fairly new to Nim Ah, well, so am I,

Garbage collection with --os=standalone

2018-05-06 Thread jba
> Is this possible currently? Where can I find more information about how the > garbage collector works. I saw that for real time garbage collection, the > function that allows you to specify the maximum time the garbage collector > can collect for determines the time that has passed using OS

Re: Perfecting Nim

2018-05-06 Thread Hlaaftana
Making `nim program.nim` functional goes against the purpose of this thread. Unneeded stuff should be removed, not added.

Re: Returning types that are defined but not exported

2018-05-06 Thread Hlaaftana
There should be an error for exported procs that take private types as parameters or return types IMO.

Re: Perfecting Nim

2018-05-06 Thread Arrrrrrrrr
I like the idea of making nim program.nim functional. I don't know if it should run or not (maybe 50% of the times?).

Re: Arraymancer - A n-dimensional array / tensor library

2018-05-06 Thread qqtop
Congratulations ! I especially like the neural network examples and hope more will be forthcoming.

Returning types that are defined but not exported

2018-05-06 Thread bronikowski
Hello, I should probably re-read Dominik's book but before I'll do that, can you help me with one problem. I'm still confused (as in "I forget" not "I don't understand") about module importing. Yesterday I was trying to hack a little toy I wanted to configure with ini files. I found

Re: Perfecting Nim

2018-05-06 Thread Stefan_Salewski
@sherjilozair That are very subjective recommendations, with some disadvantages. "nim program" as a default alias for "nim c -r program.nim" with hidden executable would mean that program is compiled again and again for each execution -- until user discovers that he can just execute the

Re: Perfecting Nim

2018-05-06 Thread sherjilozair
This is not so much about removing features, but about making nim friendly for beginner programmers, or programmers who work at a higher abstraction layer (Python users). In my opinion, the fact that nim actually compiles to C code, and then compiles to binaries, and then runs the binaries