{"id":36729155,"url":"https://github.com/felixangell/kpd","last_synced_at":"2026-01-12T12:04:41.173Z","repository":{"id":65408002,"uuid":"105323745","full_name":"felixangell/kpd","owner":"felixangell","description":"an old compiler for Krug written in D - a prototype version","archived":false,"fork":false,"pushed_at":"2019-07-09T21:52:34.000Z","size":13128,"stargazers_count":44,"open_issues_count":27,"forks_count":1,"subscribers_count":8,"default_branch":"master","last_synced_at":"2024-12-06T22:34:59.203Z","etag":null,"topics":["compiler","programming-language"],"latest_commit_sha":null,"homepage":"","language":"D","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/felixangell.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2017-09-29T22:57:12.000Z","updated_at":"2024-04-06T04:57:27.000Z","dependencies_parsed_at":"2023-04-23T23:34:42.747Z","dependency_job_id":null,"html_url":"https://github.com/felixangell/kpd","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/felixangell/kpd","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/felixangell%2Fkpd","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/felixangell%2Fkpd/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/felixangell%2Fkpd/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/felixangell%2Fkpd/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/felixangell","download_url":"https://codeload.github.com/felixangell/kpd/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/felixangell%2Fkpd/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28338975,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-12T10:58:46.209Z","status":"ssl_error","status_checked_at":"2026-01-12T10:58:42.742Z","response_time":98,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":["compiler","programming-language"],"created_at":"2026-01-12T12:04:36.938Z","updated_at":"2026-01-12T12:04:41.160Z","avatar_url":"https://github.com/felixangell.png","language":"D","funding_links":[],"categories":[],"sub_categories":[],"readme":"# KPD\r\nThis is a compiler for [Krug](//krug-lang.org), written in D. Though KPD itself is quite old, so it wont compile most Krug programs anymore.\r\nThe actual compiler for Krug can be found under the name [Caasper](//github.com/krug-lang/caasper).\r\n\r\n## Try it out\r\nNothing is in working order, but some tests _might_ run! The compiler still has a long\r\nway to go till it's stable-ish to run some actual programs.\r\n\r\n### Requirements\r\nYou'll need a few bits of software to compile the compiler:\r\n\r\n* `dmd`, `ldc2`, - some D compiler\r\n* `clang`, `gcc`, - some C compiler\r\n* `make` - GNU make\r\n\r\n### Setup\r\n\r\n#### Mac\r\n```bash\r\n$ xcode-select --install\r\n$ curl -fsS https://dlang.org/install.sh | bash -s dmd\r\n```\r\n\r\n#### Ubuntu\r\n```bash\r\n$ sudo apt-get install build-essential\r\n$ curl -fsS https://dlang.org/install.sh | bash -s dmd\r\n```\r\n\r\n#### Windows\r\nTODO!\r\n\r\n### Installing\r\n$ git clone http://github.com/felixangell/krug\r\n$ cd krug\r\n$ make\r\n$\r\n$ ./krug b tests/x64_tests/fib.krug\r\n$ ./main\r\n$\r\n$ ./krug e E0001        # explain error message E0001\r\n\r\n\r\n## Examples!\r\nFor now let's have a nice simple hello world program! Note: this is not how the\r\nfinal language is intended to look, but rather how you would approach a hello world\r\nprogram in the compilers current state.\r\n\r\n```krug\r\n#module main\r\n\r\n#{c_func, variadic}\r\nfunc printf(str *u8) s32;\r\n\r\n#{no_mangle}\r\nfunc main() {\r\n\tprintf(c\"hello world\\n\");\r\n}\r\n```\r\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffelixangell%2Fkpd","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ffelixangell%2Fkpd","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffelixangell%2Fkpd/lists"}