Actually "importc" is working well. I just missed to tell Nim the direction to
the shared library.
So adding `{.link: "cpp/calc.so".}` and using either `importc: "calculation"`
or `importcpp: "calculation(@)"` seems to be the solution.
Awesome, thanks! I'll take precaution with unstable features, but otherwise
that's encouraging
Hi, mratsim! I'm actually using Nim version "whatever was available when I
installed it", which is "0.17.2".
Thanks a lot; that sure will save me masses of time!
Unfortunately there is also an error when using "importc".
So I will check how to implement the interface between Nim and C++ with class
instance as first parameter. ...the shared library will be modified related to
Nims needs
Thanks so far!!
@treeform I am down for hanging out in SF or even better, let's start a Nim SF
meetup group
> > if I write a library today, will it be completely obsolete or compile a
> > year or two for now?
>
> In my opinion, yes, based on other stuff programmed in nim that has not
> received updates in a year. But it might happen that in a year nim reaches v1.
I disagree. Here is some proof: a
You need to implement `[]` that accepts `int or Backwardsindex` like I do
[here](https://github.com/mratsim/Arraymancer/blob/694a83682000f644c04fad970d02bcae5161d785/src/tensor/backend/metadataArray.nim#L72-L117).
(This is assuming you are on Nim `master`)
> if I write a library today, will it be completely obsolete or compile a year
> or two for now?
In my opinion, yes, based on other stuff programmed in nim that has not
received updates in a year. But it might happen that in a year nim reaches v1.
> Should I use the new "this" argument
Hey guys, we're looking to implement and maintain an Ethereum Blockchain client
written in Nim,
The goal of this implementation is to close the gap between research and
production, by porting and tracking
[py-evm](https://github.com/ethereum/py-evm), while at the same time focusing
on a
Try `importc`, `importcpp` assumes the first parameter is a class instance.
That is correct, yes.
It suggests the new direction the Nim is to be heading to (according to Araq's
blog post), i.e. turning away from GC, it would more or less ruin things for
the guy talking.
12 matches
Mail list logo