Skip to content
This repository has been archived by the owner on May 10, 2019. It is now read-only.

Provide easier to use high-level functions #31

Open
kud1ing opened this issue Nov 24, 2017 · 0 comments
Open

Provide easier to use high-level functions #31

kud1ing opened this issue Nov 24, 2017 · 0 comments

Comments

@kud1ing
Copy link
Owner

kud1ing commented Nov 24, 2017

Currently it takes a lot of code in order to call a JVM method: resolve the class, resolve the method, build the arguments from Rust data, possibly convert the result back to Rust data types etc.

It would be nice to be able to do this with less code in Rust.
I think being more wasteful, like resolving classes/method, constructing data with each call, is fine for the sake of convenience. Users can still opt to avoid those calls by using the current wordy interface.

The official recommendation is - and maybe we should reproduce the tip exlicitely in our documentation - is to use as few JNI calls as possible.

The signature builder from #3 supports usability too.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant