Live data from Hacker News

Launch HN: Pynecone (YC W23) – Web Apps in Pure Python

news.ycombinator.com

91–100 of 329 posts

Re: Launch HN: Pynecone (YC W23) – Web Apps in Pure Python

#92

I'm not exaggerating but this might just be the highest impact library I've seen. As a backend developer who has lots of great project ideas but bail at the thought of having to use JavaScript and HTML, this library is a godsend! My only question is why it took so long for someone to implement it? And where are the equivalent libraries for Go, Rust and Java?

actually, as per the docs the framework is converting python code to Javascript. So you would need to JS skills to debug. Most of the problems in web front have been solved in JS (think CSS styles, state management) re-writting it in python would be pain, especially when everything compiles to js

Our goal is for the user to never have to see JS. We try to catch most errors in Python during compile time. We're also not trying to reinvent things like CSS styles, just make them accessible in Python.

Re: Launch HN: Pynecone (YC W23) – Web Apps in Pure Python

#94

I am curious to know how python is transpired in to JavaScript for tricky cases involving promises/async await Since python usage is quite different from javascript and for promises it doesnt even exists.

Only the frontend is compiled to JS/React. All the logic and state updates stay in Python and are run on the server, so we don't have to transpile arbitrary Python.

Re: Launch HN: Pynecone (YC W23) – Web Apps in Pure Python

#96

You could make about a trillion dollars if, instead of asking people to write Python, you just gave them a WYSIWYG and let them build web apps by pointing and clicking like in MS Publisher/Powerpoint. Literally everyone in the world would buy it to make their own web pages. I get that nerds like to write code, but it is really depressing that we still can't just point and click and share content on the internet, we n…

Nerds like to write code, as you put it, because it's easier than the alternative. Seen from the other side, it's amazing to what lengths people will go to avoid learning some very light scripting.

Historically the 4GL/nocode/lowcode movement has been a miserable failure, and not for lack of attempts to push that idea down people's throats.

Re: Launch HN: Pynecone (YC W23) – Web Apps in Pure Python

#97
This looks really interesting for a simple way to build a rudimentary but full-featured webapp, for example for the intranet.

But I wonder how this can be used with `asyncio`, since the handlers are pure `def` and not `async def`.

Searching the docs for `async` does return any results.

Re: Launch HN: Pynecone (YC W23) – Web Apps in Pure Python

#98
post #97

This looks really interesting for a simple way to build a rudimentary but full-featured webapp, for example for the intranet. But I wonder how this can be used with `asyncio`, since the handlers are pure `def` and not `async def`. Searching the docs for `async` does return any results.

I'll look why the search doesn't bring it up - see our event chain example here for how we do async event handlers: https://pynecone.io/docs/state/events

Re: Launch HN: Pynecone (YC W23) – Web Apps in Pure Python

#99
post #97

This looks really interesting for a simple way to build a rudimentary but full-featured webapp, for example for the intranet. But I wonder how this can be used with `asyncio`, since the handlers are pure `def` and not `async def`. Searching the docs for `async` does return any results.

I'll look why the search doesn't bring it up - see our event chain example here for how we do async event handlers: https://pynecone.io/docs/state/events

Great! Thank you. Maybe also showcase an example on the landing page, like making only the `def decrement(self)` an async function.
Post reply on HN