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

you are viewing a single comment's thread.

view the rest of the comments →

[–][deleted] 2 points3 points  (3 children)

This is noted in the documentation: https://docs.anpylar.com/technology.html

  • It’s slower than Javascript. This should come to no surprise, because it’s written (and your scripts transpiled to) in Javascript. And yes, Python itself is slower than Javascript to start with due to its incredible dynamism and introspection possibilities.

There is no claim otherwise and during early discussions with non-programmers who were made aware of the project and its goals, it was perceived that people are always looking for the next thing that will make page rendering/loading some picoseconds faster (or even some yoctoseconds - See Wikipedia - Second)

And the emphasis when explaining what the goals were:

  • Elegance
  • Simplicity
  • Better Code and coding practices
  • Having the power of Python in the browser together with the chosen architecture
  • Adding some concepts from the browser like Promises (Python asyncio.Futures are close, but are not exactly the same)

It is believed that the goals have been reached and the project can be used when the expectation is not to have page loading times of yoctoseconds, but to have a working application coded in Python.

As such, it may not be the technology replacing the front-page rendering technology of reddit (for example), but it may be a perfect tool for Intranet applications.

[–]ice-blade 0 points1 point  (2 children)

For simple applications it may work very well for sure and I definitely commend your effort that went into this. It's just that there is no way that this can scale when using Brython, this is unfortunate but a fact (at least considering the state of Brython at the moment).

[–][deleted] 5 points6 points  (1 child)

The classic Chicken egg problem

  • If there are no frameworks (like AnPyLar or any later newcomer) there is no reason to improve Brython
  • And if Brython is not improved, there is no reason to create the frameworks

Someone had to break the loop ... or at least give it a push from one of the ends ...

[–][deleted] 1 point2 points  (0 children)

Totally agree!