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
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.
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
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
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
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
Nice!
> 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
Thank you miran.
Thank you b3liever, Though, i did not understand what is happening there, that
template worked.
Congratulations, the first real gintro/GTK3 app. And even with Windows support.
Great work!
Like this?
requires "https://url/repo.git #head"
Run
wow, that's a significant app. Nice job :)
I would do bitmasking + bitshifting:
let a = 0b1100_0101
let a_high = (a and 0b_0) shr 4
echo a_high # => 12 (0b1100)
Run
like
[that](https://github.com/nim-lang/Nim/blob/devel/lib/pure/colors.nim#L28-L31)
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 ?
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
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
[Cat 400](https://github.com/c0ntribut0r/cat-400) is in active development, but
it's unstable yet and docs are outdated
> 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.
rapid Is a simple 2d game framework
[https://github.com/liquid600pgm/rapid](https://github.com/liquid600pgm/rapid)
21 matches
Mail list logo