Hacker News new | ask | show | jobs
by haldean 3850 days ago
It's been done in C; check out libmill[0], which even matches the syntax pretty well.

[0]: http://libmill.org/

2 comments

If "it" includes parallelism then no, libmill has not done it:

"Libmill is intended for writing single-threaded applications." http://libmill.org/documentation.html#multiprocessing

Yeah, you can do this in C if you do stack switching with a little bit of assembly. It's kind of doing a custom runtime environment for C. Not many other languages can do this.