tag:blogger.com,1999:blog-17087850.post2409205281862024782..comments2023-10-31T06:50:41.697-04:00Comments on Factor: a practical stack language: Evolving object shapesSlava Pestovhttp://www.blogger.com/profile/02768382790667979877noreply@blogger.comBlogger3125tag:blogger.com,1999:blog-17087850.post-52899778975177119722007-04-05T02:56:00.000-04:002007-04-05T02:56:00.000-04:00I literally meant using plain hashtables for objec...I literally meant using plain hashtables for objects, since such a design is comparable in complexity to Factor's object system implementation.<BR/><BR/>Sure, with cuckoo hashing, or even better, Self/Slate-style "maps", one can have O(1) lookup but still be able to change object shapes, on a per-object basis, at run time. These implementation techniques are more complex than the approach Factor (and Squeak) take. For example, the Factor compiler is able to perform a very straightforward optimization: when it is able to infer types, reading a tuple's slot compiles to a single instruction. Self can do this too, but it takes a vastly more sophisticated compiler.Slava Pestovhttps://www.blogger.com/profile/02768382790667979877noreply@blogger.comtag:blogger.com,1999:blog-17087850.post-63868575598992680902007-04-05T00:38:00.000-04:002007-04-05T00:38:00.000-04:00It is possible for "objects are hashtables" langua...It is possible for "objects are hashtables" languages to provide "both worlds" as well. For example, Io uses hashtables for objects, but lookup is a O(1) operation thanks to cuckoo hashing.Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-17087850.post-51781731978028618492007-04-03T03:04:00.000-04:002007-04-03T03:04:00.000-04:00Java "hot debugging", or what they call it, can't ...Java "hot debugging", or what they call it, can't adapt classes, it can only add methods, it seems. When I add any instance variables in Eclipse, the debugged program has to be restarted.<BR/><BR/>Nice new feature!Anonymousnoreply@blogger.com