FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

Comparing kapabl:main...hsutter:main · kapabl/cppfront · GitHub

forked from hsutter/cppfront
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: kapabl/cppfront
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: main
Choose a base ref
Could not load branches
Nothing to show
{{ refName }}
...
head repository: hsutter/cppfront
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: main
Choose a head ref
Could not load branches
Nothing to show
{{ refName }}
Checking mergeability… Don’t worry, you can still create the pull request.
  • 20 commits
  • 370 files changed
  • 4 contributors

Commits on Aug 26, 2025

  1. Add proof of concept Python binding

    Supports this code:
    
    widget: @python type
    = {
        value: int;
        operator=: (out this, i: int) = { value = i; }
    
        add: (inout this, i: int) -> int
            = { value += i; return value; }
    
        shout: (this, s: std::string) -> std::string
            = s + "!";
    }
    
    Being invoked from Python like this:
    
    import widgetlib
    
    w = widgetlib.widget(10)
    print(w.add(5))         # prints 15
    print(w.add(i=7))       # prints 22
    print(w.shout("hello")) # prints "hello!"
    
    I'm not checking in a test case though because this is proof-of-concept only, currently hardwired to generate pybind11 and bash .sh invoking g++-10
    hsutter committed Aug 26, 2025
    Configuration menu
    Copy the full SHA
    a7db592 View commit details
    Browse the repository at this point in the history

Commits on Aug 27, 2025

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

Commits on Aug 28, 2025

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

Commits on Sep 9, 2025

  1. Feature/autodiff (hsutter#1413)

    * Update for regex 20 lookbehind test.
    
    Removed cpp file and added cpp2 file.
    
    * Fix for name lookup issues with MSVC.
    
    * Add missing files.
    
    * Refactor of autodiff with generalized traversal.
    
    Added test for autodiff.
    
    * Handling of expression lists.
    
    * Handling of expresson terms.
    
    * Handling of function calls.
    
    * Added special handling of math functions.
    
    * Added declarations and statements to simple_traversal.
    
    * Handling if/else statements.
    
    * Added handling of direct return.
    
    * Stub handling of value declarations.
    
    * Added example for non differential variable.
    
    * Added handling of while and do while loops.
    
    * Handling of for loops and added special functions.
    
    * Unified function call handling.
    
    * Proper handling of initializer expressions.
    
    * Fix initializer problem.
    
    * Suffix can now be user defined.
    
    * Added second order test.
    
    * Remove initialization order workaround.
    
    * Taylor polynomial propagation implementation.
    
    * Basic handling of higher order derivatives and handling of add and minus.
    
    * Added  handling for multiply and division.
    
    * Higher order handling for special functions.
    
    * Remaining tests for higher order derivatives.
    
    * Declaration lookup and lookup of function return name.
    
    * Basic changes for adding new things for the differentiation.
    
    * Moved handling of types and functions to autodiff_declaration_handler.
    
    * Added handling for differentiation of symbols outside of metafunction type declaration.
    
    * Basic differentation for type and namespace value declarations.
    
    * Refactor of autodiff_expression_handler.
    
    The expression handler no longer generates the assignments. It stores
    the primal and forward expression. The assignments can now be generated
    with helper functions or by accessing the expressions.
    
    * Handling of member access.
    
    * Moved assignment handling code to proper traverse function.
    
    * Added type differentiation for types without member functions.
    
    * Handling of member function calls.
    
    First basic setup for declared variable lookup.
    
    * Handling of prefix + and -.
    
    * Basic preperations for reverse mode AD.
    
    * Refactor of diff string to structure.
    
    Currently placeholder that defaults to the forward derivatives.
    
    * Reverse handling of function declaration.
    
    * Reverse differentiation of additive expressions.
    
    * Basic handling of multiplication and division.
    
    * Fix for to_string of expressions.
    
    * Activity analysis for variables and functions.
    
    * Update for tests and acitivity analysis.
    
    * Added tests for combined binary expressions.
    
    * Handling of special functions for reverse mode.
    
    * Added handling of function calls for reverse.
    
    * Handling of statement parameters for loops in forward mode.
    
    * Reverse handling of for loops.
    
    * Temp.
    
    * Build clean with GCC 10 and Clang 21, and update regression test results
    
    * Bugfix for passive variables in addition or subtraction statements.
    
    * Add an AD unit test
    
    ---------
    
    Co-authored-by: Herb Sutter <herb.sutter@gmail.com>
    MaxSagebaum and hsutter authored Sep 9, 2025
    Configuration menu
    Copy the full SHA
    981e21c View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    9f7bd9f View commit details
    Browse the repository at this point in the history

Commits on Oct 17, 2025

  1. Configuration menu
    Copy the full SHA
    018c1c6 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    a877eac View commit details
    Browse the repository at this point in the history
  3. Documentation for autodiff. (hsutter#1424)

    * Documentation for autodiff.
    
    * Fix remarks and build errors.
    
    * Trying to fix msvc.
    
    * Update results for regression tests.
    
    * Make AD warning be not an error so regression tests run
    
    ---------
    
    Co-authored-by: Herb Sutter <herb.sutter@gmail.com>
    MaxSagebaum and hsutter authored Oct 17, 2025
    Configuration menu
    Copy the full SHA
    64f5119 View commit details
    Browse the repository at this point in the history
  4. Bump build number

    hsutter committed Oct 17, 2025
    Configuration menu
    Copy the full SHA
    1a6062a View commit details
    Browse the repository at this point in the history

Commits on Jan 4, 2026

  1. Add usability error message for "throw expr" without parens

    And update dates to 2026
    hsutter committed Jan 4, 2026
    Configuration menu
    Copy the full SHA
    66581b0 View commit details
    Browse the repository at this point in the history

Commits on Jan 5, 2026

  1. Add runtime check for modulo by zero (hsutter#1405)

    * Add runtime check for modulo by zero
    
    * Rerun regression tests
    
    One of the tests now hits an MSVC error I've seen before, related to using std::source_location via module std import -- it doesn't manifest on any other compiler, or in MSVC using std headers. So the error is spurious, but I'm not able to debug it or find a workaround, and I don't want to record regression test failures just because of that use case where 'module std currently doesn't work.' So this commit also changes all -pure regression tests to use headers, not modules, at least for now until modules work better
    
    ---------
    
    Co-authored-by: Herb Sutter <herb.sutter@gmail.com>
    LT2H and hsutter authored Jan 5, 2026
    Configuration menu
    Copy the full SHA
    71a17ed View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    66c997d View commit details
    Browse the repository at this point in the history

Commits on Jan 9, 2026

  1. Ci Update runners and fix tests (hsutter#1442)

    * CI Update runners in the build-cppfront.yaml
    
    * CI Update runners in the regression-tests.yml
    
    * CI Use -include-std cppfront option for pure regression tests
    jarzec authored Jan 9, 2026
    Configuration menu
    Copy the full SHA
    c638b16 View commit details
    Browse the repository at this point in the history

Commits on Jan 10, 2026

  1. Add support for try/catch

    Including regression test cases
    
    TODO: write docs
    
    Basic usage is
    
        try {
            ...
        }
        catch( i: int ) { use(i); } // catch an int
        catch( _ ) { } // catch everything
    hsutter committed Jan 10, 2026
    Configuration menu
    Copy the full SHA
    6553e5f View commit details
    Browse the repository at this point in the history
  2. Add throw/try/catch documentation

    And bump build number
    hsutter committed Jan 10, 2026
    Configuration menu
    Copy the full SHA
    1715e15 View commit details
    Browse the repository at this point in the history

Commits on Jan 11, 2026

  1. Add function local statics + 'singleton' metaclass

    And 'encapsulated' and 'noncopyable' metaclasses
    hsutter committed Jan 11, 2026
    Configuration menu
    Copy the full SHA
    83582ad View commit details
    Browse the repository at this point in the history

Commits on Feb 1, 2026

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

Commits on Feb 2, 2026

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

Commits on Feb 22, 2026

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

Commits on Jul 17, 2026

  1. Update README.md with current status link

    Signed-off-by: Herb Sutter <herb.sutter@gmail.com>
    hsutter authored Jul 17, 2026
    Configuration menu
    Copy the full SHA
    66eb614 View commit details
    Browse the repository at this point in the history
Loading

Back | FazBrowse Home | New Git URL