PyJS: write your JavaScript-powered web applications entirely in Python
1–10 of 41 posts
Re: PyJS: write your JavaScript-powered web applications entirely in Python
#2Re: PyJS: write your JavaScript-powered web applications entirely in Python
#3>Overall, the general rule is that whoever wants or needs something, they either work around the limitations of JavaScript and the pyjs implementation, or they contribute code to improve the compiler/translator.
The lament of the transpiler
Re: PyJS: write your JavaScript-powered web applications entirely in Python
#4Also, I think we have come a long way since the jQuery/AJAX spaghetti that was apparently a huge problem when this was conceived. I don't even think Node was a thing when this started. Things like Meteor and React address most of the issues and much more, such as live data and reactive UI.
Re: PyJS: write your JavaScript-powered web applications entirely in Python
#5I think this project lost its mojo. I really loved the idea but personally decided it best to just use javascript.
Re: PyJS: write your JavaScript-powered web applications entirely in Python
#6What I would really find interesting is a CoffeeScript-like language that can compile to both Python and JS (with snake_case for Python and camelCase for JS). Couple it with a JS client-side library that mimics Django's Model and Field APIs, while keeping the best parts from Ember.js (Handlebars/Emblem templates, Components with Actions for template events, Router, and Routes), plus glue code to make the whole thing seamless, real-time, and with an isomorphic feel.
If nobody does it, I plan to study compilers with the express goal of attempting it myself.
Edit: To clarify, I already know a decent amount of Python and JS/CoffeeScript. The problem is not in learning multiple languages, but in the amount of duplicated logic (especially in the model layer) that could be eliminated via shared code when you write in a single language.
Re: PyJS: write your JavaScript-powered web applications entirely in Python
#7Personally, I like CoffeeScript syntax combined with JavaScript's "a hash is an object" better than Python's object syntax (too much unnecessary use of "self" and class method decorators could be better achieved with the @ sigil). What I would really find interesting is a CoffeeScript-like language that can compile to both Python and JS (with snake_case for Python and camelCase for JS). Couple it with a JS client-sid…
Re: PyJS: write your JavaScript-powered web applications entirely in Python
#8This looks really old. It doesn't even mention anything about Python 2.7, let alone 3.x. Shouldn't we date the post? Also, I think we have come a long way since the jQuery/AJAX spaghetti that was apparently a huge problem when this was conceived. I don't even think Node was a thing when this started. Things like Meteor and React address most of the issues and much more, such as live data and reactive UI.
Last updated June 14
> Things like Meteor and React address most of the issues and much more, such as live data and reactive UI.
They don't address one major issue - using a language of your choice.
(I don't use this project but I keep an eye on all 'Python in the browser' projects' and the minute one looks mature and sensible with some real-world takeup I'll be all over it)
Re: PyJS: write your JavaScript-powered web applications entirely in Python
#9Personally, I like CoffeeScript syntax combined with JavaScript's "a hash is an object" better than Python's object syntax (too much unnecessary use of "self" and class method decorators could be better achieved with the @ sigil). What I would really find interesting is a CoffeeScript-like language that can compile to both Python and JS (with snake_case for Python and camelCase for JS). Couple it with a JS client-sid…
I don't understand why this is such a controversial view. I agree in full. I hope that you are successful.