Skip to content

Instantly share code, notes, and snippets.

@thomaslee
Created January 23, 2013 07:08
Show Gist options
  • Save thomaslee/4602749 to your computer and use it in GitHub Desktop.
Save thomaslee/4602749 to your computer and use it in GitHub Desktop.
#
# Compile it ...
#
var mod = compile(...);
#
# Pin it to the current GC (using something like the builtin module hash)
#
register("mymod", mod);
#
# Use it.
#
var t = spawn some_task(mod.some_func);
t.join();
#
# So long, mymod.
#
unregister("mymod");
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment