Every time I stumble upon Scrap Your Boilerplate again (a.k.a. Data.Data) I feel sad that it didn’t take off the way GHC.Generics did. #haskell

@ttuegel Thanks grace it didn't. That thing is **slow** slow.

@dpwiz Yeah… I wouldn’t recommend GHC.Generics anywhere that performance matters, either.

Follow

@ttuegel Actually, GHC Genetics are fast enough for automatic Storable instances. Almost no degradation from hand-rolled code without a chance for segfaults.

@dpwiz Generics is fast as long as everything gets inlined the right way. Ensuring that inlining happens correctly as a project scales is, in my experience, a cost that doesn’t scale well.

@ttuegel At least it has a chance to be inlined. SYB is slow however you slice it.

Sign in to participate in the conversation
Qoto Mastodon

QOTO: Question Others to Teach Ourselves
An inclusive, Academic Freedom, instance
All cultures welcome.
Hate speech and harassment strictly forbidden.