Re: [DISCUSS] Bringing Kafka towards Scala 3

2021-11-19 Thread Josep Prat
Hi there, I just wanted to bump this thread as there has been a great development. Gradle 7.3 is now released and it comes with Scala 3 support (release notes ). This means that one of the roadblocks to migrate Kafka to Scala 3 has been cleared. Shall

Re: [DISCUSS] Bringing Kafka towards Scala 3

2021-11-02 Thread Josep Prat
Hi Colin, We can take 2 different paths, both of them need a similar effort. — Offer Scala 3 along with Scala 2.12 and 2.13 — Offer Scala 3 only once Scala 2.12 is removed On the draft PR I shared in the initial email ( https://github.com/apache/kafka/pull/11350), I used the first approach, and i

Re: [DISCUSS] Bringing Kafka towards Scala 3

2021-11-01 Thread Colin McCabe
Thanks for looking at this, Josep... I guess the way I always imagined this happening was that a Scala 3 release would become one of our two supported Scala versions. So instead of 2.12 and 2.13, we'd have 2.13 and 3.x, for some X. Do you think that approach would be practical? best, Colin On

Re: [DISCUSS] Bringing Kafka towards Scala 3

2021-10-08 Thread Ismael Juma
Yeah, changes that are good generally can be submitted any time. Ismael On Fri, Oct 8, 2021 at 7:35 AM Josep Prat wrote: > Hi Ismael, > > Thanks for the reply. I don't think the demand is high at the moment, but > it will increase overtime. > What do you think about me submitting a PR now with

Re: [DISCUSS] Bringing Kafka towards Scala 3

2021-10-08 Thread Josep Prat
Also, on a related note, the Scala Center was interested in adding Kafka to the Community Build once the migration is done. See https://gitter.im/scala/contributors?at=6154a73f29ddcd0293f5e01e It turns out, Kafka is a good stress test for Scala/Java interoperability. For Kafka, and other similar Sc

Re: [DISCUSS] Bringing Kafka towards Scala 3

2021-10-08 Thread Josep Prat
Hi Ismael, Thanks for the reply. I don't think the demand is high at the moment, but it will increase overtime. What do you think about me submitting a PR now with only the changes I mention in group a)? They are small changes like dropping extra parenthesis, or stopping shadowing names. The resul

Re: [DISCUSS] Bringing Kafka towards Scala 3

2021-10-08 Thread Ismael Juma
Hi Josep, Thanks for looking into this. As you said, it seems like there are a number of rough edges still. Do we have many users asking for this right now? If not, it may make sense to wait for things to get a bit more mature before adding the burden of a third Scala version. Ideally, we would dr

[DISCUSS] Bringing Kafka towards Scala 3

2021-10-08 Thread Josep Prat
Hi there, For the last month I was actively working on migrating Apache Kafka to Scala 3. For what I could see, Apache Kafka is the biggest mixed Java-Scala project to attempt a migration to Scala 3. This means, a lot of regressions in regards to Java and Scala interoperability at bytecode were fou