jboy/nim-pymod
View on GitHub ↗ ★ 218 Nim
Auto-generate a Python module that wraps a Nim module.
11 mentions on Hacker News by 3 people: 0 stories, 11 comments · first 2015-11-15 · latest 2017-05-28
20082026
-
…a shared C library produced by Nim, have a play with some of the examples provided with Nim-Pymod: https://github.com/jboy/nim-pymod/tree/master/examples It auto-generates the appropriate Python C API boilerplate functions around your Nim…
comment by jboy · 2017-05-28 · in Ask HN: Does anyone use Nim language in production? -
…image processing code in Nim, using a library called "Nim-Pymod" to integrate with Python's Numpy: https://github.com/jboy/nim-pymod (As you can see, I was one of the authors of that library in a previous startup. We haven't worked on…
comment by jboy · 2017-05-28 · in Ask HN: Does anyone use Nim language in production? -
…you want to translate Python to Nim gradually, look at this magic: For calling Nim from Python: * https://github.com/jboy/nim-pymod For calling Python from Nim: * https://github.com/nim-lang/python/tree/master/examples
comment by cdunn2001 · 2017-05-08 · in My Struggles with Rust -
I'm using Nim's Pymod https://github.com/jboy/nim-pymod for this exact purpose and I think it's much better suited. The reason is that it can automatically generate C API code without FFI, because FFI calls are slower (…
comment by lqdc13 · 2016-10-20 · in Fixing Python Performance with Rust -
…compiled language. We created Nim-Pymod to enable Nim code to be compiled into Python modules: https://github.com/jboy/nim-pymod There's also a web-framework in Nim called Jester, which describes itself as "a Sinatra-like web framework":…
comment by jboy · 2016-07-01 · in Ask HN: As a Python developer, what am I missing for not using Ruby? -
…Nim procs, to auto-generate type-safe, exception-safe, refcount-safe Python bindings for Nim? https://github.com/jboy/nim-pymod :)
comment by jboy · 2016-06-07 · in Introduction to Metaprogramming in Nim -
…them as standard CPython extension modules, and simply drop them into your existing Python code: https://github.com/jboy/nim-pymod The Pymod library even includes a type `ptr PyArrayObject` that provides native Nim access to Numpy ndarrays…
comment by jboy · 2016-01-03 · in Using D and std.ndslice as a Numpy Replacement -
…Nim support for Numpy arrays with C++-style iterators, my Pymod project may be of assistance: https://github.com/jboy/nim-pymod )
comment by jboy · 2015-12-13 · in Pybind11 – Seamless operability between C++11 and Python -
…isolate the slow function and turn it into a Cython module. Recently have been playing around with https://github.com/jboy/nim-pymod which seems like a much better solution.
comment by lqdc13 · 2015-12-02 · in Why I Still Use Python for High Performance Scientific Computing -
…to the Numpy C-API anyway. This is why we created (and, just a few days ago, open-sourced) Pymod: https://github.com/jboy/nim-pymod Pymod is a Nim+Python project that auto-generates all the Python C-API boilerplate & auto-compiles a Python…
comment by jboy · 2015-11-17 · in Python C API, PyPy and the road into the future -
…boilerplate & auto-compiles a Python C extension module, to wrap the functions in a Nim module: https://github.com/jboy/nim-pymod As a pragmatic Python programmer, Pymod may be of interest to you too... (As someone who learned C++ in 1999…
comment by jboy · 2015-11-15 · in Pythran: A Python subset to C++ compiler that takes advantage of SIMD