{"id":17930834,"url":"https://github.com/izo0x90/snake-toy-vm","last_synced_at":"2026-04-24T23:31:58.160Z","repository":{"id":259774699,"uuid":"879393784","full_name":"izo0x90/snake-toy-vm","owner":"izo0x90","description":"A generalized/ multi-arch. toy virtual machine, assembler and debugger written in Python. Just a fun project in python building a classical computer emulator.","archived":false,"fork":false,"pushed_at":"2024-11-11T23:27:20.000Z","size":7743,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-06-16T04:18:57.676Z","etag":null,"topics":["assembler","assembly","assembly-language","compiler","computer-science","custom-language","debbuger","emulation","emulator","emulators","low-level","low-level-programming","programming-language","programming-language-theory","programming-languages","system-programming","virtual-machine","virtualization"],"latest_commit_sha":null,"homepage":"","language":"Python","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/izo0x90.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":"2024-10-27T19:31:06.000Z","updated_at":"2024-11-11T23:20:28.000Z","dependencies_parsed_at":null,"dependency_job_id":"91e939fd-df4a-400c-b4bd-cd7e88aefc7e","html_url":"https://github.com/izo0x90/snake-toy-vm","commit_stats":null,"previous_names":["izo0x90/snake-toy-vm"],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/izo0x90/snake-toy-vm","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/izo0x90%2Fsnake-toy-vm","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/izo0x90%2Fsnake-toy-vm/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/izo0x90%2Fsnake-toy-vm/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/izo0x90%2Fsnake-toy-vm/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/izo0x90","download_url":"https://codeload.github.com/izo0x90/snake-toy-vm/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/izo0x90%2Fsnake-toy-vm/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32245053,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-24T13:21:15.438Z","status":"ssl_error","status_checked_at":"2026-04-24T13:21:15.005Z","response_time":64,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":["assembler","assembly","assembly-language","compiler","computer-science","custom-language","debbuger","emulation","emulator","emulators","low-level","low-level-programming","programming-language","programming-language-theory","programming-languages","system-programming","virtual-machine","virtualization"],"created_at":"2024-10-28T21:18:09.455Z","updated_at":"2026-04-24T23:31:58.146Z","avatar_url":"https://github.com/izo0x90.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003cp align=\"center\"\u003e\n  \u003cimg src=\"assests/logo2.png\" width=\"820\"\u003e\n\u003c/p\u003e\n\n# Snake toy VM :snake:\n\nA generalized toy virtual machine, assembler, debugger/ UI written in python. Intended as just a fun time waster over a few weekends for myself, and also somehow we dragged in [@zayfod](https://github.com/zayfod) into this too, but maybe there is some educational value to others?\n\n- Keeping things simple, illustrating basic ideas behind classical computing, emulation and VMs\n- Modular way to define architecture/ VMs\n  - Allows for definition of custom assembly sytaxes\n  - Swapping/ extending instruction sets\n- VMs currently in project\n  - Toy VM (Completed) ✔️\n  - Brainfuck (Completed) ✔️\n  - F4 MISc (Completed) ✔️\n  - 8 bit PIC (In progress)\n \n*It's all virtual machines in virtual machins in virtual machines ... and soon Transformer models infrencing the output of virtual machines ... - Probaly someone*\n\n\u003cp align=\"center\"\u003e\n  \u003cimg src=\"./assests/screen_shot_2024_11_11.png\" width=\"400\"\u003e\n  \u003cimg src=\"./assests/screen_shot_2024_11_11b.png\" width=\"400\"\u003e\n\u003c/p\u003e\n\n## Why?\nWriting a VM in a language that runs in a VM and has no business having a VM written in :feelsgood:! Possibly educational for someone :suspect:? If you grew up learning to code in the 90's you get it.\n\n## Install\n\n### Pre\nClone repo\n\nInstall python 3.13 \n\nInstall `uv` (Optional):\n```\npip install uv\n```\n\nInstall deps:\nSetup virtual env., and install deps. (Uses `uv`)\n```\nmake dev_build_env\n```\nor\n```\nuv pip install -r requirements.txt\n```\nor\n```\npip install -r requirements.txt\n```\n\n## Run\nLoad with only default \"Toy VM\" virtual machine:\n```\npython main.py\n```\nLoad with addition virtual machines define in python modules:\n```\npython main.py 8_bit_pic f4_misc brainfuck\n```\nor you can pass-in the same arch. module multiple times to get more than one instance of the same VM type\n```\npython main.py toy_vm toy_vm\n```\nLoad with debug logging, first arg. must be `--debug`\n```\npython main.py --debug toy_vm toy_vm\n```\n\n## Contribute\nAll check/ auto-fixes:\n```\nmake check-all\n```\n\nLint:\n```\nmake lint\n```\nor \n```\nruff check\n```\n\nFormat:\n```\nmake format\n```\nor\n```\nruff format\n```\n\nType checks:\n```\nmake type-check\n```\nor\n```\npyright .\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fizo0x90%2Fsnake-toy-vm","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fizo0x90%2Fsnake-toy-vm","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fizo0x90%2Fsnake-toy-vm/lists"}