Re: nimble always install @#head for url

2020-01-02 Thread enthus1ast
This unfortunately also does not work for me: # Dependencies requires "nim >= 1.0.9" requires "https://github.com/stavenko/nim-glm.git #head" requires "https://github.com/niv/websocket.nim.git #head" requires "https://git.code0.xyz/sn0re/nimAsyncHttpTools.git

Re: Need help of a pair programmer

2020-01-02 Thread spip
THANK YOU! I was mentioned this bug before but I did not understood its impact... This type of bug is quite frustrating. I'm going to check the rest of my code if it does not occur elsewhere.

Re: Need help of a pair programmer

2020-01-02 Thread spip
Perhaps the reason of your crash is because the `CoverMatrix` array is quite large, being 15625x2500 boolean (8 bits), so at least 39 MB. Using a `CoverMatrix` variable directly is larger than the program stack. That's the reason I'm using `CoverMatrixRef` to have the cover matrix allocated in

Re: Need help of a pair programmer

2020-01-02 Thread doofenstein
I think I know the reason you're program is crashing. As @dawkot already mentioned 246 is suspicious. This [issue](https://github.com/nim-lang/Nim/issues/12747) is relevant. Currently an array is always copied onto the stack when looping over it, which can be catastrophal. Inserting `echo

Re: Need help of a pair programmer

2020-01-02 Thread dawkot
block: echo "1 (no crash)" var m: CoverMatrix for it in m: discard block: echo "2 (crash)" var m: ref CoverMatrix new m for it in m[]: discard Run Funny. If you replace all the procs with this code and comment out the second

Need help of a pair programmer

2020-01-02 Thread spip
I'm stuck for a few days on a bug and I need assistance of a pair programmer because my eyes are blind where the bug hides. The [code](https://play.nim-lang.org/#ix=26fm) is for a sudoku solver using Knuth's dancing links algorithm. I create a 25x25 sudoku board (`initBoard`), convert it to a

Re: Game unlock gui written with gintro

2020-01-02 Thread treeform
Nice!

Re: How to get left most 8 bit's value from a 32 bit integer ?

2020-01-02 Thread Stefan_Salewski
> i did not understand what is happening there, There is nothing special. First it has not to be a template, a proc would do. And you have to know only masking and shifting. You shift the bits right, and then mask all but the lower 8 bits. Same as in C. Another way is casting to array of bytes

Re: How to get left most 8 bit's value from a 32 bit integer ?

2020-01-02 Thread kcvinu
Thank you miran.

Re: How to get left most 8 bit's value from a 32 bit integer ?

2020-01-02 Thread kcvinu
Thank you b3liever, Though, i did not understand what is happening there, that template worked.

Re: Game unlock gui written with gintro

2020-01-02 Thread Stefan_Salewski
Congratulations, the first real gintro/GTK3 app. And even with Windows support. Great work!

Re: nimble always install @#head for url

2020-01-02 Thread dom96
Like this? requires "https://url/repo.git #head" Run

Re: Game unlock gui written with gintro

2020-01-02 Thread dom96
wow, that's a significant app. Nice job :)

Re: How to get left most 8 bit's value from a 32 bit integer ?

2020-01-02 Thread miran
I would do bitmasking + bitshifting: let a = 0b1100_0101 let a_high = (a and 0b_0) shr 4 echo a_high # => 12 (0b1100) Run

Re: How to get left most 8 bit's value from a 32 bit integer ?

2020-01-02 Thread b3liever
like [that](https://github.com/nim-lang/Nim/blob/devel/lib/pure/colors.nim#L28-L31)

How to get left most 8 bit's value from a 32 bit integer ?

2020-01-02 Thread kcvinu
Hi all, I have 32 bit integer value and i need to get left most 8 bit from it. Not only left most, actually, i need first 8 bit, then second 8 bit, then third 8 bit. How do i get this ?

Re: Thorough CI Travis and Azure Pipelines scripts

2020-01-02 Thread mratsim
No idea. Feel free to dive in into this PR: [https://github.com/mratsim/weave/pull/59](https://github.com/mratsim/weave/pull/59) There are 30 commits to add 180 lines of code for windows support. About 7 actually contain real content and more than 20 are just there to try to appease Azure

Problem of running http port forwarding

2020-01-02 Thread geohuz
I recently trying to follow the Nim days 15: [https://xmonader.github.io/nimdays/day15_tcprouter.html](https://xmonader.github.io/nimdays/day15_tcprouter.html), but when I tried to set up the server to serve on port say 11000 and forward to my local hosted http server 6543, I just got all these

Re: Is there a 2D game framework recently updated for Nim ?

2020-01-02 Thread c0ntribut0r
[Cat 400](https://github.com/c0ntribut0r/cat-400) is in active development, but it's unstable yet and docs are outdated

Re: Thorough CI Travis and Azure Pipelines scripts

2020-01-02 Thread Araq
> The Azure pipelines scripts have a separate powershell and a bash path as on > Windows, nimble (Nim findExe to be accurate) has trouble with $PATH under a > bash shell. Let me guess, Bash refuses to use ';' as the path separator even though it's standard on Windows and uses ':' instead.

Re: Is there a 2D game framework recently updated for Nim ?

2020-01-02 Thread mrgaturus
rapid Is a simple 2d game framework [https://github.com/liquid600pgm/rapid](https://github.com/liquid600pgm/rapid)