{"id":16767920,"url":"https://github.com/jrudolph/bytecode","last_synced_at":"2025-04-10T19:21:14.522Z","repository":{"id":422932,"uuid":"42865","full_name":"jrudolph/bytecode","owner":"jrudolph","description":"Mnemonics - Bytecode generation for scala","archived":false,"fork":false,"pushed_at":"2013-01-31T11:26:03.000Z","size":12755,"stargazers_count":22,"open_issues_count":0,"forks_count":1,"subscribers_count":6,"default_branch":"master","last_synced_at":"2025-04-10T18:16:57.957Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Scala","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"bsd-2-clause","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/jrudolph.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}},"created_at":"2008-08-15T08:03:26.000Z","updated_at":"2023-11-24T04:28:54.000Z","dependencies_parsed_at":"2022-07-08T01:50:34.204Z","dependency_job_id":null,"html_url":"https://github.com/jrudolph/bytecode","commit_stats":null,"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jrudolph%2Fbytecode","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jrudolph%2Fbytecode/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jrudolph%2Fbytecode/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jrudolph%2Fbytecode/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jrudolph","download_url":"https://codeload.github.com/jrudolph/bytecode/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248281382,"owners_count":21077423,"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":"2024-10-13T06:10:20.686Z","updated_at":"2025-04-10T19:21:14.501Z","avatar_url":"https://github.com/jrudolph.png","language":"Scala","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Mnemonics - A runtime bytecode generation DSL for Scala\n\nFor more info see [Mnemonics: Type-safe Bytecode Generation at Run Time](https://github.com/jrudolph/bytecode/raw/docs/mnemonics.pdf).\n\nThere are more papers in the [docs branch](https://github.com/jrudolph/bytecode/tree/docs).\n\n## Example\n\nHere's an example which generates the `+ 1` function:\n\n```scala\nscala\u003e import java.lang.Integer\nimport java.lang.Integer\n\nscala\u003e val f = ASM[Integer, Integer](param =\u003e\n     |             _ ~\n     |             param.load ~\n     |             method((x: Integer) =\u003e x.intValue) ~\n     |             bipush(1) ~\n     |             iadd ~\n     |             method((x: Int) =\u003e Integer.valueOf(x)))\nf: java.lang.Integer =\u003e java.lang.Integer = \u003cfunction1\u003e\n\nscala\u003e f(12)\nres0: java.lang.Integer = 13\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjrudolph%2Fbytecode","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjrudolph%2Fbytecode","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjrudolph%2Fbytecode/lists"}