murarth / ketos

Lisp dialect scripting and extension language for Rust programs
Apache License 2.0
751 stars 45 forks source link

Multithreading support? #25

Closed matthiasbeyer closed 7 years ago

matthiasbeyer commented 7 years ago

Hi.

Does ketos support multithreading? Can I start a thread within ketos and return something from it? Futures? Mutexes?

Would be nice to have these!

hauleth commented 7 years ago

IIRC there is no threading in stdlib and personally I think that there shouldn't be one. Instead make your own interface (could be as a library). Ketos as a language should be kept as small as possible.

matthiasbeyer commented 7 years ago

There is thread stuff in the stdlib of course!

hauleth commented 7 years ago

@matthiasbeyer I meant Ketos stdlib, not Rust one.

matthiasbeyer commented 7 years ago

ah, okay, sorry.

Okay then. Keeping the stdlib simple seems like a good idea to me! I will close this now.

Thanks for Ketos, awesome project! I guess I will learn a lot digging through the source!

murarth commented 7 years ago

@hauleth is correct. Threading is not currently supported by the interpreter.

It's something I'm interested in exploring, but I don't want to make any half-hearted attempts just to be able to say that it's there.