Re: [Pharo-users] how to load compiled code in the image and to change methods already on the stack?

2018-02-27 Thread Andrew P . Black
> On 26 Feb 2018, at 22:59 , Steven Costiou > wrote: > > Hi Pablo, > > thanks :) I will try Hermes. > > Basic scenario is adding/removing metalinks to a lot of a methods in an iot > app: > > 1- If the add/remove occurs a lot of

Re: [Pharo-users] how to load compiled code in the image and to change methods already on the stack?

2018-02-26 Thread Steven Costiou
Hi Pablo, thanks :) I will try Hermes. Basic scenario is adding/removing metalinks to a lot of a methods in an iot app: 1- If the add/remove occurs a lot of time, then there is a slowdown due to recompilation of methods. As this is a remote app, i want to try recompiling all methods locally

Re: [Pharo-users] how to load compiled code in the image and to change methods already on the stack?

2018-02-26 Thread teso...@gmail.com
Hi Steven, 1. You can use Hermes through a socket or a file. The only pre-requisite is that both images run similar compatible compilers (usually you can use it from and to Pharo 6.1 and 7) 2. You can change the method, but if there is an activation context in the stack everything can be wrong.

Re: [Pharo-users] how to load compiled code in the image and to change methods already on the stack?

2018-02-26 Thread Guillermo Polito
On Sun, Feb 25, 2018 at 12:59 PM, Steven Costiou wrote: > Le 2018-02-25 08:37, Stephane Ducasse a écrit : > > On Sat, Feb 24, 2018 at 11:23 AM, Steven Costiou > wrote: > > Hi, > > is this possible somehow to: > > - load compiled code in the

Re: [Pharo-users] how to load compiled code in the image and to change methods already on the stack?

2018-02-25 Thread Steven Costiou
Le 2018-02-25 08:37, Stephane Ducasse a écrit : > On Sat, Feb 24, 2018 at 11:23 AM, Steven Costiou > wrote: > >> Hi, >> >> is this possible somehow to: >> >> - load compiled code in the image? like loading a compiled method instead of >> loading source then compiling

Re: [Pharo-users] how to load compiled code in the image and to change methods already on the stack?

2018-02-24 Thread Stephane Ducasse
On Sat, Feb 24, 2018 at 11:23 AM, Steven Costiou wrote: > Hi, > > is this possible somehow to: > > - load compiled code in the image? like loading a compiled method instead of > loading source then compiling it? why is this a problem? you could try to serialise a method

[Pharo-users] how to load compiled code in the image and to change methods already on the stack?

2018-02-24 Thread Steven Costiou
Hi, is this possible somehow to: - load compiled code in the image? like loading a compiled method instead of loading source then compiling it? - dynamically change a method that is on the stack? If so, how? :) Steven.