Live data from Hacker News

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

news.ycombinator.com

221–230 of 329 posts

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

#221
post #69

Earlier quoted context omitted.

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

It could be a nice option for small projects! The companies where I saw Django in production had terrible issues. Last.fm is one of them, I can't speak directly about the other one (aerospace). Django is good for a proof of concept but once you hit real-world requirements or your developers (inevitably unaware of the nuances of Django) start adding code and exceptions, it completely breaks down. Django was a good ide…

Yeah, Django is a nice option for small proof of concepts like Instagram.

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

#222

Earlier quoted context omitted.

It could be a nice option for small projects! The companies where I saw Django in production had terrible issues. Last.fm is one of them, I can't speak directly about the other one (aerospace). Django is good for a proof of concept but once you hit real-world requirements or your developers (inevitably unaware of the nuances of Django) start adding code and exceptions, it completely breaks down. Django was a good ide…

> Last.fm is one of them Can you talk a little bit more about this? What kind of issues does Last.fm have that is related to or caused by Django?

I'll try! Last.fm started many years ago, in the early '00s (pretty much like Django!). They decided to use Django to serve their website and API. As the years went by, some issues and limitations started to show up: the API has several quirks they can't fix, the frontend -even after the redesign- is slow, and interactions feel clunky and outdated (like early AJAX attempts).

The API can't be easily modified -and sometimes XML responses have info JSON don't-, the website is stuck on being served through the framework instead of relying on a modern API... They even have an "old" and "new" database for albums, so when you query some of the albums through the API they come back with no tracks because the API is in the old codebase. It's a mess. And from my experience with Django, it feels a lot like the difficulties we had trying to scale and improve our existing code. It's not that you can't do things: it's just that Django isn't agile enough to adapt. You end up adapting to Django and its -beautiful and magical- ways.

Of course we could blame it on poor design choices, lack of Django knowledge or just call it technical debt... but I believe the framework is the major culprit.

For context: I haven't worked for last.fm, but I manage a third-party client (Open Scrobbler). I've been using their API for more than five years now, had interactions with their devs, read many replies in the API support forum and even tried to find undocumented endpoints that could help me (during this time I found some old profiles and test pages where you can even see screenshots of Django logs!).

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

#223
post #204
post #191

Looks similar to Nitro https://nitro.h2o.ai/ and Wave https://wave.h2o.ai/ - both open source. Nitro already works with WebAssembly via Pyodide. (Author here)

Hey! What's the difference between Nitro and Wave? Wave seems like a great fit for my usage.

Nitro has no events or callbacks. To display a page, you call a function, and the return value of the function is a tuple of inputs entered by the user. You then deal with those inputs, and display another page, and so on. There’s no ceremony. Like the readme shows, a seven page app is just seven statements one after the other. This paradigm makes it possible to write incredibly compact code.

As an example, here is a macOS calculator clone in ~50 lines of Python: https://twitter.com/crunchingdata/status/1563300652918325249...

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

#224

Earlier quoted context omitted.

I think a big thing is the limited supported libraries as of now.

Isn't also just the fact you need to send over like 7MB of wasm for even just the standard library?

Presumably you could optimize that by analyzing a running site and stripping out the unnecessary libraries. I'm sure that will come with time.

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

#225
post #171
post #67

Earlier quoted context omitted.

> ...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... Back in early 2000s, i used to be more of a front-end dev...but over the years of being more of a manager (or PM or product manager) i stepped away from daily development...So, you know, I lost my touch. But a few years ago when i tried to dip…

Then you might like Rails 7 which defaults to Hotwire for a minimal-JS front-end.

In simple terms, what does Hotwire mean / provide?

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

#227
post #226

Does https://pynecone.io/docs/database/overview use a SQLLite database on the front end (ie a cross compiled version in the browser) or on the server?

Pynecone comes with a built in sqlite database on the server only not on the browsers. you can also easily connect to any external db by changing the pcconfig
Post reply on HN