Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: wjakob/nanobind
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: master
Choose a base ref
...
head repository: revng/nanobind
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: master
Choose a head ref
Checking mergeability… Don’t worry, you can still create the pull request.
  • 9 commits
  • 33 files changed
  • 2 contributors

Commits on Jul 16, 2025

  1. Configuration menu
    Copy the full SHA
    e720641 View commit details
    Browse the repository at this point in the history

Commits on Jul 30, 2025

  1. Allow building as a standalone project

    Add an additional `CMakeLists.txt` file which allows building nanobind
    as a standalone project, installing `libnanobind.so` under `/lib` and
    headers under `/include`.
    mrjackv committed Jul 30, 2025
    Configuration menu
    Copy the full SHA
    459b205 View commit details
    Browse the repository at this point in the history
  2. Drop RTTI functionality

    Drop the use of `typeid` and `std::type_info` from the codebase, they
    are now replaced with a thin shim through `shimTypeid<T>` and
    `shim::type_info`.
    mrjackv committed Jul 30, 2025
    Configuration menu
    Copy the full SHA
    fe6fd2e View commit details
    Browse the repository at this point in the history
  3. Search and replace uses of typeinfo

    Search and replace all uses of uses of `std::type_info` and
    `typeid(...)` from the codebase and replace them with the shimmed
    functions/classes implemented in the previous commit. This commit can
    be regenerated during a rebase by running the following command:
    
    ```
    find src include -type f \
        \( -name '*.h' -or -name '*.cpp' \) \
        -exec sed -i \
            -e 's;std::type_info;shim::type_info;g' \
            -e 's;typeid(\*ptr);typeidShim(*ptr);g' \
            -e 's;typeid(\([^)]\+\));typeidShim<\1>();g' {} \;
    ```
    mrjackv committed Jul 30, 2025
    Configuration menu
    Copy the full SHA
    ee467eb View commit details
    Browse the repository at this point in the history

Commits on Aug 19, 2025

  1. Drop exceptions from the codebase

    Drop the use of exceptions from the codebase. Where needed add an
    `abort`.
    mrjackv committed Aug 19, 2025
    Configuration menu
    Copy the full SHA
    c24f8b9 View commit details
    Browse the repository at this point in the history
  2. Search and replace all exception code

    Search and replace all exception-related code (`try`, `catch`, `throw`)
    and replace their use with functions/classes implemented in the previous
    commit. This commit can be regenerated during a rebase by running the
    following command:
    
    ```
    find src include -type f \
        \( -name '*.h' -or -name '*.cpp' \) \
        -exec sed -i \
            -e 's|try {|if (true) {|g' \
            -e 's|catch (.*&\s*\(.\+\)) {|if (false) { shim::exception_placeholder \1;|g' \
            -e 's|catch (.*) {|if (false) {|g' \
            -e 's|throw \(.*\);$|throwShim(\1);|g' {} \;
    ```
    mrjackv committed Aug 19, 2025
    Configuration menu
    Copy the full SHA
    d4601a6 View commit details
    Browse the repository at this point in the history
  3. standalone/CMakeLists.txt: add extra flags

    Add extra compiler flags that make the compiler stricter.
    mrjackv committed Aug 19, 2025
    Configuration menu
    Copy the full SHA
    41ae829 View commit details
    Browse the repository at this point in the history
  4. Remove "hidden" attribute from nanobind namespace

    Remove the `hidden` attribute from the nanobind namespace, as it was
    causing linking problems.
    mrjackv committed Aug 19, 2025
    Configuration menu
    Copy the full SHA
    12a3b91 View commit details
    Browse the repository at this point in the history

Commits on Sep 17, 2025

  1. Allow python class as a base class

    mrjackv authored and aleclearmind committed Sep 17, 2025
    Configuration menu
    Copy the full SHA
    8358730 View commit details
    Browse the repository at this point in the history
Loading