Thread 105576720 - /g/ [Archived: 1060 hours ago]

Anonymous
6/13/2025, 12:19:40 AM No.105576720
Flask_logo.svg
Flask_logo.svg
md5: bef6a51b5e3b7095c5a8c476caf9e544🔍
2025... i am forgotten
Replies: >>105576740 >>105580469 >>105580797 >>105586382
Anonymous
6/13/2025, 12:20:51 AM No.105576732
What do you use for python these days? Instead of flask.
Replies: >>105576740 >>105576743 >>105576761 >>105580471 >>105582699
Anonymous
6/13/2025, 12:21:17 AM No.105576740
>>105576720 (OP)
>>105576732
Use Go+HTMX
Replies: >>105576771 >>105580637 >>105586878
Anonymous
6/13/2025, 12:21:54 AM No.105576743
>>105576732
fastapi

it's literally the same than flask but async.
Replies: >>105580795
Anonymous
6/13/2025, 12:24:51 AM No.105576761
>>105576732
Why would you use Python for backend?
Replies: >>105576765 >>105580482
Anonymous
6/13/2025, 12:25:17 AM No.105576765
>>105576761
What should I use then?
Replies: >>105576770 >>105576804 >>105579808 >>105580457 >>105580816 >>105580861 >>105581079 >>105581962 >>105582100 >>105582132
Anonymous
6/13/2025, 12:26:03 AM No.105576770
>>105576765
php
Replies: >>105576951 >>105580664
Anonymous
6/13/2025, 12:26:08 AM No.105576771
htmx
htmx
md5: 253632eb53d5ec67029529b05226e05a🔍
>>105576740
>HTMX
Idiot.
Replies: >>105580637
Anonymous
6/13/2025, 12:30:50 AM No.105576804
>>105576765
Anything but Python, even Django (the more popular Python web framework) is a fucking mess.
Replies: >>105580471
Anonymous
6/13/2025, 12:48:47 AM No.105576951
mirror
mirror
md5: 7a06e5cb39cd49ca4dc724e5245055f0🔍
>>105576770
Anonymous
6/13/2025, 12:53:43 AM No.105576987
NOPE

I recently made a shitty web app in Flask. Sold it for $10k.

Flask is absolutely goated. Fuck batteries included.
Replies: >>105577511 >>105578608 >>105586948
Anonymous
6/13/2025, 2:04:28 AM No.105577511
captain fantastic (1)
captain fantastic (1)
md5: 80c2b8710eb3f6059eb3fcd0906e70c1🔍
>>105576987
>I sold a shitty web app
>Furthermore, Flask is le good
I hate people like you.
Anonymous
6/13/2025, 5:02:46 AM No.105578608
>>105576987
based
the guy above me is seething
Anonymous
6/13/2025, 9:31:37 AM No.105579803
>2025
>have question about something in flask
>dude who wrote it pops up and gives you an exhaustive answer
yeah I'm sticking to flask for my simple web apps
Anonymous
6/13/2025, 9:32:21 AM No.105579808
>>105576765
Go
Anonymous
6/13/2025, 11:26:12 AM No.105580457
>>105576765
Astro is the best SSR SSG I ever used easily.
Replies: >>105580752
Anonymous
6/13/2025, 11:27:32 AM No.105580469
>>105576720 (OP)
We are literally working on Flask webapp lol in our company.
Anonymous
6/13/2025, 11:27:53 AM No.105580471
>>105576804
>Its the most popular so it must be good
Its a mess because of it

>>105576732
Fastapi is based
Replies: >>105580770
Anonymous
6/13/2025, 11:29:07 AM No.105580482
>>105576761
If you are doing machine learning/"ai" python still has the best tools
Anonymous
6/13/2025, 11:31:49 AM No.105580500
It is the best technology I know for building lightweight web apps in Python. Really, once you have learned a few different web dev stacks it is pretty trivial to learn new ones. I moved on to machine learning to satisfy my hunger for a challenge and to prove my abilities as a programmer.
Anonymous
6/13/2025, 11:52:29 AM No.105580637
>>105576740
>>105576771
>HTMX
2023 called, it wants its flavor of the month meme tech back
Anonymous
6/13/2025, 11:56:39 AM No.105580664
>>105576770
Baste
Anonymous
6/13/2025, 12:08:08 PM No.105580752
>>105580457
I don’t get it. It looks like the usual static site generators.
Anonymous
6/13/2025, 12:11:41 PM No.105580770
>>105580471
Django is my favorite, and is the most popular. It's also easy to learn, scalable, safe and fast.
Go is cool also with Gin.
Replies: >>105580835
Anonymous
6/13/2025, 12:17:13 PM No.105580795
>>105576743
fuck off, tiangolo
Anonymous
6/13/2025, 12:18:18 PM No.105580797
>>105576720 (OP)
Why would you use a python framework when node exists?
Replies: >>105580853
Anonymous
6/13/2025, 12:22:05 PM No.105580816
>>105576765
Probably Go, but anything that has green threads + a runtime as it will make your life a lot easier.
Anonymous
6/13/2025, 12:25:17 PM No.105580835
>>105580770
That's why its the most popular, its very opinionated and thats why its easy, you really dont have to think much

Flask is the opposite, you have more freedom in doing things your way, which makes things a tad more complicated for people that dont care
Anonymous
6/13/2025, 12:27:57 PM No.105580853
>>105580797
javascript belongs in the browser
Replies: >>105580857 >>105580940
Anonymous
6/13/2025, 12:28:50 PM No.105580857
>>105580853
python is just as bad for backend as javascript
Replies: >>105580911 >>105580943
Anonymous
6/13/2025, 12:29:17 PM No.105580861
>>105576765
Perl
PHP
C
Anonymous
6/13/2025, 12:32:56 PM No.105580882
Flask is a fucking pain in the dick compared to FastAPI. Flask used to be good when the only thing around was Djangoshit but that's not the case anymore.
Anonymous
6/13/2025, 12:39:38 PM No.105580911
>>105580857
What’s good then?
Replies: >>105580946 >>105580952
Anonymous
6/13/2025, 12:46:37 PM No.105580940
>>105580853
developing in node is a more pleasant experience than python and far more performant
Anonymous
6/13/2025, 12:47:18 PM No.105580943
>>105580857
at least it has strong typing
Anonymous
6/13/2025, 12:47:36 PM No.105580946
>>105580911
Go, Node, Java.
Replies: >>105580952 >>105581641
Anonymous
6/13/2025, 12:49:13 PM No.105580952
>>105580911
>>105580946
Also Rust, Erlang/Elixir.

These are the beat. Then comes python
Anonymous
6/13/2025, 1:19:07 PM No.105581079
1_i2skbfmDsHayHhqPfwt6pA
1_i2skbfmDsHayHhqPfwt6pA
md5: 578bb2b580b3c4ad5cc7a139447beb23🔍
>>105576765
Go
Replies: >>105581090
Anonymous
6/13/2025, 1:21:21 PM No.105581090
>>105581079
I didn't think Chuds like go
Replies: >>105586878
Anonymous
6/13/2025, 2:56:15 PM No.105581641
>>105580946
>Just as bad for backend as JavaScript
>Node
Huh?
Replies: >>105581644 >>105581925
Anonymous
6/13/2025, 2:57:07 PM No.105581644
>>105581641
Most of us are AI.
Anonymous
6/13/2025, 2:57:10 PM No.105581645
Litestar is FastAPI without a bus factor = 1
Anonymous
6/13/2025, 3:44:35 PM No.105581925
>>105581641
It was Gemini recommendation, the AI said Node is better than Python if your bottlenect is I/O (meaning Node is better with IO operations).
You can ask Gemini or ChatGPT for more details.
Anonymous
6/13/2025, 3:47:07 PM No.105581944
language benchmarks
language benchmarks
md5: 294e09b617c9f5610603a5777d3a3b6f🔍
>Python
Replies: >>105582051 >>105582105 >>105582255 >>105582564
Anonymous
6/13/2025, 3:49:32 PM No.105581962
>>105576765
JavaEE, JSF
Anonymous
6/13/2025, 4:02:01 PM No.105582051
>>105581944
these versions are ancient.
But thanks anyway, nice to see
Replies: >>105582081
Anonymous
6/13/2025, 4:05:37 PM No.105582081
>>105582051

These ratios haven't changed. Python is impossible to optimize because it was never originally written to be a performant backend language. People tried to turn a hammer into a screwdriver.
Replies: >>105582122 >>105582127 >>105582224
Anonymous
6/13/2025, 4:08:21 PM No.105582100
>>105576765
For your on project? Elixir/Phoenix, genuinely.
Anonymous
6/13/2025, 4:10:21 PM No.105582105
>>105581944
why there are no benchmarks for implementation time? as in what companies are really paying for?
Anonymous
6/13/2025, 4:12:45 PM No.105582122
>>105582081
>it was never originally written to be a performant backend language
So just use Go by that logic?
Replies: >>105582133
Anonymous
6/13/2025, 4:13:59 PM No.105582127
>>105582081
>Python is impossible to optimize because it was never originally written to be a performant backend language
that's nonsense. Python isn't as fast as other languages because no one is interested in making the python fast. They just use fast libraries with python bindings instead.
Replies: >>105582143
Anonymous
6/13/2025, 4:14:10 PM No.105582132
>>105576765
Java. I'm not Indian, it's a solid language.
Anonymous
6/13/2025, 4:14:19 PM No.105582133
>>105582122

Go, C#, or Java. I'm curious about Swift but don't know much about it.
Anonymous
6/13/2025, 4:15:23 PM No.105582143
>>105582127
>Python isn't as fast as other languages because no one is interested in making the python fast

If it's tough to do, and the appropriate amount of effort isn't there, it's functionally impossible. Python gets plenty of attention and support, this is just an impossible ask. Would you try to turn R or Matlab into a server side application language?
Replies: >>105582184 >>105584828
Anonymous
6/13/2025, 4:21:50 PM No.105582184
>>105582143
It's not tough to do it's a well understood problem. There's just not a lot of interest in doing it for python when it's already been done for languages that are already popular in the space.
Anonymous
6/13/2025, 4:27:38 PM No.105582224
>>105582081
>Python is impossible to optimize
You posted a screenshot with PyPy on the same level as the other shit. It also contains Cython.
You know that PyPy is Python implemented in Python? So that's how far you can optimize it.
Replies: >>105582231 >>105582252
Anonymous
6/13/2025, 4:28:59 PM No.105582231
>>105582224
Pypy is such a cute name for a pet!
Anonymous
6/13/2025, 4:31:39 PM No.105582252
>>105582224
Pypy isn't cpython, which is what people mean when they say python. The reason python can't be optimized is because of all the things it can't do that pypy can, like break compatibility with c extensions.
Replies: >>105582390
Anonymous
6/13/2025, 4:31:58 PM No.105582255
>>105581944
So use PyPy if performance matters.
Anonymous
6/13/2025, 4:50:39 PM No.105582390
>>105582252
All I am saying is you can optimize Python.
That screenshot also had comparisons with other python implementations Jython(Java) and Ironpython(.NET) that have no compatibility with the C-API at all.
PyPy has full compatibility with the Python C-API.
Out of the PyPy project grew CFFI as well as an easier and faster interface to integrate C code. PyPy has been optimizing Python for a very long time now, and it usually can be used as a drop-in replacement. Most applications are I/O bound anyway. Does not matter what code has to wait for your database infinitely longer than the run time of that code. Most people optimize their code without even having a benchmark.
The process of optimizing Python is the same as in any other language and there are countless tools to do that. PyPy is just one of them.
Anonymous
6/13/2025, 5:12:19 PM No.105582564
>>105581944
>there are people who still use ruby for backend
grim
Anonymous
6/13/2025, 5:30:38 PM No.105582699
>>105576732
Depends on the product. Where is the main complexity? If any at all. Is it mostly handling user forms? Flask + htmx is gonna handle that. Complicated front end, tried out Elm recently it's insanely powerful for that,backend of choice. Complicated both? I don't really know yet, all I know is I don't want JS on the backend too so all node shit is out. I'd think of go or erlang + web components is probably the goat.
Anonymous
6/13/2025, 9:50:38 PM No.105584828
>>105582143
i will be waiting for your PRs
Anonymous
6/14/2025, 12:56:34 AM No.105586382
>>105576720 (OP)
I’m using flask at my company. Backend + client app in one comfy deployment.

> but Python le bad
Just don’t let brown hands touch it and it’s fine.
Replies: >>105586498 >>105586878
Anonymous
6/14/2025, 1:09:55 AM No.105586498
>>105586382
>I’m using flask at my company.
Nice objectivity, chud.
Replies: >>105586662 >>105586878
Anonymous
6/14/2025, 1:30:37 AM No.105586662
>>105586498
As opposed to what, “my uncle who works at Nintendo”?
Anonymous
6/14/2025, 1:57:22 AM No.105586878
>>105576740
is Go that bad ass?
>>105581090
Yes they do and show up to every C++ vs Rust war thread whenever some Rust cultist talks about using it for backend.
>>105586382
LOL nice. Its x10 comfier than ASP.NET in C#
>>105586498
bitch bitch bitch, Cry cry cry, He has something working and it works for HIM. I love that instead of being owned by tech
>gotta be retarded and turn my life into a prison cell with techcompanies collecting all this data from me.
KEK, its like a nigger buying a 20c Ramen noodle for $1 in jail not knowing or caring he is paying for his own incarceration.

I hate tech larpers more than anything. You don't understand tech you just consume it. A user of the product. Good if you know it but you're not smarter than anyone for it. I hate people that make technology political.

2+2 = 4
ywnbaw
take meds not hormones.
Anonymous
6/14/2025, 2:07:55 AM No.105586948
>>105576987
based

i'm vibe coding a Flask app at the moment for the same reason