Nim v1.6.6 support for Codewars

2022-07-21 Thread phargob
The issue with some of the tests I have seen is they use check() inside a procedure call which doesn't record a failure within Nim's unittest framework. So from the point of a user on codewars, all your tests look like they are passing even though they are clearly not suppose to. The check() isn

Nim v1.6.6 support for Codewars

2022-07-21 Thread phargob
hi - did you try running a test locally - it is fairly straight forward copying codewars_output.nim and one of the tests I was working on. It was very fast to compile, despite generating the 100 random tests. approx one second. I've tried release, arc, orc - all take 1 second to compile, but tak

Nim v1.6.6 support for Codewars

2022-07-20 Thread phargob
I can start to go through them (after actually doing the katas) and make my best effort to fix them. Here is the first Wasn't much to do (random -> rand) and I slightly refactored the code a bit. If that is met with approval

Mastering Nim: A complete guide to the programming language

2022-06-28 Thread phargob
I have it on my desk. I might just disconnect myself from the internet and work through the book cover to cover (plus I am relative Nim noobie). Reminds of the days of my first programming job with no internet, nothing but K&R and QNX4 manuals on the desk and ... actually getting stuff done. ;)