I did a quick write-up of my experiences linking Nim to Python using ctypes. Happy so far :-)
Brilliant job!
There is quite a lot of spelling mistakes though:
And likely lot's more. You probably should run it through a spell checker.
As well as some other random issues:
"(.dll in Windows, .so in linux/OSX)"
It's .dylib on OS X.
If you're exporting a function using {.exportc.} you should probably be using the c* types i.e. cfloat, cint etc.
Sorry for nitpicking. I really like the article otherwise, it's a nice introduction to interfacing Nim and Python :)
Thanks dom96!
Stupid mistakes on my part :-(, using a new editor and didn't have spellcheck turned on.
Thanks for pointing me to cfloat and cint, I updated the post to point that out.
Nice, looking like the amateur I am :-)
Should be fixed now. Appreciate the help.