News for hackers. Stuff that matters.
Re:Donald Trump Is Elected President by ihuman on Wednesday November 09, 2016 @11:35AM (#12911619)
HN is still made in arc, right? Does arc support threads? Racket does, so I would assume arc does.
Re:Donald Trump Is Elected President by dang on Wednesday November 09, 2016 @11:44AM (#12911759)
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.
Re:Donald Trump Is Elected President by samth on Wednesday November 09, 2016 @12:23PM (#12912287)
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.