News for hackers. Stuff that matters.
Re:Reflex – Web apps in pure Python by xmonkee on Wednesday August 02, 2023 @10:25PM (#36980629)
Dude its pretty clear what it does just from scrolling down the readme. “Its just like php” if that helps you, but you can also write frontend state management and dynamic behavior right there in the “template”, all in Python.
Re:Reflex – Web apps in pure Python by zzzeek on Wednesday August 02, 2023 @11:02PM (#36980865)
that doesn't help. I looked at the modules it makes use of and the first one is "openai".

php didn't use openai IIRC

i kind of cannot imagine what this would use openai for unless it's using it to write a web application for you. which is pretty ...not like php.

Re:Reflex – Web apps in pure Python by bodge5000 on Thursday August 03, 2023 @12:12AM (#36981271)
To be fair I don't think Reflex does use openAI, that's just the code example they used.

I think its a decent example project, its easily readable and you can understand what they're doing, but I think as a general rule its better to do something without external unrelated libs. An AI image generator just seems a bit too specific of an example for something that fundamentally has nothing to do with AI.

Re:Reflex – Web apps in pure Python by zzzeek on Thursday August 03, 2023 @12:15AM (#36981291)
ah you're right, I thought I saw it in their requirements, it's just in their example code. got it.
Re:Reflex – Web apps in pure Python by chrysoprace on Thursday August 03, 2023 @07:59PM (#36993714)
According to the Project Structure docs, it seems to compile down to JS in the end, which is information that's missing from the README.