Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

We don't have more than one server and HN proper (not counting caches) runs on a single core.

Believe me, we hate slow software at least as much as you do and have put a lot of effort into addressing this. HN is a lot faster than it used to be on median load. It still falls short on excessive load. We'll get there!



> We don't have more than one server and HN proper (not counting caches) runs on a single core.

Well, then. That is rather impressive.

(Though I suggest adding a processor/server. Probably small compared to your existing Cloudflare costs.)


HN is still made in arc, right? Does arc support threads? Racket does, so I would assume arc does.


Racket has green threads, which gives us non-blocking IO but that's about it. There's another concurrency mechanism that uses OS threads but Arc doesn't rely on it, and from the little I looked at, I don't think it would work with the HN software's design.


There are two parallelism approaches in Racket, both of which provide OS threads. The most useful one for web servers is called 'places', and is somewhat like Erlang -- you can only communicate immutable serializable data between different places, as well as OS resources like file handles. I know other people have used places to scale web applications, but I haven't looked at how HN's design would be affected.

If you have questions about using this, please feel free to email me about it.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: