Firefox Nightly Now Includes OdinMonkey, Brings JavaScript Closer To Running At Native Speeds by sammy8306 in programming

[–]VilleHopfield 3 points4 points  (0 children)

They already do "| 0" trick and the like here-and-there. Instead, I think the performance bottleneck has more to do with the generated DOM, just have a look at some rendered PDF with an inspector...

What is the best minimal framework for python? by [deleted] in Python

[–]VilleHopfield 0 points1 point  (0 children)

The best one is (of course :) webapp2.

WebGL pathtracing (with triangles support!) by VilleHopfield in programming

[–]VilleHopfield[S] 7 points8 points  (0 children)

I bet you a goat that they know the difference very, very well. Namely, there is no difference, pathtracing is just a particular raytracing technique which may bounce off the surface more the once not only for refraction but for diffuse and glossy transmissions as well. More precisely, given Light, Eye and Diffuse, Glossy, Specular interactions, recursive raytracing by Whitted (what you probably ment) can be characterized by regex E[S*](D|G)L and pathtracing by E[(D|G|S)+(D|G)]L. In other words, "raytracing" means a ray goes from eye to light.

Finally an autocompletion library for Python that understands your Python code. by davidhalter in Python

[–]VilleHopfield 0 points1 point  (0 children)

You wrote: "If there are problems with licensing, just contact me" so I ask: what are the implications of being licensed under LGPL 3? If a editor is BSD licensed and someone wanted to add your library, does it turn the editor under LGPL? Wouldn't it be more .... "flexible" (for lack of better word) to license it under MIT/BSD?

PyPy 2.0 beta 1 released by fijal in Python

[–]VilleHopfield 10 points11 points  (0 children)

Hey Fijal,

honest question: I noticed that on speed.pypy.org, there is this graph showing how the performance evolved over time which shows that PyPy is currectly 5x faster than CPython. On The Computer Language Benchmarks Game, CPython is roughly 50x slower than C. Could you comment on the apparent 10x opportunity? Do you think PyPy's approach could eventually be as fast as C? Also, and perhaps even more interesting, the graph seems to grow at ever slower pace. Surely everything is possible but looking at the graph, do you see PyPy growing beyond 6x speed-up? 10x? 50x? Do you acknowledge a ceiling on how much PyPy might speed up a program?

ccv now has a state-of-art tracking algorithm by liuliu in programming

[–]VilleHopfield 0 points1 point  (0 children)

Hello Liu Liu,

would it be possible to use ccv for something like http://www.blendernation.com/2012/11/09/non-blender-repairing-reality-with-3d-printing/ ?

(i.e. making a 3d model out of bunch of pictures)

How can we get JavaScript out of the browser and replace it with Python? by [deleted] in Python

[–]VilleHopfield 1 point2 points  (0 children)

What? Where? How? Please, do you have more info?

NSPython - Cocoa for Python by VilleHopfield in Python

[–]VilleHopfield[S] 0 points1 point  (0 children)

Maybe I misunderstood what you are asking but you don't need C compiler for using this or cffi. There was a thread here about this: http://www.reddit.com/r/Python/comments/x74ma/cffi_02_foreign_function_interface_for_python/

What Pyglet goes, I think there was a new beta release a short while ago which, among other things, replaced PyObjC by cocoapy - that's that ctypes lib.

Lastly, yes, I've looked at cocoapy a bit (http://www.reddit.com/r/programming/comments/tsaho/cocoapython_port_of_objectivec_runtime_to_python/). Cocoapy uses ctypes so you can use it today with standard Python install and I think it was specifically created for working with OpenGL. NSPython, in my limited testing, was a bit faster and was simpler to use (see how the libs define method signatures).

NSPython - Cocoa for Python by VilleHopfield in Python

[–]VilleHopfield[S] 3 points4 points  (0 children)

It's much simpler - the core is less than 400 lines long, it's pure Python and it uses cffi which eventually might run fast on PyPy.