Skip to content

Conversation

@headius
Copy link
Contributor

@headius headius commented Feb 9, 2023

JRuby currently ships its own internal bigdecimal extension as part of the core libraries. In order for users to be able to add bigdecimal to their Gemfile or gem dependencies, we need to stub out the C extension and just load the extension shipped with JRuby.

In the future we will try to move our BigDecimal implementation into the gem, but for now this is the simplest way to make it installable on JRuby.

See #169

@headius
Copy link
Contributor Author

headius commented Feb 9, 2023

Note this should also let us start to source the .rb files from the gem rather than versioning them in the JRuby repository. The last step will be moving our native BigDecimal implementation into the gem, which will hopefully happen some time this year.

JRuby currently ships its own internal bigdecimal extension as
part of the core libraries. In order for users to be able to add
bigdecimal to their Gemfile or gem dependencies, we need to stub
out the C extension and just load the extension shipped with
JRuby.

In the future we will try to move our BigDecimal implementation
into the gem, but for now this is the simplest way to make it
installable on JRuby.

See ruby#169
@mrkn mrkn merged commit 829956c into ruby:master Feb 17, 2023
@mrkn
Copy link
Member

mrkn commented Feb 17, 2023

The last step will be moving our native BigDecimal implementation into the gem, which will hopefully happen some time this year.

Migration of the Java native BigDecimal into this repo will force us to handle both C and Java implementations at the same time when we add a new feature and fix some behavior. I want to avoid this situation.

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.

2 participants