4 ms·
>How do you tell a C compiler that? You'd need dependent types and a compiler that understood exactly how much information in bits was required for a particula
by pshc 15y ago
>How do you tell a C compiler that?
You'd need dependent types and a compiler that understood exactly how much information in bits was required for a particular proposition, I'm guessing. I think this is the sort of thing (not using tricky assembly instructions specifically, but using unboxed types with expressive type systems) that makes languages like ATS[1] possibly faster than C.
The point is: good code generation is possible in theory, even if "sufficiently smart" compilers are too hard to write. (Or are equivalent to general A.I.)
[1] http://en.wikipedia.org/wiki/ATS_(programming_language) http://en.wikipedia.org/wiki/ATS_(programming_language)
- wickedchicken 15y agoModern day CS: every problem can be solved with a better type system