What gives Smalltalk the ability to do image persistence, and why can't languages like Ruby/Python serialize themselves?
问题 In smalltalk, you're able to save the state of the world into an image file. I assume this has to do with Smalltalk's ability to "serialize" itself -- that is, objects can produce their own source code. 1) Is this an accurate understanding? 2) What is the challenge in adding this ability to modern languages (non-lisp, obviously)? 3) Is "serialization" the right word? What's the correct jargon? 回答1: It's much simpler than "serializing". A Smalltalk image is simply a snapshot of the object