What languages/frameworks for small, very low usage apps on limited hardware?
31337 @ 31337 @sh.itjust.works Posts 15Comments 570Joined 2 yr. ago
31337 @ 31337 @sh.itjust.works
Posts
15
Comments
570
Joined
2 yr. ago
Python is quite slow, so will use more CPU cycles than many other languages. If you're doing data-heavy stuff, it'll probably also use more RAM than, say C, where you can control types and memory layout of structs.
That being said, for services, I typically use FastAPI, because it's just so quick to develop stuff in Python. I don't do heavy stuff in Python; that's done by packages that wrap binaries complied from C, C++, Fortran, or CUDA. If I need tight-loops, I either entirely switch to a different language (Rust, lately), or I write a library and interact with it with ctypes.