6

I'm not sure if the question is well-posed as english is not my mother tongue. Is it possible to connect lua and javascript together? I did not find anything about that yet.

Or is it possible e.g. in a html-file to script with both languages like

<html>
<head>
</head>
<body>
    <script></script>
    <?lsp 
    ?>
</body>
</html>

and maybe to share information between those languages?!

or ist it maybe possible to use lua in js or js in lua? like

<script><?lsp ?></script>
<?lsp 
<script></script>
?>
2
  • You could have a look at something like moonshinejs.org but not natively, no Commented Feb 18, 2018 at 11:40
  • Thank you :) gonna read me through that! Commented Feb 19, 2018 at 11:52

1 Answer 1

14

You have a few options for Lua usage on the front-end (this is probably what you're aiming for as you'd like to connect/replace JS with Lua):

There is some interesting WASM stuff in the works, like:

For back-end there are even more options. Most noticeable are probably:

I've listed just a few. There is a lot.

Sign up to request clarification or add additional context in comments.

1 Comment

thank you very much for all the work! I'm gonna read me through that! :)

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.