{"id":13608096,"url":"https://github.com/astrolang/astro","last_synced_at":"2025-04-04T06:07:37.383Z","repository":{"id":40523634,"uuid":"91507069","full_name":"astrolang/astro","owner":"astrolang","description":"A fun safe language for rapid prototyping and high performance applications","archived":false,"fork":false,"pushed_at":"2023-08-10T16:58:46.000Z","size":3261,"stargazers_count":765,"open_issues_count":7,"forks_count":29,"subscribers_count":39,"default_branch":"develop","last_synced_at":"2025-03-28T05:09:50.533Z","etag":null,"topics":["astro","javascript","language-features","numerical-computation","programming-language","python","wasm","webassembly"],"latest_commit_sha":null,"homepage":"https://astrolang.org","language":"Rust","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/astrolang.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE","code_of_conduct":"CODE_OF_CONDUCT.md","threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null}},"created_at":"2017-05-16T21:41:25.000Z","updated_at":"2025-03-18T13:31:33.000Z","dependencies_parsed_at":"2024-01-06T07:49:16.085Z","dependency_job_id":"bda67496-e0a9-414b-a416-ddd5f003d792","html_url":"https://github.com/astrolang/astro","commit_stats":null,"previous_names":["appcypher/astro"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/astrolang%2Fastro","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/astrolang%2Fastro/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/astrolang%2Fastro/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/astrolang%2Fastro/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/astrolang","download_url":"https://codeload.github.com/astrolang/astro/tar.gz/refs/heads/develop","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247128746,"owners_count":20888235,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["astro","javascript","language-features","numerical-computation","programming-language","python","wasm","webassembly"],"created_at":"2024-08-01T19:01:24.224Z","updated_at":"2025-04-04T06:07:37.362Z","avatar_url":"https://github.com/astrolang.png","language":"Rust","readme":"\n\u003cdiv align=\"center\"\u003e\n    \u003ca href=\"https://astrolang.org\" target=\"_blank\"\u003e\n        \u003cimg src=\"https://github.com/astrolang/astro/blob/develop/media/logo.png\" alt=\"Astro Logo\" width=\"140\" height=\"140\"\u003e\u003c/img\u003e\n    \u003c/a\u003e\n\u003c/div\u003e\n\n\u003ch1 align=\"center\"\u003eThe Astro Programming Language\u003c/h1\u003e\n\n#### Work in Progress :construction:\nCurrent Version: 0.1.15a\n\n![astro screenshot](https://github.com/astrolang/astro/blob/develop/media/syntax_screenshot.png)\n\n### What is Astro?\nAstro is a fun programming language designed for safe _high-performance applications_. It is essentially a statically-typed systems language that\n- facilitates rapid prototyping,\n- features high-level abstractions with zero overhead,\n- ensures memory safety without a (tracing) Garbage Collector, and\n- supports data-race-free concurrency.\n\n### Why create yet another programming language?\nThe language creator had a set of requirements (listed above) not met by any language ([Rust](https://en.wikipedia.org/wiki/Rust_programming_language) comes close). Although, the project started as an educational effort, it later shaped into a language designed to meet those requirements.\n\nSIMD, 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.\n\nIn 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.\n\n#### Python\n```python\ndef times(a, b):\n    sum = a\n    for i in range(b):\n        sum += sum\n    return sum\n```\n#### Astro\n```kotlin\nfun times(a, b) {\n    var sum = a\n    for i in range(b) {\n        sum += sum\n    }\n    return sum\n}\n```\n\nAstro 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](https://en.m.wikipedia.org/wiki/Garbage_collection_(computer_science)) instead it relies on lifetime analysis at compile-time that free memory once they are no longer referenced.\n\n### How close is Astro to being ready for use?\nNot close. Astro is at its infancy, there are several tasks to complete before it becomes usable.\n\nFor 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.\n\n### Where can I read about the language?\nThere 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](doc/summary.astro).\n\n### How do I install it?\nN/A\n\n### Want to contribute to the project?\nPlease read the [code of conduct](CODE_OF_CONDUCT.md) and contribution [guidelines](CONTRIBUTING.md). We welcome your ideas and contributions.\n\n### Do you have an unanswered question?\nPlease [open an issue](https://github.com/appcypher/astro/issues/new) and ask questions, offer to help, point out bugs or suggest features.\n\n### Attributions\nAstro logo made by [Freepik](https://www.freepik.com/)\n\n### License\n[Apache 2.0](LICENSE)\n","funding_links":[],"categories":["Uncategorized","Rust","Other"],"sub_categories":["Uncategorized"],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fastrolang%2Fastro","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fastrolang%2Fastro","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fastrolang%2Fastro/lists"}