{"id":23978591,"url":"https://github.com/simmsb/p4haskell","last_synced_at":"2026-05-13T08:36:34.166Z","repository":{"id":94007373,"uuid":"211343171","full_name":"simmsb/p4haskell","owner":"simmsb","description":"P4 backend in haskell","archived":false,"fork":false,"pushed_at":"2021-03-19T00:02:19.000Z","size":909,"stargazers_count":3,"open_issues_count":0,"forks_count":1,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-01-07T08:19:21.408Z","etag":null,"topics":["compiler","cuda","gpu","p4","p4c","p4language"],"latest_commit_sha":null,"homepage":"","language":"Haskell","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/simmsb.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-09-27T14:57:10.000Z","updated_at":"2023-01-29T04:48:54.000Z","dependencies_parsed_at":null,"dependency_job_id":"8ba6698e-7de7-4c3e-9017-06fd33d85a3e","html_url":"https://github.com/simmsb/p4haskell","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/simmsb%2Fp4haskell","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/simmsb%2Fp4haskell/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/simmsb%2Fp4haskell/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/simmsb%2Fp4haskell/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/simmsb","download_url":"https://codeload.github.com/simmsb/p4haskell/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":240540554,"owners_count":19817791,"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","cuda","gpu","p4","p4c","p4language"],"created_at":"2025-01-07T08:18:53.193Z","updated_at":"2026-05-13T08:36:29.142Z","avatar_url":"https://github.com/simmsb.png","language":"Haskell","funding_links":[],"categories":[],"sub_categories":[],"readme":"# p4haskell\n\nA GPU-accelerated back end for the PR programming language.\n\n# Usage\n\n1. The first step is to compile a p4 program with the GPU back end present in my\n   fork of the p4c compiler[^1], and dump the AST, for example:\n   `./build/backends/gpu/p4c-gpu port-forwarding.p4 --toJSON port-forward.json`\n2. The next step is to use this compiler to generate a CUDA file, for example:\n   `stack run -- -i firewall.json \u003e kernel.cu`\n3. The final step is to place this CUDA file into the runtime[^2] as\n   `src/kernel.cu`, and compile the runtime using `cargo build --release`. The\n   runtime can then be executed using `sudo env\n   LD_LIBRARY_PATH=\"$LD_LIBRARY_PATH:/usr/local/lib\"\n   target/release/dpdk-gpu-test -s payload_1024.pcap`\n\n[^1]: https://github.com/simmsb/p4c\n\n[^2]: https://github.com/simmsb/dpdk-testing-stuff\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsimmsb%2Fp4haskell","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsimmsb%2Fp4haskell","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsimmsb%2Fp4haskell/lists"}