How modern languages still fail to recognize the importance of reflection is beyond me. I'm looking at you, @rustlang.
-
-
-
Replying to @rustlang @ArvidGerstmann
(That is, we have and use a lot of compile-time reflection, and think it’s quite valuable! Runtime reflection imposes runtime costs that aren’t acceptable in our domain, so we don’t have it, but not because we don’t think it has worth!)
1 reply 0 retweets 8 likes -
Replying to @rustlang
As far as I can see, serde is using macros to generate the code for every struct, right? The thing is, that may actually have a *higher* cost than achieving the same using runtime reflection. And saying compile-time reflection has no overhead, compared to runtime is plain wrong.
4 replies 0 retweets 0 likes
I did not say it had no cost; usually when we talk about rust (thanks to c++ heritage) we’re referring to *runtime* cost. Binary size is important too, but we tend to not prioritize it as much.
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.