Open-Awesome
CategoriesAlternativesStacksSelf-HostedExplore
Open-Awesome

© 2026 Open-Awesome. Curated for the developer elite.

TermsPrivacyAboutGitHubRSS
  1. Home
  2. Rust
  3. dyon

dyon

Apache-2.0Rustv0.36

A dynamically typed scripting language designed for seamless integration with Rust, featuring a lifetime checker and no garbage collector.

GitHubGitHub
1.9k stars56 forks0 contributors

What is dyon?

Dyon is a dynamically typed scripting language designed to integrate seamlessly with Rust. It provides a flexible scripting environment with safety features like a lifetime checker, eliminating the need for a garbage collector. The language supports dynamic modules, optional typing, and mathematical loops, making it suitable for embedding in Rust applications.

Target Audience

Rust developers who need a safe, embeddable scripting language for prototyping, game development, or tools requiring runtime code execution.

Value Proposition

Developers choose Dyon for its unique combination of scripting flexibility and Rust-like safety features, such as lifetime checking and no garbage collector, along with built-in support for concurrency, vectors, and error handling.

Overview

A rusty dynamically typed scripting language

Use Cases

Best For

  • Embedding a scripting language within Rust applications
  • Prototyping game logic or simulations with 4D vector support
  • Writing scripts that require safe memory management without a garbage collector
  • Building tools with dynamic module loading and runtime code execution
  • Educational projects exploring language design and Rust integration
  • Scripting tasks that benefit from mathematical loops and concise syntax

Not Ideal For

  • Projects requiring maximum computational performance or low-level hardware access
  • Teams dependent on a vast ecosystem of third-party libraries and frameworks
  • Applications that need to interface with multiple programming languages besides Rust

Pros & Cons

Pros

Memory Safety Without GC

Uses a lifetime checker to eliminate garbage collection, ensuring safe memory management as described in the features list for functions like `fn foo(mut a, b: 'a)`.

Dynamic Code Organization

Supports dynamic module loading with `load` and runtime script execution via `call`, enabling flexible code updates without recompilation, a key feature for prototyping.

Expressive Mathematical Syntax

Includes mathematical loops like ∑ (sum) and ∃ (any) for concise iteration, making code more readable for mathematical operations, as highlighted in the feature list.

Seamless Rust Integration

Offers macros like `dyon_fn!` and custom Rust object support using `Arc<Mutex<Any>>`, allowing easy embedding within Rust applications as a primary design goal.

Ergonomic Error Handling

Built-in Option and Result types with the ? operator, similar to Rust, for straightforward error propagation, with `unwrap` providing error traces for debugging.

Cons

Limited Ecosystem

As a niche language, Dyon lacks the extensive libraries, tools, and community support found in more established scripting languages like Lua or Python.

Performance Trade-Offs

Optimized for the coding cycle over raw speed, with non-goals including Rust-equivalent performance, making it unsuitable for high-performance computing tasks.

Complex Embedding Setup

Requires manual integration using Rust macros and custom functions, which can be more cumbersome than drop-in scripting solutions, as evidenced by the need for `Module::add` calls.

Frequently Asked Questions

Quick Stats

Stars1,915
Forks56
Contributors0
Open Issues67
Last commit20 hours ago
CreatedSince 2016

Tags

#coroutines#error-handling#gradual-typing#scripting-language#dynamic#dynamic-typing

Built With

R
Rust

Included in

Rust56.6k
Auto-fetched 9 hours ago

Related Projects

boaboa

Boa is an embeddable Javascript engine written in Rust.

Stars7,537
Forks657
Last commit1 day ago
rhairhai

Rhai - An embedded scripting language for Rust.

Stars5,659
Forks250
Last commit1 day ago
gluongluon

A static, type inferred and embeddable language written in Rust.

Stars3,442
Forks153
Last commit1 month ago
kclkcl

KCL Programming Language Core and API (CNCF Sandbox Project). https://kcl-lang.io

Stars2,408
Forks169
Last commit6 days ago
Community-curated · Updated weekly · 100% open source

Found a gem we're missing?

Open-Awesome is built by the community, for the community. Submit a project, suggest an awesome list, or help improve the catalog on GitHub.

Submit a projectStar on GitHub