Re: choosenim - the Nim toolchain installer/multiplexer

2017-05-09 Thread dom96
[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

Re: choosenim - the Nim toolchain installer/multiplexer

2017-05-09 Thread mashingan
**@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.

Re: HELP!! Mentioning Nim is resulting in the drain of all my karma at Hacker News.

2017-05-09 Thread jester
I second Dom's sentiment.

Re: HELP!! Mentioning Nim is resulting in the drain of all my karma at Hacker News.

2017-05-09 Thread dom96
**@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.

Re: Nim's Easy Serialization Macro - new version available

2017-05-09 Thread Araq
> 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

Re: Nim's Easy Serialization Macro - new version available

2017-05-09 Thread Araq
Awesome work, I hope I can try it soon.

Re: NIM compiler looses track of sub-processes on Linux

2017-05-09 Thread jordan
It might well be a gcc problem. I will try some variations tomorrow.

Re: NIM compiler looses track of sub-processes on Linux

2017-05-09 Thread Araq
Ok, well, I have never seen that happen/reported before.

Re: NIM compiler looses track of sub-processes on Linux

2017-05-09 Thread jordan
Just to make it clear: I am still amazed by the flexibility and thorough design of that compiler - jordan

NIM compiler looses track of sub-processes on Linux

2017-05-09 Thread 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

Re: HELP!! Mentioning Nim is resulting in the drain of all my karma at Hacker News.

2017-05-09 Thread Arrrrrrrrr
What do you think about other evangelism strikeforces? Well, no think that everyone think the same.

Re: HELP!! Mentioning Nim is resulting in the drain of all my karma at Hacker News.

2017-05-09 Thread vonH
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

Re: Compile error when wrapper type(...) with template

2017-05-09 Thread cdome
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

Re: Compile error when wrapper type(...) with template

2017-05-09 Thread slangmgh
@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

Re: Compile error when wrapper type(...) with template

2017-05-09 Thread cdome
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]

Re: Nim's Easy Serialization Macro - new version available

2017-05-09 Thread jangko
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.

Nim's Easy Serialization Macro - new version available

2017-05-09 Thread xomachine
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

Re: choosenim - the Nim toolchain installer/multiplexer

2017-05-09 Thread dom96
**@mashingan** what returns 403? For now it's 32bit only. Support for 64bit will come.

Re: HELP!! Mentioning Nim is resulting in the drain of all my karma at Hacker News.

2017-05-09 Thread dom96
You wanted to trigger people? What, why?

Compile error when wrapper type(...) with template

2017-05-09 Thread slangmgh
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 =

Re: Compile error when wrapper type(...) with template

2017-05-09 Thread slangmgh
The compiler show the following message: ttype.nim(29, 4) template/generic instantiation from here ttype.nim(16, 24) Error: type expected

Re: HELP!! Mentioning Nim is resulting in the drain of all my karma at Hacker News.

2017-05-09 Thread vonH
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.

newbie: simulating setTimeout

2017-05-09 Thread mashingan
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]

Re: choosenim - the Nim toolchain installer/multiplexer

2017-05-09 Thread mashingan
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?

Re: Problems with unregistering from global async PDispatcher

2017-05-09 Thread cdunn2001
Merged and tested. Thanks, Dom.