Sweet. Thanks!

On Tue, Aug 20, 2013 at 3:51 PM, Toby Crawley <t...@tcrawley.org> wrote:

>
> David Pollak writes:
>
> > I have an application where I need multiple independent Clojure contexts
> > running in the same JVM.
>
> You can use ShimDandy[1] to load multiple Clojure runtimes in the same
> JVM, and call into those runtimes from Java. That's what Immutant[2] and
> the Clojure language module for Vert.x[3] use currently to achieve
> runtime isolation.
>
> One gotcha with loading multiple Clojure runtimes is memory leaks - if
> you intend to load and unload more than a couple of runtimes, you'll
> quickly exhaust permgen. The workaround there is to wait for Clojure
> 1.6.0 (assuming CLJ-1125[4] gets applied), or use a fork of Clojure that
> has the CLJ-1125 fixes in it[5].
>
> The ShimDandy docs are completely non-existent at this point, but an
> example of usage is [6]. If you have interest in using it, I'm happy to
> help you get started, and to write some docs.
>
> [1]: https://github.com/projectodd/shimdandy
> [2]: http://immutant.org/
> [3]: https://github.com/vert-x/mod-lang-clojure
> [4]: http://dev.clojure.org/jira/browse/CLJ-1125
> [5]: https://clojars.org/org.clojars.tcrawley/clojure
> [6]:
> https://github.com/vert-x/mod-lang-clojure/blob/master/lang-module/src/main/java/io/vertx/lang/clojure/ClojureVerticleFactory.java
>
> --
> Toby Crawley
> http://immutant.org | http://torquebox.org
>
> --
> --
> You received this message because you are subscribed to the Google
> Groups "Clojure" group.
> To post to this group, send email to clojure@googlegroups.com
> Note that posts from new members are moderated - please be patient with
> your first post.
> To unsubscribe from this group, send email to
> clojure+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/clojure?hl=en
> ---
> You received this message because you are subscribed to the Google Groups
> "Clojure" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to clojure+unsubscr...@googlegroups.com.
> For more options, visit https://groups.google.com/groups/opt_out.
>



-- 
Telegram, Simply Beautiful CMS https://telegr.am
Lift, the simply functional web framework http://liftweb.net
Follow me: http://twitter.com/dpp
Blog: http://goodstuff.im

-- 
-- 
You received this message because you are subscribed to the Google
Groups "Clojure" group.
To post to this group, send email to clojure@googlegroups.com
Note that posts from new members are moderated - please be patient with your 
first post.
To unsubscribe from this group, send email to
clojure+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
"Clojure" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to clojure+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to