{"id":16311920,"url":"https://github.com/shenniger/dolorem","last_synced_at":"2025-08-11T17:42:22.995Z","repository":{"id":41127013,"uuid":"234101251","full_name":"shenniger/dolorem","owner":"shenniger","description":"Experimental toy programming language framework","archived":false,"fork":false,"pushed_at":"2024-10-08T08:12:21.000Z","size":156,"stargazers_count":6,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-03-23T02:33:07.748Z","etag":null,"topics":["compiler","language","lisp","llvm","programming-language"],"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/shenniger.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":"2020-01-15T14:43:36.000Z","updated_at":"2025-03-08T11:50:12.000Z","dependencies_parsed_at":"2024-11-06T07:01:51.209Z","dependency_job_id":"033f2fc2-9cea-4e2c-813f-3333eecb0ec2","html_url":"https://github.com/shenniger/dolorem","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/shenniger%2Fdolorem","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/shenniger%2Fdolorem/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/shenniger%2Fdolorem/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/shenniger%2Fdolorem/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/shenniger","download_url":"https://codeload.github.com/shenniger/dolorem/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247749899,"owners_count":20989709,"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":["compiler","language","lisp","llvm","programming-language"],"created_at":"2024-10-10T21:45:57.241Z","updated_at":"2025-04-07T23:32:51.185Z","avatar_url":"https://github.com/shenniger.png","language":"C","funding_links":[],"categories":[],"sub_categories":[],"readme":"## Overview\nThe idea is to have a programming language with macros are so powerful, they\ncan even call directly into the code generator.\n\nThis version of Dolorem compiles to LLVM and is a bit hard to read;\nif you are new to Dolorem, see [metareflection/dolorem-c](https://github.com/metareflection/dolorem-c) for\na simplified version that compiles to C.\n\n## Publication\nSimon Henniger and Nada Amin, “The Dolorem Pattern: Growing a Language through Compile-Time Function Execution”,\nin 37th European Conference on Object-Oriented Programming (ECOOP 2023), LIPIcs, Vol. 263, pp. 41:1–41:27,\n2023, DOI: \u003chttps://doi.org/10.4230/LIPIcs.ECOOP.2023.41\u003e.\n\n## Example\n```\ninclude \"def.dlr\";\nfunproto puts (str a;) i32;\ndefun main () i32 {\n  puts \"Hello, world!\";\n};\n```\n\n## Macro Example\nThis is the current implementation of the `not` operator as a macro:\n```\ndefun lower-not ((rtv a)) rtv\n  (make-twin-rtv (LLVMBuildNot bldr (unwrap-llvm-value a) \"not\") a);\ndefmacro not\n  (lower-not (eval (car args)));\n```\n\nThis defines `not` as a macro, a function that is called at compile-time, that\nis passed a list of arguments and that can generate code.\n\n`not` does so by evaluating its first argument (read: generating run-time code\nfor evaluation of its first argument) and then calling into a regular function\ncalled `lower-not` which calls `LLVMBuildNot` and generates type information\nfor the front-end.\n\n## Dependencies\n* Mac OS/Linux (BSD might work)\n* LLVM 12+\n\n## Compiling it\nJust type `make`. You may need to specify the environment variables `CC`, `CXX` and `LLVMPREFIX`.\n\nIf you encounter any compiler errors, try running `make report` or use another version of LLVM.\n\n## Examples\nYou can find some examples -- including a pong implementation and a REPL for testing --\nin the example folder.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fshenniger%2Fdolorem","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fshenniger%2Fdolorem","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fshenniger%2Fdolorem/lists"}