2

I'm using OSGi for some time and I really like the ability to swap/replace components while my application is running. I simply have to build my module and push it to the OSGi container.

Is there a similar concept/framework for clojure?

I know about leiningen's dependency management which really helps modularity but I know of no built-in way to hot swap code.

1
  • 1
    Clojure has high-order functions and immutability. You can "hot-swap" any time you like. A Google Search for Clojure Hot Swap yielded this as the first search result. Jun 24, 2014 at 16:16

1 Answer 1

2

The notion of "hot swapping" doesn't really make sense in Clojure, at least not as something different from normal. It's always possible to change things by re-evaluating the code that you want to change.

It's worth having a look at pomegranate which allows you to dynamically add new dependencies.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.