Factorial computation in Nim

2022-03-01 Thread awr1
> Do you use other things for benchmarking ? Try [cpuTime()](https://nim-lang.org/docs/times.html#cpuTime) or [monotimes](https://nim-lang.org/docs/monotimes.html).

Raises tracking and no more cyclic references in `chronos`

2022-03-01 Thread Araq
> This looks (at least to a beginner, like self) as if bare except clauses > should be deprecated and replaced by except Defect: or except > CatchableError:, depending on what's really intended. Sounds like a solid plan. :-)

Factorial computation in Nim

2022-03-01 Thread mardiyah
What's the question ?

Fidget UI: scrolling on OpenGL backend

2022-03-01 Thread reversem3
I thought @treeform was working on #fidget2 ?

Raises tracking and no more cyclic references in `chronos`

2022-03-01 Thread Jaap
and if the except clause will only be a "naked" except when compiled with a compiler directive which changes the default except behaviour to miss Defects, combined with a new exceptDefect clause in that way the stdlib will only miss defects when explicitly compiled with the compiler directive.

Factorial computation in Nim

2022-03-01 Thread dlesnoff
I tried to benchmark binary splitting algorithm to compute factorial with nim-lang/bigints. There are some more complex (and faster) algorithms but they require polynomial fast multiplication and multipoint evaluation, which is a lot to implement (and I do not know algebra libraries in Nim that

Comprehensive knowledge on Nim memory management (MM)

2022-03-01 Thread Araq
Actually, there is no `--gc:rc` switch, that would be `--gc:arc` and `--gc:destructors` is some ill-specified, obsolete prototype of `--gc:arc`.

Raises tracking and no more cyclic references in `chronos`

2022-03-01 Thread detla
This looks (at least to a beginner, like self) as if bare except clauses should be deprecated and replaced by `except Defect:` or `except CatchableError:`, depending on what's really intended. And then it would be helpful to have an abbreviation for the latter, like `except *:`. (If at some time

Static musl compilation with db_mysql module and external libraries mysqlclient and openssl

2022-03-01 Thread flajr
Actually I did but result was: `Dynamic loading not supported` `writev(2, [{iov_base="", iov_len=0}, {iov_base="Dynamic loading not supported", iov_len=29}], 2Dynamic loading not supported) = 29` As I can see, with default gcc I am able to build statically, but nevertheless default gcc still de

Comprehensive knowledge on Nim memory management (MM)

2022-03-01 Thread mratsim
> A more elaborate discussion on garbage collection, and the available GC > flavours in Nim. Nim default memory management scheme is deferred reference counting. Only `ref` types and `seq` and `string` are managed by refcounting. Plain `object` are stack allocated, `ptr object` are manually man

Static musl compilation with db_mysql module and external libraries mysqlclient and openssl

2022-03-01 Thread enthus1ast
You can start your application with strace this can show you where it searches for the .so

Static musl compilation with db_mysql module and external libraries mysqlclient and openssl

2022-03-01 Thread flajr
Hello Nim community. Thank you for any effort looking into this. I am facing problem with static compilation of nim program using db_mysql module and musl-gcc. Downloaded `mysql-8.0.28-linux-glibc2.17-x86_64-minimal` (this is already compiled) and `openssl-1.1.1m` (compiled myself) to current w