Better HN
topnewbestaskshowjobs
Log inSign up

bretthartshorn

4 karma · joined Jun 8, 2014 (12y ago) · 5 submissions

Submissions

comment 12y ago · link · parent

Here is a new benchmark testing PythonJS using SIMD vectorized code in the DartVM vs CPython with NumPy. http://pythonjs.blogspot.com/2014/06/pythonjs-simd-vectors.h...

comment 12y ago · link · parent

I've posted updated benchmarks with the latest PyPy 2.3.1 http://pythonjs.blogspot.com/2014/06/pythonjs-faster-than-cp...

comment 12y ago · link · parent

PythonJS implements __getattr__. See these regression tests: https://github.com/PythonJS/PythonJS/blob/master/regtests/cl...

https://github.com/PythonJS/PythonJS/blob/master/regtests/cl...

__getattr__ and __getattribute__ are implemented in the special __get__ function defined in: https://github.com/PythonJS/PythonJS/blob/master/pythonjs/ru...

comment 12y ago · link · parent

PythonJS has support for 64bit integers using the Long.js library. You just need to type your variable as "long". Numbers larger than 64bits could also be supported with another library and simple modifications to the translator.

http://pythonjs.blogspot.com/2014/06/64bit-integer-long-type...

comment 12y ago · link · parent

pythonjs.py is not the main part of the translator. PythonJS translates in two steps, most of the translation happens in the first stage, in python_to_pythonjs.py

https://github.com/PythonJS/PythonJS/blob/master/pythonjs/py...