reorganized build-ins and implement a circular queue as an example
This commit is contained in:
@@ -0,0 +1,6 @@
|
||||
a = [];
|
||||
i = 0;
|
||||
while(i<100000000):{
|
||||
a[i]= "ciao mondo mmododooddododododododododododdodododododd";
|
||||
i = i+1;
|
||||
}
|
||||
@@ -0,0 +1 @@
|
||||
a = b = c;
|
||||
@@ -0,0 +1,14 @@
|
||||
|
||||
fun fail_at_depth(depth) {
|
||||
|
||||
fun fail(current_depth) {
|
||||
|
||||
assert(current_depth < depth);
|
||||
|
||||
fail(current_depth + 1);
|
||||
}
|
||||
|
||||
fail(0);
|
||||
}
|
||||
|
||||
fail_at_depth(9);
|
||||
@@ -0,0 +1,19 @@
|
||||
# This script creates a lot of objects, so it can be used to stress the garbage collector.
|
||||
|
||||
print('Start\n');
|
||||
|
||||
i = 0;
|
||||
n = 10000000;
|
||||
|
||||
while i < n: {
|
||||
|
||||
1 + 1 * 1;
|
||||
i = i + 1;
|
||||
|
||||
fun printPercent()
|
||||
print(100.0 * i / n, '%\n');
|
||||
|
||||
printPercent();
|
||||
}
|
||||
|
||||
print('End\n');
|
||||
Reference in New Issue
Block a user