{"id":23196240,"url":"https://github.com/mattjquinn/jcompiler","last_synced_at":"2025-04-13T06:41:31.519Z","repository":{"id":34290171,"uuid":"172612678","full_name":"mattjquinn/jcompiler","owner":"mattjquinn","description":"A compiler for the J programming language","archived":false,"fork":false,"pushed_at":"2024-12-22T16:20:47.000Z","size":13036,"stargazers_count":33,"open_issues_count":26,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-03-24T11:46:00.005Z","etag":null,"topics":["arm","c","j","llvm","rust"],"latest_commit_sha":null,"homepage":"","language":"Rust","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/mattjquinn.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":"2019-02-26T01:14:25.000Z","updated_at":"2024-12-22T16:22:43.000Z","dependencies_parsed_at":"2025-02-25T09:21:19.416Z","dependency_job_id":null,"html_url":"https://github.com/mattjquinn/jcompiler","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mattjquinn%2Fjcompiler","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mattjquinn%2Fjcompiler/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mattjquinn%2Fjcompiler/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mattjquinn%2Fjcompiler/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mattjquinn","download_url":"https://codeload.github.com/mattjquinn/jcompiler/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248675434,"owners_count":21143763,"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":["arm","c","j","llvm","rust"],"created_at":"2024-12-18T14:17:29.206Z","updated_at":"2025-04-13T06:41:31.498Z","avatar_url":"https://github.com/mattjquinn.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"# jcompiler\n\n[![CircleCI](https://circleci.com/gh/mattjquinn/jcompiler.svg?style=shield)](https://circleci.com/gh/mattjquinn/jcompiler)\n[![Crates.io](https://img.shields.io/crates/v/jcompiler.svg?color=green)](https://crates.io/crates/jcompiler)\n\nA compiler for [the J array programming language](https://www.jsoftware.com).\n\n## Getting Started\n\nTo build jCompiler, you will need:\n* a stable version of Rust\n* LLVM 10 and Clang 10 (see [scripts/install-llvm-backend-dependencies.sh](scripts/install-llvm-backend-dependencies.sh))\n\nTo develop jCompiler, you will want to run the tests, which introduce additional dependencies on:\n* `ijconsole`, the J language interpreter (see [scripts/install-common-dependencies.sh](scripts/install-common-dependencies.sh))\n* Linaro, to cross-assemble and link binaries on an x86_64 development machine, and `qemu` to run them (see [scripts/install-arm-backend-dependencies.sh](scripts/install-arm-backend-dependencies.sh))\n\nThe [CircleCI job definitions in this repo](.circleci/config.yml) invoke the scripts mentioned above\nwhen preparing test environments, so they are the authoritative resources as to what exactly is required.\n\n## Using the LLVM Backend\n\n```\n$ cargo build --release\n$ target/release/jcompiler --backend=llvm \u003cjfile\u003e.ijs\n$ ./\u003cjfile\u003e\n```\n\nBy default, LLVM use the target architecture of the host machine.\nYou can explicitly choose a target architecture using LLVM target triples:\n\n```\n$ target/release/jcompiler \u003cjfile\u003e.ijs --target=x86_64-pc-linux-gnu\n```\n\n## Using the ARM Backend\n\n```\n$ cargo build --release\n$ target/release/jcompiler --backend=arm \u003cjfile\u003e.ijs\n$ ./\u003cjfile\u003e\n```\n\nNote: the output emitted by this backend most closely matches\nthe godbolt.org configuration \"ARM gcc 7.2.1 (none)\" with options \"-O0 -mfloat-abi=hard\".\n\n## Examples\n\nYou can find many examples of J programs in the `jlang_programs` directory.\nAs one example, compiling this J program:\n\n```j\n'Some array operations...'\n*: 1 2 3 4\nmatrix =: 2 3 $ 5 + 2 3 4 5 6 7\n10 * matrix\n1 + 10 20 30\n1 2 3 + 10\nresidues =: 2 | 0 1 2 3 4 5 6 7\nresidues\n```\n\nwith jcompiler and running the compiled binary will yield the following on stdout:\n\n```j\nSome array operations...\n1 4 9 16\n 70  80  90\n100 110 120\n11 21 31\n11 12 13\n0 1 0 1 0 1 0 1\n```\n\n## Documentation\n\nThe API reference for the master branch is\n[available here](https://mattjquinn.github.io/jcompiler/master/jcompiler/index.html),\nbut is out-of-date and incomplete at the moment.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmattjquinn%2Fjcompiler","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmattjquinn%2Fjcompiler","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmattjquinn%2Fjcompiler/lists"}