Skip to content

Commit

Permalink
docs/porting.rst: pybind11 vs nanobind comparisons via litgen doc
Browse files Browse the repository at this point in the history
  • Loading branch information
pthom committed Nov 7, 2024
1 parent 9454073 commit 63f3386
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions docs/porting.rst
Original file line number Diff line number Diff line change
Expand Up @@ -358,3 +358,12 @@ Bullet points marked with ● may be reintroduced eventually, but this will
need to be done in a careful opt-in manner that does not affect code
complexity, binary size, and compilation/runtime performance of basic bindings
that don't depend on these features.

Examples
----------------

The documentation for `litgen <https://pthom.github.io/litgen>`_ includes a
series of examples with side-by-side comparisons of pybind11 and nanobind
binding code. For instance, see the section on
`classes <https://pthom.github.io/litgen/litgen_book/06_05_00_classes.html>`_
for a practical look at these differences.

0 comments on commit 63f3386

Please sign in to comment.