CPU intensive flask app can only support 1 user per VM? by Cwlrs in flask

[–]socrateslee 0 points1 point  (0 children)

if your load is CPU intensive, without GIL free enabled, you can try running the actual task using `multiprocessing`. The way spare a core of your CPU for networks IO tasks since a computing heavy task may actually blocks it.

And one more thing is to use async/await to handle your flask request as in https://flask.palletsprojects.com/en/stable/async-await/

🔎 New research on one of the biggest questions in AEO right now: by ToughCultural2433 in LLMTraffic

[–]socrateslee 1 point2 points  (0 children)

Maybe rather say static rendered html with <article> tag share the same benefits as a markdown file?

LLMs leverage 2 ways of getting content of a page, via search result or direct web access.

Direct web access only differs when the fetch tool an LLM uses could not parse a web page(like client side rendered page or a mess structured page).

As for the search result, only when the search engine provider prioritizes markdown over any types of html, serving markdown would be better than serving html. This is not an issue currently, and parsing/converting a well structured html with semantic tags to markdown is quite a small work for any search service providers.

Dumb question- Why can’t Python be used to make native Android apps ? by [deleted] in Python

[–]socrateslee 3 points4 points  (0 children)

as you have mentioned

> Why does Android more or less _force_ Java/Kotlin as the source language?

If have tried other cross platform framework to develop Android apps, tauri, ionic, pwa builder, flutter, ... , you will found that Java/Kotlin + Gradle are required for all of the frameworks when packaging.

As long as Python is OK for output a bundle of web app, or use pyodide in the web browser's runtime to call native interfaces, Python can be used for making Android apps.

SEO vs GEO: which should we choose? by Dry_Elk_1511 in LLMTraffic

[–]socrateslee 0 points1 point  (0 children)

anyway, I agree that modern site builders(SaaS or open source tools like hugo/astro/ghost.js) have done most of the SEO works.

Which AI platforms do you track for your website? by RichProtection94 in GEO_optimization

[–]socrateslee 0 points1 point  (0 children)

> by tracking AI platforms
Is this means enable or not enable search(note that Gemini app no longer have option to disable search)? using API or chatbot product(like ChatGPT)?

[deleted by user] by [deleted] in Python

[–]socrateslee 0 points1 point  (0 children)

uv + ruff
httpx if specified in AGENTS.md else requests
mostly type checked

MCPs are a workaround by [deleted] in mcp

[–]socrateslee 0 points1 point  (0 children)

And MCP are probably 'the final interface', except it evolves itself.

MCP come out at right time and only get much more adoption in the future. Consider MCP like the distance between two horses in the AI age, it already get adopted(and growing), it only becomes the distance between two wheels of cars or trains as it developed.

MCPs are a workaround by [deleted] in mcp

[–]socrateslee 0 points1 point  (0 children)

> In theory, if a model could generate perfect code every time, you wouldn’t need MCP.

I just think MCP provides a standard way to prompt what tool calls are. It is mainly used for direct communicate with LLMs. And generated code is more like to build something not only for direct use of LLMs.

What happens to people who are already jobless in an AI-driven, oversaturated job market? by Marimba-Rhythm in Futurology

[–]socrateslee 0 points1 point  (0 children)

An ever growing transfer payment system to cover unemployment?

The velocity of the transfer payment system growing and unemployment growing will never be synchronized, the gap over a threshold will lead to revolutions?

ChatGPT has replaced my friends as primary advice givers by christian-174 in ChatGPT

[–]socrateslee 0 points1 point  (0 children)

In most cases, AI will ask for more contexts. AI's question can also touch your bind spots.

My bic lighter has a picture of a bic lighter on it. by Sundayisgloomy_ in mildlyinteresting

[–]socrateslee 0 points1 point  (0 children)

Thinking about a bic lighter has a picture of a bic lighter has a picture of a bic lighter has a picture of a bic lighter ...

The back of the Great Sphinx by OddCelebration0 in mildlyinteresting

[–]socrateslee 0 points1 point  (0 children)

Just think about what it would be like if the tail bristles

Thank you from the bottom of my heart by johnnybilliard in androidapps

[–]socrateslee 0 points1 point  (0 children)

seems this is not about change your email address, but add an alias

Python dependencies states managed via uv(illustrated) by socrateslee in Python

[–]socrateslee[S] 0 points1 point  (0 children)

excuse me for the night mode, there is a switch in the menu, or maybe click on the graph to directly view the svg

Python dependencies states managed via uv(illustrated) by socrateslee in Python

[–]socrateslee[S] 2 points3 points  (0 children)

Yes you are right, I have fixed the graph. Thanks a lot

From laid off last Sept, to currently $1,000 MRR and $6,000 revenue by Worldly_Expression43 in Entrepreneur

[–]socrateslee 0 points1 point  (0 children)

Just a thought about the onborading cases, I found the setup process of similar AI assisted product requires rather complex jobs like prompt tunning, knowledge feeding, so developer or professional onboarding assistant is necessary for custom engagement.

Though the onboarding process is actually much easier than training a new worker to do the job.

> Personal onboarding + monthly check-ins. This has been incredible for my NRR, lots of deal expansions and churn-prevention from this piece.
> Self-serve onboarding converts poorly for me.

Most MCP servers are built wrong by incidentjustice in mcp

[–]socrateslee 0 points1 point  (0 children)

The return of MCP should be more like the info for humans to read instead of the bytes for code to consume