KBD

Keith Devens .com

Thursday, August 28, 2008 Flag waving
Don't be an asshole. – Jason Hoffman

Archive: December 21, 2005

← December 20, 2005December 22, 2005 →

Daily link icon Wednesday, December 21, 2005

  1. CanvasGraph.js : Graphing in Javascript (via Simon Willison). Impressive.

       (0) Tags: [Programming]
  2. Python Creator Guido van Rossum now working at Google (via Simon Willison). Rock!

       (1) Tags: [Google, Programming, Python]
  3. CanvasGraph.js : Graphing in Javascript (via Simon Willison). Impressive.

       (0) Tags: [Programming]
  4. Joe Grossberg: My Firefox Extensions List: Dec. 2005.

       (2)

The "intelligent design" ruling

I just wrote a post on the recent "intelligent design" court ruling, in a comment.

Update: Ned Batchelder has a reasonable post on the issue:

I think the three or four paragraphs of disclaimer the ID folks wanted read was not such a big deal, and would have been a great jumping off point for a discussion about what science is and is not. An entire class (or more) could be given over to the topic. It wouldn't be teaching intelligent design, it would be teaching the philosophy of science with the current ID debate as a backdrop.

Note: comments are closed on this post so that I can keep any discussion centralized on post I linked to up top.

  1. Penny Arcade! - I Have The Power (via David P. Janes). Brilliant!

       (0)
  2. Steve Dekorte: but who created God?:

    I first heard the creationist theory as a small child in sunday school. I was excited to learn something important about the world, but then wondered "but who created God?"

    Given how obvious this question is, I'd be curious to know if this school board's proposed material dealt with it and described the only appearent solution if one assumes the argument of complexity requiring a designer: an infinite regress of designers.

    The question "but who created God?" has never had any force for me, and I'm unable to understand how others consider it to have force. It simply seems to be based on an unargued assumption that there can be nothing eternal.

       (16) Tags: [Religion]
  3. Cox & Forkum have an appropriate cartoon on the biggest story of the year. They even indirectly make my point by referencing Bono.

       (7) Tags: [Opinions/Politics]

PHP to Java compilation is faster than vanilla PHP? Duh.

This seems very misleading to me:

The other item that caught my eye was Cameron Purdy noting that Caucho claims to have a module that compiles PHP to bytecodes and runs it on the JVM four times faster than mod_php (first benchmark, but on a real app not synthetic). It’s GPL’ed. This is more than a little surprising.

Not really. It's not a direct comparison. First, PHP scripts are typically compiled to bytecode on each page execution. In addition, the Java app server they're running this on surely has a cache involved so that the compiled classes are kept in memory and aren't loaded on each page hit.

So, it's actually much closer to PHP when you're using one of PHP's bytecode caches, such as PHP Accelerator, which, what do you know, claims a 5-10 times speedup over normal PHP. Someone else even asks whether they were comparing it to PHP with a bytecode cache, but no response from Caucho.

However, Scott Ferguson (from Caucho) correctly points out that we should expect Java to be faster at certain things compared to PHP simply because of the semantics of the respective languages. Of course that's true. Plus, Java's obviously had way more effort and money thrown at its optimization than PHP has, and it even JIT's down to native code. So all of this makes it even more surprising that Java is only four times faster than Apache/mod_php if in fact they were comparing it to vanilla PHP with no bytecode cache.

Plus, as this is a comparison of server stacks and not merely language implementations, it's important to point out that Apache certainly isn't known for its speed. PHP would likely have performed much better running on lighttpd with FastCGI, as it's almost certain Caucho wasn't merely comparing code speed but requests-per-second. See these posts at TextDrive's weblog for more on lighttpd.

← December 20, 2005December 22, 2005 →
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 1 posts

Recent comments XML

new⇒Girls, please don't get breast implants

http://war-11.ucufyod.net​http://jewelry-26.wohiles.net​http://games-52.ruz...

Randolph: Aug 28, 5:16am

Generated in about 0.054s.

(Used 7 db queries)

mobile phone