All Projects → astrolang → Astro

astrolang / Astro

Licence: apache-2.0
A fun safe language for rapid prototyping and high performance applications

Programming Languages

javascript
184084 projects - #8 most used programming language
python
139335 projects - #7 most used programming language
rust
11053 projects

Projects that are alternatives of or similar to Astro

Wasmtime
Standalone JIT-style runtime for WebAssembly, using Cranelift
Stars: ✭ 6,413 (+990.65%)
Mutual labels:  webassembly, wasm
Webassemblyjs
Toolchain for WebAssembly
Stars: ✭ 566 (-3.74%)
Mutual labels:  webassembly, wasm
Ink
Parity's ink! to write smart contracts
Stars: ✭ 407 (-30.78%)
Mutual labels:  webassembly, wasm
Awesome Wasm Runtimes
A list of webassemby runtimes
Stars: ✭ 490 (-16.67%)
Mutual labels:  webassembly, wasm
Zwitterion
A web dev server that lets you import anything*
Stars: ✭ 514 (-12.59%)
Mutual labels:  webassembly, wasm
Rustynes
👾 An NES emulator by Rust and WebAssembly
Stars: ✭ 399 (-32.14%)
Mutual labels:  webassembly, wasm
Genact
🌀 A nonsense activity generator
Stars: ✭ 5,109 (+768.88%)
Mutual labels:  webassembly, wasm
React Wasm
Declarative WebAssembly instantiation for React
Stars: ✭ 349 (-40.65%)
Mutual labels:  webassembly, wasm
Wasm And Rust
WebAssembly and Rust: A Web Love Story
Stars: ✭ 476 (-19.05%)
Mutual labels:  webassembly, wasm
Asmble
Compile WebAssembly to JVM and other WASM tools
Stars: ✭ 466 (-20.75%)
Mutual labels:  webassembly, wasm
Lucet
Lucet, the Sandboxing WebAssembly Compiler.
Stars: ✭ 4,006 (+581.29%)
Mutual labels:  webassembly, wasm
Uno
Build Mobile, Desktop and WebAssembly apps with C# and XAML. Today. Open source and professionally supported.
Stars: ✭ 6,029 (+925.34%)
Mutual labels:  webassembly, wasm
Wac
WebAssembly interpreter in C
Stars: ✭ 372 (-36.73%)
Mutual labels:  webassembly, wasm
Bootstrapblazor
A set of enterprise-class UI components based on Bootstrap and Blazor
Stars: ✭ 403 (-31.46%)
Mutual labels:  webassembly, wasm
Awesome Yew
😎 A curated list of awesome things related to Yew / WebAssembly.
Stars: ✭ 353 (-39.97%)
Mutual labels:  webassembly, wasm
Jwebassembly
Java bytecode to WebAssembly compiler
Stars: ✭ 426 (-27.55%)
Mutual labels:  webassembly, wasm
Wasm3
🚀 The fastest WebAssembly interpreter, and the most universal runtime
Stars: ✭ 4,375 (+644.05%)
Mutual labels:  webassembly, wasm
Unrust
unrust - A pure rust based (webgl 2.0 / native) game engine
Stars: ✭ 341 (-42.01%)
Mutual labels:  webassembly, wasm
Camaro
camaro is an utility to transform XML to JSON, using Node.js binding to native XML parser pugixml, one of the fastest XML parser around.
Stars: ✭ 438 (-25.51%)
Mutual labels:  webassembly, wasm
Vim.wasm
Vim editor ported to WebAssembly
Stars: ✭ 4,915 (+735.88%)
Mutual labels:  webassembly, wasm

The Astro Programming Language

Work in Progress 🚧

Current Version: 0.1.15a

astro screenshot

What is Astro?

Astro is a fun programming language designed for safe high-performance applications. It is essentially a statically-typed systems language that

  • facilitates rapid prototyping,
  • features high-level abstractions with zero overhead,
  • ensures memory safety without a (tracing) Garbage Collector, and
  • supports data-race-free concurrency.

Why create yet another programming language?

The language creator had a set of requirements (listed above) not met by any language (Rust comes close). Although, the project started as an educational effort, it later shaped into a language designed to meet those requirements.

SIMD, threads and direct access to Web APIs are planned for WebAssembly. These and other proposals for GPU Compute will make the web a desirable HPC target in the near future. Astro is, for this reason, designed for high-performance apps that are expected to run on the server or in the browser.

In order to match up with the expressiveness and productivity of dynamic programming languages, Astro adds full type inference, structural typing, and some other high-level abstractions that reduce boilerplate code commonly associated with statically-typed languages. It feels like a scripting language for the most part.

Python

def times(a, b):
    sum = a
    for i in range(b):
        sum += sum
    return sum

Astro

fun times(a, b) {
    var sum = a
    for i in range(b) {
        sum += sum
    }
    return sum
}

Astro is supposed to be high-level enough to write python-like scripts but also low-level enough to write an operating system kernel. Therefore, it doesn't have a traditional garbage collector instead it relies on lifetime analysis at compile-time that free memory once they are no longer referenced.

How close is Astro to being ready for use?

Not close. Astro is at its infancy, there are several tasks to complete before it becomes usable.

For now, Astro can compile its source code to ast format. It is not ready for even the simplest application. It is also currently implemented Rust (it was being implemented in Javascript and C++), however, the plan is to bootstrap the compiler (implement it in Astro) once it is sufficiently well-featured.

Where can I read about the language?

There is no thorough documentation for the language yet since the main implementation is still in active development, however, you can find an up-to-date summary of language features here.

How do I install it?

N/A

Want to contribute to the project?

Please read the code of conduct and contribution guidelines. We welcome your ideas and contributions.

Do you have an unanswered question?

Please open an issue and ask questions, offer to help, point out bugs or suggest features.

Attributions

Astro logo made by Freepik

License

Apache 2.0

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].