Can we have subclasses of Process?

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
4 messages Options
Reply | Threaded
Open this post in threaded view
|

Can we have subclasses of Process?

Denis Kudriashov
Hi.

Is it allowed to subclass Process?  I remember that there were some problems with it but I could not find any information.  

Generally I think about system processes which can be represented by concrete subclasses. For example explicit UIProcess can be used to remove many #isUIProcess conditions from system.

Best regards,
Denis
Reply | Threaded
Open this post in threaded view
|

Re: Can we have subclasses of Process?

Max Leske
I've used subclasses of process for the debugger stuff without problems.

Max

 

On 17 August 2017 at 14:05:14, Denis Kudriashov ([hidden email]) wrote:

Hi.

Is it allowed to subclass Process?  I remember that there were some problems with it but I could not find any information.  

Generally I think about system processes which can be represented by concrete subclasses. For example explicit UIProcess can be used to remove many #isUIProcess conditions from system.

Best regards,
Denis
Reply | Threaded
Open this post in threaded view
|

Re: Can we have subclasses of Process?

Guillermo Polito
I think there is no technical limitation for it, AFAIK, the VM never checks the class of a process. I also proposed something like that in this paper:


On Thu, Aug 17, 2017 at 2:24 PM, Max Leske <[hidden email]> wrote:
I've used subclasses of process for the debugger stuff without problems.

Max

 

On 17 August 2017 at 14:05:14, Denis Kudriashov ([hidden email]) wrote:

Hi.

Is it allowed to subclass Process?  I remember that there were some problems with it but I could not find any information.  

Generally I think about system processes which can be represented by concrete subclasses. For example explicit UIProcess can be used to remove many #isUIProcess conditions from system.

Best regards,
Denis



--

   

Guille Polito


Research Engineer

French National Center for Scientific Research - http://www.cnrs.fr



Web: http://guillep.github.io

Phone: +33 06 52 70 66 13

Reply | Threaded
Open this post in threaded view
|

Re: Can we have subclasses of Process?

henry
EventualProcess is in eventual_test [*], as example. Do not run RefsTest>>#testFailedArithmaticwithEventualArgument or will segfault vm.

- HH



On Thu, Aug 17, 2017 at 08:33, Guillermo Polito <[hidden email]> wrote:
I think there is no technical limitation for it, AFAIK, the VM never checks the class of a process. I also proposed something like that in this paper:


On Thu, Aug 17, 2017 at 2:24 PM, Max Leske <[hidden email]> wrote:
I've used subclasses of process for the debugger stuff without problems.

Max

 

On 17 August 2017 at 14:05:14, Denis Kudriashov ([hidden email]) wrote:

Hi.

Is it allowed to subclass Process?  I remember that there were some problems with it but I could not find any information.  

Generally I think about system processes which can be represented by concrete subclasses. For example explicit UIProcess can be used to remove many #isUIProcess conditions from system.

Best regards,
Denis



--

    

Guille Polito


Research Engineer

French National Center for Scientific Research - http://www.cnrs.fr



Web: http://guillep.github.io

Phone: +33 06 52 70 66 13