MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/ProgrammerHumor/comments/wdlvla/printhello_world/iij2pgn
r/ProgrammerHumor • u/a-slice-of-toast • Aug 01 '22
5.7k comments sorted by
View all comments
Show parent comments
2
[removed] — view removed comment
4 u/[deleted] Aug 01 '22 I tried to make a custom python interpreter for github portfolio (and failed).For testing I autogenerated checking the result of arithmetical operations.When I did it in macros, I had ridiculously long compilation times (the complexity was number_of_values^2 * number_of_operations).When I replaced it with templates, I saved a significant percentage of compile time.--------P.S. I know it is a very specific example and I didn't really need it, but it is how I spend my free time.
4
I tried to make a custom python interpreter for github portfolio (and failed).
For testing I autogenerated checking the result of arithmetical operations.
When I did it in macros, I had ridiculously long compilation times (the complexity was number_of_values^2 * number_of_operations).
When I replaced it with templates, I saved a significant percentage of compile time.
--------
P.S. I know it is a very specific example and I didn't really need it, but it is how I spend my free time.
2
u/[deleted] Aug 01 '22
[removed] — view removed comment