{"id":20978757,"url":"https://github.com/holmanb/c-ffi","last_synced_at":"2026-04-10T16:36:51.197Z","repository":{"id":111427436,"uuid":"197313678","full_name":"holmanb/c-ffi","owner":"holmanb","description":"Foreign Function Interface (go, c++, etc) ","archived":false,"fork":false,"pushed_at":"2019-12-26T21:02:10.000Z","size":16,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"master","last_synced_at":"2025-03-13T09:46:46.735Z","etag":null,"topics":["c","c-plus-plus","foreign-function-interface","go"],"latest_commit_sha":null,"homepage":"","language":"C++","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/holmanb.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2019-07-17T04:15:15.000Z","updated_at":"2019-12-26T21:02:12.000Z","dependencies_parsed_at":null,"dependency_job_id":"155bd6eb-bf4f-44c2-9c62-55ba5f28e184","html_url":"https://github.com/holmanb/c-ffi","commit_stats":null,"previous_names":["holmanbph/goplay"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/holmanb/c-ffi","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/holmanb%2Fc-ffi","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/holmanb%2Fc-ffi/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/holmanb%2Fc-ffi/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/holmanb%2Fc-ffi/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/holmanb","download_url":"https://codeload.github.com/holmanb/c-ffi/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/holmanb%2Fc-ffi/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":261206115,"owners_count":23124838,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["c","c-plus-plus","foreign-function-interface","go"],"created_at":"2024-11-19T05:07:15.321Z","updated_at":"2025-12-15T15:21:57.544Z","avatar_url":"https://github.com/holmanb.png","language":"C++","funding_links":[],"categories":[],"sub_categories":[],"readme":"# c-ffi\n\n## Purpose\nThe purpose of this project is to gain a better understanding of Foreign Function Interfaces.\nForeign function interfaces are a way for a program in one language to execute code written in another language.\n\n\n## Goal\nThe goal of this project is to explore the FFI to C in a number of languages. This will ideally achieve multiple \ngoals: to serve as an example repository for future personal usage, as well as (hopefully) provide some simple\ntests in each language to test the performance of the interface.\n\n\n## Methodology\nThere is a *small* toy library in C called [`set-c`](https://github.com/holmanb/set-c). This library implements \na generic set in C using void pointers.  This library will be used in each language to do a small set of operations.\n\nThe usage of foreign functions in each language should follow typical conventions/coding style of that language.\n\nFor example, C++ is an OOP language and `set-c` is not OOP, but easily fits the OOP model.  Therefore, a wrapper \nclass is written in C++.\n\nAfter a few languages are supported, a standard set of tests will be developed to evalute the performance of\nthe FFI in each language.\n\n\n## Organization\nThere is a directory for each language. For ease of building the code, a makefile is provided in each one.\nRun `make` in the directory to build the binary.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fholmanb%2Fc-ffi","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fholmanb%2Fc-ffi","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fholmanb%2Fc-ffi/lists"}