After a day optimizing ASTs, Magnolia now gets approximately 12x better compile-time performance for typeclass derivation than Shapeless!
-
Show this thread
-
-
Replying to @skaalf
Yes. For starters, I was generating the code for every typeclass twice.
But I also reduced my anonymous class count.1 reply 0 retweets 0 likes -
Replying to @propensive @skaalf
And managed to reuse typeclasses repeated in the same case class. Would be nice to deduplicate across case classes, but I'm not there yet.
2 replies 0 retweets 0 likes -
Replying to @propensive
Wow! Impressive. Magnolia really has the potential to be one of those tools that makes Scala so much nicer.
1 reply 2 retweets 4 likes -
Replying to @skaalf @propensive
Wow. I'll scrub my failed attempt with shapeless and try again with magnolia (if it supports the equivalent of LabelledGenerics)
1 reply 0 retweets 0 likes -
Yes it does. The API gives you labels.
1 reply 0 retweets 1 like -
Replying to @propensive @skaalf
(I haven't looked at it yet, I just know it from what you've told me and the general awe of people who've looked at it) :-)
1 reply 0 retweets 1 like
It's not released yet (in the form I described at Scala.io), but hopefully will be by the end of the week. :)
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.