https://github.com/jweinst1/xenon
A processing based language
https://github.com/jweinst1/xenon
data-analysis interpreter reactive-programming
Last synced: 2 months ago
JSON representation
A processing based language
- Host: GitHub
- URL: https://github.com/jweinst1/xenon
- Owner: jweinst1
- License: gpl-3.0
- Created: 2017-06-22T06:24:54.000Z (about 9 years ago)
- Default Branch: master
- Last Pushed: 2017-10-09T21:09:49.000Z (over 8 years ago)
- Last Synced: 2025-01-01T15:43:28.919Z (over 1 year ago)
- Topics: data-analysis, interpreter, reactive-programming
- Language: C
- Homepage:
- Size: 252 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Xenon
[Wiki Docs](https://github.com/jweinst1/Xenon/wiki)
*The Reactive Programming Language*
Xenon is the reactive programming language, largely based on the libraries and methods of reactive programming
that have become popular lately.
It allows you to write code in a linear style, working with large data sets at a much faster speed than
current interpreted languages such as Python or Ruby.
For example,
This is normally how you might filter or map a list in python
```
def modify(n):
return (n/2, n%2)
def check(n):
if n > 5:
return n
else:
return 0
numbers = [modify(x) for x in xrange(0, 10) if check(x)]
```
But in Xenon you just do
```
@ modcheck = { if > 5,
= a ,
= 0 ,
/ 2,
% 2
}
@ nums = [1..10]
nums <- modcheck
```