pybind/pybind11
View on GitHub ↗ ★ 18,026 C++
Seamless operability between C++11 and Python
25 mentions on Hacker News by 20 people: 4 stories, 21 comments · first 2016-04-23 · latest 2026-02-22
20082026
-
▲ 1
Show HN: C++26 Reflection for Python Algo Tradingstory by tradrich · 2026-02-22 · 0 comments
-
For C++, don't use SWIG, use this: https://github.com/pybind/pybind11
comment by erichocean · 2023-07-18 · in Swig – Connect C/C++ programs with high-level programming languages -
…expose it to Python (so no copying overhead and you can create nice cache-aware structs, etc.). [1] https://github.com/pybind/pybind11/blob/master/tests/test_py... [2] https://gitlab.unistra.fr/benzerara/pybind11/-/tree/master/e...
comment by cgreerrun · 2023-03-01 · in Python’s Multiprocessing Performance Problem -
…or NumpyEigen [2]. I find tools like numba and cython to be more trouble than they're worth. [1] https://github.com/pybind/pybind11 [2] https://github.com/fwilliams/numpyeigen
comment by fwilliams · 2022-12-27 · in Numba: A High Performance Python Compiler -
…like python bindings territory. Nowhere near something like pybind11 [0] for c++ bindings yet. [0] https://github.com/pybind/pybind11 [1] https://github.com/mozilla/uniffi-rs
comment by pzo · 2022-02-12 · in All you should know about Flutter development -
This was not my information at the time. But thanks for the info, it is helpful. With https://github.com/pybind/pybind11 there is really great integration with C++ and Python is my second home after C++ actually. Anyway, I am quite happy…
comment by germandiago · 2021-05-24 · in My experience binding a couple of scripting engines with C++ -
…Python. The experience was very much like using Boost Python (whcih these days has alternative with https://github.com/pybind/pybind11 ). It's _really_ easy to wrap code for Python, and it has nice APIs to ensure GIL is held. Being Rust,…
comment by itamarst · 2021-01-29 · in PyO3: Rust Bindings for the Python Interpreter -
You can look at the pybind11 ( https://github.com/pybind/pybind11 ) codebase. It is a library for generating python bindings for C++ code. It uses latest C++17 and does quite a lot of template metaprogramming to generate the bindings.
comment by in42 · 2020-10-28 · in Ask HN: Good C++ code bases to read? -
…one am pretty excited about diving into the code. [1] https://github.com/mitsuba-renderer/enoki [2] https://github.com/pybind/pybind11 [3] https://dl.acm.org/doi/10.1145/3355089.3356498
comment by ykl · 2020-03-03 · in Mitsuba 2: A Retargetable Forward and Inverse Renderer -
How does CLIF compare to PyBind11[1]? [1] https://github.com/pybind/pybind11
comment by MereInterest · 2019-07-11 · in Racket Is an Acceptable Python -
…slower parts to C++11 using pybind11. Bonus point: You can use all the existing C/C++ libraries. https://github.com/pybind/pybind11
comment by mlboss · 2019-02-15 · in Moving from Ruby to Rust -
…code and overhead in my experience. cffi isn’t bad, but it’s not as flexible/expressive. [0] https://github.com/pybind/pybind11
comment by stochastic_monk · 2019-02-02 · in A Python Interpreter Written in Rust -
…Although I use SWIG on my job, pybind11[0] is a nice alternative that I've been looking at. [0] https://github.com/pybind/pybind11
comment by gusmd · 2018-09-25 · in PyQt5 Tutorial: Create a Python GUI in 2018 -
…days ([1]) -- thanks to libraries like pybind11 [2]. [1] https://github.com/aldanor/ipybind [2] https://github.com/pybind/pybind11
comment by aldanor · 2018-02-07 · in Python’s Weak Performance Matters -
…are immediately available. Been using it myself quite a lot for prototyping C++/Python code. [1] https://github.com/pybind/pybind11
comment by aldanor · 2017-11-29 · in Interactive workflows for C++ with Jupyter -
….def("addh_", &hll_t::addh, "Hash an integer value and then add that to the sketch."); } [1] https://github.com/pybind/pybind11
comment by stochastic_monk · 2017-11-17 · in Speed up your Python using Rust -
pybind11 is the nicest foreign function interface I've encountered: https://github.com/pybind/pybind11
comment by Cieplak · 2017-11-07 · in Interfacing Python and C: Advanced “ctypes” Features -
▲ 135
Pybind11 — Seamless operability between C++11 and Pythonstory by tony · 2017-08-25 · 117 comments
-
pybind11 is a similar library, but for interfacing with C++ from Python: https://github.com/pybind/pybind11
comment by Cieplak · 2017-07-27 · in PyO3: Python Rust binding -
…production -- ETH Zurich puts out some great code [1,2]. [1] https://github.com/libigl/libigl [2] https://github.com/pybind/pybind11
comment by santaclaus · 2017-07-08 · in Ask HN: What’s the biggest difference between professional coding and academia? -
…doesn't scale and debugging is a total nightmare. Disclaimer: I'm a contributor to pybind11. [1] https://github.com/pybind/pybind11
comment by aldanor · 2017-05-27 · in Coroutines are now in Clang trunk, libc++ -
…project. It still looks like manually written C extension modules to me based off of what I see in https://github.com/pybind/pybind11/blob/master/docs/basics.r... . Just much shorter code with a lot of the hard to get right details taken…
comment by gpshead · 2017-05-03 · in C++ Language Interface Foundation (CLIF) -
▲ 5
Pybind11 v2.0.0 releasedstory by wjakob · 2017-01-01 · 1 comment
-
…personally, there're real reasons not to use it -- e.g., no support for structured/record arrays: https://github.com/pybind/pybind11/issues/67
comment by aldanor · 2016-04-24 · in Pybind11 – Seamless operability between C++11 and Python -
▲ 26
Pybind11 – Seamless operability between C++11 and Pythonstory by ingve · 2016-04-23 · 3 comments