TE
科技回声
首页24小时热榜最新最佳问答展示工作
GitHubTwitter
首页

科技回声

基于 Next.js 构建的科技新闻平台,提供全球科技新闻和讨论内容。

GitHubTwitter

首页

首页最新最佳问答展示工作

资源链接

HackerNews API原版 HackerNewsNext.js

© 2025 科技回声. 版权所有。

Gluon: A static, type inferred and embeddable language written in Rust

2 点作者 fish45超过 4 年前

1 comment

fish45超过 4 年前
I was looking at Rust based scripting language to add to SIMple Physics (<a href="https:&#x2F;&#x2F;mkhan45.github.io&#x2F;SIMple-Physics&#x2F;tabs&#x2F;about&#x2F;" rel="nofollow">https:&#x2F;&#x2F;mkhan45.github.io&#x2F;SIMple-Physics&#x2F;tabs&#x2F;about&#x2F;</a>). While Lua as a language works perfectly for me, it will be pretty difficult to compile to WASM as part of a Rust project.<p>The two most mature embeddable Rust scripting languages at the moment seem to be Gluon and Rhai. Gluon, unlike Rhai and Lua, is inspired by Haskell and OCaml and highly functional. On the other hand, Rhai is pretty much a Rusty looking version of Lua from my first impressions.<p>I&#x27;m pretty heavily leaning towards Rhai at the moment since I need the scripting language for SIMple Physics to be easy for beginners with no programming experience to pick up for ultra basic applications, but I think Gluon is pretty unique. I&#x27;d assume that simple imperative languages are just better for embedding since they&#x27;re often just used to send commands, but I wonder if I&#x27;m just close-minded since I&#x27;ve been using Lua.