{"id":13739710,"url":"https://github.com/chaoyangnz/zava","last_synced_at":"2025-03-22T15:30:53.479Z","repository":{"id":186508511,"uuid":"527908953","full_name":"chaoyangnz/zava","owner":"chaoyangnz","description":"Mini Java VM in Zig","archived":false,"fork":false,"pushed_at":"2024-08-12T09:20:38.000Z","size":55389,"stargazers_count":11,"open_issues_count":0,"forks_count":4,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-03-18T13:15:37.067Z","etag":null,"topics":["bytecode","java","java-8","jvm","zig"],"latest_commit_sha":null,"homepage":"","language":"Zig","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/chaoyangnz.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-08-23T08:56:50.000Z","updated_at":"2025-01-21T14:53:00.000Z","dependencies_parsed_at":"2024-01-25T01:06:37.700Z","dependency_job_id":"a29abc36-2142-4a16-a260-007d78a0c755","html_url":"https://github.com/chaoyangnz/zava","commit_stats":{"total_commits":70,"total_committers":4,"mean_commits":17.5,"dds":0.6,"last_synced_commit":"fde70b4791d09171a7e8f8363293f13072f90b0b"},"previous_names":["chaoyangnz/zava"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chaoyangnz%2Fzava","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chaoyangnz%2Fzava/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chaoyangnz%2Fzava/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chaoyangnz%2Fzava/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/chaoyangnz","download_url":"https://codeload.github.com/chaoyangnz/zava/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":244978459,"owners_count":20541858,"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","java","java-8","jvm","zig"],"created_at":"2024-08-03T04:00:36.745Z","updated_at":"2025-03-22T15:30:52.485Z","avatar_url":"https://github.com/chaoyangnz.png","language":"Zig","funding_links":[],"categories":["Applications"],"sub_categories":[],"readme":"# zava\nMini Java VM in Zig `v0.13.0`\n\n## What it is\n\nZava is a Java\u003csup\u003e*\u003c/sup\u003e VM implementation in Zig. This is a sister project of [Gava](https://github.com/chaoyangnz/gava) which is using Go.\nThe goal of Zava is to implement a couple of features which are not capable of doing by Go, such as GC and fine control of memory allocation.\n\nThe reference of the implement is [JVM Spec 8 edition](https://docs.oracle.com/javase/specs/jvms/se8/html/) and it is supposed to be compatible with Java 8 bytecode.\n\n--- \n\u003e \\* JAVA is a trademark of Oracle America, Inc.\n\n## Roadmap\n\nFeature:\n- [x] type system definition\n- [x] class file parser\n- [x] instructions interpretion \n- [x] native methods bridge to support HelloWorld\n- [x] class loading\n  - [x] bootstrap class loader\n  - [x] user defined class loader\n- [x] string pool\n- [x] basic reflection support (Class, Field, Method, Consutructor)\n- [ ] multi-thread and concurrency\n- [ ] garbage collector\n- [ ] profiling and Debugger integration\n\nNon-functional:\n- [ ] sufficent unit test coverage\n- [ ] code readability and clear documentation of high-level design\n- [ ] mini ebook to describe how to evolve a mini VM from scratch\n- [ ] VSCode debugging extension\n\n\n## Get started\n\nDownload [JDK](https://github.com/chaoyangnz/zava/wiki/JDK) and extract to `jdk` folder.\nThe default class path is `examples/classes` and `jdk/classes`, so any classes located in the path can be loaded by `zava`.\n\n- HelloWorld\n```\nzig build\n\n./zava HelloWorld\n```\n\n![demo](demo.gif)\n\n## Debugging\n\nA VS code launch.json is configured for your debugging.\n\nAnd after running the program, a `zava.log` is produced to trace the execution.\n\n- info level: only method calls are logged\n- debug level: per instruction executions are also logged with the context\n\n\n\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fchaoyangnz%2Fzava","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fchaoyangnz%2Fzava","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fchaoyangnz%2Fzava/lists"}