Server-Side magazine interview, touches on D
Andrei Alexandrescu
SeeWebsiteForEmail at erdani.org
Sun Jan 29 21:17:22 PST 2012
On 1/29/12 4:52 PM, Adam D. Ruppe wrote:
> On Sunday, 29 January 2012 at 22:34:19 UTC, Andrei Alexandrescu wrote:
>> I wish I’d convince a serious hacker to bring things to the point where
>> <?d writeln("Hello, world!"); ?>
>> could be inserted in a web page.
>
> That's very easy.
>
> About 100 lines of simple string manipulation makes it
> happen: http://arsdnet.net/dcode/dhp.d
>
> $ ./dhp
> hello <?d writef("%s", "andrei"); ?>!
> <press control d>
> hello andrei!
> $
>
> Set up a shebang or htaccess rule or something like that,
> and boom, you have it on the web.
>
> But, I'd question the utility of it. I wrote that dhp.d script
> over a year ago, and have never actually used it.
The difficult part is integrating with Apache.
Andrei
More information about the Digitalmars-d-announce
mailing list