News for hackers. Stuff that matters.
Re:The New Ruby Ecosystem by stcredzero on Friday June 25, 2010 @05:06PM (#1462163)
You have that in the Smalltalk environment in the Changes Log. It is -- wait for it -- a text file! In fact, it gives you database-log like replay-ability in your entire development environment. "Being able to derive everything in a running system from source code," is exactly what it's for, and it's actually more capable and powerful than what you can get from source files. All of that scripting against the objects I was talking about? You can replay all that stuff too! If you do something stupid-dangerous like, "Semaphore allInstances do: [ :each | each release ]" then you can just exclude that last action when you replay the Change Log. Combined with image save, it gives you the freedom to live as dangerously as you like!

The classic demo -- have your students spend 1/2 hour writing some toy system. Then have them hard-reboot their machines without saving the image. Show them how they can restart the image, grab the Change List tool, and voila, all their source code is back!

To answer your question: it's possible that the source can be absent, but you have to execute an explicit command or do some sort of willful sabotage to make it happen that way. Really, it isn't so different from having separate source and executable files.

Re:The New Ruby Ecosystem by cageface on Friday June 25, 2010 @06:59PM (#1462485)
So why does image-based development suck for deployment? If you can regen an environment from a simple text file what's the issue?
Re:The New Ruby Ecosystem by stcredzero on Saturday June 26, 2010 @08:53AM (#1463611)
Because the environment that thing is designed to regen is the development environment. That's not the environment you want to give to your users. This isn't so big a deal with things like web application servers, but it is very much a big deal with desktop applications.

It used to be, the way you deploy environments involved stripping out the parts you didn't need for your application. This is doable, but it is a pain, and if you do it wrong, your app blows up sometime when you don't expect. ObjectStudio Smalltalk can bootstrap itself from source files, so you can avoid stripping. VisualWorks tries to build itself up from components (Parcels) on a base image as a deployment strategy. These are less painful than stripping, but your app still blows up if you do them wrong.

Combine that with some vendors not being all that concerned about testing deployment, and you have a potential mess.

Image-based deployment done right - have two images. Your devlopment tools go in the second image. To deploy, you simply leave out the 2nd one.

Re:The New Ruby Ecosystem by lmz on Saturday June 26, 2010 @02:49AM (#1463270)
I imagine filtering out all the irrelevant lines from the changes log would be an issue if you went that route.