Skip to content

Request: Add Lua Language Support to Wasmer #5335

Open
@JustKira

Description

@JustKira

Thanks for proposing a new feature!

Motivation

The motivation behind this request stems from my ongoing project to build a custom game engine where the core is developed in Rust, and the UI layer is implemented in Lua alongside my custom language. The idea is to allow developers to contribute to the engine using different languages, enabling the creation of specific features in their preferred language while maintaining seamless integration within the same engine.

Wasmer appears to be the ideal foundation for this project due to its support for multiple languages. However, Lua—an essential component of my project—is currently not supported. This feature would fill a critical gap in Wasmer’s otherwise robust language support and make it an even more versatile runtime.

Proposed solution

Add support for the Lua language in Wasmer. This feature would allow developers to compile Lua code to WebAssembly and execute it via Wasmer, similar to the existing support for other languages. Ideally, this could include:

A Lua-to-WASM compiler or integration with existing compilers.
Runtime compatibility with Lua-specific features, such as its lightweight nature and efficient scripting capabilities.

Alternatives

I’ve explored existing Lua-WASM and Lua-Rust interpreters, but they don't fully meet the needs of this project, particularly when it comes to the ability to seamlessly integrate multiple languages within a single engine runtime. By integrating Lua support directly into Wasmer, the ecosystem gains flexibility and scalability, aligning with Wasmer's goal of being a universal WebAssembly runtime.

Additional context

This feature would open doors for projects that require multi-language integration, particularly in game engines, scripting, or similar domains. Lua’s lightweight design and widespread use make it a strong candidate for inclusion in Wasmer’s supported languages.

For reference, there was a related issue (#2612) that was previously closed without a solution. Given the importance of Lua for projects like mine, I believe this deserves reconsideration.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions