Skip to content
This repository has been archived by the owner on Mar 10, 2023. It is now read-only.

Add support for more scripting languages #25

Closed
naturallymitchell opened this issue Jan 24, 2019 · 6 comments
Closed

Add support for more scripting languages #25

naturallymitchell opened this issue Jan 24, 2019 · 6 comments

Comments

@naturallymitchell
Copy link
Contributor

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
Copy link
Owner

poga commented Jan 24, 2019

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
Copy link
Contributor Author

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

@poga
Copy link
Owner

poga commented Jan 24, 2019

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

@naturallymitchell
Copy link
Contributor Author

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
Copy link
Owner

poga commented Jan 24, 2019

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.

@poga poga closed this as completed Jan 24, 2019
@naturallymitchell
Copy link
Contributor Author

Ok, ty @poga

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants