-
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
See if we can get raw benchmark data into docs
- Loading branch information
Showing
2 changed files
with
30 additions
and
1 deletion.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
Despite my best efforts, there are frictions associated with cross platform initiatives. | ||
|
||
In javascript | ||
|
||
```javascript | ||
const arr = new Float64Array(2) | ||
arr[10] | ||
``` | ||
|
||
will result in `undefined`, and your program will continue onwards with essentially undefined future behaviuor. | ||
|
||
This is materially different to the behaviour on the JVM and native arrays, which are going to throw `ArrayOutOfBounds` or some similar exception letting you know things have gone wrong. Whilst enabling this exception throwiung behaviour is _possible_ in scalaJS (use `Array[Double]`) , it comes with a performance impact. | ||
|
||
It is an explicit goal of `vecxt` to be performant, and to introduce as few abstractions as possible. We make no effort to solve this problem in JS land. |