{"id":34241707,"url":"https://github.com/mtkhawaja/polyglot-jvm","last_synced_at":"2026-04-11T13:34:25.736Z","repository":{"id":327672467,"uuid":"1110284259","full_name":"mtkhawaja/polyglot-jvm","owner":"mtkhawaja","description":"A JVM multiverse demo exploring coexistence, compilation, and execution of multiple JVM languages within one Maven build and unified bytecode universe.","archived":false,"fork":false,"pushed_at":"2025-12-06T01:27:06.000Z","size":34,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2026-02-11T02:37:19.848Z","etag":null,"topics":["clojure","groovy","jvm-languages","kotlin","scala"],"latest_commit_sha":null,"homepage":"","language":"Dockerfile","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/mtkhawaja.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,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2025-12-05T01:11:20.000Z","updated_at":"2025-12-08T01:56:13.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/mtkhawaja/polyglot-jvm","commit_stats":null,"previous_names":["mtkhawaja/polyglot-jvm"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/mtkhawaja/polyglot-jvm","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mtkhawaja%2Fpolyglot-jvm","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mtkhawaja%2Fpolyglot-jvm/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mtkhawaja%2Fpolyglot-jvm/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mtkhawaja%2Fpolyglot-jvm/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mtkhawaja","download_url":"https://codeload.github.com/mtkhawaja/polyglot-jvm/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mtkhawaja%2Fpolyglot-jvm/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31682953,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-11T13:07:20.380Z","status":"ssl_error","status_checked_at":"2026-04-11T13:06:47.903Z","response_time":54,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: 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":["clojure","groovy","jvm-languages","kotlin","scala"],"created_at":"2025-12-16T04:14:02.155Z","updated_at":"2026-04-11T13:34:25.724Z","avatar_url":"https://github.com/mtkhawaja.png","language":"Dockerfile","funding_links":[],"categories":[],"sub_categories":[],"readme":"# polyglot-jvm\n\nA JVM multiverse demo exploring coexistence, compilation, and execution of multiple JVM languages within one Maven build and unified bytecode universe.\n\n### What This Project Demonstrates\n\nThis repository shows how different JVM language libraries can live side‑by‑side, compile independently, and still interoperate cleanly inside a Spring Boot application. Each language implements the\nsame small shared contract (`GreetingService`), and the application discovers them all at runtime.\n\nThe `common` module defines:\n\n- `Greeting`\n- `GreetingCollection`\n- `GreetingService` (the core contract)\n\nEvery language module depends on `common` and provides its own implementation of `GreetingService`.\n\n### Architecture\n\n```plaintext\npolyglot-jvm/\n ├─ common/                 # shared Java contract + types\n ├─ app/                    # Spring Boot application\n ├─ groovy-lib/             # Groovy implementation\n ├─ scala-lib/              # Scala implementation\n ├─ kotlin-lib/             # Kotlin implementation\n ├─ clojure-lib/            # Clojure implementation\n```\n\nThe `app` module simply autowires *all* `GreetingService` beans and returns their collected output at:\n\n```plaintext\nGET /greet\n```\n\n### How Language Modules Work\n\nEach language module:\n\n1. Uses its language‑specific Maven plugin (Scala, Kotlin, Clojure, Groovy).\n2. Declares a dependency on `polyglot-jvm-common`.\n3. Exposes a Spring bean that implements `GreetingService`.\n\n### Key Design Principle\n\nThe shared boundary is intentionally tiny:\n\n```\npublic interface GreetingService {\n    Greeting greet();\n}\n```\n\nEverything else (syntax, FP/OOP style, type inference, compilation strategy) is **language‑local**.  \nAll compiled outputs converge into the same bytecode world.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmtkhawaja%2Fpolyglot-jvm","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmtkhawaja%2Fpolyglot-jvm","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmtkhawaja%2Fpolyglot-jvm/lists"}