Fix for Warning: implicit conversion to 'cstring' from a non-const location

2021-11-09 Thread Araq
Thanks for bringing this up, the error message should simply show the recommended syntax. (Which is `cstring(x)` indeed.)

Fix for Warning: implicit conversion to 'cstring' from a non-const location

2021-11-09 Thread Hlaaftana
discard rmdir(cstring(xyz.myString)) Run It's pure luck that `cast` worked if it did.

Did you know that Nim has had enum-indexed arrays since 0.18? Poll Inside!

2021-11-09 Thread RainbowAsteroids
I think this was mentioned in the first Nim tutorial, but I forgot about it because I haven't need to use this. If I ever need to use a look up table for converting some enum to another type, I'll keep this in mind, lol.

Fix for Warning: implicit conversion to 'cstring' from a non-const location

2021-11-09 Thread tmsa04
So if I change for example: Warning: implicit conversion to 'cstring' from a non-const location: xyz.myString; this will become a compile time error in the future [CStringConv] discard rmdir(xyz.myString) discard rmdir(cast[cstring](xyz.myString)) Run

Iterating over anonymous enums?

2021-11-09 Thread RainbowAsteroids
`import std/enumutils # std/enumutils implements the items iterator for holey enums. # I believe system defines items for ordinal types, which includes sinner enums type OEnum {.pure.} = enum Zero, One, Two, Three HEnum {.pure.} = enum Zero, One, Five = 5, Six proc echoEnum(e: typedesc[enum]) =

Proper way to create local packages?

2021-11-09 Thread argl
So far, I'd say a plain "nimble install" (run in the local package's directory) does what I originally wanted. I probably should have used "nimble uninstall myLocalPackage" to undo "nimble develop". After I did, "nimble install" behaved as expected.

Getting error installing Nimble on Windows 10

2021-11-09 Thread dom96
yeah, you need to update the PATH, choosenim doesn't do that for you on Windows right now. Indeed, Nimble depends on git (most packages are stored in a git repo).

Getting error installing Nimble on Windows 10

2021-11-09 Thread plgupa
Hi, Thanks for the reply. I updated NIM to 1.6.0 using choosenim. I was still facing error. I did following things to make nimble work :- 1. I updated the path of NIM in environment variables to 1.6.0 (the 'bin' path was not updated after selecting 1.6.0 version using choosenim). Not sure ev

Getting error installing Nimble on Windows 10

2021-11-09 Thread dom96
My guess is that your anti-virus quarantined it. Nimble.exe gets false positives. Consider installing 1.6.0 instead (why did you install 1.4.8 btw?) Btw if you want a quick way to install multiple Nim versions, consider using choosenim: /

Getting error installing Nimble on Windows 10

2021-11-09 Thread plgupa
Hi All, I am new to Nim. I downloaded latest Nim, extracted it and installed using finish.exe. Everything is working fine and everything is added to environment variables. But nimble is not working. I used command 'nimble -v', but it gave error about command not recognized. When I tried to inst

MNIST perceptron

2021-11-09 Thread adokitkat
I agree with this. Otherwise great job :)

MNIST perceptron

2021-11-09 Thread PMunch
You should really split your projects into separate repositories.. I wanted to try this, but I don't want to download the whole `nim` repository you have going, and I don't want to grab each of the files individually..

MNIST perceptron

2021-11-09 Thread rforcen
Simple test bench for perceptron NN, port of python app. : I've tried to follow kiss principle for both perceptron (nn.nim) and linear algebra support (mat.nim) to make it educational, readable and adaptable, much cleaner and simple than .py

Proper way to create local packages?

2021-11-09 Thread PMunch
I feel like this should be the other way around, the easily available docs being for the most easily available version.