Alex Falcon (2017-06-02T16:06:21.000Z)
capitalknew at gmail.com (2017-06-02T16:19:52.601Z)
Hello. I heard about SIMD, Atomics, etc. and they accept as first arguments "array, index", so because ES6 have spreads, I suggest to make next things: let array = [0, 2, 3]; let ptr = array{0}; // don't get value, but pair of [array, 0], also this is proxied which you have setter and getter "value" let ptr = array.ptr(0); // alternate, functional ptr.value = 1; // setter let acceptance = ptr.value; // getter // also you can just use these pointers without extra indexing let idx = Atomics.add(...ptr, 1); It should available for both: typed and regular arrays. Simular possible with objects, where you can pass to "defineProperty". Main problem - getting through point syntax. I thinking "->" syntax (against C++), but may corrupt compatibilies. But is not cancels obj{'foo'} getting pointers.
capitalknew at gmail.com (2017-06-02T16:18:56.278Z)
Hello. I heard about SIMD, Atomics, etc. and they accept as first arguments "array, index", so because ES6 have spreads, I suggest to make next things: let array = [0, 2, 3]; let ptr = array{0}; // don't get value, but pair of [array, 0], also this is proxied which you have setter and getter "value" let ptr = array.ptr(0); // alternate, functional ptr.value = 1; // setter let acceptance = ptr.value; // getter // also you can just use these pointers without extra indexing let idx = Atomics.add(...ptr, 1); It should available for both: typed and regular arrays. Simular possible with objects, where you can pass to "defineProperty". Main problem - getting through point syntax. I thinking "->" syntax (against C++), but may corrupt compatibilies.
capitalknew at gmail.com (2017-06-02T16:18:27.263Z)
Hello. I heard about SIMD, Atomics, etc. and they accept as first arguments "array, index", so because ES6 have spreads, I suggest to make next things: let array = [0, 2, 3]; let ptr = array{0}; // don't get value, but pair of [array, 0], also this is proxied which you have setter and getter "value" let ptr = array.ptr(0); // alternate, functional ptr.value = 1; // setter let acceptance = ptr.value; // getter // also you can just use these pointers without extra indexing let idx = Atomics.add(...ptr, 1); It should available for both: typed and regular arrays. Simular possible with objects, where you can pass to "defineProperty". Main problem - getting through point syntax, I thinking "->" syntax (against C++), but may corrupt compatibilies.
capitalknew at gmail.com (2017-06-02T16:18:00.074Z)
Hello. I heard about SIMD, Atomics, etc. and they accept as first arguments "array, index", so because ES6 have spreads, I suggest to make next things: let array = [0, 2, 3]; let ptr = array{0}; // don't get value, but pair of [array, 0], also this is proxied which you have setter and getter "value" let ptr = array.ptr(0); // alternate, functional ptr.value = 1; // setter let acceptance = ptr.value; // getter // also you can just use these pointers without extra indexing let idx = Atomics.add(...ptr, 1); It should available for both: typed and regular arrays. Simular possible with objects, where you can pass to "defineProperty". Main problem - getting through point syntax, I thinking "->" syntax (against C++), but may corrupt compatibilies.