All Projects → blade-lang → blade

blade-lang / blade

Licence: other
A simple, fast, clean, and dynamic language that allows you to develop applications quickly.

Programming Languages

c
50402 projects - #5 most used programming language
Blade
752 projects
assembly
5116 projects

Projects that are alternatives of or similar to blade

Tiny-Basic
A tiny and basic TINY-BASIC interpreter
Stars: ✭ 33 (-70.8%)
Mutual labels:  interpreter
monkey
The Monkey Programming Language & Interpreter written in PHP.
Stars: ✭ 21 (-81.42%)
Mutual labels:  interpreter
locks-py
Python implementation of locks, which is an imperative, dynamically typed, procedure oriented scripting language based on the lox programming language.
Stars: ✭ 29 (-74.34%)
Mutual labels:  interpreter
lunatic
lunatic: a toy lua interpreter
Stars: ✭ 16 (-85.84%)
Mutual labels:  interpreter
fastbasic
FastBasic - Fast BASIC interpreter for the Atari 8-bit computers
Stars: ✭ 108 (-4.42%)
Mutual labels:  interpreter
Dictu
Dictu is a high-level dynamically typed, multi-paradigm, interpreted programming language.
Stars: ✭ 191 (+69.03%)
Mutual labels:  interpreter
bfpile
Optimizing Brainfuck compiler, transpiler and interpreter
Stars: ✭ 19 (-83.19%)
Mutual labels:  interpreter
HaxeVM
Prototype compiler/virtual machine in Haxe for Haxe
Stars: ✭ 24 (-78.76%)
Mutual labels:  interpreter
JSchemeMin
A small scheme implementation in java
Stars: ✭ 22 (-80.53%)
Mutual labels:  interpreter
quickjs-build
Build for QuickJS JavaScript Engine
Stars: ✭ 25 (-77.88%)
Mutual labels:  interpreter
foolang
A toy programming language.
Stars: ✭ 33 (-70.8%)
Mutual labels:  interpreter
types-and-programming-languages
C++ Implementations of programming languages and type systems studied in "Types and Programming Languages" by Benjamin C. Pierce..
Stars: ✭ 32 (-71.68%)
Mutual labels:  interpreter
pyccolo
Declarative instrumentation for Python.
Stars: ✭ 70 (-38.05%)
Mutual labels:  interpreter
monkey-interpreter
Monkey programming language interpreter designed in "Writing An Interpreter In Go".
Stars: ✭ 26 (-76.99%)
Mutual labels:  interpreter
PDDL.jl
Julia parser, interpreter and compiler interface for the Planning Domain Definition Language (PDDL). Planners not included.
Stars: ✭ 52 (-53.98%)
Mutual labels:  interpreter
chip8
CHIP-8 Emulator in Rust
Stars: ✭ 12 (-89.38%)
Mutual labels:  interpreter
foxscheme
An R5RS Scheme in JavaScript.
Stars: ✭ 15 (-86.73%)
Mutual labels:  interpreter
AlchemyVM
WebAssembly Virtual Machine Built In Elixir
Stars: ✭ 184 (+62.83%)
Mutual labels:  interpreter
slox
Swift implementation of a Lox interpreter
Stars: ✭ 39 (-65.49%)
Mutual labels:  interpreter
jsish
Jsi is a small, C-embeddable javascript interpreter with tightly woven Web and DB support.
Stars: ✭ 32 (-71.68%)
Mutual labels:  interpreter

Blade Logo

The Blade Programming Language

Quick links: CI | Building | Contributing | Documentation | License


tl;dr

Blade is a simple, fast, clean and dynamic language that allows you to develop applications quickly. Blade emphasises algorithm over syntax and for this reason, it has a very small but powerful syntax set with a very natural feel. Blade builds upon the best features of JavaScript, Python and Ruby to give developers a familiar and powerful system that feels native for developers coming from any of these languages and an easy way to leverage the strength of any.

Distinguishing Features

  • Simple syntax and minimal keywords.
  • First-class package management (Package management is built into the language module system).
  • Iterable classes.
  • Easy to extend with C modules with a familiar API to Wren.

Example

The following implements a simple HTTP server that listens on port 3000.

import http
import json

var server = http.server(3000)
server.on_receive(|request, response| {
  response.headers['Content-Type'] = 'application/json'
  response.write(json.encode(request))
})

echo 'Listening on Port 3000...'
server.listen()

Why should I use Blade?

If you fall into one of more of these categories or have one of the following needs, then Blade is the right language for you.

  • You want a language with a very minimal learning curve (easier to learn than Python).
  • You want Python's simplicity but love coding with braces and other things C-like.
  • You want a language with first-class support for package management.
  • You need a quick script for automating mundane tasks on your device.
  • You need a language that allows fast prototyping.
  • You want to do backend development without needing to depend on a framework.
  • You want a familiar language that can be embedded into your application that's more extensive than Lua.

There are many more use-cases where Blade is a great fit. This is just the bare minimal.

Documentation

Documentation is currently in-progress in the blade-docs repo. You can read the Blade language documentation online at bladelang.com.

C Extensions to Blade

Blade supports external extensions built in C. While the website is yet to include documentation on writing C extensions, there is an easy-to-pick-up example in the blade-ext-demo repository and many more in the packages directory.

Directory Structure

Directory Contents
benchmarks Contains the sample benchmarks for Blade (some are based on the Benchmark games).
libs Contains the Blade standard library.
packages Contains the Blade standard library members built as packages because they depend on other open-source tools.
src The source code of the Blade language including the native implementation of some Blade library classes and functions in the modules directory.
scripts Helper scripts for various uses such as automated installation.
tests A few test cases that Blade implementation must pass.
thirdparty Contains open-source libraries and packages used by Blade.

How to contribute

Along with Blade's goal to be simple, flexible and expressive is a strong desire to make the community around it as friendly and welcoming as possible. Therefore, all forms of contributions from pull requests, suggestions, typo fixes in documentation, feature request, bug reports and any contribution at all is greatly welcomed and appreciated.

WE NEED HELP! From review of this documentation, to suggestions on the core features of Blade, testing of Blade features, writing more comprehensive tests, bug detection, code fixes and more. PLEASE CONTRIBUTE!

Contributing code, fixes and features

The standard. The general workflow is as follows.

  1. Find/file an issue on the Issues tab.
  2. Fork the repo and make your changes.
  3. Push your changes to a branch in your forked repo.
  4. Submit a pull request to Blade from your forked repo.

You can also just mail your issues to Ore Richard Muyiwa directly.

Coding Standard

  • I decided to break from the popular camel case common to C style languages and went with snake cases. Honestly speaking, the only justifiable reason is because I think it looks cool. I know you may have a differing opinion, but I will really appreciate it that you keep to that in your PRs. I used this same style for both the C source and the core library.

  • For formatting, simply follow the LLVM guide minus the whole braces {/} on separate line thing. It looks really ugly. I advise you use the JetBrains CLion or Visual Studio Code IDE(s) to format your code before submitting for PR.

It's that simple!

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].