{"id":16199702,"url":"https://github.com/zhiyiyo/cs144","last_synced_at":"2025-07-31T00:07:45.195Z","repository":{"id":158567256,"uuid":"629795221","full_name":"zhiyiYo/CS144","owner":"zhiyiYo","description":"CS144 Lab Assignments","archived":false,"fork":false,"pushed_at":"2023-05-06T09:06:57.000Z","size":399,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-04-07T17:48:48.005Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"https://www.cnblogs.com/zhiyiYo/tag/CS144/","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/zhiyiYo.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":"2023-04-19T03:27:58.000Z","updated_at":"2025-03-19T05:58:52.000Z","dependencies_parsed_at":null,"dependency_job_id":"d8e10e1d-312a-40f3-9feb-f841705bde04","html_url":"https://github.com/zhiyiYo/CS144","commit_stats":{"total_commits":15,"total_committers":3,"mean_commits":5.0,"dds":0.5333333333333333,"last_synced_commit":"dfb2163ccc30b18904e1244172400a26af8ffcd9"},"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/zhiyiYo/CS144","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zhiyiYo%2FCS144","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zhiyiYo%2FCS144/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zhiyiYo%2FCS144/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zhiyiYo%2FCS144/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/zhiyiYo","download_url":"https://codeload.github.com/zhiyiYo/CS144/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zhiyiYo%2FCS144/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":267962738,"owners_count":24172741,"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","status":"online","status_checked_at":"2025-07-30T02:00:09.044Z","response_time":70,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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-10T09:27:19.155Z","updated_at":"2025-07-31T00:07:45.168Z","avatar_url":"https://github.com/zhiyiYo.png","language":"C++","funding_links":[],"categories":[],"sub_categories":[],"readme":"For build prereqs, see [the CS144 VM setup instructions](https://web.stanford.edu/class/cs144/vm_howto).\n\n## Sponge quickstart\n\nTo set up your build directory:\n\n\t$ mkdir -p \u003cpath/to/sponge\u003e/build\n\t$ cd \u003cpath/to/sponge\u003e/build\n\t$ cmake ..\n\n**Note:** all further commands listed below should be run from the `build` dir.\n\nTo build:\n\n    $ make\n\nYou can use the `-j` switch to build in parallel, e.g.,\n\n    $ make -j$(nproc)\n\nTo test (after building; make sure you've got the [build prereqs](https://web.stanford.edu/class/cs144/vm_howto) installed!)\n\n    $ make check\n\nThe first time you run `make check`, it will run `sudo` to configure two\n[TUN](https://www.kernel.org/doc/Documentation/networking/tuntap.txt) devices for use during\ntesting.\n\n### build options\n\nYou can specify a different compiler when you run cmake:\n\n    $ CC=clang CXX=clang++ cmake ..\n\nYou can also specify `CLANG_TIDY=` or `CLANG_FORMAT=` (see \"other useful targets\", below).\n\nSponge's build system supports several different build targets. By default, cmake chooses the `Release`\ntarget, which enables the usual optimizations. The `Debug` target enables debugging and reduces the\nlevel of optimization. To choose the `Debug` target:\n\n    $ cmake .. -DCMAKE_BUILD_TYPE=Debug\n\nThe following targets are supported:\n\n- `Release` - optimizations\n- `Debug` - debug symbols and `-Og`\n- `RelASan` - release build with [ASan](https://en.wikipedia.org/wiki/AddressSanitizer) and\n  [UBSan](https://developers.redhat.com/blog/2014/10/16/gcc-undefined-behavior-sanitizer-ubsan/)\n- `RelTSan` - release build with\n  [ThreadSan](https://developer.mozilla.org/en-US/docs/Mozilla/Projects/Thread_Sanitizer)\n- `DebugASan` - debug build with ASan and UBSan\n- `DebugTSan` - debug build with ThreadSan\n\nOf course, you can combine all of the above, e.g.,\n\n    $ CLANG_TIDY=clang-tidy-6.0 CXX=clang++-6.0 .. -DCMAKE_BUILD_TYPE=Debug\n\n**Note:** if you want to change `CC`, `CXX`, `CLANG_TIDY`, or `CLANG_FORMAT`, you need to remove\n`build/CMakeCache.txt` and re-run cmake. (This isn't necessary for `CMAKE_BUILD_TYPE`.)\n\n### other useful targets\n\nTo generate documentation (you'll need `doxygen`; output will be in `build/doc/`):\n\n    $ make doc\n\nTo lint (you'll need `clang-tidy`):\n\n    $ make -j$(nproc) tidy\n\nTo run cppcheck (you'll need `cppcheck`):\n\n    $ make cppcheck\n\nTo format (you'll need `clang-format`):\n\n    $ make format\n\nTo see all available targets,\n\n    $ make help\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzhiyiyo%2Fcs144","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fzhiyiyo%2Fcs144","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzhiyiyo%2Fcs144/lists"}