{"id":27388570,"url":"https://github.com/junlarsen/xd","last_synced_at":"2026-04-22T08:31:20.099Z","repository":{"id":271579362,"uuid":"901304707","full_name":"junlarsen/xd","owner":"junlarsen","description":"Compiler for a toy programming language with an MLIR backend","archived":false,"fork":false,"pushed_at":"2025-06-26T12:30:28.000Z","size":1721,"stargazers_count":3,"open_issues_count":7,"forks_count":1,"subscribers_count":1,"default_branch":"trunk","last_synced_at":"2025-12-30T16:06:16.514Z","etag":null,"topics":["compiler","llvm","mlir"],"latest_commit_sha":null,"homepage":"","language":"C++","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/junlarsen.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2024-12-10T12:17:39.000Z","updated_at":"2025-09-17T06:26:33.000Z","dependencies_parsed_at":"2025-01-08T16:50:38.111Z","dependency_job_id":"7453e2d9-69c6-48cf-9c72-c251fc58b26d","html_url":"https://github.com/junlarsen/xd","commit_stats":null,"previous_names":["junlarsen/eight","junlarsen/xd"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/junlarsen/xd","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/junlarsen%2Fxd","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/junlarsen%2Fxd/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/junlarsen%2Fxd/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/junlarsen%2Fxd/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/junlarsen","download_url":"https://codeload.github.com/junlarsen/xd/tar.gz/refs/heads/trunk","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/junlarsen%2Fxd/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32127796,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-22T07:37:52.372Z","status":"ssl_error","status_checked_at":"2026-04-22T07:37:51.635Z","response_time":58,"last_error":"SSL_read: 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","llvm","mlir"],"created_at":"2025-04-13T18:45:38.601Z","updated_at":"2026-04-22T08:31:18.502Z","avatar_url":"https://github.com/junlarsen.png","language":"C++","funding_links":[],"categories":[],"sub_categories":[],"readme":"# XD Programming Language\n\nThis is a toy compiler for a tiny programming language.\n\n\u003e The compiler is currently undergoing a C++ rewrite. Visit\n\u003e https://github.com/junlarsen/xd/tree/rust to see the Rust codebase. The\n\u003e motivation for the C++ rewrite is direct access to MLIR and LLVM C++ APIs.\n\n## Building\n\nThe project is built using the LLVM toolchain and is not tested against\ngcc/libstdc++. We require a build of LLVM 20.1.0 that has been built with\nLLVM libc++. In addition, we use LLVM and MLIR libraries.\n\n- XD_LLVM_INSTALL_PREFIX: This is the location where LLVM 20.1.0 is expected to\n  be available on the system. This defaults to `/usr/lib/llvm-20`. Read the next\n  section on how to build a compatible LLVM 20.1.0 build.\n\n\u003cdetails\u003e\n\u003csummary\u003eBuilding a compatible LLVM distribution\u003c/summary\u003e\n```bash\n# Assuming llvm/llvm-project checked out at llvmorg-20.1.0\ncmake \\\n  -G \"Ninja\" \\\n  -DCMAKE_INSTALL_PREFIX=\"/usr/lib/llvm-20\" \\\n  -DCMAKE_BUILD_TYPE=\"Release\" \\\n  -DCMAKE_CXX_COMPILER=\"clang++-18\" \\\n  -DCMAKE_C_COMPILER=\"clang-18\" \\\n  -DLLVM_ENABLE_LIBCXX=\"ON\" \\\n  -DLLVM_USE_LINKER=\"/usr/lib/llvm-18/bin/ld.lld\" \\\n  -DLLVM_CCACHE_BUILD=\"ON\" \\\n  -DLLVM_ENABLE_RUNTIMES=\"libcxx;libcxxabi;libunwind;compiler-rt\" \\\n  -DLLVM_ENABLE_PROJECTS=\"llvm;clang;lld;mlir\" \\\n  -DLLVM_INSTALL_UTILS=\"ON\" \\\n  -DLLVM_BUILD_TOOLS=\"ON\" \\\n  -DLLVM_TARGETS_TO_BUILD=\"X86\" \\\n  ../llvm\ncmake --build .\nsudo cmake --install .\n```\n\u003c/details\u003e\n\n## License \u0026 Attribution\n\nEverything in the repository is licensed under the Apache 2.0 License with LLVM exception.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjunlarsen%2Fxd","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjunlarsen%2Fxd","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjunlarsen%2Fxd/lists"}