Skip to content

Instantly share code, notes, and snippets.

@Raynes
Created March 21, 2010 16:45
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Raynes/339394 to your computer and use it in GitHub Desktop.
Save Raynes/339394 to your computer and use it in GitHub Desktop.
user> (ns net.licenser.sandbox)
nil
net.licenser.sandbox> (enable-security-manager)
nil
net.licenser.sandbox> (def sc (create-sandbox-compiler))
#'net.licenser.sandbox/sc
net.licenser.sandbox> ((sc "(+ 2 2)") {})
; Evaluation aborted.
net.licenser.sandbox> ((sc "2") {})
2
net.licenser.sandbox> ((sc "(- 2 2)") {})
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment