612 karma · joined May 9, 2009 (17y ago) · 154 submissions
comment 16y ago · link · parent
comment 16y ago · link · parent
comment 16y ago · link · parent
Depending on what you are doing, you might not even need to track these booleans. For example, on the read side you can ignore read events when you are not interested in reading. When you switch back to read interest, you can read the socket to see if data arrived while you ignored events. A similar strategy can be used on the write side.
comment 16y ago · link · parent
I heard that the job titles for engineers above a certain level are shared publicly with in the company.
comment 16y ago · link · parent
Paul Graham on Start-ups, Innovation, and Creativity http://www.econtalk.org/archives/_featuring/paul_graham/
Paul Buchheit on Google, Friendfeed, and Start-ups http://www.econtalk.org/archives/2009/09/buchheit_on_goo.htm...
comment 16y ago · link · parent
The code clears the stack slot for the count method argument. If the object referenced by the argument is not referenced elsewhere, then the object is eligible for gc during the execution of the count method. In the case where the argument is a lazy sequence, this changes the memory requirement from the entire realized sequence to a single item in the sequence.
This trick is employed everywhere in the Clojure implementation where a lazy sequence might be retained. It's not specific to the count function.
comment 16y ago · link · parent
I guess one can claim that any suspend and resume logic in the application is a form of eventing, but it's different from node.js in that it's not pervasive through the application. It's also different from node.js in that the server infrastructure is not involved in the "events".
comment 16y ago · link · parent
Models like Java Servlet 3.0 allow threaded servers to handle a large number of concurrent connections. Are there other reasons why threaded servlets are slow or not scalable?
Most web applications don't have a large number of concurrent connections because they application request handlers do not block for a long time. The resource use for thread stacks is very modest for these applications even without a suspend & resume feature.
comment 16y ago · link · parent
I often see "scalable" and "fast" used interchangeably in these discussions. These are different concepts. Is the contention that threading is not as scalable as evented, not as fast as evented, or both?
comment 16y ago · link · parent
comment 16y ago · link · parent
comment 16y ago · link · parent
I've been using F.lux for a couple of months on OS X. The orange color at night looked a odd to me at first, but now I don't notice it.
F.lux can help you sleep better: http://www.stereopsis.com/flux/research.html
comment 16y ago · link · parent
comment 16y ago · link · parent
The typical web app falls in to the former category: validate input, read from cache, maybe read from database, maybe write to database, generate response.
comment 16y ago · link · parent
As far as the framework is concerned, the example shows how to build a production deployment of the application. The author is not showing a toy teaser application. There are a lot of details there, but these are things that you would want to know if you actually want to run a production server.
comment 16y ago · link · parent
I agree with your comment regarding Clojure's concurrency constructs. I am building my web app to run on more than one machine. I have not yet had a need to use any of the concurrency constructs.