this post was submitted on 02 Nov 2024
73 points (100.0% liked)

Open Source

31218 readers
249 users here now

All about open source! Feel free to ask questions, and share news, and interesting stuff!

Useful Links

Rules

Related Communities

Community icon from opensource.org, but we are not affiliated with them.

founded 5 years ago
MODERATORS
 

The Abstract Wikipedia team is working toward a rewrite of our backend services in a different programming language, likely Rust. Node/JS has served us well, but we have run up against some [WebAssembly System Interface] limits that would be best dealt with by switching to a different ecosystem.

you are viewing a single comment's thread
view the rest of the comments
[–] [email protected] 5 points 1 week ago* (last edited 1 week ago) (1 children)

Oh PHP is hands down one of the slowest languages out there. It's just convenient because it's easy to host, but it's awful to use and it's really slow.

Here, have a chart:

In this chart, where the benchmark is calculating digits of π, Java is faster than JS, but there are cases where it's the opposite.

https://github.com/niklas-heer/speed-comparison?tab=readme-ov-file

[–] [email protected] 9 points 1 week ago* (last edited 1 week ago) (1 children)

Calculating the digits of pi seems like a poor benchmark for comparing various languages in the context of backend web application performance. Even the GitHub readme points out the benchmark is entirely focused on floating point performance.

[–] [email protected] 3 points 1 week ago* (last edited 1 week ago)

Absolutely, it's just one aspect of it, benchmarks are always narrow in scope. Some languages may be good at some things and worse at others.