@mashingan no, 'msgpack-nim' is a dead project, the author is waiting for nim 
1.0. 'msgp4nim' is probably just an experiment - it can't do what I want and 
it's also failing for basic cases(I started to use this first but I experienced 
a lot of issues). The two other projects are based on msgpack4nim and they also 
seem to be dead and too limited for my use case. I already have the code to 
extract msgpack data - I only need the part where I can provide a typesafe and 
dynamic API(which can not be found in those projects).

@andrea the problem is there: I'll lose the concrete type because it's a 
heterogeneous sequence and nim won't be able to infer it. In the code you 
posted you hid the hcons behind T \- that's a loss of information because we 
know that a hcons has two type parameters and we can't extract it properly 
anymore - you also said that you can't iterate over it.

@mratsim I don't need type erasure because it'd hide my generics - and I want 
the opposite. Someone already mentioned json but the problem with it is that it 
worth as much as a seq[RootObj] \- I've already mentioned that I'm 
experimenting with similar ideas(see: HgCell/HgPack). If you would read my 
posts again it might help you to understand what I want to implement. I know, 
I'm too picky - I used FP languages too much.

Reply via email to