Skip to content

Consider FFI interface to get around lack of structs in purego #18

@deadprogram

Description

@deadprogram

Hello @dianlight just discovered your project today, this is something I have been wanting to do. 😻

Small problem, of course, is that it cannot be used on Linux due to not being able to actually load any models. Perhaps you might want to mention this upfront in the README?

In any case, I might suggest looking at using FFI interface calls to get around this particular issue, for the functions like llama_model_load_from_file which are really required to do anything else. FFI is probably the most straightforward solution that will still work on the various platforms. You probably have seen https://github.com/JupiterRider/ffi as it is mentioned in ebitengine/purego#236

What do you think?

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