4 ms·
> This doesn't need to be a language feature, but this is possible on the JVM afaik (see Clojure). You don't need Clojure; Hot Code Replacement was added in Ja
by _pmf_ 11y ago
> This doesn't need to be a language feature, but this is possible on the JVM afaik (see Clojure).
You don't need Clojure; Hot Code Replacement was added in Java 1.4 (yes, that's 2002) and has been supported by application containers as well as IDEs since then.
- 15155 11y agoGood call - I am not as familiar with JVM-hosted languages, though I knew Clojure was capable of hot code replacement (as any lisp should be!) This is definitely not a new idea.
- lobster_johnson 11y agoIsn't Java's HCR very limited? You can't introduce incompatible classes, for example.
- alxndr 11y agoI've heard that putting together Erlang/Elixir releases isn't trivial; how would that compare?
- lobster_johnson 11y agoNever done it. But I don't think anyone claims you get hot code replacement for free. You have to plan and design your app to support it. That said, it's actually intended for downtime-less upgrades, whereas Java's HCR seems intended for debugging and development.
- alxndr 11y agoAh, that's a pretty significant distinction.