https://github.com/devsnek/slither
A programming language for the modern world.
https://github.com/devsnek/slither
interpreter runtime rust slither virtual-machine
Last synced: 9 months ago
JSON representation
A programming language for the modern world.
- Host: GitHub
- URL: https://github.com/devsnek/slither
- Owner: devsnek
- License: mit
- Created: 2019-02-09T03:06:38.000Z (almost 7 years ago)
- Default Branch: master
- Last Pushed: 2019-08-25T23:49:12.000Z (over 6 years ago)
- Last Synced: 2025-03-20T01:41:31.408Z (9 months ago)
- Topics: interpreter, runtime, rust, slither, virtual-machine
- Language: Rust
- Homepage:
- Size: 1.18 MB
- Stars: 40
- Watchers: 6
- Forks: 2
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- Funding: .github/FUNDING.yml
- License: LICENSE
Awesome Lists containing this project
README
# slither
A modern scripting runtime
```js
function fib(n, a = 0, b = 1) { // argument initializers
if n == 0 { // no parenthesis around if or try
return a;
}
if n == 1 {
return // unambiguous grammar means
b; // that this returns b, not null
}
// tail recursion
return fib(n - 1, b, a + b);
}
print(fib(10) == 55);
```
Goals in no particular order
- staged JIT for good performance
- fast and easy networking
- good ffi interface