KBD

Keith Devens .com

Friday, August 29, 2008 Flag waving
You can have premature generalization as well as premature optimization. – Bjarne Stroustrup

Archive: June 04, 2003

← June 03, 2003June 05, 2003 →

Daily link icon Wednesday, June 4, 2003

Really scary dream

I had a dream last night that a nuclear bomb was set off in NYC. Scared the fuck out of me.

But it was weird, I didn't remember the dream until the middle of the day when I was in class. It was a shock to remember it too.

Lessons of the war

Via LGF, this great essay by Victor Davis Hanson on Lessons of the War is too long for me to finish reading right now. So, consider this a webmark.

Yet another reason why Acrobat Reader sucks

I was wondering why my free memory on my machine kept slipping away, when if anything I should have been reclaiming memory by closing Firebird tabs. Turns out that a PDF I viewed over an hour ago wound up in Acrobat Reader being left in memory, slowly leaking like someone who's eaten too many Olestra-filled chips.

My system stopped responding because of it, but luckily CTRL+ALT+DEL worked, and when I killed Acrobat I shot up to about 35-40% resources free. Not only that, but significantly, Acrobat Reader, once opened, keeps itself permanently in memory. Asshole.

PugXML - A Small, Pugnacious XML Parser

Via Martin, PugXML looks like a neat project:

Presented is a small, fast, non-validating DOM XML parser, contained in a single header, having no dependencies other than the standard C libraries, and <iostream> (KERNEL32.DLL with WIN32). This XML parser segments a given string in situ (like strtok), performing scanning/tokenization, and parsing in a single pass. Preliminary analysis shows a best-case of 22 X86 CPU clock cycles average per input byte, and a worst-case of 108 CPU cycles...

Cool. What other project do you know that meaures its efficency in best case and worse case numbers of machine instructions? And it has a full finite state machine diagram and everything! Rock on. Full (and very small! 29k) source code available.

Side note:

... however parsers checking for well-formedness would choke on it. Because this is not compliant behavior, the PugXML parser, and parsers taking a similar approach would be indicated for situations requiring the parsing of machine-generated, well-formed fully-compliant XML documents, and not human-generated documents.

One of the problems with XML is there's just so much of it out there that isn't.

Internet Explorer OS Integration

Joe echoes my thoughts exactly:

If Microsoft thinks customers, given the choice of upgrading their operating system or changing to a different browser, are going to choose to pay money to upgrade their operating system, then someone needs to check what they're drinking in Redmond.

Also see this post for some background.

Also, some more information from MozillaZine.

← June 03, 2003June 05, 2003 →
August 2008
SunMonTueWedThuFriSat
 12
3456789
10111213141516
17181920212223
24252627282930
31 



RSS feed RSS feed for Keith's Weblog
Atom feed Atom feed for Keith's Weblog
Weblog archive
Recent comments
  on 2 posts

Recent comments XML

new⇒Johnny Walker Blue Label

Do let me dive in.. :) 

As an​accomplished imbiber with a full​set of op...

mitch shrader: Aug 29, 3:07pm

Girls, please don't get breast implants

Wow, After all this time, the​comments on this page continue to​grow. It wa...

Ajeet: Aug 25, 2:36am

Generated in about 0.044s.

(Used 7 db queries)

mobile phone