{"id":21447196,"url":"https://github.com/githubprankster/sock","last_synced_at":"2025-08-12T18:39:19.092Z","repository":{"id":157731324,"uuid":"265944964","full_name":"GithubPrankster/sock","owner":"GithubPrankster","description":"The reasonably usable 16 instruction bytecode vm.","archived":false,"fork":false,"pushed_at":"2020-05-21T20:48:44.000Z","size":13,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-01-23T11:34:22.396Z","etag":null,"topics":["bytecode-virtual-machine","bytecode-vm","c","challenge-project","minimal"],"latest_commit_sha":null,"homepage":"","language":"C","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/GithubPrankster.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,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2020-05-21T20:27:19.000Z","updated_at":"2022-08-12T07:08:22.000Z","dependencies_parsed_at":"2024-07-21T06:00:16.701Z","dependency_job_id":null,"html_url":"https://github.com/GithubPrankster/sock","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/GithubPrankster%2Fsock","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/GithubPrankster%2Fsock/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/GithubPrankster%2Fsock/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/GithubPrankster%2Fsock/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/GithubPrankster","download_url":"https://codeload.github.com/GithubPrankster/sock/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243960449,"owners_count":20375101,"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":["bytecode-virtual-machine","bytecode-vm","c","challenge-project","minimal"],"created_at":"2024-11-23T03:09:20.253Z","updated_at":"2025-03-17T01:43:40.763Z","avatar_url":"https://github.com/GithubPrankster.png","language":"C","readme":"# Stochastically Observed Computing Kaleidoscope\nSock is a bytecode vm that features just enough to be able to do \"meaningful\" computing of things. Constructed entirely in C, \nusing 4 standard libraries and in around ~140 LOC.\n## Compilation \u0026 Duration\n`gcc -static -march=native -mtune=native -s sock.c -o sock`\n\nAs compiled with GCC 10.0.1, `bdver2` architecture, 16GB RAM, running `time ./sock test.sock` yielded:\n```\nreal    0m0.042s\nuser    0m0.015s\nsys     0m0.015s  \n```\n## The Features\n* 16 instructions\n* 2048 bytes of memory\n* 4 8-bit registers\n* Subroutine support (only 1 level)\n* Around 4 modes of operation (number, register, memory, memory number, and some mixing)\n* VM halting through exploitation of return instruction (0a, turned to 3a will halt operation)\n* File reading\n* Jumping, program self-modification potential\n## In Action\n![scoobis](https://cdn.discordapp.com/attachments/517928649727541248/713124772082614302/notepad_2020-05-21_17-09-58.png)\n\n### But why?\nI challenged myself to write this in one day. I love this sorta stuff xD\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgithubprankster%2Fsock","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fgithubprankster%2Fsock","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgithubprankster%2Fsock/lists"}