Re: pow and `^` and soon (?) `**`?

2016-10-15 Thread moigagoo
Having different exp operators for ints and floats definitely feels confusing.

Re: sha256 on files - different hashes

2016-10-15 Thread sky_khan
I think this ( below ) works but IMO this library should provide a way works on arrays, not strings. This is inefficient. import nimSHA2, os, strutils proc main(): string = const blockSize = 8192 var bytesRead: int = 0 var buffer: string

Re: sha256 on files - different hashes

2016-10-15 Thread pyloor
Hi Stefan, thanks for the hint. I will digg deeper to find the problem.

Debugger

2016-10-15 Thread alfrednewman
Hello, As my Nim codes are growing in size and in complexity, my echos are no longer being productive to help me out. So, I need a recommendation about the best way to debug my stuffs. Is there any Nim debugger around (for Windows) ? I'm just looking for a way to inspect variables giving a

Code page 65001

2016-10-15 Thread axben
@Araq: Since v0.15, whenever I run "nim.exe" (or a program compiled with the new compiler) my console's copde page is changed from 1252 (Windows Latin-1) to 65001 (UTF-8), which is - let's say - a litte counter-productive in my environment. So, please have the compiler (and compiled programs)

Re: re/nre performance issues

2016-10-15 Thread RPG
I've made PR: [https://github.com/nim-lang/Nim/pull/4814](https://github.com/nim-lang/Nim/pull/4814)

sha256 on files - different hashes

2016-10-15 Thread pyloor
Hi, I'm trying to make sha256 hashes on files. For testing purposes I generate a file with dd if=/dev/zero of=file.bin bs=1K count=20 This is the code import system, nimSHA2, os, strutils proc main(): string = const blockSize = 8192 var

Re: re/nre performance issues

2016-10-15 Thread stbalbach
There was an earlier thread about performance of regex [https://forum.nim-lang.org/t/2312](https://forum.nim-lang.org/t/2312) > I inserted those options into re module and... voila, 0.2 s I'd be interested to know how or what you did there.