Skip to content

Enhancement: native Octave oct-file backend (-oct) from the v1.4 development branch #43

Description

@zgimbutas

Proposed in the July 2026 AI-assisted code review (Claude Code), from investigation of the v1.4 development branch (octave).

-oct generates a native DEFUN_DLD oct-file (compiled with plain mkoctfile, no MEX emulation layer): src/mwrap-octgen.cc + src/mwrap-oct-support.c, mirrored in python/mwrap_octgen.py + python/mwrap_oct_support.c. Uses fortran_vec() for direct data access; several correctness fixes already landed on the branch (is_complex_type, goto-over-init, real-to-complex promotion).

Benefit: first-class Octave support instead of relying on Octave's MEX compatibility layer.

Before it lands on master:

  • C++/Python byte-parity coverage in testing/test_python.sh
  • an end-to-end Octave CI test (Octave is already in CI, so this is cheap)
  • user-guide/README documentation

See #45 for dispatch-table compatibility and merge scope.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions