On Sunday, 7 July 2013 at 15:55:31 UTC, Andrei Alexandrescu wrote:
On 7/7/13 8:00 AM, John Colvin wrote:
I had some free time so I decided I should start a simple blog about D, implementing some unix utilities. I've (unsurprisingly) started with echo.

http://foreach-hour-life.blogspot.co.uk/

It's nothing ground-breaking, but every little helps :)

Nice idea! Comments:

- The imperative version writes an extra space at the end (the joiner version does not have that problem).

Woops, missed that.

- The echo utility has an odd way to process the cmdline: if exactly the first argument is a -n, then do not writeln at the end.

As mentioned in the blog, i'll be covering the various flags later.

- It's quite likely the joiner-based version will be slower because it writes one character at a time. (Would be great to test and discuss performance as well.)

I plan on continuing both versions through successive posts, so when they're complete I'll do a head-to-head between them, including performance.

Reply via email to