Skip to content

Ffm jextract proto - PR for working on FFM prototype - NOT FOR MERGE - #15369

Draft
alanpaxton wants to merge 26 commits into
meta:mainfrom
evolvedbinary:ffm-jextract-proto
Draft

alanpaxton wants to merge 26 commits into
meta:mainfrom
evolvedbinary:ffm-jextract-proto

Conversation

@alanpaxton

Copy link
Copy Markdown
Contributor

No description provided.

@meta-cla meta-cla Bot added the CLA Signed label Oct 9, 2026
@alanpaxton
alanpaxton marked this pull request as draft October 9, 2026 07:58
@github-actions

github-actions Bot commented Oct 9, 2026 •

Copy link
Copy Markdown

✅ clang-tidy: No findings on changed lines

Completed in 0.0s.

We bump Java to 25 while doing development for this; we can’t just do this in current RocksDB, will need to think about it.

Build/run using `$ EXTRA_CXXFLAGS=-Wno-error make -j12 jffm_sample`
Quick build/run of the sample, when FFM hasn’t changed: `(cd java; make ffm_sample)`

WIP - it’s not finding
DO NOT pass `—library` to `jextract`
`RocksDB.loadLibrary()` does the loading of the appropriate library for us - we do this in a `static { … }` block.
Build with `$ make jffm_sample`
Conform better to maven convention
Error handling for NOT_FOUND isn’t correct yet, just yields an empty value.
Re-instate a working Java FFM sample for illustration
The idea is that the phase that generates the FFM API uses this stuff to also generate some higher-level Java, as part of a fluent API.
The C API infrastructure takes care of making sure that this is up to date.
Bring our japigen tool within the RocksDB build world;
It’s a subdirectory with a maven project.
The Makefile invokes the maven build,
which builds the tool,
which processes the C API JSON description,
to generate the wrapper classes that the client can access.

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant