{"id":18909211,"url":"https://github.com/jruby/jruby-cext","last_synced_at":"2025-07-11T01:36:01.010Z","repository":{"id":9107392,"uuid":"10888521","full_name":"jruby/jruby-cext","owner":"jruby","description":"The MRI C extension subsystem for JRuby","archived":false,"fork":false,"pushed_at":"2013-11-07T18:13:17.000Z","size":492,"stargazers_count":6,"open_issues_count":1,"forks_count":2,"subscribers_count":6,"default_branch":"master","last_synced_at":"2025-04-15T06:16:05.032Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"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/jruby.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}},"created_at":"2013-06-23T17:11:35.000Z","updated_at":"2024-11-28T16:27:24.000Z","dependencies_parsed_at":"2022-09-10T08:41:20.018Z","dependency_job_id":null,"html_url":"https://github.com/jruby/jruby-cext","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jruby%2Fjruby-cext","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jruby%2Fjruby-cext/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jruby%2Fjruby-cext/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jruby%2Fjruby-cext/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jruby","download_url":"https://codeload.github.com/jruby/jruby-cext/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":249016643,"owners_count":21198833,"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-11-08T09:31:51.723Z","updated_at":"2025-04-15T06:16:13.589Z","avatar_url":"https://github.com/jruby.png","language":"C++","readme":"jruby-cext: CRuby extension support for JRuby\n=============================================\n\nThis library provides a CRuby compatible C extension API for JRuby, via Java's\nJNI subsystem.\n\nBuilding\n--------\n\nAnt is required, since there's Java portions of the C ext support. \"ant\" will\nbuild the Java and C pieces and put the artifacts in the \"build\" directory.\n\nStatus\n------\n\nC extension support was deprecated as part of JRuby propert in the 1.7.x line,\nand will be removed in a future release. This project represents that support\npulled out to a separate repository, so that users can help maintain it\nindependently of JRuby core.\n\nCurrently, support is only partial and only for 1.8 C API features. We are\nmissing many APIs for 1.8 support and most 1.9-specific APIs.\n\nLimitations\n-----------\n\nLoading a C extension into JRuby requires that there be only one JRuby\ninstance in a given JVM using C extensions. This is because there's no way\nin the CRuby API to identify which JRuby instance a given extension is\nassociated with.\n\nAll call-outs to C extensions from JRuby are synchronized against a single\nlock, to avoid concurrency issues at the C level. This may be something we\ncan remove, since Rubinius has done so to improve concurrency in C extensions\nand so far that has worked out.\n\nCalls from C to Ruby or Ruby to C have more overhead than in C Ruby, mostly\ndue to the necessity of proxying everything through JNI, providing virtual\nhandle objects instead of direct pointers, and copying or marshaling Array\nand String data back and forth as it is modified.\n\nContributing\n------------\n\nThe JRuby core team does not have resources or expertise to maintain this C\nextension support, so we have spun it off from JRuby core in hopes that the\nRuby/JRuby community can help us improve and maintain it. If you are\ninterested in helping, we will provide support from the JRuby/JVM side and\ngive you access to commit freely to the repository.\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjruby%2Fjruby-cext","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjruby%2Fjruby-cext","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjruby%2Fjruby-cext/lists"}