Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add a tool to generate the native configuration #777

Merged
merged 13 commits into from
Nov 28, 2017
Merged

Add a tool to generate the native configuration #777

merged 13 commits into from
Nov 28, 2017

Conversation

eregon
Copy link
Member

@eregon eregon commented Nov 28, 2017

  • Constants that are undefined on the platform are no longer listed in the .java file (previously they were set to 0).
  • Rubinius::Config[key] raises a KeyError if key does not exist. Use Rubinius::Config#lookup if you want value-or-nil semantics.

@eregon
Copy link
Member Author

eregon commented Nov 28, 2017

@chrisseaton Could you run ruby tool/generate-native-config.rb on Darwin and push it here?
Nothing should change except the comment at the top, but better make sure 😃

@nirvdrum
Copy link
Collaborator

Now that we have more control over the generation of these files, it could be valuable to make a map with ropes instead. We currently have to do a fair bit of work scanning byte arrays at startup. But we can handle that in a future PR.

@eregon
Copy link
Member Author

eregon commented Nov 28, 2017

@nirvdrum Yes, we can do many more things :) This PR is about replacing the external process and making it easy to extend what we generate, but not yet extending it.

* From the Fedora 26 Docker image in tool/docker/fedora.
@eregon eregon merged commit 1a77e24 into master Nov 28, 2017
@eregon eregon deleted the gen_config branch November 28, 2017 18:13
@eregon eregon mentioned this pull request Nov 10, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants