[Just released v0.2.0](https://github.com/dom96/choosenim/releases/tag/v0.2.0)!
All issues mentioned here should be fixed, let me know if everything works now
**@dom**, ah, sorry, I forgot mentioning it's the return status when I `curl`
ing the `init.sh`
curl https://nim-lang.org/choosenim/init.sh -o init.sh
The problem is in my network, not the `choosenim` itself.
I second Dom's sentiment.
**@vonH** People told you why they downvoted you. And no, it's not time for a
"Nim Evangelism Strikeforce", this isn't something to aim for. It's time to
write thoughtful comments that encourage developers to use Nim, not "drive-by"
comments that give our community a bad name.
> But if the serializer also support non-intrusive mode, I don't need to modify
> my huge library. I just need to serialize it and done.
But you need to ensure it's actually serializable anyway (for example, doesn't
have a field of type Socket/File/stream/callbacks) so you gain very little. In
Awesome work, I hope I can try it soon.
It might well be a gcc problem. I will try some variations tomorrow.
Ok, well, I have never seen that happen/reported before.
Just to make it clear: I am still amazed by the flexibility and thorough design
of that compiler - jordan
This is just an observation when x-compiling with NIM.
I had a weird problem when x-compiling my crypto lib with MinGW. In particular
I needed to import some Windows crypto provider stuff from for
compiling
[https://github.com/mjfh/nim-crypto/blob/unstable/src/lib/ltc/getbytes.nim](https://git
What do you think about other evangelism strikeforces? Well, no think that
everyone think the same.
I can't say I really wanted to trigger people but some people tend to
overreact. I don't read HN as much as I used to because when it comes computer
related issues a lot of the discussions are simply not relevant to the subject
of the post, and although I could downvote them I generally don't bo
Sounds it is easier to have multiple map functions for different types and let
compiler to decide using signature matching which one is the best fit
@cdome Thank you.
I am writing function like map, it will take the type array, slice, seq,
iterator, etc as parameter, because the iterator cannot be treated as typed, so
I cannot use typed(If the paramter type is typed, the function in the code can
compile successfully).
The code like this wo
I don't quite understand what you are trying to achieve, something like this or
no?
import typetraits
template underlyingType[T](a:seq[T]): typedesc =
when T is seq:
underlyingType(a[0])
else:
T
let a = @[1,2,3]
let b = @[a, a]
looks like this is a kind of intrusive serializer. I usually avoid using
intrusive serializer and prefer non-intrusive one. But I believe your library
can be modified to support non-intrusive mode too, because you already using
macros, and Nim macros can easily handle non-intrusive serializer.
Hello, Nim community!
I'd like to introduce you my little serialization library that allows to
perform [de]serialization of objects in two steps:
Step 1: annotate your object as **serializable** or convert it to
**serializable** via **toSerializable** macro
serializable:
typ
**@mashingan** what returns 403?
For now it's 32bit only. Support for 64bit will come.
You wanted to trigger people? What, why?
I need get the type of container item(seq, array, iterator etc), so I write an
template to get the item type, but when work with the generic, sometime it will
fail to compile using the wrapper. Here is the code
import macros
template getTypeOfItem(t: untyped): auto =
The compiler show the following message:
ttype.nim(29, 4) template/generic instantiation from here
ttype.nim(16, 24) Error: type expected
I am not so concerned about karma, I just want to **trigger** one or two people.
In fact I can't remember ever downvoting a post on some forums. The fact of
voting providing anonymity makes them suspect at best. Even with anonymity
there should be at least a reason for downvoting.
I'm trying to simulate `setTimeout` with `spawn` but apparently it cannot work
properly
import threadpool
from os import sleep
type
TimerObj[T] = object
doit: bool
time: int
when T isnot void:
arg: T
exec: ExecProc[T]
Can't use it, it returns 403. Maybe my network is contaminated and every time I
access this forum, I have to input captha.
For windows executable, it's only for 32bit?
Merged and tested. Thanks, Dom.
25 matches
Mail list logo