photon icon indicating copy to clipboard operation
photon copied to clipboard

Generalize beyond D language

Open belm0 opened this issue 7 years ago • 1 comments

I wonder if it's possible to keep Photon's syscall hooks and scheduling machinery general, so for example it could be used with Lua (coroutines), etc.

It seems a challenge for Photon will be robustness and completeness in the face of supporting many platforms and C library cases. So widening the audience may help.

belm0 avatar Jun 22 '18 23:06 belm0

@belm0 Yes and yes! That’s the plan going forward.

Indeed Photon should become betterC compatible. Even right now it doesn’t rely on DRuntime save for Thread and Fiber class, Mutex/CondVar.

While I want to have Windows version “complete” first and solve other issues. I believe that Photon should also have small C API and be easily usable from plain C and any other language

DmitryOlshansky avatar Jun 23 '18 06:06 DmitryOlshansky