8 releases

0.2.0 May 12, 2025
0.1.6 May 10, 2025
0.1.2 Apr 30, 2025

#465 in Programming languages

Download history 53/week @ 2025-04-16 222/week @ 2025-04-23 225/week @ 2025-04-30 516/week @ 2025-05-07 72/week @ 2025-05-14

1,088 downloads per month
Used in 2 crates

MIT license

375KB
10K SLoC

XLang VM Core

xlang_vm_core is the core virtual machine and runtime library for the experimental programming language XLang-Rust.

Features

This library provides the infrastructure required for executing XLang-Rust language, including:

  • Virtual Machine (VM): Responsible for interpreting and executing compiled XLang bytecode.
  • Garbage Collector (GC): Automatically manages memory, reclaiming objects that are no longer in use.
  • Type System: Defines and operates on XLang's built-in data types (such as integers, floats, strings, tuples, Lambda, etc.).
  • Execution Context: Manages scopes, stack frames, and variables.
  • Intermediate Representation (IR): Defines the intermediate code format between the compiler and VM.
  • IR Translator: Translates IR into bytecode executable by the VM.
  • Foreign Function Interface (FFI): Allows XLang code to call dynamic libraries written in C.
  • Built-in Functions: Provides core built-in functionality (such as print, len, type conversions, etc.).

Usage

xlang_vm_core primarily serves as a dependency for the XLang-Rust compiler and interpreter (xlang-rust main package), providing the actual code execution capability.

Dependencies

~2–13MB
~80K SLoC