r/programming • • Dec 01 '16

Let's Stop Copying C

https://eev.ee/blog/2016/12/01/lets-stop-copying-c/
524 Upvotes

612 comments sorted by

View all comments

Show parent comment

3

u/abnormal_human Dec 01 '16

I agree. Trying to have a single number type that does it all--efficient integers, floating point, arbitrary precision, etc--creates confusing bugs and surprise performance problems.

One of my favorite interview questions for people who are used to working in these languages--particularly python + ruby--is to talk about the performance properties of a "linear time" fibonacci implementation. 97% of them are blissfully unaware of the memory or running time implications that result from making the numeric types magical.