Dynamic loading of C++ library

2020-09-20 Thread fortea
> > > It looks like you can call methods of Algorithm, so > > > my_algorithm[].input("spectrum") would be my guess Thanks! this solved many problems. I'm still trying to understand why I needed it. Is it something like C's `(*my_algorithm).input("spectrum")`? Now the code is compilable and runn

Dynamic loading of C++ library

2020-09-18 Thread fortea
I was in contact with the nimline developer by email and he suggested to use nim `ptr` in place of the `CppRef` and to use the nimline `invokeFunction` utility to call a global static methods. The problem I have now is that I have a `let my_algorithm: ptr Algorithm` and I need to call its metho

Growth of popularity and Nim community

2020-09-17 Thread fortea
I'm new to nim and I'm trying to understand if it's suitable for my work. Basically, I do research using dsp, machine learning, nlp and information retrieval. I like Nim because it's the only language that can claim to be at the same time: 1. easy for prototyping 2. no braces and unuseful s

Dynamic loading of C++ library

2020-09-17 Thread fortea
Hello all, I'm completely new to Nim, but after having ridden a lot of tutorials, I completely fall in love with him. For really being able to use it, I need a couple of libraries. Hopefully, all of them are available from C++ or already partially implemented. I'm trying to use a large state-of