Crates.io | torchbear |
lib.rs | torchbear |
version | 0.11.5 |
source | src |
created_at | 2018-10-31 00:45:19.18267 |
updated_at | 2019-01-29 02:52:07.757628 |
description | Lua programming environment in Rust |
homepage | |
repository | https://github.com/foundpatterns/torchbear |
max_upload_size | |
id | 93706 |
size | 209,308 |
This Project is Currently in Stealth Mode.
please do not post a news story until v1 is released very shortly.
thank you.
Torchbear gives you a simple, yet powerful, general-purpose application development environment. It can help you do web automation, embedded programming, data analysis, numerical computing.. really anything you can imagine.
It's built in Rust, but you don't need to learn Rust to use Torchbear, because it aims to give you the simplest possible programming environment with the most powerful addon libraries. Scratch, BASIC, Lua, Python, Ruby, NodeJS etc developers should feel right at home... and with what one might call "more bells and whistles" - or just complete
.
Those without a programming background can learn Lua in 15 minutes to be able to "speak" its programming langauge (its syntax and notation). You only need general scripting skills to start.
As you wish to solve more use cases with your programs, you can access Torchbear's functions, which are described below and viewable in the bindings' documentation (generated using our code map app). Every module is completely built-in and coded in pure Rust, or otherwise safely wraps a C library (noted with an asterisk*).
git
dependency)Torchbear comes as a single executable (eg. as a binary .exe
file) which makes it easy to install and easy to run apps. It also comes with a package manager, called Machu Picchu, which helps you to download more apps.
To install Torchbear, run this command using your terminal (what's a terminal?):
curl https://git.io/fpcV6 -sSfL | bash
The installer automatically gets the latest version (which is also available on Torchbear's GitHub releases page) and puts it in a convenient file location for you. To do this, it downloads the latest zip file for your operating system and hardware architecture, then it unzips the executable to a place where it will run as a command. You can do that manually or differently, as you like.
If you haven't heard of a terminal before, here's a 1 min intro to what is a terminal window. This works on Android, Windows, MacOS, and Linux devices very similarly, but you might need one other tool first:
Android: install Termux.
Windows: install Cmder Full (within your user directory, eg not in Program Files).
MacOS: mostly ready out-of-the-box.
Linux: mostly ready out-of-the box.
iOS: work in progress, see Torchbear iOS build (iPhone and iPad)
Redox: work in progress, see Torchbear Redox release
curl https://git.io/fpcV6 -sSfL | bash -s -- --uninstall
or, if you have install.sh
already downloaded:
bash install.sh --uninstall
init.lua
:#!/usr/bin/env torchbear
print("hello from Torchbear")
make it executable with chmod +x init.lua
then run it with ./init.lua
Note: Machu Picchu also works as a dependency manager, making deploying and developing component-oriented software easy. Check how other projects use it until more documentation is available. Also can start finding some useful library scripts for your programs in our Lunar Transit account.
You can compile from source by installing Cargo (Rust's package manager) and installing torchbear
using Cargo:
cargo install torchbear
Compiling from this repository also works similarly:
git clone https://github.com/foundpatterns/torchbear
cd torchbear
cargo build --release
Compilation will probably take several minutes depending on your machine and your network speed. The binary will end up in ./target/release/torchbear
.
Torchbear extends Rust's growing library ecosystem. Developers and users alike are welcomed to participate in Torchbear's issue queue for small changes and high impact contributions. Everyone is invited.
Even moderately experienced Rust developers can work on adding bindings or adding other functions. There are many examples to learn from in the bindings directory. Through this process, you'll learn a Rust library's API inside and out, and you'll put another tool into the hands of a thriving userbase.
Experienced Rust developers' reviews would be greatly appreciated, eg those familiar with low-level library idioms and especially those well-versed in Actix. Much of the power functionality built-in to Torchbear comes from libraries like Actix, Actix-Web, Actix-Lua, rlua, and many more well-picked ones which need thorough review and careful analysis to make a good programming environment.
Users who who want to add a 'review' or 'story' about your use cases, simply add this "issue label" (type/review) or (type/story). Everyone is welcomed to do so, and this will help users and developers understand Torchbear from eachother's points of view. Developers who want to post other feedback and analysis will receive a hearty thank you.
Eveyone interested in learning and solving problems with programming and open-source tools in general is welcomed to come to Found Patterns Studio's Discord Server to meet fellow engineers and to work together on team-driven projects, like Torchbear. If you haven't heard of Discord before, you could start with these videos, Discord For Dummies: Basic Use and Set up Instructions for Discord App and How To Setup And Use Discord - Basic Overview Of Features and Tools. We use it to help eachother use and build Torchbear and many other projects. It's a safe and friendly place to get things done.
To back this project and join this list, ask Mitchell for more info on Discord.
To sponsor this project and put your logo here, ask Mitchell for more info on Discord.