![]() ![]() Instead, we designed a hybrid GC scheme that provides enumeration ![]() Is generally available, so neither option was possible for SqueakJS. In JavaScript, neither weak references, nor access to the GC ![]() These are then temporarily kept in a list for enumeration. Host garbage collector to trigger a full GC and yield all objects of aĬertain type. Other implementations, like the R/SqueakVM, use the ![]() Potato used a weak-key object table to keep track of objects to enumerate them. Not provide enumeration, as is the case for Java and JavaScript. This is not possible in a hosted implementation where the host does In Squeak, this is easily implemented since all objects are contiguous in memory, so one can simply scan from the beginning and return the next available instance. >Many core functions in Squeak depend on the ability to enumerate objects of a specific class using the firstInstance and > a hybrid garbage collection scheme to allow Squeak objectĮnumeration without a dedicated object table, while delegatingĪs much work as possible to the JavaScript GC, Support for using Smalltalk in a JavaScript environment. Only a “Squeak in the browser”, but also that it provides practical Re-use existing JavaScript tools to inspect and manipulate Squeak This has proven useful during development as we could JavaScript objects and integrates with the JavaScript garbage collection (GC) allows existing JavaScript code to interact with Squeak >The fact that SqueakJS represents Squeak objects as plain SqueakJS: A Modern and Practical Smalltalk That Runs in Any Browser One thing that's amazing about SqueakJS (and one reason this VM inside another VM runs so fast) is the way Vanessa Freudenberg elegantly and efficiently created a hybrid Smalltalk garbage collector that works with the JavaScript garbage collector. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |