Re: Wrap C++ procedure / Parameter type float / shared library

2017-12-07 Thread dodo11
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.

Re: Learning Nim

2017-12-07 Thread twetzel59
Awesome, thanks! I'll take precaution with unstable features, but otherwise that's encouraging

Re: How does seq handle negative array index?

2017-12-07 Thread monster
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!

Re: Wrap C++ procedure / Parameter type float / shared library

2017-12-07 Thread dodo11
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!!

Re: Nim t-shirt (San Francisco)

2017-12-07 Thread slimshady
@treeform I am down for hanging out in SF or even better, let's start a Nim SF meetup group

Re: Learning Nim

2017-12-07 Thread dom96
> > 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

Re: How does seq handle negative array index?

2017-12-07 Thread mratsim
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`)

Re: Learning Nim

2017-12-07 Thread Arrrrrrrrr
> 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

Hiring Nim Devs for Ethereum Implementation

2017-12-07 Thread jarradhope
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

Re: Wrap C++ procedure / Parameter type float / shared library

2017-12-07 Thread dom96
Try `importc`, `importcpp` assumes the first parameter is a class instance.

Re: experimenting with pointers and slices

2017-12-07 Thread Araq
That is correct, yes.

Re: [Presentation-Python-Nim] A new option for optimizing inner loops Z. D. Smith

2017-12-07 Thread Udiknedormin
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.