mlua
DISCONTINUED
assemblyscript
Our great sponsors
mlua | assemblyscript | |
---|---|---|
17 | 29 | |
- | 16,372 | |
- | 0.9% | |
- | 7.6 | |
- | 16 days ago | |
WebAssembly | ||
- | Apache License 2.0 |
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
mlua
-
Do Rust and Lua work well together?
I'm not a specialist about text based multiplayer game, but from what I saw on Wikipedia it seem doable to do it with Rust and Bevy. On top of that you can add a layer of LUA with https://github.com/khvzak/mlua (or write your own bindings and sandbox later).
- I was searching for embedded lanaguages in Rust and I found out I can use deno https://deno.land/[email protected]/embedding_deno which is amazing has anyone tried it ?
-
Repos using rlua/mlua
You can also look at the "dependents" section on crates.io https://crates.io/crates/mlua/reverse_dependencies and github https://github.com/khvzak/mlua/network/dependents
-
Rust and Lua api
Note rlua doesn't allow you to create native modules with it and has largely been superseded by https://github.com/khvzak/mlua since it's more maintained, has native module support and stuff like Luau and async/await.
-
Announcing mlua 0.8.0-beta with Roblox Luau support
I'm glad to announce first mlua version 0.8.0-beta.1 with Roblox Luau support.
-
Lua: Good, Bad, and Ugly Parts
I believe mlua [0] is the recommended Lua Rust binding now.
-
Dash.nvim v0.8.0 now supports Telescope, fzf-lua, and Snap fuzzy finders!
This is achieved through a backend/client architecture -- all core functionality (getting query results, opening selected item, search engine fallback, etc.) is implemented in a "backend" module, which is a Rust library exposed as a Lua module via mlua. The results returned by the backend then get fed into your fuzzy-finder of choice through thin clients, or "providers".
-
Dash.nvim is now blazing fast with native Rust bindings!
Enter the newest iteration: native Rust bindings to Lua! Instead of communicating with the Rust backend through a Plenary job. the Rust backend now directly exposes a Lua API using the excellent mlua library which provides high-level Rust bindings to Lua. This allows me to basically implement a Lua module in Rust, so while the backend is written in Rust, you can directly import it as a Lua module (e.g. require('libdash_nvim').query()).
-
What scripting language and what implementation would you use with your program written in Rust?
I really love mlua. The api is excellent. You can convert between Rust and Lua values either with the ToLua and FromLua traits, and also serde serialization/deserialization. I tend to use a little of both.
-
I spent 1 year of my life on making a fast as fuck Vim completion client with ass loads of features. (Author of CHADTree)
Lua is able to call back between C and Lua, just like Python. Rust wrappers/implementations like mlua exist to make this possible between Rust and Lua too.
assemblyscript
-
Let's Write a Malloc
Incidentally, itโs also what AssemblyScript uses: https://github.com/AssemblyScript/assemblyscript/blob/main/s...
-
Gentle Introduction To Typescript Compiler API
Use it as a Front-End for other low-level languages.
-
TypeScript Is Surprisingly OK for Compilers
> MHO typescript could just cut loose from its javascript compatibility. Why not compile it to wasm instead of transpiling it to javascript?
Check out AssemblyScript which is exactly that:
-
Do you think typescript will ever have native support on brosers? Or we will have only the JS type annotations?
If you're curious, check out AssemblyScript, that might describe better what needs to be cut from TypeScript to make it possible to be compiled to WASM.
-
Ezno's checker (a Javascript type checker and compiler written in Rust) is now open source
This is kinda the idea behind AssemblyScript, but IIRC it's more of a low-level typescript-ish syntax for WebAssembly.
-
Emerging Rust GUI libraries in a WASM world
Exactly, WASM was designed to be very very lightweight... you can put a lot of logic into a very small amount of WASM, but you need a good compiler to do that, or write WASM by hand to really feel the benefit. If you just compile Go to WASM, with its GC, runtime and stdlib included in the binary, yeah it's going to be pretty heavy... Rust doesn't have a runtime but as you said, for some reason, produces relatively large binaries (not the case only in WASM by the way). Probably, the best ways to create small WASM binaries is to compile from C or from a WASM-native language like AssemblySCript (https://www.assemblyscript.org).
-
Dan Abramov responds to React critics
Well we have all the new ECMA standards that will be introduced in 5 years now. It's looking more like Java actually. its accessor and typing patterns match it the most. TypeScript has had quite the profound influence over future ECMA design. There is a not so well known project called AssemblyScript which I think has a promising future. Since future ecma standards closely resembles it and TypeScripts popularity has exploded I have a feeling it may become a real standard as well.
-
Do any engines or optimizers product TS-specific performance gains?
If you can guarantee that Typescript type hints will always be followed, you can turn it into more optimised code. Unfortunately, this means you've got to break Javascript semantics, so this means creating a new language, but people have done it. For example, AssemblyScript is a language that is designed as a strict subset of Typescript that compiles directly down to WebAssembly instead of Javascript, producing much more efficient code (most of the time). The tradeoff is that it has some slightly different semantics to Javascript, which means your existing codebase โ and most of the libraries you use โ will probably require some adaption before running correctly in AssemblyScript.
-
Announcing TypeScript 5.0
If you have heard of WASM, AssemblyScript allows you to use specific integer/floating point types and I think it's cool that they're using TypeScript syntax.
-
[AskJS] You have mastered writing JavaScript from scratch, why use TypeScript?
You can write the source code in C, C++, Rust, AssemblyScript, or something like this https://www.assemblyscript.org/.
What are some alternatives?
rust-ffmpeg-wasi - ffmpeg libraries precompiled for WebAsembly/WASI, as a Rust crate.
rlua - High level Lua bindings to Rust
Lua - Lua is a powerful, efficient, lightweight, embeddable scripting language. It supports procedural programming, object-oriented programming, functional programming, data-driven programming, and data description.
interface-types
ffmpeg.wasm - FFmpeg for browser, powered by WebAssembly
reference-types - Proposal for adding basic reference types (anyref)
rust - Empowering everyone to build reliable and efficient software.
deno - A modern runtime for JavaScript and TypeScript.
grain - The Grain compiler toolchain and CLI. Home of the modern web staple. ๐พ
goscript - An alternative implementation of Golang specs, written in Rust for embedding or wrapping.
pyodide - Pyodide is a Python distribution for the browser and Node.js based on WebAssembly
lua-lockbox - A collection of cryptographic primitives written in pure Lua