Monomorphic word-n-vectors and arrays #150
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This PR aims at providing support for monomorphic
WordNVector
andWordNArray
structures for more values of N than is currently supported (Word8Vector
and.Word8Array
). For straightforward FFI-support, the scalars inside the vectors and arrays should be represented untagged, also when GC is enabled.wordtables.sml
topolytable.sml
and theWordTable
functor in the file toPolyTable
(applied inArray.sml
andVector.sml
).WordNTable
functor that takes sufficient arguments to implement supersets of theMONO_ARRAY
andMONO_VECTOR
signatures.WordNTableSlice
functor that takes sufficient arguments to implement supersets of theMONO_ARRAY_SLICE
andMONO_VECTOR_SLICE
signatures.bytetable_sub_wordN
andbytetable_update_wordN
for N=16, N=31, N=32ub, N=32b, N=63, N=64ub, N=64b.Word31
,Word32
,Word64
, andWord
.Word63
structure and instantiate the functors for this word size.Word16
structure and instantiate the functors for this word size.BoolVector
and friends.RealVectorSlice
andRealArraySlice
by instantiating functors.MONO_ARRAY2
signature.We will deal with int-n-vectors and arrays in a separate PR.