-
Notifications
You must be signed in to change notification settings - Fork 3.8k
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
[SWIG] add size_t manipulation functions #3895
Conversation
Thanks for contributing! @AlbertoEAF or @imatiach-msft , could you comment on this? |
Hello @shuttie :) Thanks for contributing.There are already several LightGBM Java providers out there which are using such functions in Java through a int64_t when size_t pointers are needed. However, I agree that is more correct to use a proper size_t pointer. LGTM ;) |
Using So I see two options here:
|
Sure shuttie, I'm not defending using int64_t, that's why I said:
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Merging based on @AlbertoEAF's and @imatiach-msft's approvals. Thank you both guys!
@shuttie Thanks a lot got your contribution!
This pull request has been automatically locked since there has not been any recent activity since it was closed. To start a new related discussion, open a new issue at https://github.com/microsoft/LightGBM/issues including a reference to this. |
I'm a maintainer of the lightgbm4j library, and would like to expose the
LGBM_DatasetGetFeatureNames
function in a more java-friendly way.The problem with the
LGBM_DatasetGetFeatureNames
function is that it requires asize_t
type param, which is not possible to instantiate at all, as SWIG definition file only exposes int/long/double/float/int64_t/int32_t types.This one-liner PR also exposes a
size_t
function family in SWIG wrapper, solightgbmlibJNI.java
will also include these new ones: