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

capnpc-java schema compiler plugin should be written in Java #111

Open
dwrensha opened this issue Aug 20, 2021 · 2 comments
Open

capnpc-java schema compiler plugin should be written in Java #111

dwrensha opened this issue Aug 20, 2021 · 2 comments

Comments

@dwrensha
Copy link
Member

Currently, capnpc-java is written in C++ and depends on upstream capnproto-c++ libraries. Distribution would be simplified it it were written in Java.

@paxel
Copy link
Contributor

paxel commented Aug 20, 2021

A while ago I wanted to create a code generator from capnproto schema that creates pojo classes. at some point I got a distracted and totally forgot about it. https://github.com/paxel/admiral-plasma I don't even know in which state it is. (update: unusable weirdo code)
I parsed the schema (update: no I didn't) and used a lib

<dependency>
            <groupId>com.squareup</groupId>
            <artifactId>javapoet</artifactId>
            <version>1.11.1</version>
        </dependency>

to create code. might be worth a look.

I later forked capnproto Java and improved the generated code of the c++ generator (for a special project, that is dead now) to the extend that it was absurd 😅 definitely not Worth a look https://github.com/paxel/capnproto-java.

I agree that a pure Java code generator would significantly increase the usability.

@WhiredPlanck
Copy link

WhiredPlanck commented Aug 1, 2024

According to #136 (comment), recently I try to work on implementing a compiler in Java, now is basically work. See the java-compiler branch of my fork.

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

No branches or pull requests

3 participants