Giter VIP home page Giter VIP logo

astro's Introduction

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

astro's People

Contributors

appcypher avatar cabralski avatar colindean avatar lord-jerry avatar mhr avatar nyprothegeek avatar oayomide avatar tomashubelbauer avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

astro's Issues

Is the project dead?

The title says everything: is the project dead?

The last commit is from 2019.

Project Needs Unit Tests and Test Coverage Reports

Project should have a folder containing unit tests for different parts of the project.
Using services like codeclimate or coveralls for test coverage reports.
The repo README should show badges to reflect the state of project test builds, coverage reports and project maintainability.

astrolang.org not reachable

I notice you have a link on the main GitHub page, but clicking it doesn't work:

curl https://astrolang.org/
curl: (6) Could not resolve host: astrolang.org

sample file error

summary.astro
var interest = 0o566768 // Octal

wrong octal num with '8'.

Make Astro 0-based

Over the years I've been switching back and forth between 0-based and 1-based indexing. I know what I want, and it is 1-based indexing, but I fear the majority of the community will hate the decision.

Currently, Astro uses 1-based indexing and I intend on keeping it that way. This may not be the final decision since it appears there are more coders familiar with 0-based indexing. Even though I'm designing Astro for a personal project, I can't ignore the fact that some people will use it later in the future for their own projects too and they may not find the 1-based idea welcoming.

I'm putting this here until the community becomes big enough to make a vote on which direction to go, but if it doesn't get used as that big, I will keep the 1-based indexing and close this issue.

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.