Crates.io | simfony-as-rust |
lib.rs | simfony-as-rust |
version | 0.1.7 |
source | src |
created_at | 2024-07-04 13:29:38.105127 |
updated_at | 2024-10-12 16:23:20.968716 |
description | Tools for working with Simfony as literal Rust |
homepage | |
repository | https://github.com/uncomputable/simfony-as-rust |
max_upload_size | |
id | 1291717 |
size | 120,429 |
The Simfony language feels very similar to Rust. This crate provides tools to work with Simfony as literal Rust.
We define a Rust type for each Simfony type. We define a Rust function for each Simfony jet. rustdoc
can be used to generate Simfony documentation.
Simfony code is almost Rust code. For the most part, Simfony lacks advanced features such as generics, so the corresponding syntax is missing.
Because there are only few and predictable differences, we can convert Simfony code to Rust code with a simple static algorithm. This tool hasn't been written yet, but it would enable us to compile Simfony code with the Rust compiler.
This means there would be two paths for a Simfony program:
Using this library as prelude, the Simfony program in (1) that runs on the Bit Machine should behave exactly as the Simfony program in (2) that runs on any CPU.