Hacker GitHub

← All repos

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

Mentions per year 11 mentions · busiest year 2015 (4)
20082026
  1. …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…
  2. …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…
  3. …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
  4. 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
  5. …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":…
  6. …Nim procs, to auto-generate type-safe, exception-safe, refcount-safe Python bindings for Nim? https://github.com/jboy/nim-pymod :)
  7. …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…
  8. …Nim support for Numpy arrays with C++-style iterators, my Pymod project may be of assistance: https://github.com/jboy/nim-pymod )
  9. …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.
  10. …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…
  11. …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…