Live data from Hacker News

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

news.ycombinator.com

311–320 of 329 posts

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

#311

Earlier quoted context omitted.

That's not gonna happen if they have to solve browser runtime errors. And with there being so much variance between browsers and random nonsense to hack around, how can you possibly get around that? Besides, python and js are so similar it's really funny to see people not wanting to use one but cling to the other.

The available libraries are quite different between the two languages.

Does this thing also convert python libraries for use on the web? Can it compile say keras or pytorch to javascript? I guess that would indeed be super neat to have on the browser client side.

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

#312
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…

I'm in exactly the same boat. Ive managed to keep inntouch with core tools on the backend, but frontend has just withered on the vine, so to speak. Learning all the JS stuff is just too hard when combined with back end, data, auth, layout, display, responsive, etc.

Permission to come aboard?

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

#315

Earlier quoted context omitted.

These tools are a waste of time. They take longer to learn then basic js and then in 3 years support is dropped you might have well learned a bit more js. It's a bit big but just run nextjs, it solves almost everything for you. Even deployment is one click away. Would take 5 mins to get started. And a few hours to understand for a seasoned dev.

Haha yeah its amazing how the lengths people will go to not learn something simple but new!

I am consciously opting out of that ecosystem because it isn't for me.

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

#316

Earlier quoted context omitted.

You may not realize this, but that makes all the difference in the world.

You may not realise this, but this post is about a framework that let's python devs make modern web apps without touching the JS ecosystem. The root comment appreciates the framework, and shares their unwillingness to write JavaScript and HTML. The reply to that comment asks why don't they try TypeScript. I think that reply is absurd because asking someone to write TypeScript when they dislike JavaScript in the first…

> I think that reply is absurd because asking someone to write TypeScript when they dislike JavaScript in the first place is absurd.

I don't think it's absurd to ask someone to try Typescript first before jumping through hoops just to make Python run on the web, which certainly brings a lot of problems of its own. You do have to actually try it to see how it's a completely different experience, even if the types are just bolted on.

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

#317

Would love to see someone building a web project with this from scratch. Preferably a Twitch stream or YouTube video. This will be so useful for Computer Science students to easily have an app ready right after their first semester. (Or even Stats major, etc) Often times, a webapp creation usually involves student learning JS and all the ecosystem.

Thanks! Definitely, we do live streams of this on our discord I'll make sure to record them in the future!

Could you add links to this part?

Join the growing open-source community of Pynecone developers.

3000+ Projects created per month

5700+ GitHub stars

600+ Discord community members

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

#318

Earlier quoted context omitted.

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.…

You are assuming people use Opal because they don't want to learn JS. In reality it's that JS is a very messy language compared to ruby. You can be a lot more productive if you avoid JS entirely.

Absolutely agreed, hence the many Python to JS transpilers out there.

https://transcrypt.org https://yourlabs.io/oss/ryzom#javascript https://github.com/am230/py2js

We get so much satisfaction out of writing JS in Python, it's worth all the IDEs in the world for us!

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

#319

Earlier quoted context omitted.

The available libraries are quite different between the two languages.

Does this thing also convert python libraries for use on the web? Can it compile say keras or pytorch to javascript? I guess that would indeed be super neat to have on the browser client side.

I don't know much about Pynecone, but that is indeed what pyodide does:

> These include many general-purpose packages such as regex, pyyaml, lxml and scientific Python packages including numpy, pandas, scipy, matplotlib, and scikit-learn.

Again, not super familiar, so I don't know the level of effort required to support these libraries. Maybe adding pytorch would be infeasible, maybe they just need enough people to express interest.

https://pyodide.org/en/stable/

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

#320

I get get benefit from it, and I saw what Dash and plotly can do for people with a bit of Python and a need for a quick UI. So I get the point of the project, I can see a mathematicians getting value out of this. Still, I would advice against using this for anything else than a small project (in the current state): - any action your perform means a round trip to the server. This is why the counter seems so slow. Ever…

> any action you perform means a round trip to the server Meaning your server-side app is not stateless? Is there an instance for every client?

Since it's using websocket, there is no way around that: you need to have some sort of persisting instance for every connection.
Post reply on HN