Re: How mature is async/threading in Nim?

2020-05-22 Thread k0zmo
> Not really. What you can achieve is something similar to what I created with > httpbeast: each thread running its own Async event loop and allowing the > system to load balance the socket connections. For clients that will likely > be trickier. This _event-loop per thread_ is only required on

Function overloading by dependent type

2019-05-12 Thread k0zmo
Does Nim support overloading by dependent type? If so, following code does not yield the expected results: type MySeq*[T] = object proc foo(a: seq[int]) = echo "foo: seq[int]" proc foo[T](a: seq[T]) = echo "foo: seq[T]" proc foo(a: MySeq[int]) = echo "foo: MySeq[int]