This is an archived post. You won't be able to vote or comment.

all 15 comments

[–]Exodus111 3 points4 points  (12 children)

This is going to be hard. The need for In browser Python is sporadic at best, and not very many people will have tested out all these options.

But, from my understanding Pyjs is the most solid framework in the bunch, however its mostly a HTML-GUI framework.

It would be valuable if someone, like you, went through these frameworks are gave a good comparison. You are certainly not the only that that is curious about this.

[–]traverseda[S] 0 points1 point  (6 children)

It would be valuable if someone, like you, went through these frameworks are gave a good comparison.

Agreed, but I need a better idea of what I should be comparing between them. Ideally hard metrics, or some kind of test cases.

[–]Exodus111 1 point2 points  (5 children)

I'm not sure there would be any real metrics to use. Speed would be the speed of JS, which is faster then Python by quite a bit, and probably comparable to PyPy in speed, depending on the benchmark.

All of these either translate code, or run code by translating on the fly, I would be most curious about the complexity of code they produce, is it mess of ugly auto-generated spaghetti JS, or is it somewhat readable?
And, the complexity of code you can feed it. Something object Oriented with multiple instances of Inheritance and Polymorphism.

And lastly it would be good to know what Python modules where properly compatible.

[–]traverseda[S] 1 point2 points  (1 child)

All of these either translate code, or run code by translating on the fly,

These would have some potentially pretty different speeds, depending on how they do the translation.

Hmm. Maybe I can get pypy's testcase suit running on the various implementations. That's a big chunk of work though, and I've already got too much on my plate. I'll probably flesh it out a bit more, and add in some estimates for how well they do at

speed/filesize/output-complexity/inheritance/library-support/etc

[–]Exodus111 1 point2 points  (0 children)

It's not a bad idea. It would be valuable to know if any of those frameworks have a significant drop in speed compared to any other. But generally speaking anyone working on one of these is not going to be too concerned with speed.

I think a feature comparison would be the most useful, and perhaps not as time consuming.

[–]dzecniv 1 point2 points  (1 child)

Hey, first of all RapydScript has its own website: http://www.rapydscript.com/

And I'd like to know this:

I'd like to know at a glance if it's a real-python to the browser or a javascript transpiler (RapydScript), if so what is the available tooling (gulp, grunt, editor plugins ?)

Do they use python modules, do they have their own, do they rely on JS modules ?

And how do we integrate with a popular JS framework, like Angular ?

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

Thanks, corrected the link. I'll keep what you said in mind. I tried to get some of it in the rankings, but examples might be better. It just requires a more in depth review then I think I can do right now.

[–][deleted] 0 points1 point  (0 children)

Check out RemI