Skip to content

Commit 6b0ec36

Browse files
author
supercooldave
authored
Patch to Josef's Bigvars (#855)
* Added test, fixed bug * Added simple test for bighash * Changing to use standard libs * Replaced LinkedList dependency with lib * Removed dependency on local Siphash * Fixed up stress tests
1 parent bde02ab commit 6b0ec36

21 files changed

+116
-609
lines changed

modules/standard/Big/Array/Supervisor.enc

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ module Supervisor
33

44
import Worker
55

6-
local class Supr[t]
6+
local class Supr[sharable t]
77
var size : int
88
var numOfWorkers: int
99
var workers : [(Worker[t],int,int)]

modules/standard/Big/HashMap/Collection.enc

-19
This file was deleted.

modules/standard/Big/HashMap/HashEntry.enc

+2-6
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11

22
module HashEntry
33

4-
import LinkedList
4+
import Collections.Mutable.LinkedList
55

66
local class HashEntry[k,v]
77
var key : k
@@ -85,11 +85,7 @@ local class HashEntry[k,v]
8585
var index = 0
8686
var iterator = this.values.iterator()
8787
while iterator.has_next() do
88-
match (iterator.next()) with
89-
case Just(v) =>
90-
result(index) = v.value
91-
end
92-
end
88+
result(index) = iterator.next()
9389
index += 1
9490
end
9591
result

modules/standard/Big/HashMap/HashMap.enc

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
module HashMap
33

44
import Supervisorh
5-
import LinkedList
5+
import Collections.Mutable.LinkedList
66

77
linear class Bighash[k,v]
88
var supervisor : Supervisor[k,v]

0 commit comments

Comments
 (0)