{"id":20575551,"url":"https://github.com/janbaig/bytecode-virtual-machine","last_synced_at":"2025-03-06T10:45:59.868Z","repository":{"id":63595387,"uuid":"568270148","full_name":"janbaig/bytecode-virtual-machine","owner":"janbaig","description":"Implementing A Bytecode Virtual Machine","archived":false,"fork":false,"pushed_at":"2023-09-01T13:12:56.000Z","size":94,"stargazers_count":1,"open_issues_count":0,"forks_count":2,"subscribers_count":3,"default_branch":"main","last_synced_at":"2025-01-16T21:50:46.974Z","etag":null,"topics":["bytecode-compiler","interpreter","virtual-machine"],"latest_commit_sha":null,"homepage":"","language":"C","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/janbaig.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"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":"2022-11-20T01:17:38.000Z","updated_at":"2025-01-07T02:56:22.000Z","dependencies_parsed_at":"2025-01-16T21:41:52.143Z","dependency_job_id":"9032aa18-f8ec-4c64-a821-952c4b7ae522","html_url":"https://github.com/janbaig/bytecode-virtual-machine","commit_stats":null,"previous_names":["janbaig/bytecode-virtual-machine"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/janbaig%2Fbytecode-virtual-machine","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/janbaig%2Fbytecode-virtual-machine/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/janbaig%2Fbytecode-virtual-machine/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/janbaig%2Fbytecode-virtual-machine/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/janbaig","download_url":"https://codeload.github.com/janbaig/bytecode-virtual-machine/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":242196308,"owners_count":20087765,"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-compiler","interpreter","virtual-machine"],"created_at":"2024-11-16T05:39:34.685Z","updated_at":"2025-03-06T10:45:59.847Z","avatar_url":"https://github.com/janbaig.png","language":"C","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Bytecode-Virtual-Machine\n\nA Bytecode Virtual Machine (VM) written in `C`. To avoid the overhead of traversing an AST, a bytecode representation is introduced. The `scanner` outputs tokens which are later given as input to the `compiler` to generate bytecode - similar to assembly code although magnitudes simpler with a limited set of instructions. The generated bytecode is later given as input to the `VM` that then executes and displays the output.   \n\n## Challenges Completed\n- [x] Chapter 14 - Chunks of Bytecode \n- [x] Chapter 15 - A Virtual Machine \n- [ ] Chapter 16 - Scanning on Demand\n- [ ] Chapter 17 - Compiling Expressions\n- [ ] Chapter 18 - Types of Values\n\nAll solutions can be found in the `./challenges` folder\n\n## Potential Improvements to Solutions\n\n- [ ] (Chp15/#4) - Look into ways to more accurately measure performance. How is the memory/CPU affected? \n- [ ] (Chp16/#1) - Understand how [Wren](https://github.com/wren-lang/wren/tree/8fae8e4f1e490888e2cc9b2ea6b8e0d0ff9dd60f) and other languages interpret string interpolations. Maybe add support for it later on.\n\n\u003c/br\u003e\n\n\u003c!-- \n- [ ] Chapter 17 - Compiling Expressions\n- [ ] Chapter 18 - Type of Values\n- [ ] Chapter 19 - Strings\n- [ ] Chapter 20 - Hash Tables\n- [ ] Chapter 21 - Global Variables\n- [ ] Chapter 22 - Local Variables \n- [ ] Chapter 23 - Jumping Back and Forth \n- [ ] Chapter 24 - Calls and Functions\n- [ ] Chapter 25 - Closures\n- [ ] Chapter 26 - Garbage Collection\n- [ ] Chapter 27 - Classes and Instances \n- [ ] Chapter 28 - Methods and Intializers\n- [ ] Chapter 29 - Superclasses \n- [ ] Chapter 30 - Optimization\n --\u003e\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjanbaig%2Fbytecode-virtual-machine","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjanbaig%2Fbytecode-virtual-machine","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjanbaig%2Fbytecode-virtual-machine/lists"}