oasis's People
oasis's Issues
Add support for lists
Lists can be very useful when calculating some sequences, so it would be very useful to add support for lists (and also with 'mapping' operators when used on lists)
Negative basecases
Output first n terms
bruh...
Multidigit basecases
pls add
a(n-2) instead of a(n-1)
If an A2
operator is at the beginning, let the second argument be a(n-2)
instead of a(n-1)
.
Currently it is useless, since +
at the beginning became equivalent to x
, and *
to ²
, and -
to N
, and ÷
to 1
.
(Then, Fibonacci would be +T
.)
Default to a(0) = 0
If a recursion does not specify a(0)
, default it to 0
.
Check for recursion by analysing the arity of each operator of the program.
Oasis call stack overflow
Believe it or not, Oasis' call stack can overflow in certain circumstances.
¹a
This pushes the first operand and then tries to do recursion with itself. Outputs:
Fatal Python error: Cannot recover from stack overflow.
Current thread 0x00007f1bda758740 (most recent call first):
File "/usr/lib64/python3.7/ast.py", line 67 in _convert
File "/usr/lib64/python3.7/ast.py", line 91 in literal_eval
File "/opt/oasis/oasis.py", line 27 in pop_stack
File "/opt/oasis/oasis.py", line 261 in func_a
File "/opt/oasis/oasis.py", line 268 in func_a
File "/opt/oasis/oasis.py", line 268 in func_a
File "/opt/oasis/oasis.py", line 268 in func_a
File "/opt/oasis/oasis.py", line 268 in func_a
File "/opt/oasis/oasis.py", line 268 in func_a
File "/opt/oasis/oasis.py", line 268 in func_a
File "/opt/oasis/oasis.py", line 268 in func_a
File "/opt/oasis/oasis.py", line 268 in func_a
File "/opt/oasis/oasis.py", line 268 in func_a
File "/opt/oasis/oasis.py", line 268 in func_a
File "/opt/oasis/oasis.py", line 268 in func_a
File "/opt/oasis/oasis.py", line 268 in func_a
File "/opt/oasis/oasis.py", line 268 in func_a
File "/opt/oasis/oasis.py", line 268 in func_a
File "/opt/oasis/oasis.py", line 268 in func_a
File "/opt/oasis/oasis.py", line 268 in func_a
File "/opt/oasis/oasis.py", line 268 in func_a
File "/opt/oasis/oasis.py", line 268 in func_a
File "/opt/oasis/oasis.py", line 268 in func_a
File "/opt/oasis/oasis.py", line 268 in func_a
File "/opt/oasis/oasis.py", line 268 in func_a
File "/opt/oasis/oasis.py", line 268 in func_a
File "/opt/oasis/oasis.py", line 268 in func_a
File "/opt/oasis/oasis.py", line 268 in func_a
File "/opt/oasis/oasis.py", line 268 in func_a
File "/opt/oasis/oasis.py", line 268 in func_a
File "/opt/oasis/oasis.py", line 268 in func_a
File "/opt/oasis/oasis.py", line 268 in func_a
File "/opt/oasis/oasis.py", line 268 in func_a
File "/opt/oasis/oasis.py", line 268 in func_a
File "/opt/oasis/oasis.py", line 268 in func_a
File "/opt/oasis/oasis.py", line 268 in func_a
File "/opt/oasis/oasis.py", line 268 in func_a
File "/opt/oasis/oasis.py", line 268 in func_a
File "/opt/oasis/oasis.py", line 268 in func_a
File "/opt/oasis/oasis.py", line 268 in func_a
File "/opt/oasis/oasis.py", line 268 in func_a
File "/opt/oasis/oasis.py", line 268 in func_a
File "/opt/oasis/oasis.py", line 268 in func_a
File "/opt/oasis/oasis.py", line 268 in func_a
File "/opt/oasis/oasis.py", line 268 in func_a
File "/opt/oasis/oasis.py", line 268 in func_a
File "/opt/oasis/oasis.py", line 268 in func_a
File "/opt/oasis/oasis.py", line 268 in func_a
File "/opt/oasis/oasis.py", line 268 in func_a
File "/opt/oasis/oasis.py", line 268 in func_a
File "/opt/oasis/oasis.py", line 268 in func_a
File "/opt/oasis/oasis.py", line 268 in func_a
File "/opt/oasis/oasis.py", line 268 in func_a
File "/opt/oasis/oasis.py", line 268 in func_a
File "/opt/oasis/oasis.py", line 268 in func_a
File "/opt/oasis/oasis.py", line 268 in func_a
File "/opt/oasis/oasis.py", line 268 in func_a
File "/opt/oasis/oasis.py", line 268 in func_a
File "/opt/oasis/oasis.py", line 268 in func_a
File "/opt/oasis/oasis.py", line 268 in func_a
File "/opt/oasis/oasis.py", line 268 in func_a
File "/opt/oasis/oasis.py", line 268 in func_a
File "/opt/oasis/oasis.py", line 268 in func_a
File "/opt/oasis/oasis.py", line 268 in func_a
File "/opt/oasis/oasis.py", line 268 in func_a
File "/opt/oasis/oasis.py", line 268 in func_a
File "/opt/oasis/oasis.py", line 268 in func_a
File "/opt/oasis/oasis.py", line 268 in func_a
File "/opt/oasis/oasis.py", line 268 in func_a
File "/opt/oasis/oasis.py", line 268 in func_a
File "/opt/oasis/oasis.py", line 268 in func_a
File "/opt/oasis/oasis.py", line 268 in func_a
File "/opt/oasis/oasis.py", line 268 in func_a
File "/opt/oasis/oasis.py", line 268 in func_a
File "/opt/oasis/oasis.py", line 268 in func_a
File "/opt/oasis/oasis.py", line 268 in func_a
File "/opt/oasis/oasis.py", line 268 in func_a
File "/opt/oasis/oasis.py", line 268 in func_a
File "/opt/oasis/oasis.py", line 268 in func_a
File "/opt/oasis/oasis.py", line 268 in func_a
File "/opt/oasis/oasis.py", line 268 in func_a
File "/opt/oasis/oasis.py", line 268 in func_a
File "/opt/oasis/oasis.py", line 268 in func_a
File "/opt/oasis/oasis.py", line 268 in func_a
File "/opt/oasis/oasis.py", line 268 in func_a
File "/opt/oasis/oasis.py", line 268 in func_a
File "/opt/oasis/oasis.py", line 268 in func_a
File "/opt/oasis/oasis.py", line 268 in func_a
File "/opt/oasis/oasis.py", line 268 in func_a
File "/opt/oasis/oasis.py", line 268 in func_a
File "/opt/oasis/oasis.py", line 268 in func_a
File "/opt/oasis/oasis.py", line 268 in func_a
File "/opt/oasis/oasis.py", line 268 in func_a
File "/opt/oasis/oasis.py", line 268 in func_a
File "/opt/oasis/oasis.py", line 268 in func_a
File "/opt/oasis/oasis.py", line 268 in func_a
File "/opt/oasis/oasis.py", line 268 in func_a
File "/opt/oasis/oasis.py", line 268 in func_a
File "/opt/oasis/oasis.py", line 268 in func_a
File "/opt/oasis/oasis.py", line 268 in func_a
...
/srv/wrappers/oasis: line 3: 1188 Aborted (core dumped) python3 /opt/oasis/oasis.py .code.tio "$@" < .input.tio
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.