Loading...

D resources

posted on Thu, June 05th, 2008

While reading through the web for some helpful comments and howto I came across some very useful resources for D programming. For my own organization I will post the interesting resources in this post. This page will be updated from time to time...


D MySQL performance

posted on Tue, May 27th, 2008

After setting up the D develop environment and compiling the first small programs, I got interested in the mysql performance of D, which basically uses the C library provided by mysql. Therefore I didn't expect to much performance here as PHP uses the same library to connect and query the mysql database. As D is natively compiled there it is slightly faster in the user space.
For the test I used a table with 1.124 million records and selected only the id from the first 100'000 datasets. I run the test 10 times and put the data in the charts below. The database is on the same server as the installation of PHP and D. The PHP version is 5.2.1. For D I used DDBI and Tango.


A kickstart with D

posted on Mon, May 26th, 2008

For a long time I used PHP for most of my projects and programming needs. This included web based application like content management systems, custom database frontends and various small fun projects to gather some information from the web. I even programmed daemons with PHP 5, which run on the unix shell. I started with PHP in 1998 while studying computer science. Since then I feel and felt quite comfortable with PHP. It well suited my programming needs and skills. The capabilities of PHP grew over the last 10 years and make it a very stable and productive programming/scripting language.

But for a recent project I need to process large amounts of data and therefore I was on the search for an alternative to PHP, which I could pick up very easily and which performance better. I took a look at D, a new programming language which is a strongly typed, natively compiled computer language. It has a syntax similar to C, C++ and Java and at the same time combines the high performance from natively compiled languages with the rapid developement capabilities of scripting languages like Perl, Python or PHP. After studying the D website and a couple other D web pages I decided to give it a try.

I will document the steps I've run into as a PHP developer trying to get started with D. The first in the series is how to install the compiler and builder environment to start with some basic programming tasks.


Page 2 of 2 pages