
Security News
Attackers Are Hunting High-Impact Node.js Maintainers in a Coordinated Social Engineering Campaign
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.
(Python Extension Packages in Javascript)
Python Extension Packages in Javascript is open-source implementation of some common libraries used
in the scientific python programming.
The main goal of this project is to improve migration of
python language to javascript.
Copyright 2016 Alvaro Fernandez
License: MIT/X11
$ npm install pyextjs
> require('pyextjs');
> numpy.linspace(2.0,3.0,5);
Just include the following libraries in your html.
<!doctype html>
<html>
<head>
<script type="text/javascript" src="../js/ss.js"></script>
<script type="text/javascript" src="../js/Numpy.js"></script>
<script type="text/javascript" src="../js/PolySolve.js"></script>
<script type="text/javascript" src="../js/Scipy.js"></script>
<script type="text/javascript">
// Use Numpy & Scipy like python in javascript
function ready() {
var ls = numpy.linspace(2.0,3.0,5);
}
</script>
</head>
</html>
This is very important, the test was executed in a MacBookPro i5
The python Code:
import time
import numpy
def test():
x = numpy.array([0.0, 1.0, 2.0, 3.0, 4.0, 5.0])
y = numpy.array([0.0, 0.8, 0.9, 0.1, -0.8, -1.0])
start = time.time()
for num in range(1,10000):
numpy.polyfit(x, y, 3)
end = time.time()
microsecs = end - start
print microsecs * 1000
test()
function test() {
x = [0.0, 1.0, 2.0, 3.0, 4.0, 5.0];
y = [0.0, 0.8, 0.9, 0.1, -0.8, -1.0];
var start = +new Date();
for (var i=0;i<10000;i++)
numpy.polyfit(x, y, 3)
var end = +new Date();
var diff = end - start;
alert(diff);
}
test();
Python: 1604 milliseconds
Javascript: 14 milliseconds
Javascript! Very fast!!!
FAQs
Python Extension Packages in Javascript (Numpy, Scipy)
We found that pyextjs 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
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.

Security News
Axios compromise traced to social engineering, showing how attacks on maintainers can bypass controls and expose the broader software supply chain.

Security News
Node.js has paused its bug bounty program after funding ended, removing payouts for vulnerability reports but keeping its security process unchanged.