{"id":15784880,"url":"https://github.com/jzwood/portcullis","last_synced_at":"2025-06-25T09:33:26.876Z","repository":{"id":37289804,"uuid":"424040155","full_name":"jzwood/portcullis","owner":"jzwood","description":"A minimalist / functional / dataflow programming language","archived":false,"fork":false,"pushed_at":"2024-05-01T00:50:09.000Z","size":2335,"stargazers_count":13,"open_issues_count":1,"forks_count":1,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-06-24T23:48:50.290Z","etag":null,"topics":["compilers","javascript","language","lua","portcullis","programming-language","python"],"latest_commit_sha":null,"homepage":"https://github.com/jzwood/portcullis","language":"Haskell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"bsd-3-clause","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/jzwood.png","metadata":{"files":{"readme":"README.md","changelog":"ChangeLog.md","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}},"created_at":"2021-11-03T00:24:12.000Z","updated_at":"2024-10-08T05:23:29.000Z","dependencies_parsed_at":"2023-10-02T20:46:30.025Z","dependency_job_id":"a7c9b5b7-c931-47c5-b7e3-6e21122f197f","html_url":"https://github.com/jzwood/portcullis","commit_stats":{"total_commits":316,"total_committers":1,"mean_commits":316.0,"dds":0.0,"last_synced_commit":"d3f7170d515908aca6c95af445d220eca21b45a2"},"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/jzwood/portcullis","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jzwood%2Fportcullis","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jzwood%2Fportcullis/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jzwood%2Fportcullis/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jzwood%2Fportcullis/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jzwood","download_url":"https://codeload.github.com/jzwood/portcullis/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jzwood%2Fportcullis/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":261844738,"owners_count":23218414,"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":["compilers","javascript","language","lua","portcullis","programming-language","python"],"created_at":"2024-10-04T20:06:12.233Z","updated_at":"2025-06-25T09:33:26.821Z","avatar_url":"https://github.com/jzwood.png","language":"Haskell","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003cp align=\"center\"\u003e\n\t\u003cimg src=\"./assets/logo.svg\" width=\"150\"/\u003e\n\u003c/p\u003e\n\n\u003cp align=\"center\"\u003e\n\t\u003ch1 align=\"center\"\u003ePortcullis\u003c/h1\u003e\n  \u003ch4 align=\"center\"\u003eA minimalist / functional / dataflow programming language.\u003c/h4\u003e\n\u003c/p\u003e\n\nfib.po\n\n\u003cimg\n  src=\"./assets/fib.po.png\"\n  alt=\"portcullis source code for Fibonacci function\"\n  title=\"portcullis implementation of n fibonacci number\"\n  style=\"width: 100%; max-width: 500px;\"\n/\u003e\n\ncompiles to fib.js\n\n```js\n// signature: (Num -\u003e Num)\nexport function fib(n) {\n  return (\n    _lte_(n)(1.0) ? 1.0 : _plus_(fib(_minus_(n)(1.0)))(fib(_minus_(n)(2.0)))\n  );\n}\n```\n\ncompiles to fib.py\n\n```py\n# signature: (Num -\u003e Num)\ndef fib(n):\n  return (1.0 if _lte_(n)(1.0) else _plus_(fib(_minus_(n)(1.0)))(fib(_minus_(n)(2.0))))\n```\n\ncompiles to fib.lua\n\n```lua\n-- signature: (Num -\u003e Num)\nfunction fib(n)\n  return (_lte_(n)(1.0) \u003e 0 and 1.0 or _plus_(fib(_minus_(n)(1.0)))(fib(_minus_(n)(2.0))))\nend\n```\n\n\u003chr\u003e\n\nfizzbuzz.po\n\n\u003cimg\n  src=\"./assets/fizzbuzz.po.png\"\n  alt=\"portcullis source code for Fizzbuzz algorithm\"\n  title=\"portcullis source code for Fizzbuzz algorithm\"\n  style=\"width: 100%; max-width: 500px;\"\n/\u003e\n\n```\nDeno 1.22.0\nexit using ctrl+d or close()\n\u003e fizzbuzz(20)\n[\n   1,  2, -1,  4, -2, -1,  7,\n   8, -1, -2, 11, -1, 13, 14,\n  -3, 16, 17, -1, 19, -2\n]\n```\n\n## About\n\nI wrote the compiler for Portcullis purely for my own education and amusement. Painfully specific goals guided the development of this project and account for both the language features I chose to include as well as omit.\n\nSome of these goals include\n- minimalism\n- [purity](https://en.wikipedia.org/wiki/Purely_functional_programming)\n- [parametric polymorphism](https://en.wikipedia.org/wiki/Parametric_polymorphism)\n\n## More\n- [Introduction](./docs/About.md)\n- [Language Guide](./docs/Docs.md)\n- [Developer Guide](./docs/Dev.md)\n- [Vim Syntax Highlighting](https://github.com/jzwood/portcullis-vim)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjzwood%2Fportcullis","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjzwood%2Fportcullis","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjzwood%2Fportcullis/lists"}