I am working on a simple DSL and wanted to some form of embedded Clojure to where I can invoke Clojure scripts and have those scripts not effect the bootloader/my main application code.
It seems there are two approaches that sound doable. (A) - With the dynamically loaded clojure scripts, the DSL code, I could load these in its own specific clojure namespace and then clean- up the namespace once it is done. This is discussed in this thread: http://groups.google.com/group/clojure/browse_thread/thread/d98cedb860f16a34/21704fda80aaf067?q=embedded+clojure#21704fda80aaf067 Here is my question, how would I delete the namespace. I may use Java code to run the embedded DSL clojure scripts. (B) - Run new instances of clojure in a completely separate classloader. Option B is OK except writing custom classloaders and dynamically load the clojure jar instance may be too much work for what I am trying to do. What do you think about option A or B, do you have any code that does this? -- You received this message because you are subscribed to the Google Groups "Clojure" group. To post to this group, send email to [email protected] Note that posts from new members are moderated - please be patient with your first post. To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/clojure?hl=en
