tag:blogger.com,1999:blog-22587889.post8217499514043615293..comments2024-02-11T13:21:47.930+05:30Comments on Ruminations of a Programmer: Refactoring into Scala Type ClassesAnonymoushttp://www.blogger.com/profile/01613713587074301135noreply@blogger.comBlogger6125tag:blogger.com,1999:blog-22587889.post-27066706123094700832010-07-09T04:00:53.949+05:302010-07-09T04:00:53.949+05:30This appears to be the same way that type classes ...This appears to be the same way that type classes are used by the excellent <a href="http://github.com/harrah/sbinary" rel="nofollow">sbinary</a> library.Justin Wickhttps://www.blogger.com/profile/01386093143586175768noreply@blogger.comtag:blogger.com,1999:blog-22587889.post-42648863669423107552010-07-07T12:39:36.466+05:302010-07-07T12:39:36.466+05:30Trond - everything is at the compiler level. No pe...Trond - everything is at the compiler level. No performance overhead runtime.Anonymoushttps://www.blogger.com/profile/01613713587074301135noreply@blogger.comtag:blogger.com,1999:blog-22587889.post-38983477270767713562010-07-07T12:31:29.152+05:302010-07-07T12:31:29.152+05:30Two questions: Are there any performance implicati...Two questions: Are there any performance implications of using implicit, and does the currying gets "optimized" by the compiler?Trondnoreply@blogger.comtag:blogger.com,1999:blog-22587889.post-381453148905981952010-07-06T20:17:39.832+05:302010-07-06T20:17:39.832+05:30Using static dispatch (via type classes) seems rat...Using static dispatch (via type classes) seems rather limiting. Are there not use-cases in Akka where the specific type of actor is not known at compile-time?Alex Boisverthttps://www.blogger.com/profile/15673966086206028049noreply@blogger.comtag:blogger.com,1999:blog-22587889.post-67642464941142214772010-07-06T14:40:54.662+05:302010-07-06T14:40:54.662+05:30Absolutely +1 on your observation on the type cons...Absolutely +1 on your observation on the type constraints for FromBinary and ToBinary. In my case I did it only for actor serialization, hence the constraints. They can be moved to the Scala module ActorSerialization level as well. Will do the refactoring in Akka soon .. Thanks.Anonymoushttps://www.blogger.com/profile/01613713587074301135noreply@blogger.comtag:blogger.com,1999:blog-22587889.post-76561419198864959802010-07-06T14:35:33.804+05:302010-07-06T14:35:33.804+05:30A nice approach that could be applied to different...A nice approach that could be applied to different areas where serialization is needed.<br /><br />I wonder why FromBinary, ToBinary, and Format require their type variable to be subtype of Actor.<br /><br />I see the requirement for ActorSerialization, but not for the above.Martin K.http://twitter.com/mkneisslnoreply@blogger.com