3 ms·
The disnguishing factor is prescheduling vs cooperative scheduling. In all those other languages each process has to hand control back to the scheduler - meanin
by brightball 10y ago
The disnguishing factor is prescheduling vs cooperative scheduling. In all those other languages each process has to hand control back to the scheduler - meaning runaway code can negatively impact everything, pause the entire stack to garbage collect and can't transparently distribute itself across machines because of shared memory (you can't transparently pass a pointer).
Those are design decisions you can't bolt on later. Isolation, prescheduling and message passing without shared memory get you access to all of that.
- pjmlp 10y agoYes you can, has been done in Java, .NET, Active Oberon and Modula-3, just from the top of my head. It is only a matter of making use of the said compiler hooks and underlying machinery.
- brightball 10y agoI'm not familiar with Active Oberon or Modula 3, but Java and .NET absolutely do not. You can bolt on message passing but it's a constraint of the VM to properly handle prescheduling and heap per process isolation. Mimicking the patterns doesn't replace the VM.
- pjmlp 10y agoJava and .NET are not only the Java and C# programming languages. There are for example, distributed agent programming languages built on top of them, including network aware distributed GCs.