-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge remote-tracking branch 'refs/remotes/origin/main'
- Loading branch information
Showing
2 changed files
with
41 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
name: Rust | ||
|
||
on: | ||
push: | ||
branches: [ "main" ] | ||
pull_request: | ||
branches: [ "main" ] | ||
|
||
env: | ||
CARGO_TERM_COLOR: always | ||
|
||
jobs: | ||
build: | ||
|
||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- uses: actions/checkout@v4 | ||
- name: Build | ||
run: cargo build --verbose | ||
- name: Run tests | ||
run: cargo test --verbose |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,21 @@ | ||
##Ludi | ||
# Ludi | ||
This is 'Ludi' an experimental programming language.It is focused on arrays, and has a number of basic features that you can play around with in the interpreter. | ||
|
||
This is Ludi (name is latin for 'game' or 'school', inspired by Herman Hesse's <i>Magister Ludi</i>), it is my personal repository for a language of this name which is aimed at researching models of computation for arrays and parallel algorithms. | ||
``` | ||
> let x = [4 3 2]; | ||
> let y = 5; | ||
> print(x*y) | ||
20 15 10 | ||
> let z = reshape(iota(8), [2 2 2]) | ||
> print(z) | ||
1 2 | ||
3 4 | ||
Currently I am working on a type system based on the Remora language | ||
5 6 | ||
7 8 | ||
``` | ||
|
||
With a standard Rust toolchain it can be built and run: | ||
``` | ||
cargo run -p interpreter | ||
``` |