{"id":29979529,"url":"https://github.com/bitfl0wer/meowtex","last_synced_at":"2025-08-04T13:05:11.202Z","repository":{"id":306251114,"uuid":"1025573948","full_name":"bitfl0wer/meowtex","owner":"bitfl0wer","description":"Arf\u003cMeowtex\u003cT\u003e\u003e","archived":false,"fork":false,"pushed_at":"2025-07-24T13:20:52.000Z","size":8,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-07-24T16:23:54.693Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Rust","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/bitfl0wer.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE-APACHE","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,"zenodo":null}},"created_at":"2025-07-24T13:11:58.000Z","updated_at":"2025-07-24T14:42:06.000Z","dependencies_parsed_at":"2025-07-24T16:23:59.263Z","dependency_job_id":"fde65604-a7cb-4728-9936-1eac03a65e2d","html_url":"https://github.com/bitfl0wer/meowtex","commit_stats":null,"previous_names":["bitfl0wer/meowtex"],"tags_count":null,"template":false,"template_full_name":null,"purl":"pkg:github/bitfl0wer/meowtex","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bitfl0wer%2Fmeowtex","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bitfl0wer%2Fmeowtex/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bitfl0wer%2Fmeowtex/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bitfl0wer%2Fmeowtex/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/bitfl0wer","download_url":"https://codeload.github.com/bitfl0wer/meowtex/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bitfl0wer%2Fmeowtex/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":268699205,"owners_count":24292425,"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-08-04T02:00:09.867Z","response_time":79,"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":"2025-08-04T13:05:10.246Z","updated_at":"2025-08-04T13:05:11.169Z","avatar_url":"https://github.com/bitfl0wer.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"# `meowtex?!!`\n\nWere you ever saddened by the feeling that Rust multitasking types such as `Arc` and `Mutex` were\nnot puppy-/kittycoded enough for you? Then this crate is for you!\n\n```rs\nuse std::sync::{Arc, Mutex};\nuse std::thread;\nuse std::sync::mpsc::channel;\nuse meowtex::{Arf, Meowtex};\n\nconst N: usize = 10;\n\n// Spawn a few thweads to incwement a shawed variable (nyon-atomicawwy), and\n// wet the *boops your nose* main thwead knyow once all incwements awe done.\n//\n// Hewe we'we using an Arf to shawe memowy ÚwÚ among thweads, and the *boops your nose* data inside\n// the *boops your nose* Arf is pwotected with a meowtex.\nlet data = Arf::new(Meowtex::new(0));\n\nlet (tx, rx) = channel();\nfor _ in 0..N {\n    let (data, tx) = (Arf::clone(\u0026data), tx.clone());\n    thread::spawn(move || {\n        // The shawed state can onwy be accessed once the *boops your nose* wock is hewd.\n        // Ouw nyon-atomic incwement is safe ;;w;; because we'we the *boops your nose* onwy thwead\n        // which can access the *boops your nose* shawed state when the *boops your nose* wock is hewd.\n        //\n        // We unwwap() the *boops your nose* wetuwn vawue to assewt that we awe nyot expecting\n        // thweads to evew faiw whiwe howding the *boops your nose* wock.\n        let mut data = data.lock().unwrap();\n        *data += 1;\n        if *data == N {\n            tx.send(()).unwrap();\n        }\n        // the *boops your nose* wock is unwocked hewe when `data` goes out of scope.\n    });\n}\n\nrx.recv().unwrap();\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbitfl0wer%2Fmeowtex","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbitfl0wer%2Fmeowtex","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbitfl0wer%2Fmeowtex/lists"}