Giter Site home page Giter Site logo

Support for Java interop about smithy-kotlin HOT 2 OPEN

Petroniuss avatar Petroniuss commented on August 12, 2024 1
Support for Java interop

from smithy-kotlin.

Comments (2)

aajtodd avatar aajtodd commented on August 12, 2024

Hey thanks for the feedback.

It would help to understand your use case a bit better. Are you asking for support from the AWS SDK for Kotlin for this or are you using (or planning to) generate code using smithy-kotlin for your own models?

Smithy will eventually support Java as a first class code generator. The recommendation right now for people in Kotlin that need to bridge the two would be to wrap or write extension functions around the coroutines code the same way you would for any other coroutine code to make it callable from Java.

I think we could certainly explore this as a plugin setting for people that want to generate the extra code but we don't currently have plans to implement this. Gathering use cases and how people would want this to look and why they want it would be a good first step.

from smithy-kotlin.

Petroniuss avatar Petroniuss commented on August 12, 2024

Hi there,
I was experimenting with Smithy as a tool for codegen similar to thrift or grpc but targeting existing HTTP services communicating over JSON. The main advantage that smithy has is I'd say ease of customizability - for example to extend codegen for Kotlin to adjust it for my use-case I could simply implement KotlinIntegration interface and that would be it.

In my specific case, I'd like to generate clients with some customizations (for example: attaching headers for tracing) but I'd like those clients to be usable from both Kotlin and Java.
Kotlin clients look great (thanks for your work!) but I wouldn't want to write bridge code by hand in a java application to consume a kotlin client - hence my request to generate that code.

I'd be okay with generating different clients for Java and for Kotlin but as you mentioned smithy project doesn't yet support Java.

from smithy-kotlin.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.