Re: Nim Wrapper for ArrayFire

2016-12-30 Thread bitstorm
Hi - I think the reason for Julia being so fast in the matmul benchmark is that it uses many high performance c/c++ libraries in the background, I am not sure what they use for matrices but the julia result is probably just what you would get with c/c++ and blas or atlas. My guess is that with

Nim Wrapper for ArrayFire

2016-12-29 Thread bitstorm
Hello, I have just published a Nim wrapper for ArrayFire on github: [https://github.com/bitstormGER/ArrayFire-Nim](https://github.com/bitstormGER/ArrayFire-Nim) This is my first Nim project but the wrapper seems quite usable to me. I hope this helps (ones it is working properly) to make Nim eve

Re: Compile time calculated/dependend types

2016-11-02 Thread bitstorm
First of all: many thanks! This is a great community and I really appreciate your help I have tried both suggested solutions For the idea from @gneu: You are right (and I have to say I am deeply impressed how much overview you have after 2 days) import typetraits type

Re: Compile time calculated/dependend types

2016-11-02 Thread bitstorm
Many thanks for your idea! Unfortunately this results in "has no type or is ambiguous" \- and I am not sure how the compiler should get the information for automatic type inference, but I have to admit that my understanding of the mechanisms is still very limited. The example may not have been

Re: typed values from c pointer

2016-11-02 Thread bitstorm
Many Thanks - this is a solution to my problem! Sorry I have been to fuzzy in my question but I am just starting to work with nim

Compile time calculated/dependend types

2016-11-01 Thread bitstorm
Hi - I am new to nim and it would be great of one of you could point me in the right direction. I have many (>100) functions from a c library taking different combinations of parameter (int32, int64, float32, float64 and so on). And I would like to come up with something like pro

typed values from c pointer

2016-10-31 Thread bitstorm
Hi, I am writing a nim wrapper for a c library and would like to construct a sequence of nim items from a generic proc. I can construct std library types with a call to a constructor like construct but this does not work for tuples or objects if i got this right proc get_item_from