On 22 Jun 2016, at 10:31 AM, Chris Double chris.double@double.co.nz [self-interest] <self-interest@yahoogroups.com> wrote:

Using native code
libraries is a bit painful but some of the work in the 'native' branch
that Russell has been doing looks very promising.

I think I have the core primitives for working with native machine code in reasonable shape but have been stalled for a bit on what to do with callbacks into the VM from other threads.

If anyone feels like helping, on the Self side, at the moment I just call out to a c compiler or assembler. It would be nice if there was a pure Self x86 assembler, or even a simple compiler from a C level language (which would help retargeting if we do that later).

I think this approach stands a good chance of being able to move most of the primitives dealing with integration (sockets, xlib etc) into the Self world and out of the C++ code, without requiring the native-code maker to know too much about the VM’s internals.