TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

Storage strategies for collections in dynamically typed languages

6 pointsby gkuanover 11 years ago

2 comments

StefanKarpinskiover 11 years ago
Interesting stuff. Unfortunately, this paper conflates dynamic typing with not being able to express anything about the types of values:<p>&gt; An implicit effect of dynamic typing is that every variable, object slot, and so on, can reference objects of arbitrary types.<p>This is simply untrue. It <i>happens</i> to be true in Python and many other dynamic languages, but it by no means necessary. Dylan and Julia, for example, are both dynamically typed, yet let the programmer express that variables, fields, and collections will only contain certain types of values. That ability eliminates this whole class of problems – which tend to be the hardest problems when trying to optimized dynamic languages. If you don&#x27;t have a nice type system, of course, then this kind of cleverness is absolutely necessary to get better performance. V8 in particular does this sort of thing amazingly well.
hannibal5over 11 years ago
Some Lisp or Smalltalk guru steps in and says that they already did that in 80&#x27;s in 7, 6, 5, 4, ...