{"id":14235805,"url":"https://github.com/alcover/lacy","last_synced_at":"2025-08-11T00:32:54.577Z","repository":{"id":134170642,"uuid":"273594616","full_name":"alcover/lacy","owner":"alcover","description":"compile/run for the lazy","archived":false,"fork":false,"pushed_at":"2020-07-10T16:08:38.000Z","size":48,"stargazers_count":82,"open_issues_count":0,"forks_count":4,"subscribers_count":2,"default_branch":"master","last_synced_at":"2024-12-13T01:34:32.892Z","etag":null,"topics":["c","compile","linux"],"latest_commit_sha":null,"homepage":"","language":"Shell","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/alcover.png","metadata":{"files":{"readme":"README.md","changelog":null,"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}},"created_at":"2020-06-19T22:04:27.000Z","updated_at":"2024-05-13T22:34:52.000Z","dependencies_parsed_at":"2023-10-20T16:31:09.169Z","dependency_job_id":null,"html_url":"https://github.com/alcover/lacy","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/alcover/lacy","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/alcover%2Flacy","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/alcover%2Flacy/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/alcover%2Flacy/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/alcover%2Flacy/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/alcover","download_url":"https://codeload.github.com/alcover/lacy/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/alcover%2Flacy/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":269813621,"owners_count":24479340,"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-10T02:00:08.965Z","response_time":71,"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":["c","compile","linux"],"created_at":"2024-08-20T21:02:22.279Z","updated_at":"2025-08-11T00:32:54.270Z","avatar_url":"https://github.com/alcover.png","language":"Shell","funding_links":[],"categories":["Shell"],"sub_categories":[],"readme":"![logo](assets/logo.png)\n\n# lacy - *Compile/run for the lazy*\n\n(Linux only)\n\nWant to test a few lines of C ?  \n\nNormally you'd have to :  \n- create `test.c`  \n- write headers `#include \u003cstdfoo.h\u003e #include \u003cstdbar.h\u003e...`    \n- write entry-point `int main (int argc ...) {}`  \n- write your code\n- save  \n- finally run `gcc test.c -Wall -Wbar \u0026\u0026 ./a.out`  \n\nForgot a header ? To link math (`-lm`) ?  \nBad luck... Now you have to edit `test.c`...      \n\nNo such hassle with **lacy** :  \n```\n$ lacy  \nint i = pow(2,8);  \nprintf (\"%d\\n\", i);  \n[CTRL+D]  \n256\n```\n  \n**lacy** can also run files.  \n`$ lacy hello.c`  \n\nIf your code has no `main()`, **lacy** adds classic headers and puts your statements into `main()`.\n\n## Usage\n\n#### File :\n```\n$ lacy hello.c  \nHello!\n```  \n\n#### File + arguments :\n```\n$ lacy hello.c Bob    \nHello Bob!\n```\n\n#### Pipe :    \n```\n$ cat hello.c | lacy  \nHello!\n```\n\n#### Prompt :  \n```\n$ lacy  \nprintf (\"%s\\n\", \"Hello!\");  \n[CTRL+D]  \nHello!\n```\n\n#### Inline :\n```\n$ lacy 'printf (\"%s\\n\", \"Hello!\");'  \nHello!\n```\n\n#### Print template :\n`$ lacy \u003e new_project.c`    (gets you a fresh all-included source)  \n\n## Options\n\n`$ lacy -h`    (help)  \n`$ lacy -v`    (version)","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Falcover%2Flacy","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Falcover%2Flacy","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Falcover%2Flacy/lists"}