4 ms·
100% agree. It drives me nuts when people use the wrong tool for the job.
by spullara 4y ago
100% agree. It drives me nuts when people use the wrong tool for the job.
- the__alchemist 4y agoI'm suspicious this occurs when there are too few tools in a given box. See also: NodeJS.
- therockhead 4y agoAre you confident it’s the wrong tool though? Curious have you tried web apps with framework such as Actix ?
- spullara 4y agoIf I would write it in C/C++, I would instead write it in Rust. Otherwise I would pick something more appropriate for the job. As far as performance, Java and Rust are neck and neck getting their asses kicked by Javascript (for web apps)! https://www.techempower.com/benchmarks/#section=data-r20&hw=ph&test=db https://www.techempower.com/benchmarks/#section=data-r20&hw=...
- ssokolow 4y agoAnd yet real-world Rust projects consistently have significantly lower memory footprints than real-world Java projects (with people often commenting on the memory savings they observed from porting away from Java, even just to Node.js) as well as being free of some of Java's most common runtime exceptions.
- spullara 4y agoIt doesn't matter for webapps. At all. Further, they don't understand the defaults the JVM uses for maximum throughput. It uses most of your memory on purpose as it expects it is the only process running on your server. Generally you can set the max memory usage to be much lower and get basically the same performance. But who thinks anymore you know?
- ssokolow 4y agoFunny. It seems to matter enough to me that I'm making plans to rewrite projects I can't host out of GitHub pages in Rust to optimize how much VPS I have to pay for.