Re: [Chicken-users] Best way to share memory between C and Chicken

2013-05-04 Thread Dan Leslie
With semaphores and shared memory you can basically emulate the behaviour you would expect from native threads. Though I'm not certain about how comparable it is in performance, I understand it to be quite zippy. Ie, shm_open will give you a file descriptor, which you can then treat as a memo

Re: [Chicken-users] Best way to share memory between C and Chicken

2013-05-04 Thread Jörg F . Wittenberger
On May 4 2013, Ivan Raikov wrote: I think you can try to have native threads by running a separate instance of the Chicken runtime for each thread, but are you sure that you will really achieve a significant speedup over Unix processes and/or MPI? It's not the early nineties anymore... I sugges

Re: [Chicken-users] Best way to share memory between C and Chicken

2013-05-04 Thread Dan Leslie
The first release of posix-semaphore is available at: https://github.com/dleslie/posix-semaphore-egg I put some effort to make the return values and parameters scheme-types-friendly, so you should be able to use it in a manner not unlike you would expect to in C. It's thoroughly untested, but I