chisel icon indicating copy to clipboard operation
chisel copied to clipboard

feature: scala3 support

Open borissmidt opened this issue 3 years ago • 7 comments

Dear,

I'm a scala developer and i was wondering if there are any plans on upgrading the scala version and go to scala-3.

I dont really do hardware development but it seems like a very cool project.

borissmidt avatar Dec 04 '21 21:12 borissmidt

Hi @borissmidt , it's certainly on our radar as something to explore. We haven't yet investigated what it would take.

mwachs5 avatar Dec 04 '21 21:12 mwachs5

The tricky things are macro and compiler plugin, both of which are tightly integrated to Chisel. I'm also experimentally splitting a Scala3 & Scala213 code bases in #2285, but not confident in getting this into Chisel. I'm trying to firstly split all macro out of chisel code base, and moving them into a Scala2 src folder, then implementing a Scala3 version of them to minimize the Scala2 and Scala3 gap.

rg "= macro"|wc -l
212

That's a huge job... Compiler seems easier than macro(only need to rewrite them in Scala).

sequencer avatar Dec 05 '21 01:12 sequencer

+1 scala3, scala3 provided better API , library and optimze much more than scala 2.x

ghost avatar Feb 18 '22 05:02 ghost

I think Scala3 support would elevate Chisel's reach and ease of usability.

jnbrq avatar Sep 20 '22 22:09 jnbrq

Any updates?

ledyba avatar Feb 20 '23 11:02 ledyba