Context Sandbox

This came to me when I saw some students carrying their CPUs to the presentation for a course. There is this course we have. Dealing with databases. And for that course the students have to do a project - a program. The platform could be anything, as long as it used databases for functioning - ASP, VB, VC++ whatever. And at the end of the term, the students taking that course have to make a presentation.

For the presentation, the students had to carry their CPUs to the professor. Why? Well basically, the architecture for the project required the students to connect to a remote database. And this was generally a painful process, considering that we are not doing Computer Science here, and most of the times, a final connection is establised through a lot of trial and error. By the time a connection is established and a connection string is finalized, a number of changes would have been done to the system that the student is working on, and the student would not be in a position to replicate the same on another machine.

Thus, this database project used to fail regularly, if the student just carried around the program as code, or as the executable (remember the DAOs and ADOs required were part of the OS) or in any other format. This almost forced the program to run only on the machine it has been written to run in. Thus we saw people carrying CPUs to and fro the prof's room for the presentation. The idea was that the all that needed to be added was power, and the program would run.

What do we have as part of a computer system. An application and data. Right? Wrong. There is also a context. The context is the executing environment of the application. Now in modern computing, this context is defined by the OS to an extent. And the context is realised by .dlls, APIs etc. The idea being that those entities not inherent to a particular application should be outsourced and be maintained by another party, or the OS. But look carefully, there are a lot of cases when third party tools are installed only for a particular program.

Lets look at some examples from the Windows world. Plugins into programs are one such set. Say Photoshop plugins, or Internet Explorer plugins, or Acrobat Reader plugins. For most of the scenarios, the application (Acrobat) and the data (.pdf file) alone would constitute the complete context. But for say some other scenarios, the plugin would also be a part of the context. Without it, having both the application and the data would be effectively useless.

Lets look at another example. Codecs. Say you have an AVI file. An AVI file normally can encode its video and audio streams in different formats and the application requires codecs to understand the two streams. Now what good is a great movie (data) on your machine (media player) without the Codec.

The above examples illustrate the need for an execution context in addition to the application and the data. Now lets look at what a context sandbox is.

A context sandbox is that minimum amount of information which will allow an action to be performed on a secondary machine, when the action is currently being performed as such on a primary machine.

There are some qualifications to be stated here:

  1. It is assumed that the primary and secondary machines are fundamentally capable of performing the action. In other words no definable context sandbox can exist for your washine machine to play your favourite movie.
  2. Information will be assumed to mean only that relating to software. Software will also be loosely defined as a sum of data and instructions. This means that information such as "Go get a life, buy another mp3 player" is not a context sandbox for a primary machine which is an mp3 player.
  3. Quality of performance is not an issue we will be dealing with here. Fundamental capability does not promise quality of performance.
  4. A machine is defined as the sum of all units that allow performance of a particular task. This includes hardware, software and any other environmental issues including power, temparature etc.
  5. Performance "as such" implies without change to the machine. Of course the machine being as described above.

So that is the idea. We will look more into ramifications of it in future posts.

Watched Memento today. Really kewl movie. This is the second time. Nothing new was learnt, but spent some time on the nuances of the amount of overlap the screenplay writer allowed between the scenes. Really well thought out.


September 08, 2002


Uchiha Itachi said...

Very insightful article, though it didn't helped me solve the encode barcode ean8 in vb problem, it taught me a lot.

Popular Posts

Subscribe / Share

Subscribe via email:

 Subscribe in a reader

 Follow me on Twitter

Blog Labels

2.0 (8) 4chan (1) 5800 (12) accounting (1) activities (1) advertising (1) airlines (2) (5) android (16) animation (2) app (1) apple (4) april fools (1) article (13) astronomy (1) athiesm (1) atom (2) awesome (2) battery (2) BBC (1) beta (2) biology (1) blender (1) blog (29) books (2) brain (1) BSG (1) business (7) camera (1) catb (2) chemistry (1) china (1) cloud (1) coca-cola (1) code (2) communication (8) cool (9) cosmology (1) creative (4) cricket (1) crowd sourced (2) currency (1) data (2) democracy (1) DIY (2) DMCA (1) DRM (1) easter egg (1) ebooks (1) economics (3) education (1) emergence (3) english (3) evolution (1) exercise (1) facebook (1) fail (1) fair use (1) fcc (2) feedburner (3) fffuuu (5) fiction (1) fifa (1) finance (1) firmware (7) fitbit (1) fitness (1) flash (1) flight (2) football (1) foss (6) free (2) freedom (2) funny (13) futuristic (1) gadgets (31) Galaxy SII (4) games (9) GDesk (2) gif (1) gimp (5) gmail (3) google (18) groupon (2) guitar (2) hack (2) history (5) hobbies (4) how-to (4) humor (1) iaudio (1) ice cream sandwich (3) ICS (3) ideas (13) IKEA (1) India (1) infographic (9) information (5) informative (3) inkscape (1) input (1) interesting (8) internet (5) iphone (1) japan (1) jellybean (1) kindle (3) knowledge (4) language (3) leet (1) lightning (1) links (13) Linux (5) log (1) LOST (2) LOTR (1) luddite (1) metal (1) microsoft (4) milestone (1) milwaukee (1) MIT (1) mobile (16) money (1) moot (1) morality (2) movies (5) MPAA (1) music (15) NASA (1) net neutrality (3) netflix (1) Netgear 3500L (6) networking (1) news (18) nexus one (3) nokia (13) NPR (9) nuclear (1) operating systems (1) opinion (29) p2p (3) philosophy (19) photography (6) physics (3) physiology (1) pipes (3) piracy (1) prank (1) presentation (1) privacy (3) programming (3) psychology (8) puzzles (1) quiz (1) rage comic (5) ramblings (21) rants (14) review (11) RIAA (1) robots (1) rock (1) root (1) RPG (1) rss (3) RTS (1) Samsung (2) sceptic (1) school (1) science (10) search (3) security (6) short story (1) shorts (1) simplicity (1) slashdot (2) SMB (1) snow (1) social (6) society (9) spam (1) spelling (1) spirituality (2) startup (1) statistics (1) storage (1) strategy (1) string theory (1) sustainability (1) swing (1) swype (2) symbol (1) syndication (1) tablet (4) technology (19) TED (10) television (1) template (1) time travel (2) tips and tricks (3) TomatoUSB (4) tools (6) toshiba thrive (6) travel (3) travelogue (1) triz (1) troll (1) troubleshooting (4) tutorial (5) TV (2) ugly (1) update (2) upgrade (8) useful (2) user interface (13) vacation (1) verizon (1) video (6) visualization (1) volunteering (1) VPN (1) wave (2) webcomics (9) webseries (1) website (1) wifi (2) wii (2) wiki (1) windows (1) wolfram alpha (2) world-cup (1) worldcup (1) www (1) x5 (1) xobni (1) yahoo (2) youtube (1) yro (3) ze frank (1)



Bloggers' Rights at EFF


Support CC


No Connection, Unpaid, My Own Opinions