Live data from Hacker News

Reflex – Web apps in pure Python

github.com

21–30 of 152 posts

Re: Reflex – Web apps in pure Python

#21
I have built three quick sites with Reflex and it is fantastic for a systems programmer like myself who has no interest in learning Javascript. The recent addition of supporting Tailwind CSS works well and makes it very easy for me to make not terrible looking frontends. Their discord is very helpful for questions and issues that I have raised on their GitHub are responded to quickly.

I wish them the best with their hosting platform.

Re: Reflex – Web apps in pure Python

#22

$5 million raised for hosting? I honestly fail to understand the ways of VC despite a decade of trying to understand them.

Hey, you know the most popular programming language in the world? They don't have a way to write web applications. If you fund us, we'll build a tool for that, tap into a huge TAM and make bank.

Sounds like a pitch that would make VCs start falling over eachother

Re: Reflex – Web apps in pure Python

#23
post #5

Why are we trying to fit a square peg into a round hole

Maybe it is easier to learn a framework within the ecosystem of a language you already know than to learn both a framework and a new language. Tons of software exists for this reason. For example, somewhat relevant here, web apps in R via R Shiny: https://www.rstudio.com/products/shiny/ (There is also Shiny for Python IIRC.)

> Maybe it is easier to learn a framework within the ecosystem of a language you already know than to learn both a framework and a new language.

I'm in this camp.

For services that I'm building that are not heavily frontend reliant, I don't want to learn a whole new language and framework

Re: Reflex – Web apps in pure Python

#25
post #9

Earlier quoted context omitted.

Since when is Python the “default choice” for server side dev?

Never to the degree JS on the client is, though the early and strong support on PaaS/serverless systems gaveit something of an edge for certain server-side stuff, and it was popular for a long time (though not dominant) outside of that. Really, I think the main driver for isomorphic Python web libraries like this isn't general web apps (though they'll get used for that, too), but the putting frontends on data science…

I agree, the datascience / ML crowd is _probably_ more interested in having something simple and easy/fast to implement to put in front of their data than in having a proper web framework with all the bells and whistles a software engineer would prefer.

Re: Reflex – Web apps in pure Python

#26
post #11

I've looked into this recently and it's really good. They make use of Python's type annotations to do some clever conversions to frontend code.

"Clever" and "frontend" with Python honestly concerns me.

I realize TypeScript may be doing the same thing but that somehow tastes OK because it was purpose built for the task. (Although I abhor cleverness in general).

Re: Reflex – Web apps in pure Python

#27

My major complain here is that, as far as being a web framework there is precious little information here about the framework. How does this framework scale with multiple requests? What concurrency strategy is it using (threads, processes, actors, etc?). Is this opinionated (it doesn't seem so but it also doesn't say it isn't either). How does this work with popular libraries x,y,z. The full docs have a little bit mo…

But there's emojis on the readme!

Re: Reflex – Web apps in pure Python

#28
post #14

Earlier quoted context omitted.

Since never. People use either Java, PHP or NodeJs.

I don't know where you work, but at my company, I'm struggling to get people to use anything but Python.

Me too, but we don't do web stuff so Python makes at least some sense. Even if it is generally pretty awful.

Re: Reflex – Web apps in pure Python

#29
post #11

I've looked into this recently and it's really good. They make use of Python's type annotations to do some clever conversions to frontend code.

> They make use of Python’s type annotations to do some clever conversions to frontend code

Do you mean internally in the library? None of the sample code has any type annotations.

Re: Reflex – Web apps in pure Python

#30
post #15

sometimes the war is lost even before the battle begins. During grad school, I wrote a whole bunch of web apps entirely in R using Shiny. It was clunky as hell, but yeah, it worked. I went looking for what's up with Shiny these days and found this - https://shiny.posit.co/ So yeah, full on pivot into python. pip install shiny. Alright! "No web development skills required. Develop web apps entirely in R I mean Python"…

Could be worded better but I would interpret it as "No web development skills required to start developing web apps entirely in R/Python". You're still expected to learn web development but within the context of an R/Python environment
Post reply on HN