Merged
Conversation
Contributor
Author
|
I'll double-check if this successfully compiles on all architectures once the next preview is out. It should support the same architectures as YJIT does. |
48b7879 to
166d357
Compare
Contributor
Author
|
Since ruby/ruby#15368 ZJIT is compiled in automatically as long as the rust version allows it. This is ready now |
tianon
reviewed
Dec 8, 2025
Dockerfile.template
Outdated
| --enable-shared \ | ||
| ${rustArch:+--enable-yjit} \ | ||
| {{ if env.version | IN("3.2", "3.3", "3.4") then "" else ( -}} | ||
| ${rustArch:+--enable-zjit} \ |
Member
There was a problem hiding this comment.
Whitespace nit: 😅
Suggested change
| ${rustArch:+--enable-zjit} \ | |
| ${rustArch:+--enable-zjit} \ |
tianon
approved these changes
Dec 8, 2025
More details at https://bugs.ruby-lang.org/issues/21221 ZJIT requires rust 1.85, so bump the version.
tianon
approved these changes
Dec 9, 2025
Member
|
Thank you! ❤️ Let's do this 👀 |
docker-library-bot
added a commit
to docker-library-bot/official-images
that referenced
this pull request
Dec 9, 2025
Changes: - docker-library/ruby@84bfd8d: Merge pull request docker-library/ruby#509 from Earlopain/zjit - docker-library/ruby@55e358c: Build Ruby 4.0 or greater with zjit
yosifkit
pushed a commit
to docker-library/official-images
that referenced
this pull request
Dec 9, 2025
Changes: - docker-library/ruby@84bfd8d: Merge pull request docker-library/ruby#509 from Earlopain/zjit - docker-library/ruby@55e358c: Build Ruby 4.0 or greater with zjit Co-authored-by: Docker Library Bot <doi+docker-library-bot@docker.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
zjit is the next big thing and at least one character better than yjit.
It currently lags behind yjit in many areas but commiters expect it to be ready and on par with yjit by the time 3.5 actually releases.
https://bugs.ruby-lang.org/issues/21221
3.5-preview1 doesn't actually contain any code for ZJIT, so this will be a draft for a while until it actually makes sense.