Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
redfox2
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
5 ms
·
1.
▲
by
redfox2
5y ago
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
2.
▲
by
redfox2
5y ago
Guido mentioned he was focusing work on CPython to make Python faster
3.
▲
by
redfox2
5y ago
https://github.com/rayluo/brip This brings standard PyPi packages to Brython
4.
▲
by
redfox2
5y ago
Please have a look at the last comment for all related content links - implementation, projects, doc etc.
5.
▲
by
redfox2
5y ago
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
6.
▲
by
redfox2
5y ago
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.
7.
▲
by
redfox2
5y ago
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
8.
▲
by
redfox2
5y ago
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, wor
9.
▲
by
redfox2
5y ago
I discovered this about a month ago, and it deserves to go up to the sky. The GitHub page is linked at the end. Some articles/content that relates to this ([4] is pretty cool and definitely check it out, so is [6]): [1] https:/&#
10.
▲
Brython: an implementation of Python 3 running in the browser
(github.com)
194 points
by
redfox2
5y ago
|
74 comments
11.
▲
by
redfox2
5y ago
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.
12.
▲
Ask HN: How do you come to terms accepting a hard-worked project is going down?
2 points
by
redfox2
5y ago
|
2 comments
13.
▲
by
redfox2
5y ago
I have no idea what you're saying lol
14.
▲
by
redfox2
5y ago
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?
15.
▲
by
redfox2
5y ago
Oh render_template(), yeah. Thanks
16.
▲
by
redfox2
5y ago
'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 ment
17.
▲
by
redfox2
5y ago
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
18.
▲
by
redfox2
5y ago
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
19.
▲
by
redfox2
5y ago
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/.
20.
▲
Show HN: A Python native engine for web development
(github.com)
24 points
by
redfox2
5y ago
|
15 comments
21.
▲
Show HN: Sierra – A micro templating engine purely in Python
(github.com)
3 points
by
redfox2
5y ago
|
0 comments