The Artima Developer Community
Sponsored Link

Agile Buzz Forum
Sandbox the second coming

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
Sandbox the second coming Posted: Oct 30, 2006 7:19 AM
Reply to this message Reply

This post originated from an RSS feed registered with Agile Buzz by James Robertson.
Original Post: Sandbox the second coming
Feed Title: Michael Lucas-Smith
Feed URL: http://www.michaellucassmith.com/site.atom
Feed Description: Smalltalk and my misinterpretations of life
Latest Agile Buzz Posts
Latest Agile Buzz Posts by James Robertson
Latest Posts From Michael Lucas-Smith

Advertisement

A long while ago now I published SandboxedSmalltalk and SandboxedSmalltalkTests to public store. This package allowed you to run Smalltalk code that was 'locked in' to a Sandbox and couldn't get out.

The big problem with it, though, was how I'd implemented it. In fact, I had done the dumbest implementation that could possibly work. And when I say dumb - I mean really dumb. I would create parse trees on the method or script I was about to execute, then walk the parse tree checking each step against a policy.

This was slow and error prone. Very slow and very error prone.

Step in a new package, Sandbox - this baby uses the Bytecode of methods and scripts to execute. In fact, it goes one step further and uses the built in Simulation technology that the Debugger and various other Bytecode level services use in the Smalltalk image.

It's a bit like Reinout's TypeInferencer - that also uses the same services to quick spy over Bytecode across the entire system. In short, it's the right approach and it has meant that the new implementation has less code, fewer bugs, more readable and understandable and is actually a great deal faster (well over 100x speed-up).

Enjoy.

Read: Sandbox the second coming

Topic: RubyAnnotations Previous Topic   Next Topic Topic: Smalltalk Daily: 10/26/06

Sponsored Links



Google
  Web Artima.com   

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