Re: choosenim - the Nim toolchain installer/multiplexer

2017-05-06 Thread euant
Nice one, this should make life much easier, thanks!

Re: Nim added to the CSV Game benchmark

2017-05-06 Thread euant
I wonder if changing the code to the following will help much? import os, parsecsv, streams proc main() = var fields = 0'i32 csv: CsvParser let stream = newFileStream(paramStr(1), fmRead) csv.open(stream, paramStr(1)) whi

Re: choosenim - the Nim toolchain installer/multiplexer

2017-05-06 Thread hcorion
The tool I've been waiting for is here! Thank you! An interesting issue I had while installing was this: $ curl https://nim-lang.org/choosenim/init.sh -sSf | sh choosenim-init: Downloading choosenim-0.1.0_linux_amd64 Prompt: Symlink for 'nimble' detected in '/home/userna

Re: choosenim - the Nim toolchain installer/multiplexer

2017-05-06 Thread scriptkiddy
Just downloaded it and started using it. I think some usage documentation is in order, but looks like you've already started on that. I figured out how to use it fairly easily just by using the \--help flag. Seems to work really well on my Ubuntu 16.04 LTS machine. Just a note regarding the ins

Re: choosenim - the Nim toolchain installer/multiplexer

2017-05-06 Thread moigagoo
Thank you so much! I've been waiting for a tool like this since forever.

Re: Nim added to the CSV Game benchmark

2017-05-06 Thread bpr
Just looking at the results in the README, Rust shellacked Nim and every other language. First and second place.

Re: Nim added to the CSV Game benchmark

2017-05-06 Thread Libman
Nim has an added trick up its sleeve when going toe to toe with the Rustkies: benchmark Nim using all available backend compilers (ex. Intel's icc) and go with the fastest.

Re: problem of using replace string

2017-05-06 Thread mashingan
Use `.` to represent `"` echo str.replacef(peg".{\ident}. '=>' .{\ident}.", "$1:$2")

problem of using replace string

2017-05-06 Thread geohuz
I have the following code: var str = """{"casino"=>"pro"}""" echo res.replace(peg"{\ident}'=>'{\ident}", "$1:$2") I got result: {"casino"=>"pro"} but I want the result {"casino":"pro"}, is there anyway to do this? Thanks

choosenim - the Nim toolchain installer/multiplexer

2017-05-06 Thread dom96
Hey guys, I finally released choosenim. Let me know what you think and whether it works for you: [https://github.com/dom96/choosenim](https://github.com/dom96/choosenim) It should make the installation of Nim and management of multiple versions of it much easier.

Re: when will [] ambiguous be solved?

2017-05-06 Thread mogu
sorry, my bad

Re: pointer to array?

2017-05-06 Thread mashingan
maybe this should help? [https://forum.nim-lang.org/t/1188#7366](https://forum.nim-lang.org/t/1188#7366)