![Create React App Officially Deprecated Amid React 19 Compatibility Issues](https://cdn.sanity.io/images/cgdhsj6q/production/04fa08cf844d798abc0e1a6391c129363cc7e2ab-1024x1024.webp?w=400&fit=max&auto=format)
Security News
Create React App Officially Deprecated Amid React 19 Compatibility Issues
Create React App is officially deprecated due to React 19 issues and lack of maintenance—developers should switch to Vite or other modern alternatives.
Easy n-dimensional data manipulation with NumPy syntax.
npm i nadder # or yarn add nadder, or pnpm add nadder
import { ndarray, array, add, evaluate, arange } from 'nadder';
const dataSource = new Float32Array(1_000_000);
// load data into dataSource manually here...
// Initialize (1000, 1000) ndarray
const t = ndarray(dataSource, [1000, 1000]);
// NumPy slicing fully supported
console.log(t['100:110, 305:300:-1']);
t['..., :100'] = 1.23;
// np.newaxis is now +
console.log(t['0, 0, +']);
const leapYears = Array.from(
{ length: 1000 },
(_, i) => i % 4 == 0 && (i % 400 == 0 || i % 100 != 0)
);
// nadder.array automatically creates an efficient representation of your
// Array object and translates nested lists into dimensions in the ndarray
const boolIndex = array(leapYears);
// You can even use other ndarrays in the indices!
console.log(t[`..., ${boolIndex}`]);
// You can evaluate things using a Python-esque DSL
console.log(evaluate`${t}[:, 0] * 2 + 1 / ${arange(1000)}`)
// ufuncs also supported through explicit syntax
// broadcasting, typecasting done automatically
console.log(add(t, boolIndex));
The embedded DSL supports a wide variety of common constructs and Python syntax (e.g. @
matrix multiplication, //
floor division, keyword arguments). All syntax works both on scalars and ndarrays. The DSL can also use JavaScript values interpolated within the code.
import { parse, argument, arange } from 'nadder';
const calcTrace = parse`
mat = ${argument('matrix')}.astype(float64);
n = mat.shape[0];
trace = 0;
if ${process.env.DEBUG} {
${console.log}(mat);
}
for i in arange(n) {
trace += mat[i, i];
}
# Last line with no semicolon is the return value
trace
`;
// 13
const example = calcTrace({
matrix: array([
[1, 4, 5],
[2, 3, 6],
[7, 1, 9]
])
});
// [154., 158., 162., 166., 170.]
const multiElem = calcTrace({
matrix: arange(1, 81).reshape(4, 4, 5)
});
evaluate
evaluate
matmul
MIT
FAQs
ndarray/tensor data processing for modern browsers
The npm package nadder receives a total of 1 weekly downloads. As such, nadder popularity was classified as not popular.
We found that nadder demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Create React App is officially deprecated due to React 19 issues and lack of maintenance—developers should switch to Vite or other modern alternatives.
Security News
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.
Security News
The Linux Foundation is warning open source developers that compliance with global sanctions is mandatory, highlighting legal risks and restrictions on contributions.