Questions tagged [hotswap]

"Hotswap" or "Hotswapping" refers to dynamically replacing a class implementation during the runtime of an application.

246 questions
8
votes
1 answer

Can I compile a haskell function from a string at runtime (using plugins)?

I have an application where, for various reasons, I need to run arbitrary, user supplied code. (SafeHaskell makes this nice and secure). I've looked at the plugins package, which is really nice for loading from a .hi file on disc. However, for my…
jmite
  • 8,171
  • 6
  • 40
  • 81
7
votes
2 answers

hot swap code in lua

I've heard mumblings around the internets about being able to hot-swap code in Lua similar to how it's done in Java, Erlang, Lisp, etc. However, 30 minutes of googling for it has turned up nothing. Has anyone read anything substantial about this? …
user457586
7
votes
2 answers

Eclipse: editing and running code live

When editing Java code in Eclipse I can modify the code while it's running in various ways and have those changes take effect without restarting my program. What is the technology underlying this feature? Is it part of Eclipse, or is it something I…
justinhj
  • 11,147
  • 11
  • 58
  • 104
7
votes
3 answers

Static resource reload with akka-http

In short: is it possible to reload static resources using akka-http? A bit more: I have Scala project. I'm using App object to launch my Main class. I'm using getFromResourceDirectory to locate my resource folder. What I would like to have is…
psisoyev
  • 2,118
  • 1
  • 25
  • 35
7
votes
1 answer

IntelliJ & Wildfly - hot deploy webapp

I am using IntelliJ (14.0.3) and Wildfly (8). When I recompile my Java classes, hot swapping is easy and everything works just fine. However, my HTML, JS and CSS files will not hot swap for me. I am sure it is just a configuration issue and was…
el n00b
  • 1,957
  • 7
  • 37
  • 64
7
votes
1 answer

Hot swapping code like Java in C#

Is there a way, in visual studio, I could enable code hot swap? In java, using eclipse at least, you can change code at runtime, save it and it will instantaneous change in your application. I know there is the "edit and continue" feature, but I am…
Philippe Paré
  • 4,279
  • 5
  • 36
  • 56
7
votes
3 answers

Change class instance inside an instance method

Any idea if there is a way to make the following code to work class Test(object): def __init__(self, var): self.var = var def changeme(self): self = Test(3) t = Test(1) assert t.var == 1 t.changeme() assert t.var == 3 is…
vinilios
  • 871
  • 7
  • 15
6
votes
2 answers

Erlang: Offload a client process/function to a server?

My scenario is as follows - I have a client C with function foo() which performs some computation. I'd like a server S, which doesn't know about foo(), to execute this function instead, and send the result back to the client. I am trying to…
Eitan
  • 1,308
  • 3
  • 15
  • 32
6
votes
4 answers

Limitations with Java Hotswap

The java hotswap feature save a lot of time for me. However, it has many limitations (like schema change is not supported). Any idea if the limitation is going to be addressed any sooner? According to this forum entry, it seems to be ignored. I know…
amit
  • 10,612
  • 11
  • 61
  • 60
6
votes
1 answer

Gradle + IntelliJ: HotSwap in a plain Java application

For a plain Java/Swing application, I am currently migrating the ant buildscripts to a gradle build. While I got it up and running quickly, changes in recompiled classes are no longer picked up while debugging in IntelliJ IDEA. All my build/run…
bskp
  • 350
  • 4
  • 12
6
votes
3 answers

Eclipse Hot Code Replace Fail - republish web application

I use the Hot Swap java debugging feature with web app on Tomcat. After some class signature change, I got "Hot Code Replace Fail" Eclipse dialog - I understand that. What I want in such case is to republish the application (I can do that) and work…
edudant
  • 719
  • 6
  • 6
6
votes
1 answer

How do I prevent Maven's spring-boot plugin from copying static resources to target?

I recently updated the OS on my laptop (Linux Mint 17.1 => 17.3) and now when I run my project with mvn spring-boot:run static resources are copied to the target folder, essentially caching them. Thus I have to completely bounce the server to see…
anikolis
  • 81
  • 5
6
votes
4 answers

Do other languages apart from Erlang have the ability to send code to running instances?

I just learnt that Erlang can remote load code and modules onto all instances of a cluster by using the "nl" command. Can any other languages do this?
yazz.com
  • 57,320
  • 66
  • 234
  • 385
6
votes
7 answers

HotSwaping code into "mvnDebug tomcat:run"

Usually i start tomcat using mvnDebug tomcat:run. After Code-change i need to use mvn tomcat:redeploy. This is sub-optimal because i often only change content of existing method-bodys. Can I HotSwap the method's body into the runtime, and…
Grim
  • 1,938
  • 10
  • 56
  • 123
6
votes
1 answer

Are there reference implementations of hot-swapping in .NET?

I'm looking for a good implementation of hot-swapping done in .NET. The things I need are: Being able to deploy DLLs in a particular folder and have a running system pick them up. Having the running system update corresponding references in the…
Dmitri Nesteruk
  • 23,067
  • 22
  • 97
  • 166
1 2
3
16 17