I desperately want to build radically fast and lean web apps.
My stack at the moment is nginx > nodejs > sqlite.
To step it up I want to replace nodejs with a compiled app.
What language should I use ?
Precision : I'd prefer a C-like language since I'm comfortable in JS and C.
- C/C++ are excluded for obvious reasons.
- D looks REALLY nice but lacks momentum at first glance. (few packages - only one for async-http, one for sqlite - and a not-so-busy forum)
- Go ? I'd like to avoid it.
- Zig : as alluring as D but not stabilized.
- Rust : too unfamiliar.
If you aren't proficient in a functional language like Haskell then you haven't completed your programming education. Go, Rust, D, etc. are all just C with fancy features. Change your whole programming paradigm.
Here's a great deep-dive into Haskell web server performance: https://www.aosabook.org/en/posa/warp.html
And if you're building an API you don't need to code! Just throw postgREST in front of a postgreSQL database and get a haskell-powered API for free. No need to write a web server.