{"id":17676792,"url":"https://github.com/lukeprior/comp1511-guide","last_synced_at":"2026-02-08T23:37:03.492Z","repository":{"id":108207222,"uuid":"478342443","full_name":"LukePrior/comp1511-guide","owner":"LukePrior","description":"The Ultimate COMP1511 Guide!","archived":false,"fork":false,"pushed_at":"2022-04-09T13:11:35.000Z","size":15878,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-02-05T19:38:19.537Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"https://comp1511-guide.vercel.app/","language":null,"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/LukePrior.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":"2022-04-06T00:13:24.000Z","updated_at":"2023-06-14T09:21:11.000Z","dependencies_parsed_at":null,"dependency_job_id":"1c4dcf6b-631f-411a-8d6d-0d9a40e0a36e","html_url":"https://github.com/LukePrior/comp1511-guide","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/LukePrior%2Fcomp1511-guide","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/LukePrior%2Fcomp1511-guide/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/LukePrior%2Fcomp1511-guide/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/LukePrior%2Fcomp1511-guide/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/LukePrior","download_url":"https://codeload.github.com/LukePrior/comp1511-guide/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246353456,"owners_count":20763648,"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":[],"created_at":"2024-10-24T07:26:42.802Z","updated_at":"2026-02-08T23:36:58.470Z","avatar_url":"https://github.com/LukePrior.png","language":null,"funding_links":[],"categories":[],"sub_categories":[],"readme":"# Ultimate COMP1511 Guide\n\nI had been interested in experimenting with WebAssembly for some time so I decided to take this oppurtunity to create a proof of concept for a fully self-contained COMP1511 website that can be run offline as a PWA with full C compilation support. We normally write our C code and compile it using dcc or gcc into machine code that our computer can run.\n\nThe web browser cannot run this compiled machine code so a different approach needs to be taken. The underlying tool used by dcc and gcc is the clang compiler which itself is written in C++. There exists a port of clang which has been compiled from C++ to WebAssembly which allows the tool to be run in the browser. This allows us to write, compile, and run C code entirely within our browser without the need for any external servers or programs.\n\nI decided to create a simple website which implements this approach by the week 2 problem sets questions and answers. The website contains the description for each problem along with any hints, examples, and assumptions in expandable modals. There is a dedicated code-editor for each pre-loaded with the neccessaty boilerplate code which you can edit and run. I have also added the ability to import the sample solution along with being able to save the code as a C file to your device and import any file.\n\nI originally had grander ambitions for the site but unfortunately some features had to be scaled back, I originally investigated running cs1511 style in the browser but as the style script is written in Python with certain clang tools as a dependency I could not create a functional WebAssembly version. I made more significant process in using the Artistic Style code formatter which had already been ported to WebAssembly however it was designed as a server side packagae so I have been working with the developer to create a client side version.\n\nI also planned to integrate the tests into the browser as this is a supported feature of the Runno wrapper which I'm using for code compilation and running however a bug exists in the program for testing C code so I have been in touch with the developer to find a fix. The site is a Progressive Web Application and can be installed as an app on a phone or PC which allows it to download and locally store all the required files to compile and run the C code which allows the page to work while offline.\n\nThe page could easily be expanded to include more content and examples if anybody is interested.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flukeprior%2Fcomp1511-guide","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Flukeprior%2Fcomp1511-guide","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flukeprior%2Fcomp1511-guide/lists"}