3 ms·
> which implements all madatory primitives (i.e. system calls) Essentially, it's a collection of device drivers. > I implemented some tools with which this ca
by rbanffy 1y ago
> which implements all madatory primitives (i.e. system calls)
Essentially, it's a collection of device drivers.
> I implemented some tools with which this can be easily studied
Really cool. I'll check it out.
> You can even run the Smalltalk VM (or any other dynamic language) in a Unix userland and have exactly the same modifiability
That's kind of cheating. All the dynamic behavior is on the Smalltalk side, and nothing of it is on the Linux side. Apart from loadable modules, Linux doesn't change behavior at runtime (IIRC, you can't swap process schedulers after startup).
- Rochus 1y ago> Essentially, it's a collection of device drivers. Plus memory management, interrupt handling, and some other stuff, everything you would expect from a single-tasking kernel. > and nothing of it is on the Linux side You likely mean the kernel. There is more to Linux/Unix than just the kernel. You can even have your dynamically modifiable scheduler in the userland if you want. And for the (few) people who really think full dynamic modifiability is a relevant requirement, there are also some other technologies which offer similar flexibility as Smalltalk, or somewhere between (as e.g. the Gnome Window manager with GTK operated via a scripting language, or Stump, Sawfish, Qtile, etc.). The kernel which runs below Smalltalk (or the Smalltalk interpreter, i.e. the thing which runs the Smalltalk bytecode and manages object memory) neither "change behaviour at runtime". So if we do the correct comparision, there is not much difference when it comes to runtime modifiability.
- igouy 1y ago> the thing which runs the Smalltalk bytecode VM ? "There are about one hundred primitive methods that the Smalltalk-80 virtual machine knows how to perform."
- Rochus 1y agoThe VM includes a bytecode interpreter and some other functions; its implementation cannot be changed during runtime.