INFO-LINK



Web Development

Zoidberg: A Shell That Speaks Perl


Jaap is currently a student in applied physics and philosophy. He can be contacted at pardus@cpan.org.


Allegedly, a certain Mr. Wall has claimed that "It is easier to port a shell than a shell script." This, of course, is not true; shells are, although conceptually simple programs, in fact quite complex. Still, there are a few projects that try to improve the shell environment by adding Perl to the mix, most notably Psh and Zoidberg. In this article, I will show you some features of the Zoidberg Perl shell (see Figure 1).

There are two main ways in which a Perl shell can make your life easier: In the first place, you can use Perl syntax at the command prompt; and secondly, you can modify or extend your shell environment using Perl. UNIX users, in general, spend a lot of time working in a shell environment, so being able to tune this environment to your every wish can save you a lot of irritation. And of course, if you type Perl faster than shell script, it is nice to have a shell that understands you. Now, of course, the older shells allow for extensions: While bash has a notoriously obscure code base that is not easy to hack, zsh on the other hand even allows you some module interfaces. But these programs don't have Perl bindings and adding them could well be more work than starting from scratch.

Zoidberg (or zoid, for friends) was written from scratch and is a pure Perl implementation. Due to an object-oriented and modular design, Zoidberg can be regarded as a framework as well as an application. So far, it has not yet seen a stable release, so some parts of the code are still a bit rough, but we work very hard to fix that. You should also keep in mind that once you start hacking your shell, it is in general a good idea to have another shell available just in case; after all, you don't want to be locked out of your account.

To install zoid, try something like:

perl -MCPAN -e 'install q/Bundle::Zoidberg/'
Now run "zoid" to start the Zoidberg Perl shell.

Perl at the Command Prompt

Traditionally, shell languages have been ugly things. Their syntaxes are hacked together, resulting in an arcane language with lots of obscure exceptions ("for historic reasons" is an oft-used phrase in the manuals). The sole objective of these languages is to be as expressive as possible with the minimum number of characters. In some respects, shell languages are not unlike Perl.

So why use Perl instead of shell script? An important reason is that Perl is a language that has a much broader scope than shell script; it is more powerful. The UNIX philosophy dictates that everything is a file, and I think no language is so tuned for text manipulation as Perl; so a lot of your daily administration tasks can be done with simple Perl statements that are the equivalent of many lines of shell script. In a Perl shell you can, for example, use regular expressions to modify the filenames in a certain directory.

The downside of using Perl syntax is that it was intended for scripts and isn't really optimized for shell usage. Some people claim that the ultimate Perl shell is something like:

perl -e 'while (<STDIN>) { eval $_; warn if $@ }'
But after a while, it gets very tiresome to keep typing system "ls" instead of the plain ls that most shells will understand. Of course, you can define a subroutine for this or even use Shell.pm's AUTOLOAD function, but it won't be as intelligent as you want it to be. The next logical step is then to add a routine that tries to recognize which commands should be system'ed and which commands should be eval'ed; if you follow this way, you eventually end up with a program like zoid.

In Zoidberg you can use two different syntaxes. The first one is a partial implementation of the shell command language as specified by POSIX (full implementations include bash, zsh, etc.). The second syntax of course is Perl. This is just your normal Perl interpreter, but Perl code used at the command prompt undergoes a bit of source filtering to make it play better with the shell environment.

For example if you type:

zoid$ print map "\n" @PATH
then @PATH is imported from Env.pm before the evaluation of the command line. In this example, Zoidberg understands this is a Perl command because the word "print" is a reserved word.

Let's do another example: Say I want to change all filenames in a directory to their lowercase equivalent; this typically happens to me after using a brain-dead ftp client. Using Perl, this is a simple one-liner, while the shell equivalent would need some program, such as sed, awk, or perl to do the string manipulation.

zoid$ mv($_ => lc($_)) for grep /[A-Z]/, <*>
If you use zoid as your login shell, it will also will be used by other programs to execute commands. For example, from vim you can now use the following command to get a word count for the file you are editing.

:!cat % | {/^\S/}g | wc -
All lines starting with a whitespace are supposed to contain example code so we grep them out. The second part of this pipeline shows Zoidberg's notation to have a Perl grep in a pipeline. The curly braces force this command to be evaluated as Perl code instead of a filename and the g modifier at the end wraps the code in a loop.

Zoidberg also has support for multiline editing, which becomes very handy when you want, for example, to define a new subroutine on the command line. This is where Term::ReadLine::Zoidberg distinguishes itself. Other readline libraries allow you to edit only one line at a time—once you press return, you can't go back to the previous line. Not so in zoid, and what's more, you can even go to a "multiline mode" by pressing <ESC>-m.

Scripts

All scripts used by zoid are normal Perl scripts. This means that, for example, the rc files ("/etc/zoidrc" and "$HOME/.zoidrc") are just Perl scripts. To interface with the shell, these scripts use the Zoidberg::Shell module. This module exports an AUTOLOAD function that allows for shell commands to be called as Perl subroutines and a method called shell() that is the zoid equivalent to the Perl eval function. Below is an example zoidrc file that can be saved as "~/.zoidrc":

use Zoidberg::Shell;
$shell = Zoidberg::Shell->current();
cat($ENV{HOME}.'/TODO') 
if $shell->{settings}{interactive};
unshift @INC, "$ENV{HOME}/lib/perl5/";

A Debugging Session

One of the things zoid can be used for is to test new modules interactively. It can be very useful to quickly test the output of some methods while you are coding a module. Take, for example, the following code and save it as "~/lib/perl5/My/Module.pm":

package My::Module;
sub new { bless {} } # simple constructor
sub test { return 'fooobar' }
1; # keep require happy
Now to load this module, we simply use it on the command prompt:

zoid$ use My::Module
zoid$ $mm = My::Module->new()
zoid$ p $mm->test()
Now you realize that there is a typo in the word "foobar," so you go back to your editor, open the module, and correct it.

Next, we need a method to load the changed version of the module. At the moment, zoid has an undocumented built-in called "reload," but it is broken, so let's define our own. The following code could be entered directly at the command prompt, but let's put it in your zoidrc file:

use Zoidberg::Shell;
my $shell = Zoidberg::Shell->current();
$shell->{commands}{reload} = sub {
# transform module name to file name
my $file = shift; 
$file .= '.pm' unless $file =~ /\.\w+$/;
$file =~ s{::}{/}g;
# look up the filename in %INC
$file = $INC{$file} || $file;
# load the file
eval "do '$file'";
# forward errors
die if $@;
};
The hash $shell->{commands} is tie'ed to an object that helps to keep track of plug-ins, but for the moment, we can pretend that it is just a hash with anonymous subroutines. Now we can use this command to reload the module:

zoid$ reload My::Module
zoid$ p $mm->test()
This works fine for object-oriented modules, but how about libraries? If your module exports some functions, you can use it from the command prompt and call the exported routines. Another option is to change the namespace in which Perl commands are evaluated—this is done simply by using the "package" keyword:

zoid$ package My::Module
zoid$ p test()
To return to the default namespace, type package Zoidberg::Eval.

Extending Zoidberg

The parser already recognizes two different syntaxes, but how about adding another one? All you need for this is a plug-in that defines some rule to recognize the syntax, and a handler routine to execute commands given in this syntax. Let's teach Zoidberg SQL to see how this works.

To start with, we need to write a plug-in module that manages a DBI object. Save this module as "~/lib/perl5/SQLFish.pm" (remember that we added "~/lib/perl5" to @INC in the previously mentioned zoidrc file).

package SQLFish;
use strict;
use Zoidberg::Fish;
use Zoidberg::Utils qw/error output/;
use DBI;
our @ISA = qw/Zoidberg::Fish/;
Zoidberg::Fish is the base class for Zoidberg's plug-ins. It gives you a constructor and routines needed for the plug-in framework. If you use Zoidberg::Utils, your plug-in will blend in nicely with the rest of zoid. The plug-in is an object that lives below the main Zoidberg object. Use $$plugin{shell} to access the parent object.

sub connect_db { # create DBI object
my $plugin = shift;
$$plugin{db}->disconnect if ref $$plugin{db};
$$plugin{db} = DBI->connect(@_);
# make DBI survive forks
$$plugin{db}{InactiveDestroy} = 1;
}
This routine will later be exported as a built-in command that is used to setup the database connection. Of course, you can call it from the zoidrc file if you want to be connected at all times.

Next, three methods follow that plug-in in several stages of the parser:

sub word_list { # claim commands
my $plugin = shift;
my ($meta, @words) = @{ shift() };
return grep /^$words[0]/, 
qw/SELECT INSERT UPDATE DELETE/ if wantarray;
return 'SQL' if $words[0] =~ /^[A-Z]+$/;
return undef;
}
This method tells the parser that all commands written in all caps are SQL. The list context is used for tab completion of SQL commands.

sub parser { # perform selected expansions
my ($plugin, $block) = @_;
@$block = 
$$plugin{shell}->$expand_param(@$block);
return $block;
}
This method overloads the default word expansions for the SQL syntax. We only expand for variables here, so we can use environment variables in our SQL statements. Path expansion, for example, is omitted here because we want to be able to use a "*" in the SQL command without escaping or quoting it.

And the last method:

sub handler { # execute SQL statements
my $plugin = shift;
my ($meta, @words) = @{ shift() };
# catch connect command
if ($words[0] =~ /^connect/i) { 
shift @words;
return $plugin->connect_db(@words);
}
error "no db connection" unless ref $$plugin{db};
my $sth = 
$$plugin{db}->prepare(join ' ', @words);
$sth->execute;
output [ map {join ', ', @$_} 
@{$sth->fetchall_arrayref} ];
}
1;
__END__
This method actually gets to execute the SQL commands. We use the utility functions error and output here. error is like die but has another output format and helps us with stack traces. output is like print but uses Data::Dumper when passed references; the way it is used here, it outputs data in multiple columns when possible. And we make an exception in the evaluation for statements starting with connect—this will prove useful later on.

Next, we define a plug-in configuration script to make Zoidberg use this module. Save this script as "~/.zoid/plugins/SQL.pl".

{
module => 'SQLFish',
export => ['connect_db'],
parser => {
word_list => 'word_list',
parser => 'parser',
handler => 'handler',
}
}
This is just a Perl script containing only a hash defining the hooks that are in the module so that zoid can use them. We export the connect_db method as a built-in command and we list the parser hooks we defined. For more advanced plug-ins, one can also import events.

Now one might wonder what the advantage is of having SQL in your command shell instead of using a dedicated application for that. For one thing, you can combine SQL statements with general shell commands, so things like this will work:

zoid$ SELECT firstname, lastname FROM users
| {s/\b(\w)/uc($1)/eg}p
zoid$ SELECT * FROM users | wc -l
zoid$ sql{ select from users where clue > 0 }
> users.txt
In the last example we needed the parenthesis to protect the first ">"; this is a notation that works for all syntaxes in Zoidberg. Of course, once we tag the command as "sql" there is no need for caps to have it recognized as SQL.

You can also use the Zoidberg framework very easily to build a dedicated application, or at least an application that looks dedicated. This is demonstrated later.

Modes

Zoidberg has a built-in called mode, which is used to switch your default syntax. Say you want to type a series of SQL commands and you think typing commands in all caps is tiresome. Try this:

zoid$ mode SQL
zoid$ connect DBI:mysql:test
zoid$ select * from users
Here you see why we put that exception for connect in the handler routine of the plug-in. Once you are in a mode, you need the bang ("!") to "shell out." So in the SQL mode, you can still execute shell commands like this:

zoid$ !ls
zoid$ select * from users | !grep root
To get back to Zoidberg's default mode, type:

zoid$ mode -
But wait, there is more! A mode can also be the name of a Perl module; in that case, you get to keep shell command syntax, but all commands are considered subroutines in the specified module.

zoid$ use CPAN
zoid$ mode CPAN::Shell->
zoid$ i /MimeInfo/
...
zoid$ install File::MimeInfo
...
zoid$ mode -
The "->" is there to tell zoid that CPAN::Shell always expects a class name as the first argument for a subroutine. Replace it with "::" for modules that don't need this argument. Note that this is purely an example—there is already a CPAN plug-in for Zoidberg that can be used after typing mode CPAN; this plug-in also supports things such as tab expansion.

Write Your Own Shell Application

Say you want to write a program with a shell-like interface quickly; using Zoidberg can spare you the hassle of writing a command parser and all that. We again use the SQL plug-in of the previous section and write a simple script to start our SQL shell:

#!/usr/bin/perl
use Zoidberg::Shell;
use lib $ENV{HOME}.'/lib/perl5/';
# You have Env::PS1 ?
$ENV{PS1} = '\C{blue,bold}DBI\C{reset}: '; 
$ENV{PS2} = ' : ';
my $shell = Zoidberg::Shell->new(
settings => {
# non-default rcfile
rcfiles => [$ENV{HOME}.'/.sqlshell'], 
mode => 'SQL',
}
);
$shell->main_loop; # run the shell
$shell->round_up; # clean up pending objects

The trick here is the "mode" setting; actually you just run Zoidberg in a predefined mode. Of course, you still are allowed to use Perl, so you now have your own SQL Perl shell (but remember that default aliases like 'p' and 'pp' are not defined here). Also, you can still access system commands using the bang ("!"). Now try this script with a module name as mode string.

Ongoing Development

As I stated in the introduction, Zoidberg has not yet seen a stable release. This means it is neither feature complete nor bug free. But I think that the development has reached a point where it has become clear how the stable release might look, and I hope you have caught a glimpse of that in this article.

One of the things I'm currently working on is forking more functionality from Zoidberg into separate CPAN packages. At the moment, Bundle::Zoidberg consists of the Zoidberg package itself and two packages that have already forked from Zoidberg's code base: Term::ReadLine::Zoid and Env::PS1. Especially forking Term::ReadLine::Zoid has been very good for the project. One of the subsystems I hope to release in a separate package is the parser and job-control code. Forking functionality makes the code more accessible for other applications and also forces us to have very clean interfaces between subsystems of the program and will thus allow for better test suites.

If you encounter any bugs while playing around with zoid, please report them through http://rt.cpan.org/ and feel free to ask questions on the mailing list.

TPJ


Around the Web

CoreDet: A Compiler and Runtime System for Deterministic Multithreaded Execution

CoreDet is a fully automatic compiler and runtime system for deterministic execution of arbitrary C/C++ multithreaded programs.

Quick Read

Honeypot Detection in Advanced Botnet Attacks

Honeypots have been successfully deployed in many computer security defense systems.

Quick Read

Swarm: A True Distributed Programming Language

The Swarm prototype is a simple stack-based language, akin to a primitive version of the Java bytecode interpreter.

Quick Read

Key Software Development Trends

Several trends are emerging within the area of software development. Here are some of the most important trends S. Somasegar has been thinking about recently.

Quick Read

Understanding Parallel Performance

Understanding parallel performance. How do you know when good is good enough?

Quick Read

Short and Tweet: Experiments on Recommending Content from Information Streams

The authors used 12 algorithms to study the URL recommendation on Twitter as a means of better directing attention in information streams.

Quick Read





Video

Forty finalists will gather in Washington, D.C. from March 11-16 to compete for $630,000 in awards.; DDJ; Intel; science; Dr. Dobb's talks with Commonsware's Mark Murphy about what's involved in developing software for the Android operating system; Android; apple; DDJ; tablet development; The new method uses analytics technology developed by the Mayo and IBM collaboration, Medical Imaging Informatics Innovation Center, and has proven a 95 percent accuracy rate in detecting aneurysm.; Algorithm; DDJ; diagnostics; ibm; imaging; T-Mobile USA is enabling phone calls to Haiti without charges for international long distance through January 31 and retroactive to the earthquake on January 12; DDJ; mobile; wireless; Al Williams gives you a demor of One-Der: The One Instruction CPU; DDJ; At the 2010 International Consumer Electronics Show, the auto industry's first working smartphone application was unveiled; DDJ; mobile; The Bluetooth Special Interest Group (SIG) has announced the adoption of BLUETOOTH low energy wireless technology.; bluetooth; DDJ; wireless; IBM has unveiled its list of five innovations that have the potential to change how people live, work and play in cities around the world over the next five to ten years; DDJ; ibm; TeliaSonera's LTE mobile broadband commercial network in Stockholm is now the fastest and largest in the world.; broadband; DDJ; ericsson; mobile; Google has introduced, google Goggles, a visual search application on Android devices that allows users to search for objects using images rather than words; Android; DDJ; google; mobile; Visual Search Applications; Dr. Dobb's talks with David Intersimone, Vice President of Developer Relations and Chief Evangelist at Embarcadero Technologies, about RAD Studio 2010, SQL optimization and his reflections on the software industry.; database programming; DDJ; sql; Researchers from Intel Labs have created an experimental, 48-core Intel processor or "single-chip cloud computer."; cloud computing; DDJ; Intel; multicore; parallelism; The Large Hadron Collider will produce roughly 15 million gigabytes of data annually, to be accessed by a distributed computing and data storage infrastructure called the LHC Computing Grid.; CERN; DDJ; grid computing; physics; A mobile handheld device designed to let users can point, shoot and listen to printed text.; DDJ; Intel; mobile; Ericsson has become the first vendor to prove end to end interoperability in TD-LTE, another standard of 4G radio technologies designed to increase the capacity and speed of mobile telephone networks.; DDJ; ericsson; mobile; TD-LTE; According to a recent study, 80 percent of US respondents feel there are unspoken rules about mobile technology usage, and approximately 69 percent agreed that violations of these unspoken mobile manners are unacceptable.; DDJ; Intel; mobile; IBM and Canonical will introduce a software package for netbooks and other thin client devices in Africa. This is the first cloud- and premise-based Linux netbook software package offered by IBM and Canonical.; cloud computing; DDJ; ibm; His unprecedented ability to manipulate individual atoms signaled a quantum leap forward in in nanoscience experimentation and heralded in the age of nanotechnology.; DDJ; ibm; nanotechnology; IBM honored for its invention of the Blue Gene family of supercomputers. Adobe founders also recognized.; adobe; DDJ; ibm; Former U.S. President Bill Clinton addressed thousands of online entrepreneurs from around the world gathered for the third APEC Business Advisory Council SME Summit in Hangzhou, China.; DDJ; e-business; With free cooling for several months a year, Sweden is an ideal location for cost-efficient data centers.; data centers; DDJ; PNC Bank introduces a new mobile App for the iPhone and iPod touch that provides Virtual Wallet customers with a high-def view of their money while on the go.; DDJ; iphone; The Swedish LTE site will be part of a commercial network scheduled to go live in 2010, bringing data rates far above what is possible in today's mobile broadband networks.; DDJ; ericsson; mobile broadband; Nanotechnology advancement could lead to smaller, faster, more energy efficient computer chips.; circuit boards; DDJ; nanotech; semiconductor; Dr Dobbs talks with with Claudia Backus, Senior Director of Ecosystem Programs at Motorola, regarding the company's recently released MotoDEV Studio for their Android-powered phones.; Android; DDJ; mobile; motodev; The Extremadura Regional Government of Spain and IBM have launched an electronic prescription system in 680 pharmacies in western Spain.; DDJ; ibm; Ericsson to Acquire Majority of Nortel's North American Wireless Business; DDJ; ericsson; mobile; telecom; Nintendo's Wii Sports Resort is an immersive, expansive active-play game that includes a dozen resort-themed activities.; DDJ; nintendo; video games; OnStar can remotely send a signal to the electronic system in the subscriber's stolen vehicle and the vehicle will not be able to be re-started.; cellular; DDJ; wireless; In celebration of the historic Apollo Moon landing, Google has released Moon in Google Earth.; DDJ; google; Ericsson has been awarded contracts with the three telecom operators in China to provide fixed broadband access.; broadband; DDJ; mobile; tv; wireless; Dr. Dobb's talks with Adobe's Adam Lehman about the upcoming release of ColdFusion specifically optimized for Flash and Adobe AIR platform delivery.; adobe; ColdFusion; DDJ; eclipse; Companies team to develop computing device and chipset architectures that will combine the performance of powerful computers with high-bandwidth mobile broadband communications and ubiquitous Internet connectivity.; broadband; DDJ; Intel; mobile; nokia; Adobe Systems and HTC recently announced that the new HTC Hero will be the first Android phone to ship with support for Adobe Flash Platform technology.; adobe; Android; cell phones; DDJ; flash; mobile; mobility; 3.2 million Euros awarded across eight prize categorie recognizing world-class scientific research and artistic creation.; DDJ; A parody of Paul Simon's "50 Ways to Leave Your Lover," but for software security nerds.; DDJ; sql; Dr. Dobb's Mike Riley talks with Jim Manias of Advanced Systems Concepts.  In this conversation, Jim discusses the new ActiveBatch 7 and how it can provide significant productivity gains for application developers and business process owners alike.; ActiveBatch; DDJ; Sun cofounder Scott McNealy and Oracle CEO Larry Ellison discussed Java's role in computing. Sun has also released OpenSolaris 2009.06.; DDJ; java; opensolaris; oracle; sun; Spotlight on NATO's centre of excellence on cyber defense in Tallinn, Estonia.; cyber defense; DDJ; nework security; security; Create Data Access Layers in ASP.NET; DDJ; In this demonstration you will learn how to layout a WPF application. We will explore the major layout panels that come with WPF, contrasting them with each other and describing when to use each.; DDJ; web development; windows; wpf; The Intel Foundation has announced the top winners of the Intel International Science and Engineering Fair; DDJ; Intel; News; science; Matt Hester demonstrates Internet Explorer’s 8 new feature Selectors API for utilizing CSS selectors for quick and easy element lookups.; DDJ; IE8; microsoft; windows; The NATO Virtual Silk Highway provides affordable, high-speed Internet access via satellite to the academic communities of the Caucasus and Central Asia.; DDJ; On a Windows Mobile device, applications are typically not closed down, but they stay in the background. Maarten Struys shows you a simple way to preserve battery power inside your own applications.; DDJ; microsoft; power consumption; windows; Windows Mobile Devices; Cadillac is now offering wireless Internet access with its CTS sedan.; DDJ; wireless broadband; By default, Windows Mobile Standard (Smartphone) applications launched from Visual Studio are not accessible on the device/emulator once they are minimized. In this video, Jim Wilson demonstrates two simple techniques to solve the problem.; DDJ; microsoft; smartphone; VIsual Studio; Mike Riley talks with the brass from Everypoint, creators of the NEMO mobile application development platform.; DDJ; Developers; development environments; mobile applications; Symmetric and asymmetric encryption algorithms, the SHA256 hash encryption algorithms, and how to implement in a simple application using Microsoft's Azure Services Platform.; Azure; DDJ; encryption; microsoft; security; windows; T-Mobile has introduced the Sidekick LX, which features enhanced video capability.; DDJ; Mobile Smartphone; Bluetooth 3.0 offers speedier transmission of large amounts of video, music and photos between devices wirelessly.; bluetooth; DDJ; mobile networks; wireless broadband; Cities around the world are battling with stressed transportation networks, so IBM has announced plans for three new smart rail projects in China, Taiwan and The Netherlands.; DDJ; ibm; ILOG; CASMOBOT is a Nintendo Wii remote controlled slope lawn mower.; DDJ; Denmark; nintendo wii; research; robotics; Project ensures documents, images, video and other Internet-based data growing at over 100 terabytes per month will live on for future generations; data storage; DDJ; history; Intenet; research; Sun Microsystems; Dr. Dobb's talks with Dave McAllister, Director of Standards and Open Source for Adobe, about the Open Screen Project.; adobe; DDJ; Open Screen Project; open source; The Facebook Connect SDK provides the code to let third-party developers embed hooks into their applications so users can connect to their Facebook accounts and exchange information using iPhone apps.; apple; cocoa; DDJ; Facebook; iphone; Mars in Google Earth Updated; DDJ; google; google earth; Google mars; red planet; The Sun Cloud is built on the Sun Open Cloud Platform that leverages the best in world-class open source technologies. The Sun Open Cloud Platform brings together Java, MySQL, OpenSolaris and OpenStorage.; cloud computing; DDJ; java; open solaris; sun; DDJ; High School; Intel; science; ILOG Elixir is a suite of professional user interface controls that gives developers a rich collection of innovative and interactive data display components for Adobe Flex and Adobe Air.; adobe; air; DDJ; elixir; flash; flex; ILOG; The inaugural San Diego Science Festival being held this month is touted as one of the largest multicultural, multigenerational, multidisciplinary celebrations of science ever seen on the West Coast; DDJ; lockheed; News; science; IBM has announced Innov8 version 2, a new version of its serious game that helps students and professionals hone their business and technology skills in a compelling, familiar video game format.; DDJ; ibm; serious games; Swiss Automobile Visionary Frank M. Rinderknecht builds a concept car with adaptive energy concept and iPhone controls.; apple; Concept Car; DDJ; iphone; j; siemens; Two-Year Plan to Focus on 32 Nanometer Manufacturing Technology; 32 nanometer technology; chip; cpu; DDJ; gpu; Intel; manufacturing; Nehalem; Westmere; New version features ocean layer, historical imagery, and more.; DDJ; google; Dr. Dobb's talks with Marty Alchin, author of "Pro Django" about his book and the deep internals of the Django framework.; DDJ; Django; A new content-authoring solution for learning professionals; adobe; DDJ; toolkits; web authoring; In a Second Life setting, Danny Coward discusses Java FX with Dr. Dobb's Jon Erickson.; DDJ; java; JavaFX; sun; The Core i7 processor is the first member of a new family of Nehalem processor designs with new technologies that boost performance on demand.; chip; DDJ; Intel; processors; Dan Diephouse, creator of XFire, a high-performance open-source SOAP framework (which became the Apache CXF project), shares the five common mistakes in SOA governance and insight about the Apache CXF and Mule RESTpack development environments.; apache; Apache CXF; DDJ; mule; open source; soa; soap; Xfire; Adrian Kaehler and Gary Bradski discuss the Open Computer Vision Library (sourceforge.net/projects/opencvlibrary/) and their book "Learning OpenCV".; DDJ; Open Computer Vision Library; OpenCV; In the first part of this two-part interview, Stephen Wolfram reflects on the 20-year anniversary of Wolfram Research.; DDJ; Mathematica; Mathematics; science; In the second part of this two-part interview, Stephen Wolfram discusses his book "A New Kind of Science."; DDJ; Mathematica; Mathematics; science; Nick Hodges talks about Delphi 2009, a RAD tool for Windows, and Delphi Prism, a database engine for Windows, Mac OS X, and Linux.; DDJ; delphi; RAD; windows; Dr. Dobb's talks with Tony Lombardo, lead Technical Evangelist at Infragistics, about all new UI tools for Windows and .NET.; .net; DDJ; silverlight; ui; windows; wpf; Dr. Dobb's talks with Eric Schulz about his International Mathematica User's Conference 2008 presentation on the Mathematica Essentials Palette and the future digital educational material; DDJ; Mathematica; Mathematics; Dr. Dobb's talks with ActiveState's Trent Mick about the recently released Komodo IDE 5.0.; DDJ; ide; open source; Dr. Dobb's talks with Continuity Logic's Kris Carlson about "Why We Die: Simulation of the Evolution of Senescence" and why he programs with Mathematica's functional programming language.; DDJ; functional programming; Mathematica; simulation; Ericsson collaborates with Intel; DDJ; ericsson; Intel; Mobile technology; Dr. Dobb's talks with Schoeller Porter about the grid and cloud versions of Mathematica; clouds; DDJ; Grid; Mathematica; Dr Dobb's interviews Yehuda Katz, maintainer of the Merb project, about the advantages this highly optimized Ruby on Rails alternative offers to web application developers.; DDJ; Ruby on Rails; Dr. Dobb's talks with Thomas Roman, Professor of Mathematics at Central Connecticut State University, about "Mathematica Visualization in a Theoretical Physics Problem - Negative Energy in an Unusual Quantum State."; DDJ; Mathematica; physics; quantum; science; The Forbidden City: Beyond Space & Time is a fully immersive, three-dimensional virtual world that recreates a visceral sense of space and time.; Blade Server; China; DDJ; ibm; linux; mac; online; virtual world; windows; Dr. Dobb's interviews open source luminary Miguel de Icaza about his latest milestone of achieving Microsoft .NET 2.0 Framework compatibility with the Mono Project .; DDJ; Dr. Dobb/s interviews Paul Kimmel, author of "LINQ Unleashed for C#", about Microsoft's new query technology that lets developers poll any information from any data source regardless of location or structure. I; C#; DDJ; Dr. Dobb's; LINQ; microsoft; It takes a supercomputer to build a super car. ; DDJ; HPC; simulation; Dr. Dobb's shows how to install and execute cross-platform scripting languages on the Windows Mobile platform. In this installment, Mike Riley examines Perl for Windows Mobile devices.; DDJ; mobile devices; perl; windows; Dr. Dobb's shows how to install and execute cross-platform scripting languages on the Windows Mobile platform. In this installment, Mike Riley examines Python CE which is optimized for Windows Mobile devices.; DDJ; mobile devices; python; windows; Dr. Dobb's shows how to install and execute cross-platform scripting languages on the Windows Mobile platform. In this installment, Mike Riley examines Ruby for Windows Mobile devices.; DDJ; mobile devices; ruby; windows; Young participants at ITU TELECOM ASIA 2008 in Bangkok, Thailand received free laptops as part of ITU’s initiative to promote affordable devices to increase access to information and communication technologies.; communication; DDJ; itu; Currently technical strategist to Microsoft's Chief Software Architect, Rebecca Norlander has had a tremendous impact on Excel, Internet Explorer, Windows XP SP2, and Windows Vista Security. ; DDJ; microsoft; Contributing authors to the book "Beautiful Code" got together at Dr. Dobb's SD West Conference in March, 2008. Part 1 of 3.; DDJ; programming; software development; Contributing authors to the book "Beautiful Code" got together at Dr. Dobb's SD West Conference in March, 2008. Part 2 of 3.; DDJ; programming; software development; Contributing authors to the book "Beautiful Code" got together at Dr. Dobb's SD West Conference in March, 2008. Part 3 of 3.; DDJ; programming; software development; Anders Hejlsberg discusses C#, Turbo Pascal, and what it means to design a programming language. ; C#; DDJ; microsoft; Turbo Pascal; Solar powered laptops given to youths at ITU Asia 2008.; DDJ; News; telecommunications; IBM breakthrough stands to impact future direction of information technology.; DDJ; Mike Riley spoke to ActiveState's Jeff Hobbes about the new features in Tcl Dev Kit and Perl Dev Kit including the code coverage and hot-spot analysis tool and Mac OSX support.; DDJ; Tim O'Reilly addressed the OSCON convention in his Wednesday keynote titled "Degrees of Freedom, Open Source in the Wed 2.0 Era.; DDJ;