Giter Site home page Giter Site logo

rsc-vm's Introduction

wakatime Build & Test

About

This is a VM to execute the binary file format .rsbf from the RaychelScript Scripting Language. The VM is designed to be as much light weight as possible to maximize performance. This version currently only supports Version 4 of RaychelScript.

Features

  • Works with perfectly fine Files βœ”
  • CLI Arguments βœ”

  • Any Error Handling inside the execution Loop (to be implemented) πŸ› 
  • Any Advanced File Reading Error Handling (to be implemented) πŸ› 
  • In General any Real Error Handling when sth stupid happens inside the VM (to be implemented) πŸ› 

Usage

First clone the GitHub repo

git clone https://github.com/plexx-dev/rsc-vm

Then if you want change the given File Input in the

src/main.rs

Then run the actual VM with

cargo run --release <YOUR INPUT ARGUMENTS SEPERATED WITH A WHITESPACE CHARACTER>

Example:

cargo run --release 2 3

Important

If you think you can expect any masterpiece or in general in any way a decently optimized Code here, you're wrong. This is just to brag about my friend Weckyy702 that Rust is or can be faster than C++.

Even though iam completly new to Rust and barley take advantage of Rust's full potential. This is faster by a order of magnitude than the original Version of the RaychelScript VM, which it's original author Weckyy702 has written in C++.

So i guess we all can assume Rust > C++.

rsc-vm's People

Contributors

plexx-dev avatar

Stargazers

Weckyy702 avatar  avatar

Watchers

 avatar

rsc-vm's Issues

Literally unusable

While executing the following program, the VM Crashes:
let i while i != 1 i+=1 endwhile
This is due to this implementation using the default checked arithmetic, which panics in underflow

Literally unusable😑

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    πŸ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. πŸ“ŠπŸ“ˆπŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❀️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.