by dorfsmay · 8y ago · 0 comments
Can you explain why?
Because it's been used more in big prod envs? Or for reason intrinsic to the languages themselves? If the latter, which ones?
Part of what makes Hacker News fast is that the page only has 4-ish images (if you count the invisible gif that is used for indentation) and a tiny amount of JS.
I don't think that's true (but I also don't understand what is meant by architecture in this context).
There's a simple file upload form example in the Arc community repository. It's so slow that it would timeout on files smaller than 100K. I tried optimizing the POST request parsing, but could still only barely get Arc to handle file sizes of 5M.
Tried making a similar simple file upload form in Racket, and it runs way faster. But it shouldn't be surprising that some languages are less efficient than others, right?
I'm also not sure that most web applications are text-only. Many web applications send and receive other things that plaintext.
What about the battle-tested Linux kernel? If you compile your racket apps to a native binary, you can run it directly on the Linux kernel, and benefit from 25 years of use in production! People deploy Golang and Rustlang apps everyday in prod using that approach it seems to work well for them. Note, both languages are younger than Racket.
Of course you can serve millions of users with Racket, like HN. But the JVM today is much better choice. The JVM's GC is world-class and the number of man-hours put in it is probably many orders of magnitudes more than that of Racket's.
https://benchmarksgame-team.pages.debian.net/benchmarksgame/...
FWIW, I've been staying away from Clojure because of the JVM. A lot of us are wearing the scars of the JVM battles!