Live data from Hacker News

Pynecone – Performant, customizable web apps in pure Python

pynecone.io

81–86 of 86 posts

Re: Pynecone – Performant, customizable web apps in pure Python

#81
post #41

I played with it and subsequently turned my back on it in favor of alpine.js and some vanilla JavaScript to handle client state with Flask on the back end. The reason I gave up on Pynecone is that these things transpile to other already high abstraction frameworks like React. This is all good and well until something goes wrong and you now have more layers to troubleshoot. Another huge downside to this approach is th…

> something like Pynecone that targeted html/dom/js directly instead of wrapping node/react/next This might not be what you were imagining, but I think this js more or less what we built at https://anvil.works (I'm a founder). Anvil's UI toolkit is built "straight on the DOM", and it's shaped like Python objects rather than going via some other React-y abstraction. This is possible because we expose the difference be…

Anvil has been great. I'm a happy subscriber. As someone requested above for Pynecone, could Anvil also make a tutorial for creating ChatGPT clone (UI wrapper for ChatGPT/gpt-4) using Anvil?

Re: Pynecone – Performant, customizable web apps in pure Python

#82
post #45

Earlier quoted context omitted.

> Well then, people should also stop doing that with Typescript because it's [...] much slower than JavaScript. Wuh?

Typescript transpiles to JS with a bunch of runtime checks woven in resulting in much slower code than equivalent barebones JS. There are benchmarks that show this.

This is false. TypeScript does not add any run time checks, but it does encourage you to add some yourself.

Re: Pynecone – Performant, customizable web apps in pure Python

#84

Earlier quoted context omitted.

Agree a little different approaches, we found many developers wanted to stick with a 100% code approach and avoid the constraints of using an online drag and drop builder like retool/anvil etc. Instead opting to stick a traditional code tech stack that provides benefits like easier version control with ui and reviews with larger teams. Where as with a low code tool you are now forced to develop on the ui platform and…

Oh, yeah - "text in a Git repository" is table stakes for developers. Ditto being open source to avoid lock-in. (Which is why Anvil has both! You can check your code out, edit in VS code, and host locally.) But if you want a visual UI editor, you gotta have the tooling somewhere... Aside: I get grouchy about the term "low-code", mostly because it's almost always a lie (you're going to need the code, and most "low-cod…

slight aside, but it's refreshingly pleasant to see a cordial discussion between representatives of two competing aproaches. HN is better than some other sites, but there's still a fair bit of polarised "my choice is right and so yours is wrong".

I didn't know about either Pynecone or Anvil, and have a side project for a friend that might be well suited to one/both. So I'm both more enlightened on options, and more predisposed to both given the positive dialogue here. Thanks for both.

Re: Pynecone – Performant, customizable web apps in pure Python

#85

Earlier quoted context omitted.

I found it very difficult to do things like rich text boxes for a ChatGPT clone I was writing aimed at being child friendly. Ended up giving up when it became a bit spaghetti-ish and after the documentation stopped being useful beyond hello world apps.

Cofounder of Pynecone here - thanks for the feedback. We’re prioritizing improving our docs and example apps in the upcoming weeks and will have a ChatGPT clone example. Definitely want to improve the onboarding experience and showcase these more complex use cases.

Hey! Don't take my comment as too negative, I do like the idea & enjoyed using Pynecone right to the point I got stuck. Best of luck improving it, I'll definitely circle back in the future

Re: Pynecone – Performant, customizable web apps in pure Python

#86
After testing it a bit, why the f** is this so wasteful? Just starting the base helloworld-project is already wasting 30% CPU on idle. And apparently is running multiple servers, so I'm not even sure whether this is the whole story. How do they except anyone do use this for real?
Post reply on HN