Skip to content

Feature Request: Provide C module for C/C++ and Go integration #70

@mengshengwu

Description

@mengshengwu

Summary

It would be highly valuable to add a C module (cmodule) to the Harmony library, allowing it to be easily called from C, C++ (cxx), or Go projects. This would greatly improve the interoperability and adoption of Harmony in diverse environments.

Use Case

  • Enable calling Harmony functionality from C or C++ codebases
  • Provide Go bindings via cgo or similar FFI approaches
  • Facilitate embedding Harmony into other systems written in these languages

In particular, I would like to try using Harmony in the NexaAI/nexa-sdk project, which would benefit from such integration.

Suggested Approach

  • Design and implement a C API for core Harmony features
  • Document how to build and link against the C module
  • (Optionally) Provide example usage from C, C++, and Go

Motivation

Many existing projects and infrastructure are written in C, C++, or Go. A C module would allow seamless integration and increase the utility of Harmony.

Thank you for considering this feature request!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions