From 63f338662368825e281ad775c3d99c7e6bb68211 Mon Sep 17 00:00:00 2001 From: Pascal Thomet Date: Thu, 7 Nov 2024 18:08:02 +0100 Subject: [PATCH] docs/porting.rst: pybind11 vs nanobind comparisons via litgen doc --- docs/porting.rst | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/docs/porting.rst b/docs/porting.rst index 832b7ae1..6c170847 100644 --- a/docs/porting.rst +++ b/docs/porting.rst @@ -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 `_ includes a +series of examples with side-by-side comparisons of pybind11 and nanobind +binding code. For instance, see the section on +`classes `_ +for a practical look at these differences.