2 releases
new 0.4.0 | Jan 9, 2025 |
---|---|
0.4.0-beta | Jan 7, 2025 |
#25 in Programming languages
83 downloads per month
110KB
2.5K
SLoC
Atlas77
Functional Programming language with a strong interop with Rust,
designed to be a functional scripting language.
Explore the docs »
Playground (inexistant)
·
Report Bug
·
Request Feature
Table of Contents
About The Project
Atlas77 is a functional programming language with a strong interop with Rust. It is designed to be a high-level language with a strong focus on performance and safety.
Getting Started
Prerequisites
- Rust Compiler
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh
Or directly from their website: Rust
Installation
- Install it from Cargo
cargo install atlas_77
- Use it as a CLI
atlas_77 --help
- Enjoy!
Usage
Fibonacci Example
let fib: (n: int) -> int =
match n
| 0 ~> 0
| 1 ~> 1
\ _ ~> fib(n - 1) + fib(n - 2)
let main: () -> int = fib(10) //> 55
For more examples, please refer to the examples folder
Roadmap
v0.3 "Foundation"
- v0.3
- Variable assignments
- Function declarations
- Conditional expressions (
if-else
) - Recursion
- Basic arithmetic operations
-
do..end
blocks to allow multiple expressions - Basic runtime & memory system
- v0.3.1
- Support for
string
&List[T]
types (including indexing and concatenation) - Basic CLI support
- Basic stdio functions
-
match
expressions
- Support for
v0.4 "Keystone"
- v0.4 "Keystone"
- Support for
struct
types - Improved runtime & memory system (~80% performance uplift)
- Support for external functions (Rust interop)
- Expanded standard library using external functions
- Support for
Upcoming Features
- Support for
enum
types:- Base enums (standard integer enums)
- Advanced enums (enums with associated data)
- Support for structs with named fields
- Type Checking:
- High-Level Intermediate Representation (HLIR)
- Defining external functions
- Compile-time traits (e.g.,
+
,-
,*
,/
,&
) - Type inference
- New and improved runtime:
- Garbage collection
- Memoization
- Concurrency/parallelism by default for pure functions
- Interoperability with other languages (e.g., C):
- Support for loading shared libraries
- Differentiation between "pure" and "impure" functions:
- Ability to mark impure functions for side effects
- Syntax rework for functions:
- Replace
let fib: (n: int) -> int = ...
withlet fib: (int) -> int = \n -> ...
to remove argument names in type definitions. - Anonymous functions
- New Abstract Syntax Tree (AST)
- New parser
- Replace
See the open issues for a full list of proposed features (and known issues).
Contributing
Contributions are what make the open source community such an amazing place to learn, inspire, and create. Any contributions you make are greatly appreciated.
If you have a suggestion that would make this better, please fork the repo and create a pull request. You can also simply open an issue with the tag "enhancement". Don't forget to give the project a star! Thanks again!
- Fork the Project
- Create your Feature Branch (
git checkout -b feature/AmazingFeature
) - Commit your Changes (
git commit -m 'Add some AmazingFeature'
) - Push to the Branch (
git push origin feature/AmazingFeature
) - Open a Pull Request
Top contributors:
License
Distributed under the MIT License. See LICENSE.txt
for more information.
Contact
Your Name - @Gipson62_8015 - J.H.Gipson62@gmail.com
Project Link: https://github.com/atlas77-lang/Atlas77
Dependencies
~4MB
~66K SLoC