Live data from Hacker News

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

news.ycombinator.com

141–150 of 329 posts

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

#141

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?

So ruby has a JS transpiler - opal - https://opalrb.com/ I tried using it a little bit but the reality is if you need JS to make your app more interactable it's really worth it to just learn some JS. As soon as you need something complex the extra layer of abstraction just gets in the way and becomes more of a headache, and if you don't need anything complex then you don't need a fancy JS solution in the first place.…

JS is complicated because the browser environment is complicated.

If it's going to be rendered by and live in a web browser it will either be complicated or limited in some way (like low code/no code tools).

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

#142

Earlier quoted context omitted.

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.

> We try to catch most errors in Python during compile time.

I feel Python is not the best language for catching most errors during compile time.

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

#143

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?

> My only question is why it took so long for someone to implement it?

Uhhhh. Because it didn’t. Google GWT was huge on the hype cycle about 15 years ago.

You know this has been done before over a decade ago, multiple times in Java and Python.

Not saying the space can’t be improved upon but I fail to see how it’s any more revolutionary now.

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

#144
post #69
post #8

I'd love to see something like this. I'm an old computer science guy and would love to write software again. I can write plenty of functionality in Python but I don't really want to learn all the JS stuff. I just don't like it. If I could abstract away the details it would be a big help. I'm not going to build anything that requires scale or commercial performance so I can afford to compromise versus the "purity" of…

Have you tried Django? https://www.djangoproject.com/

In my experience using Django for my webapps hasn't meant I can avoid HTML and javascript. Writing templates is writing HTML, and any relatively fancy UI including charting etc. requires using javascript

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

#145

Question, how does your framework compare with Gradio, the other leasing python/full stack framework that most people are using? How is it better than Gradio, and what additional features does it have?

I think the comparison is similar to the comment I mentioned about how we are different than streamlit: more customizable, flexible, and you can make larger web apps

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

#146
post #142

Earlier quoted context omitted.

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.

> We try to catch most errors in Python during compile time. I feel Python is not the best language for catching most errors during compile time.

We're using Pydantic and our compiler has custom type-checking on top of Python to catch these issues.

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

#148

I haven't seen anyone mention Anvil[1] yet, but it lets you "Build web apps with nothing but Python." and is lovely tool that I've successfully used for a handful of side projects. But as someone who feels most at home with Python, I always love to see new competition in this space. [1] https://anvil.works/

EDIT: My following statement about self hosting is incorrect. You can, infact, self host. This looks wonderful, but the inability to self host is a killer from the solo developer point of view. Being limited to 50,000 database rows on the free account isn't ideal.

Anvil has self-hosting! Just "pip install anvil-app-server" :)

https://anvil.works/open-source

(I'm a founder)

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

#149

One other recommendation: If you can please don't build the code as Class based. We front end devs thankfully have moved away from this gross paradigm with react and other libraries and frameworks. I do believe this move towards functional code has been one of the reasons the Frontend has had such a rapid improvement in developer tooling and output over the last decade.

I think they struck the right balance. Pages are declarative functions much like React and they only appear to use classes for state or component wrappers.

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

#150
post #4

Earlier quoted context omitted.

Thanks! We're building a hosting service that you can deploy your apps to. Our plan is to have a free tier for your first app, then charge for additional apps. We're still finalizing this, so would love to hear any thoughts.

Interesting — what kind of advantages would your hosting service provide over, say, packaging the Pynecone app into a Docker container and then deploying to Fly.io/Render/GCP/Azure/etc?

[deleted]
Post reply on HN