{"id":24388235,"url":"https://github.com/frewtypebbles/bytecode-virtual-machine-python-prototype","last_synced_at":"2026-04-14T01:31:39.449Z","repository":{"id":227992335,"uuid":"772882162","full_name":"FrewtyPebbles/Bytecode-Virtual-Machine-Python-Prototype","owner":"FrewtyPebbles","description":null,"archived":false,"fork":false,"pushed_at":"2024-03-16T06:31:07.000Z","size":24,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-01-19T13:56:42.226Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"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/FrewtyPebbles.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}},"created_at":"2024-03-16T06:12:10.000Z","updated_at":"2024-06-12T21:59:36.000Z","dependencies_parsed_at":"2024-03-22T14:00:22.903Z","dependency_job_id":null,"html_url":"https://github.com/FrewtyPebbles/Bytecode-Virtual-Machine-Python-Prototype","commit_stats":null,"previous_names":["frewtypebbles/bytecode-virtual-machine","frewtypebbles/bytecode-virtual-machine-python-prototype"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/FrewtyPebbles%2FBytecode-Virtual-Machine-Python-Prototype","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/FrewtyPebbles%2FBytecode-Virtual-Machine-Python-Prototype/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/FrewtyPebbles%2FBytecode-Virtual-Machine-Python-Prototype/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/FrewtyPebbles%2FBytecode-Virtual-Machine-Python-Prototype/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/FrewtyPebbles","download_url":"https://codeload.github.com/FrewtyPebbles/Bytecode-Virtual-Machine-Python-Prototype/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243294931,"owners_count":20268308,"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":[],"created_at":"2025-01-19T13:56:43.902Z","updated_at":"2025-12-29T01:46:04.336Z","avatar_url":"https://github.com/FrewtyPebbles.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Bytecode Interpreter/Compiler Implemented in a Bytecode Interpreted/Compiled Language\n\n\u003e This program compiles LLVM-IR style instructions into proprietary bytecode and interprets said proprietary bytecode.\n\nThings to consider:\n\n - This was a 2 day project I made for fun, therefore there are likely bugs.\n\n - This is not meant to have any practical use case and strictly exists to be redundant.\n\n - Please dont take this seriously.\n\n## Example Program\n\nThis program performs math operations on an initial input value.  Kinda like a bad calculator where all of the operations are ordered from left to right.\n\n```py\n# Calculates numbers with unordered operations.\nNUM result 0\nNUM curr_val 0\n\nSTR eq_disp \"\"\n\nSTR add_str \"+\"\nSTR sub_str \"-\"\nSTR mul_str \"*\"\nSTR div_str \"/\"\nSTR eq_str \"=\"\nSTR input \"\"\nSTR op \"\"\n\n# Helper blocks\nBLOCK add\n    ADD result result curr_val\nJUMP get_operation\n\nBLOCK sub\n    SUB result result curr_val\nJUMP get_operation\n\nBLOCK mul\n    MUL result result curr_val\nJUMP get_operation\n\nBLOCK div\n    DIV result result curr_val\nJUMP get_operation\n\nBLOCK get_operation\n    STDOUT eq_disp\n    STDIN op\n    EQ eq_cond op eq_str\n    COND_JUMP eq eq_cond\n    ADD eq_disp eq_disp op\nJUMP get_input_num\n\nBLOCK get_input_num\n    STDOUT eq_disp\n    STDIN input\n    ADD eq_disp eq_disp input\n    CAST_NUM curr_val input\nJUMP conds\n\nSTART\n    STDIN original_val\n    ADD eq_disp eq_disp original_val\n    CAST_NUM result original_val\n    \n    JUMP get_operation\n\n    BLOCK conds\n        # Operators\n        ## add\n        EQ add_cond op add_str\n        COND_JUMP add add_cond\n\n        ## sub\n        EQ sub_cond op sub_str\n        COND_JUMP sub sub_cond\n\n        ## mul\n        EQ mul_cond op mul_str\n        COND_JUMP mul mul_cond\n\n        ## div\n        EQ div_cond op div_str\n        COND_JUMP div div_cond\n\n    BLOCK eq\n        STR str_result \"{} = {}\\n\"\n        FMT str_result str_result eq_disp result\n        STDOUT str_result\n```","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffrewtypebbles%2Fbytecode-virtual-machine-python-prototype","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ffrewtypebbles%2Fbytecode-virtual-machine-python-prototype","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffrewtypebbles%2Fbytecode-virtual-machine-python-prototype/lists"}