Skip to content

FFM-based native libgvc binding as an alternative engine? #260

@manticore-projects

Description

@manticore-projects

Hi @nidi3, and thanks for graphviz-java — I've used it happily in production for years.
Now that the Foreign Function & Memory API is final in the JDK, I put together a small experiment that binds the native libgvc directly from Java — no dot subprocess and no JS engine: https://github.com/manticore-projects/graphviz-ffm. It renders SVG/PNG/PDF in-process against whatever current Graphviz you link, and can build the graph straight through cgraph.
It's far narrower in scope than graphviz-java, and the native/FFM requirement makes it less portable than the viz.js path — but I thought the approach might interest you, or even be useful one day as an optional engine alongside the existing ones.
Would love any thoughts, and I'm happy to share what I learned wrestling with cgraph/gvc through Panama. Either way, thanks for all the work on this project!

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