Post B2mWPfDh4y92ro31Em by starsider@valenciapa.ws
(DIR) More posts by starsider@valenciapa.ws
(DIR) Post #B2jnQ0GLxRPHsQ9wiO by wolf480pl@mstdn.io
2026-01-28T08:12:58Z
1 likes, 1 repeats
On a couple occasions I've witnessed that if you take a small program written in ordinary C, and you spend some effort to make it fast, you can get 10x-100x speedup.Let's say only the 10x speedup end of the range generalizes to most software.Imagine if, instead of writing new software, more effort was spent on optimizing existing software.
(DIR) Post #B2jncxrgBVOQCinasa by wolf480pl@mstdn.io
2026-01-28T08:15:19Z
0 likes, 0 repeats
Although I guess most software we wait for on an everyday basis is either IO-bound or JavaScript, and JavaScript runtimes already do receive this kind of optimization...So the question is how much performance could be gained by modifying the JavaScript code itself, and not much can be concluded about that from experiments on C code...
(DIR) Post #B2lBczXsWnyDTU2irA by sjb@mstdn.io
2026-01-28T23:55:27Z
1 likes, 0 repeats
@wolf480pl JavaScript is actually surprisingly fast. Python less-so.
(DIR) Post #B2lHsWZkbWtHz6hz3g by wolf480pl@mstdn.io
2026-01-29T01:28:59Z
0 likes, 0 repeats
@sjbPython is just sad:It's slow.It's hard to embed.Its dependency management is a mess.Its ecosystem has a lot of API churn.And it doesn't have a good type system.
(DIR) Post #B2lPrfOt6k0ghKjHiS by sjb@mstdn.io
2026-01-29T02:58:29Z
0 likes, 0 repeats
@wolf480pl It's an interactive user interface to C libraries!
(DIR) Post #B2mWPfDh4y92ro31Em by starsider@valenciapa.ws
2026-01-29T15:46:30Z
0 likes, 0 repeats
@wolf480pl JavaScript runtimes are crazy fast but JavaScript code itself can benefit a lot by being ported to C. I know because I did that. In turn, that C code can be run in JS through webassembly and in most cases it can be faster. However it has some limitations that JS itself doesn't have, such as the amount of memory you can use.