The Artima Developer Community
Sponsored Link

Agile Buzz Forum
On the fly modification

0 replies on 1 page.

Welcome Guest
  Sign In

Go back to the topic listing  Back to Topic List Click to reply to this topic  Reply to this Topic Click to search messages in this forum  Search Forum Click for a threaded view of the topic  Threaded View   
Previous Topic   Next Topic
Flat View: This topic has 0 replies on 1 page
James Robertson

Posts: 29924
Nickname: jarober61
Registered: Jun, 2003

David Buck, Smalltalker at large
On the fly modification Posted: Nov 21, 2006 10:03 AM
Reply to this message Reply

This post originated from an RSS feed registered with Agile Buzz by James Robertson.
Original Post: On the fly modification
Feed Title: Cincom Smalltalk Blog - Smalltalk with Rants
Feed URL: http://www.cincomsmalltalk.com/rssBlog/rssBlogView.xml
Feed Description: James Robertson comments on Cincom Smalltalk, the Smalltalk development community, and IT trends and issues in general.
Latest Agile Buzz Posts
Latest Agile Buzz Posts by James Robertson
Latest Posts From Cincom Smalltalk Blog - Smalltalk with Rants

Advertisement

Thomas Gagne has some qualms about modifying production Smalltalk images:

Practically speaking, we could probably open a running image, save code, then parcel-out the fixed classes. That would require our production images to be configured to read-in parcels when it starts up. While technically feasibly, it is impractical. We have a distributed application with multiple Smalltalk images running concurrently and each one would have to be re-initialized.

It's simpler than that, IMHO. I modify the running blog server here all the time. I've outlined the steps before, but what the heck - let's go through it again:

  • I have a base image that loads all parcels at startup. VW can do that via a command line argument, either with the parcels on the command line or in a config file.
  • I have an interface open on the server that allows me to kick it and have it execute specific patches (Smalltalk file-ins)
  • I do development on my local Linux box, and export changes in two forms: a file-out of changes, and a new parcel
  • I upload the file-out to the patch directory on the server, and the new parcel to the startup directory. I don't worry about saving the image - I just ensure that the latest code is ready to load at startup
  • I kick the image so that it loads the patches

That's it. Every major change I've done (including ones that have made shape changes to live objects in the server) has happened on the fly that way. I try not to restart the server, simply to avoid outages.

Technorati Tags: ,

Read: On the fly modification

Topic: How a product launch should work Previous Topic   Next Topic Topic: Constructive disruption and compromised agility

Sponsored Links



Google
  Web Artima.com   

Copyright © 1996-2019 Artima, Inc. All Rights Reserved. - Privacy Policy - Terms of Use