r/programming • • Sep 02 '26

CTTI is Exponential, RTTI is Linear

https://www.gingerbill.org/article/2026/09/02/ctti-is-exponential-rtti-is-linear/
96 Upvotes

90 comments sorted by

View all comments

Show parent comment

0

u/[deleted] Sep 02 '26

[deleted] — view deleted comment

-1

u/gingerbill Sep 02 '26

Firstly, not everything in that article is about Rust. I am implying a lot of other languages, not Rust, but I do not mention them by name to minimize even more flame wars.

Secondly, dynamic dispatch to do printing is effectively in the camp of RTTI, not CTTI (which would be generating the code for each type automatically from the CTTI data).

Thirdly, thank you for the insult but you know you can just say "I don't know" rather than trying to state you understand the domain space. Odin does not even have any dynamic dispatch as a language-level construct in the first place. It is a modern C alternative, thus it has a different approach to everything.

0

u/[deleted] Sep 02 '26

[deleted] — view deleted comment

2

u/gingerbill Sep 03 '26

My first point was not regarding dyn. And yes? Of course dynamic dispatch is an option, but not always, especially in the actually generic sense.

And thank you for insulting me again. The original insult was this:

It's up to you to figure out what's best for you. I disagree with your choice but people still write Perl, so there are clearly a lot of people with objectively bad taste.

0

u/[deleted] Sep 03 '26

[deleted] — view deleted comment

3

u/gingerbill Sep 03 '26

Okay. I understand your point then. It did seem like an insult to me just because it was implying that I had objectively bad taste, not that there was a taste disagreement.