poga / actix-lua

Safe Lua Scripting Environment for Actix
MIT License
121 stars 13 forks source link

Add support for more scripting languages #25

Closed naturallymitchell closed 5 years ago

naturallymitchell commented 5 years ago

Is your feature request related to a problem? Please describe. Lua is only one good scripting language. Others, especially native Rust ones would be good to support.

Describe the solution you'd like Make each language a plugin or feature, perhaps.

Describe alternatives you've considered Forking actix-lua to make actix-otherlang, but that would be very limited and stale.

Additional context Some good looking languages: Ullage, Molten, Rulox, Tox, and SimpleJIT Demo.

poga commented 5 years ago

Embedding languages are, by design, tightly coupled with the host. They also have their own trade-offs, binding interfaces, memory management, performance profile,...etc. Switching to a new language is basically a total rewrite.

actix-lua picks Lua specially because:

  1. coroutines make asynchronous programming easier.
  2. sophisticated module cache and reloading.
  3. Lightweight and easy to use.

So, I think this issue is too board and not actionable.

naturallymitchell commented 5 years ago

Okay. Could you please advise then how to go about similarly embedding Ullage, for example?

poga commented 5 years ago

I have no experience in Ullage or other languages you've mentioned. Sorry.

naturallymitchell commented 5 years ago

Well, off course not. Lua is 26 years old, and these Rust-based languages are on average 1 year old. Ullage looks like the most interesting one. If you have a couple min, I'd really appreciate your views on using one of these similar to how we're using Lua now.

poga commented 5 years ago

As I said, if you want to make bindings between actix and the language you want, you better off start from scratch.

It's unrelated to actix-lua and I can't help you with it.

naturallymitchell commented 5 years ago

Ok, ty @poga