Benchmarking PHP?s Magic Methods

Larry Garfield has an interesting set of benchmarks covering many of PHP's magic methods. His results correspond pretty well to my own benchmarks in the area. The thing to take away is that its not necessarily the overhead of the magic methods, but...

Yahoo! BrowserPlus: Sneak Peak Print E-mail
User Rating: / 0
PoorBest 

Yahoo! has released a sneak peak into Yahoo! BrowserPlus which came out today as

A platform for extending the Web: an end-user installs it and a developer uses its features through a small JavaScript library. Some of the features that exist in the platform today include:

  • Drag-and-drop from the desktop
  • Client-side image manipulation (cropping, rotation & filters)
  • Desktop notifications

You can head over to the main BrowserPlus landing page to learn more about the services.

Here they also show using a text to speech service via:

JAVASCRIPT:
  1.  
  2. // the "service specification" that we'll activate 
  3. var ttsService = { 
  4.   service: "TextToSpeech",   
  5.   version: "1",   
  6.   minversion: "1.0.2"   
  7. }
  8.    
  9. // check for the presence of TextToSpeech, and dump results in the 
  10. // specified div 
  11. function checkForTextToSpeech(divName) { 
  12.   YAHOO.bp.isServiceActivated( 
  13.     ttsService, 
  14.     function() { 
  15.       var _divName = divName; 
  16.       return function(haveIt) { 
  17.         var d = document.getElementById(_divName)
  18.         d.innerHTML = haveIt;             
  19.       }
  20.     }())
  21. }
  22.  
  23. YAHOO.bp.init(function(res) { 
  24.   if (res.success) { 
  25.     checkForTextToSpeech("before")
  26.     YAHOO.bp.require({services: [ ttsService ]}
  27.                      function(r) { 
  28.                        checkForTextToSpeech("after")
  29.                        if (r.success) { 
  30.                          YAHOO.bp.TextToSpeech.Say( 
  31.                            { utterance: "text to speech is activated" }
  32.                            function() {} )
  33.                        } 
  34.                      })
  35.   } 
  36. });
  37.  

They also have a nice demo of combining drag and drop of images, and cropping them.

Great to see Yahoo! join the party of extending the Web!


Read more at: http://feeds.feedburner.com/~r/ajaxian/~3/299942831/yahoo-browserplus-sneak-peak.
 
< Prev   Next >