A hang in OS i/o can relate to buffering. You'd need to post a working
(hanging) example.
So, I already attempted to make a reply to tell you guys why I'm not using Nim
as my programming language, even though, I really would like too. I'm unable to
describe the problem I have with Nim, but I don't have to, because somebody
else already did and I'm so glad that I'm not alone with
This is a cool idea and doing this might actually not be too difficult. The
main pieces to get this working are likely:
* Calling Nim's async event loop from Python's periodically
* Interoperability between Nim's futures and Python's (not strictly
necessary, but would allow awaiting Nim's
Your rule 2 and rule 4 have contradictions.
Rule 2: |-50-[text]| Rule 4: |[text]|
Hello, I have been looking on Nim for couple of months now, and I have to say
that I'm very intrigued.
I'm currently working for a company that is mainly using python. Our core
application is almost entirely written in it (some small parts are written in
cython). It is quite large (close to
Thanks @Hlaaftana but, unfortunately it doesn't work!
/home/hdias/dev/tmp/test.nim(32, 25) template/generic instantiation of
`async` from here
/home/hdias/dev/test.nim(43, 10) template/generic instantiation of
`forStream` from here
/home/hdias/dev/tmp/test.nim(26, 24)
Most probably a typo error in your layout proc()
proc layout() =
panel.autolayout """
H:|{groupButton:[btnClick(btnClose)]-[btnClose]}|
H:|{groupText:[-50-[text]]}|
V:|[label]-[groupText]-[groupButton]|
H:|[label, groupText]|
Run
Hello everyone!
I'm not sure if this is a bug, so I'm writing this post to avoid creating an
unnecessary github issue.
In the following proc the result variable is being assigned to, but then there
is a last statement that would act as the return value. This causes an error as
expected:
I have attempted to fix this issue in this PR:
[https://github.com/nim-lang/Nim/pull/13482/files](https://github.com/nim-lang/Nim/pull/13482/files)
XML/xmltree experts: Please review that PR and help me make it better!
Are you just new into the dark web and wondering where and how to start going
about buying drug stashes, then here’s the solution for you. Get your VPN
connected and contact me for more details. Telegram: Drugporn01 WhatsApp: +1
(408) 412-0793 Wickr: Drugporn01 Email: drugp...@protonmail.com I
> If you lost your regular drug connect, he got killed, locked or jailed, went
> missing or travelled and youre tired of waiting because you need your shit,
> then i believe you need an honest, loyal, fast and trustworthy person to keep
> supplying them to you no matter your location. Dont get
Since the process streams has not implemented peak functionallity, it seems the
only way to do this is with threads.
I suppose you should ask on wNim's github issue tracker.
I realised you don't actually need toSeq here
import random, sugar, math
proc foo[T, U](a: openArray[T], cdf: openArray[U]): auto =
let (a, cdf) = (@a, @cdf)
(() => random.sample(a, cdf.cumsummed))
echo foo([1,2], [1,2])()
Run
It's probably because you are using `newXmlTree` for both **channel** and
**rss** tags. May be you should use `newElement` for **channel** too?
_PS: I am just guessing; I haven 't used this library._
There's no easy way to provide default values for such integer generic
parameters, is there? E.g. (this doesn't work):
type MatchPool[N: static[int] = 3] = object
Run
Thanks a lot!!!
import random, sugar, math
from sequtils import toSeq
proc test1[I, T, U](a: array[I, T], cdf: array[I, U]): auto =
(() => random.sample(a, cdf.cumsummed))
proc test2[T, U](a: openArray[T], cdf: openArray[U]): auto =
(() => random.sample(a.toSeq,
The following code
import random, sugar
from math import cumsummed
type
Generator[T] = () -> T
TrafficLight = enum
red, yellow, green
proc genCDF[T, U](a: openArray[T], cdf: openArray[U]): Generator[T] =
assert(a.len == cdf.len)
`defined(gcDestructors)` is fine, but undocumented.
To straight up give an example it's like this:
type MatchPool[N: static[int]] = object
vals: array[N, int]
var mp = MatchPool[3](vals: [2, 4, 1])
Run
Might be a minor bug, but does it matter? XML is not whitespace sensitive.
You use static[int], as answered in my thread.
If N is not a compiletime constant, you need to use seq or unchecked_array.
23 matches
Mail list logo