{"id":20279212,"url":"https://github.com/peterhellberg/vedis-from-c-and-go","last_synced_at":"2026-06-08T10:33:31.471Z","repository":{"id":18471594,"uuid":"21666567","full_name":"peterhellberg/vedis-from-c-and-go","owner":"peterhellberg","description":"Experimenting with Vedis from C and Go","archived":false,"fork":false,"pushed_at":"2014-07-19T14:57:19.000Z","size":336,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-03-04T02:39:18.443Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"C","has_issues":false,"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/peterhellberg.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}},"created_at":"2014-07-09T19:49:31.000Z","updated_at":"2014-07-20T19:54:05.000Z","dependencies_parsed_at":"2022-08-20T16:40:31.144Z","dependency_job_id":null,"html_url":"https://github.com/peterhellberg/vedis-from-c-and-go","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/peterhellberg/vedis-from-c-and-go","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/peterhellberg%2Fvedis-from-c-and-go","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/peterhellberg%2Fvedis-from-c-and-go/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/peterhellberg%2Fvedis-from-c-and-go/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/peterhellberg%2Fvedis-from-c-and-go/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/peterhellberg","download_url":"https://codeload.github.com/peterhellberg/vedis-from-c-and-go/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/peterhellberg%2Fvedis-from-c-and-go/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":34059156,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-06-08T02:00:07.615Z","response_time":111,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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":[],"created_at":"2024-11-14T13:28:57.059Z","updated_at":"2026-06-08T10:33:31.453Z","avatar_url":"https://github.com/peterhellberg.png","language":"C","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Experimenting with Vedis from C and Go\n\nJust playing around with Vedis and refreshing my rusty C programming skills.\n\n## Vedis?\n\n[Vedis](http://vedis.symisc.net/) is an embeddable datastore C library\nbuilt with over 70 [commands](http://vedis.symisc.net/commands.html)\nsimilar in concept to [Redis](http://redis.io/) but without the networking\nlayer since Vedis run in the same process of the host application.\n\n## Requirements\n\nThe CGO bindings to Vedis:\n\n``` sh\n$ go get github.com/icholy/vedis\n```\n\n## Usage\n\n``` sh\n$ make\nBuilding the examples:\ngo build -o bin/example-from-go example.go\ngcc example.c vedis.c -o bin/example-from-c\n\nRunning C example:\n\n foo: DATA FROM C\n\nRunning Go example:\n\n foo: DATA FROM C\n bar: 123\n```\n\n### Contents of the data.vdb\n\n``` sh\n$ hexdump -C data.vdb\n00000000  53 79 6d 69 73 63 56 65  64 69 73 ca 1d b6 34 44  |SymiscVedis...4D|\n00000010  c9 a2 97 00 00 02 00 00  00 10 00 00 04 68 61 73  |.............has|\n00000020  68 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00  |h...............|\n00000030  00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00  |................|\n*\n00001000  de 67 1c ef 03 f5 23 f5  00 00 00 00 00 00 00 00  |.g....#.........|\n00001010  00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 01  |................|\n00001020  00 00 00 00 00 00 00 00  00 00 00 01 00 00 00 00  |................|\n00001030  00 00 00 00 00 00 00 00  00 00 00 02 00 00 00 00  |................|\n00001040  00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00  |................|\n*\n00002000  00 34 00 54 00 00 00 00  00 00 00 00 0b 88 73 89  |.4.T..........s.|\n00002010  00 00 00 03 00 00 00 00  00 00 00 0b 00 00 00 00  |................|\n00002020  00 00 00 00 00 00 66 6f  6f 44 41 54 41 20 46 52  |......fooDATA FR|\n00002030  4f 4d 20 43 0b 88 60 ba  00 00 00 03 00 00 00 00  |OM C..`.........|\n00002040  00 00 00 03 00 0c 00 00  00 00 00 00 00 00 62 61  |..............ba|\n00002050  72 31 32 33 00 00 0f ac  00 00 00 00 00 00 00 00  |r123............|\n00002060  00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00  |................|\n*\n00003000\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpeterhellberg%2Fvedis-from-c-and-go","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpeterhellberg%2Fvedis-from-c-and-go","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpeterhellberg%2Fvedis-from-c-and-go/lists"}