Stories
Slash Boxes
Comments
NOTE: use Perl; is on undef hiatus. You can read content, but you can't post it. More info will be forthcoming forthcomingly.

All the Perl that's Practical to Extract and Report

use Perl Log In

Log In

[ Create a new account ]

Journal of jmm (276)

Tuesday May 17, 2005
03:38 PM

book meme propagates further

Meme continued from chaoticset, from mdxi, from...

1) Total number of books owned?

About 4000 science fiction, about 200 computer, about 1000 other. (Plus about another 2000 in the house belonging to my wife, and another few hundred belonging to my kids...)

2) The last book I bought?

Peter Hamilton - Pandora's Star. (Well, MJD's Higher Order Perl was ordered earlier, shipped about the same time, and received later, so it sort of dependent upon the precise definition of "bought".)

3) The last book I read?

Higher Order Perl.

4) Five books that mean a lot to me (for sufficiently large values of five):

Computer:

The Mythical Man Month - Fred Brooks

Programming Perls - Jon Bently

The Art of Computer Programming - Donald Knuth (lots more)

SF:

Larry Niven

Gordon Dickson

Robert Heinlein

Robert Sawyer

Terry Pratchett

Spider Robinson

(lots more)

mystery:

Leslie Charteris (the Saint)

Erle Stanley Gardner (Perry Mason, Donald Lam, Doug Selby)

Gregory McDonald (Fletch, Flynn)

G. K. Chesterton (Father Brown)

Agatha Christie (many)

other:

Godel, Escher, and Back - Douglas Hofstadter

Surely You're Joking, Mr Feynman - Richard Feynman

Patrick O'Brian (Jack Aubrey/Stephen Maturin stories)

Bridge in the Menagerie - Victor Mollo

(I would probably come up with a totally different list every time I was asked.)

Wednesday January 12, 2005
12:57 PM

a fix for slashdotted web sites

Yesterday, I once again went to a site that had been slashdotted - the news reference that sent me there had caused a flash mob (read Larry Niven) of other people going to the same site that had overloaded its capacity.

This time around, a possible solution came to mind: to use a BitTorrent type of mechanism.

Suppose that there was an extension made to the http protocol. This extension would allow a browser to set a flag when it requested a page. The flag would say that the browser was willing and capable of acting as an auxilliary server.

Most of the time, this bit would be ignored and the server would just send back the page. However, if the request load suddenly increased, the server would start delegating some requests to recent browsers which had volunteered to act as helpers (sending a number of requests in a bundle along with a list of additional helpers - the other site would then work with the extra named helpers to provide the cached copy of the page to the list of requesters).

This would mean that you don't need to make your host powerful enough for the biggest peak that will come along, but simply big enough to handle the normal load and it can get help on the peaks from the same computers that are causing that peak to happen. This is especially useful for private sites which normally have a small audience, but might someday get "discovered" for its 15 minutes of fame.

This change would have to be supported both the the server and by browsers which are capable of acting as servers (or are connected to a server - a connection proxy that merges the request streams of all your users and connects them to you site server might do the job).

A heavily loaded server could, also like BitTorrent, give preference to requests that have the flag set, and if it is too heavily loaded, prefer to drop requests from users who don't offer to offload the work. That would provide incentive for people to move to a browser that supported this extension.