4 ms·
> The job of a compiler gets much easier if it can assume that a given variable will always be, say, an integer and nothing else. Don't use a dynamic language
by Touche 11y ago
> The job of a compiler gets much easier if it can assume that a given variable will always be, say, an integer and nothing else.
Don't use a dynamic language when that sort of thing makes a real difference.
- derefr 11y agoOften the point is that it mostly doesn't, and then in a few rare cases (hot inner loops at scale discovered via profiling) it suddenly does. You can rewrite the inner loop in a different language and call it via FFI... or you can type-annotate it. Which is simpler?
- deleted 11y ago[deleted]