Skip to content

Commit

Permalink
Merge remote-tracking branch 'refs/remotes/origin/main'
Browse files Browse the repository at this point in the history
  • Loading branch information
tw-ilson committed Nov 21, 2024
2 parents b27232a + c410867 commit 23a9584
Show file tree
Hide file tree
Showing 2 changed files with 41 additions and 3 deletions.
22 changes: 22 additions & 0 deletions .github/workflows/rust.yml
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
22 changes: 19 additions & 3 deletions README.md
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
```

0 comments on commit 23a9584

Please sign in to comment.