redfox2
redfox2 on Hacker News
Wow I wasn't aware of those. But apart from the 2020 post, the others are pre-TS. Brython seems to have come a long way since TS came in
Guido mentioned he was focusing work on CPython to make Python faster
Please have a look at the last comment for all related content links - implementation, projects, doc etc.
Starboard is completely different from Brython, although it is cool. As for pyodide, it still involves proper working knowledge and literal implemetation of JS - Brython just needs you to know the bare basics, the rest is just pure Python
Pyodide still involves writing JS (literally). Brython just needs you to know the simple basics of JS (since the syntax is similar), and you're good to go with pure Python from there on.
Yeah, it has been there for quite some time, but has really started getting off the ground in about mid-late 2019 which is strange, since like you mentioned, the advent of TS. But slowly a lot of interest has been brewing over it, it's growing faster than ever, and has been attracting users/contributors a LOT only since the start of last year.
https://academy.cs.cmu.edu/
This is Carnegie Mellon's academy website, running on Brython. See the Brython Wiki page on their GitHub, they got a list there.
Yeah. Like I said, it could really do with more contributors who can work on these issues and add keep adding features. rayluo who is a major contributor (developed brip to support using regular PyPi packages with brython), for example, works at Microsoft, and most probably does this in his spare time. More people like this can help bring Brython up even more, so there's a majority coverage for what JS can do, with Brython. Joining their Groups forum really shows you how much they're working and how much they're dedicated to this. This is only going to keep growing, if more devs and contributors hop onto the project even in their spare time.
Posted by
redfox2 on Monday July 19, 2021 @11:59AM
from the github.com dept.
I wasn't aware of that. Since the standards for a 'successful' project are relatively abstract, I had a very bad idea on what defines a good project. I'll work on it and get better. Thanks.
Posted by
redfox2 on Saturday July 17, 2021 @02:55AM
from the ask-hn dept.
A few days, ago, I posted [1] on Show HN. It was my first serious project and one that I had decided to actually ask people for feedback. While I did get a few encouraging words and some criticism which I've been working on a lot, I've been getting VERY few downloads (pip installs, here) in the past few days. I'm talking an average of 1-2 or maybe if I'm lucky, 5 a day. It's been only getting...
I have no idea what you're saying lol
But the issue when I avoid render_template() is this:
I can't add the CSS file along with the HTML one, unless I create a <style> tag at the end of the file that has all of the CSS content. Can you comment on that?
Oh render_template(), yeah. Thanks
'This simplifies things, and you can use an in-memory StringIO object rather than a file. You can then return this string to flask as a text/html response and avoid Jinja2 entirely.'
I didn't think of this until you mentioned this, so might do that. But I don't get the 'avoid Jinja2 entirely' part. Jinja2 is avoided with the current syntax already (which is definitely changing).
About BeautifulSoup, the autoPrettify() function is actually from bs4, it is a dependency.
Yeah I know, camelCase IS unpythonic
Thanks again
I always use snake_case. But the guy I'm working with always insists on using camelCase, though he's never used Java/c#/Go. I don't like it, so sometimes we make compromises there. Thanks for the advice
Also, mighty thanks for actually taking the time out to check out the codebase. This is my first proper project, and I really appreciate this
Yeah, you're absolutely right, I wasn't able to really think of another way to implement it. [2] was meant to be implemented with Flask, which is optional, so the files can directly be written to templates/ and static/. We're actually changing this. Can you give a few suggestions on how it must be implemented? We want to work on this
Posted by
redfox2 on Friday July 09, 2021 @06:57AM
from the show-hn dept.
Posted by
redfox2 on Saturday July 03, 2021 @12:45PM
from the show-hn dept.