-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #670 from nevalang/runtime_raceless_queue
Race condition fix. Part 2 (Runtime)
- Loading branch information
Showing
138 changed files
with
2,209 additions
and
2,233 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
neva: 0.23.0 | ||
neva: 0.25.0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,8 @@ | ||
flow Main(start) (stop) { | ||
nodes { Println, Lt<int>} | ||
nodes { Println, Lt<int> } | ||
:start -> [ | ||
(20 -> lt:compared), | ||
(20 -> lt:actual) | ||
] | ||
lt:res -> println -> :stop | ||
] | ||
lt:res -> println -> :stop | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,10 @@ | ||
flow Main(start) (stop) { | ||
nodes { Println, Gt<string>,If} | ||
nodes { Println, Gt<string>, If } | ||
:start -> [ | ||
('A' -> gt:compared), | ||
('Z' -> gt:actual) | ||
] | ||
gt:res -> if | ||
|
||
if:then -> ('Actual is greater' -> println -> :stop) | ||
if:else -> ('Actual is lower' -> println -> :stop) | ||
] | ||
gt:res -> if | ||
if:then -> ('Actual is greater' -> println -> :stop) | ||
if:else -> ('Actual is lower' -> println -> :stop) | ||
} |
File renamed without changes.
2 changes: 1 addition & 1 deletion
2
e2e/do_nothin_verbose/main/main.neva → e2e/do_nothing_verbose/main/main.neva
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
flow Main(start) (stop) { | ||
:start -> :stop | ||
} | ||
} |
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,8 @@ | ||
flow Main(start) (stop) { | ||
nodes { Println, And } | ||
:start -> [ | ||
(true -> and:A), | ||
(true -> and:B) | ||
(true -> and:a), | ||
(true -> and:b) | ||
] | ||
and -> println -> :stop | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,8 @@ | ||
flow Main(start) (stop) { | ||
nodes { Println, Or } | ||
:start -> [ | ||
(false -> or:A), | ||
(false -> or:B) | ||
(false -> or:a), | ||
(false -> or:b) | ||
] | ||
or -> println -> :stop | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
package test | ||
|
||
import ( | ||
"os/exec" | ||
"testing" | ||
|
||
"github.com/stretchr/testify/require" | ||
) | ||
|
||
func Test(t *testing.T) { | ||
cmd := exec.Command("neva", "run", "main") | ||
|
||
out, err := cmd.CombinedOutput() | ||
require.NoError(t, err) | ||
require.Equal( | ||
t, | ||
"<empty>\n<empty>\n", | ||
string(out), | ||
) | ||
|
||
require.Equal(t, 0, cmd.ProcessState.ExitCode()) | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
import { time } | ||
|
||
flow Main(start) (stop) { | ||
nodes { p1 Println, p2 Println } | ||
:start -> [p1, p2] | ||
p1 -> (p2 -> :stop) | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
neva: 0.10.0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,24 +1,14 @@ | ||
flow Main(start) (stop) { | ||
nodes { Range, PrintLine, Match } | ||
|
||
:start -> [ | ||
(1 -> range:from), | ||
(101 -> range:to) | ||
] | ||
range.data -> printLine -> match:data | ||
100 -> match:case[0] -> :stop | ||
nodes { Range, Map<int, string>{FizzBuzz}, For{Println} } | ||
:start -> [(1 -> range:from), (101 -> range:to)] | ||
range -> map -> for -> :stop | ||
} | ||
|
||
flow PrintLine(data int) (data int) { | ||
nodes { mod CaseMod, Println, Lock<int> } | ||
|
||
:data -> [mod:data, lock:data] | ||
|
||
15 -> mod:case[0] -> ('FizzBuzz' -> println) | ||
3 -> mod:case[1] -> ('Fizz' -> println) | ||
5 -> mod:case[2] -> ('Buzz' -> println) | ||
mod:else -> println | ||
|
||
println -> lock:sig | ||
lock:data -> :data | ||
} | ||
flow FizzBuzz(data int) (res any) { | ||
nodes { CaseMod } | ||
:data -> caseMod:data | ||
15 -> caseMod:case[0] -> ('FizzBuzz' -> :res) | ||
3 -> caseMod:case[1] -> ('Fizz' -> :res) | ||
5 -> caseMod:case[2] -> ('Buzz' -> :res) | ||
caseMod:else -> :res | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
flow Main(start) (stop) { | ||
nodes { Println } | ||
:start -> ('Hello, World!' -> println -> :stop) | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.