Remix.run Logo
em-bee 2 hours ago

reloading objects from a (changed) source at runtime while keeping their identity and updating clones)

the functionality is still there, but hidden. roxen can reload modules but the reload creates a new object instance which new http requests will get, whereas old requests keep the old instance until the request completes.

however open-sTeam, a collaboration platform developed by a university in germany built a system of proxy objects such that your code always only interacts with the proxy allowing the actual object in the background to be replaced by new instances. in your own code you don't realize you are dealing with a proxy. it's completely transparent. it also stores the object state in a database creating full object persistence. the architecture is very similar to a MUD. they even wrote an object protocol allowing you to access the object from remote, so you can write remote clients that interact with objects with implementations in pike, php and java.

the university is no longer working on that platform, but since they released it as GPL i am able to continue using it as a base for all my websites and web-apps.

persistence and runtime reloading of objects are my favorite features in any language. i just love to be able to change code at runtime without having to restart the server. it works just like i am used to from my LPmud time.