sclytrack wrote:
> Like a replacement for HTML5 and javascript.

You *could* make this work, but the language itself won't help you.

There's two approaches:

a) Run the code on your server and only output the display on the
   client's computer. Like an X11 application.
http://en.wikipedia.org/wiki/X11

b) Have the operating system limit the D application. It's not
   really possible to filter out malicious D code.

Someone could always call an operating system function directly,
even marking it @trusted so it works in safe mode.


But, if you configure the operating system the right way, you can
make all those potentially nasty calls unavailable. Put an
operating system level limit on file access, put up a network
firewall, limit it's CPU time, etc.

Most the newer HTML web browsers are doing this in addition to
javascript. The same principles can be used on almost any program.

Reply via email to