Can we have subclasses of Process?
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
I've used subclasses of process for the debugger stuff without problems. Max On 17 August 2017 at 14:05:14, Denis Kudriashov (dionisiydk@gmail.com) 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
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: http://guillep.github.io/files/publications/Poli14b-IWST-GlobalStateClassifi... On Thu, Aug 17, 2017 at 2:24 PM, Max Leske <maxleske@gmail.com> wrote:
I've used subclasses of process for the debugger stuff without problems.
Max
On 17 August 2017 at 14:05:14, Denis Kudriashov (dionisiydk@gmail.com) 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* <http://www.cnrs.fr> *Web:* *http://guillep.github.io* <http://guillep.github.io> *Phone: *+33 06 52 70 66 13
EventualProcess is in eventual_test [*], as example. Do not run RefsTest>>#testFailedArithmaticwithEventualArgument or will segfault vm. - HH [*] - http://www.squeaksource.com/TurquoiseTesting/eventual_test-hh.4.mcz On Thu, Aug 17, 2017 at 08:33, Guillermo Polito <guillermopolito@gmail.com> 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:
http://guillep.github.io/files/publications/Poli14b-IWST-GlobalStateClassifi...
On Thu, Aug 17, 2017 at 2:24 PM, Max Leske <maxleske@gmail.com> wrote:
I've used subclasses of process for the debugger stuff without problems. Max
On 17 August 2017 at 14:05:14, Denis Kudriashov (dionisiydk@gmail.com) 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
Phone: +33 06 52 70 66 13
Hi Denis, as others have pointed out one can subclass Process. One can also add instance variables to Process. The constraint is that the first four (*) instance variables must be left unaltered. The VM makes use of the first four: Object subclass: #Link instanceVariableNames: 'nextLink' Link subclass: #Process instanceVariableNames: 'suspendedContext priority myList... (*five when we have the multithreaded FFI, the fifth being threadId used to bind processes to specific OS threads when required) The same goes for ProcessorScheduler - the VM uses quiescentProcessLists & activeProcess, and Semaphore - the VM uses firstLink lastLink & excessSignals. On Thu, Aug 17, 2017 at 5:03 AM, Denis Kudriashov <dionisiydk@gmail.com> 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
-- _,,,^..^,,,_ best, Eliot
participants (5)
-
Denis Kudriashov -
Eliot Miranda -
Guillermo Polito -
henry -
Max Leske