Hacker News new | ask | show | jobs
by ordiel 1459 days ago
Eeem... i have used Brython, maybe you will like it just as much as I do, i am not that sure how is it in performance yet to do minimal updates on text fields, handling butons and the like (as 99% of the web) it does just fine, you can even have animations. Finally front end code looks "clean" instead of looking like a project for computer science 101 as ... well 99% of the web hahaha

https://www.brython.info/

2 comments

I tried brython but it fell at the first hurdle (I can't remember if it was xpath searches on the DOM or some XML manipulation in python), so I gave up. I'm sure it's better now, but the whole concept of binding Python abstractions to JS objects underneath felt a but clunky and it leaked a lot. WASM is definitely cleaner, if obviously slower.
Speaking of front-end, I really like Brython's site showcasing what they're doing. Just right-click > view source and you can immediately figure it out. On PyScript's site they use JS for the typing animation rather the framework they're making.