www.digitalmars.com         C & C++   DMDScript  

digitalmars.D - D in your browser? possible?

reply "Damian" <damianday hotmail.co.uk> writes:
I've noticed a few languages are adopting this, for example
Haskell: http://tryhaskell.org
Go: http://play.golang.org

Will D get something like this? I find it to be of great use
with Go specifically and I'm sure it would benefit D just as much.
Jun 17 2012
next sibling parent Andrei Alexandrescu <SeeWebsiteForEmail erdani.org> writes:
On 6/17/12 11:38 AM, Damian wrote:
 I've noticed a few languages are adopting this, for example
 Haskell: http://tryhaskell.org
 Go: http://play.golang.org

 Will D get something like this? I find it to be of great use
 with Go specifically and I'm sure it would benefit D just as much.

It's already done as one of Adam Ruppe's 1001 projects in the "proof of concept" stage. We need to convince him to finalize it, it's really cool. We (will) even have the "try it now" thing that can be attached to virtually every code sample on the website. Andrei
Jun 17 2012
prev sibling next sibling parent Ellery Newcomer <ellery-newcomer utulsa.edu> writes:
On 06/17/2012 11:38 AM, Damian wrote:
 I've noticed a few languages are adopting this, for example
 Haskell: http://tryhaskell.org
 Go: http://play.golang.org

those sure look a lot more polished than ideone.com
Jun 17 2012
prev sibling next sibling parent reply "nazriel" <nazriel dzfl.pl> writes:
On Sunday, 17 June 2012 at 16:38:25 UTC, Damian wrote:
 I've noticed a few languages are adopting this, for example
 Haskell: http://tryhaskell.org
 Go: http://play.golang.org

 Will D get something like this? I find it to be of great use
 with Go specifically and I'm sure it would benefit D just as 
 much.

Hey. We are working on something like that. http://dpaste.dzfl.pl/ At the end we want also to share an API to allow users to use service on their own like in the GO Lang website etc, where you can click Try it now (actually its already done via "Compile" button, where request is sent via AJAX). (Warning: Compiler section is actually dummy-filled, at the moment only dmd2.059 is avaible).
Jun 18 2012
parent Timon Gehr <timon.gehr gmx.ch> writes:
On 06/18/2012 03:47 PM, nazriel wrote:
 On Sunday, 17 June 2012 at 16:38:25 UTC, Damian wrote:
 I've noticed a few languages are adopting this, for example
 Haskell: http://tryhaskell.org
 Go: http://play.golang.org

 Will D get something like this? I find it to be of great use
 with Go specifically and I'm sure it would benefit D just as much.

Hey. We are working on something like that. http://dpaste.dzfl.pl/ At the end we want also to share an API to allow users to use service on their own like in the GO Lang website etc, where you can click Try it now (actually its already done via "Compile" button, where request is sent via AJAX). (Warning: Compiler section is actually dummy-filled, at the moment only dmd2.059 is avaible).

Very nice. Why do you use radio buttons in the 'Libraries' section though? Those are not mutually exclusive.
Jun 18 2012
prev sibling next sibling parent Manu <turkeyman gmail.com> writes:
--20cf300facd7d81dfe04c2c0963c
Content-Type: text/plain; charset=UTF-8

On 17 June 2012 19:38, Damian <damianday hotmail.co.uk> wrote:

 I've noticed a few languages are adopting this, for example
 Haskell: http://tryhaskell.org
 Go: http://play.golang.org

 Will D get something like this? I find it to be of great use
 with Go specifically and I'm sure it would benefit D just as much.

A friend of mine started this: https://bitbucket.org/fearog/gdc-nacl Chrome NaCl (http://en.wikipedia.org/wiki/Google_Native_Client) target for GDC, to run realtime client-side D code in your browser! Yeah! I'm sure he could use some help ;) --20cf300facd7d81dfe04c2c0963c Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable <div class=3D"gmail_quote">On 17 June 2012 19:38, Damian <span dir=3D"ltr">= &lt;<a href=3D"mailto:damianday hotmail.co.uk" target=3D"_blank">damianday = hotmail.co.uk</a>&gt;</span> wrote:<br><blockquote class=3D"gmail_quote" st= yle=3D"margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"> I&#39;ve noticed a few languages are adopting this, for example<br> Haskell: <a href=3D"http://tryhaskell.org" target=3D"_blank">http://tryhask= ell.org</a><br> Go: <a href=3D"http://play.golang.org" target=3D"_blank">http://play.golang= .org</a><br> <br> Will D get something like this? I find it to be of great use<br> with Go specifically and I&#39;m sure it would benefit D just as much.<br> </blockquote></div><br><div>A friend of mine started this:</div><div><a hre= f=3D"https://bitbucket.org/fearog/gdc-nacl">https://bitbucket.org/fearog/gd= c-nacl</a> </div><div><br></div><div>Chrome NaCl (<a href=3D"http://en.wikipedia.org/w= iki/Google_Native_Client">http://en.wikipedia.org/wiki/Google_Native_Client= </a>)=C2=A0target for GDC, to run realtime client-side D code in your brows= er! Yeah!</div> <div><br></div><div>I&#39;m sure he could use some help ;)</div> --20cf300facd7d81dfe04c2c0963c--
Jun 18 2012
prev sibling next sibling parent "nazriel" <nazriel dzfl.pl> writes:
On Monday, 18 June 2012 at 14:59:53 UTC, Timon Gehr wrote:
 On 06/18/2012 03:47 PM, nazriel wrote:
 On Sunday, 17 June 2012 at 16:38:25 UTC, Damian wrote:
 I've noticed a few languages are adopting this, for example
 Haskell: http://tryhaskell.org
 Go: http://play.golang.org

 Will D get something like this? I find it to be of great use
 with Go specifically and I'm sure it would benefit D just as 
 much.

Hey. We are working on something like that. http://dpaste.dzfl.pl/ At the end we want also to share an API to allow users to use service on their own like in the GO Lang website etc, where you can click Try it now (actually its already done via "Compile" button, where request is sent via AJAX). (Warning: Compiler section is actually dummy-filled, at the moment only dmd2.059 is avaible).

Very nice. Why do you use radio buttons in the 'Libraries' section though? Those are not mutually exclusive.

The thing is, we want also provide support for D1, where Tango excludes Phobos and vice-versa. I am not sure yet how we should handle it, maybe some JS-magic, which would replace checkbox for radiobox when using D1, or just ignoring 2nd choice when using D1. This is cosmetic change though, can be done anytime (backend supports both libraries in same time)
Jun 18 2012
prev sibling parent Dejan Lekic <dejan.lekic gmail.com> writes:
On Mon, 18 Jun 2012 15:47:07 +0200, nazriel wrote:

 On Sunday, 17 June 2012 at 16:38:25 UTC, Damian wrote:
 I've noticed a few languages are adopting this, for example Haskell:
 http://tryhaskell.org
 Go: http://play.golang.org

 Will D get something like this? I find it to be of great use with Go
 specifically and I'm sure it would benefit D just as much.

Hey. We are working on something like that. http://dpaste.dzfl.pl/ At the end we want also to share an API to allow users to use service on their own like in the GO Lang website etc, where you can click Try it now (actually its already done via "Compile" button, where request is sent via AJAX). (Warning: Compiler section is actually dummy-filled, at the moment only dmd2.059 is avaible).

Amazing work! Well done! -- Dejan Lekic mailto:dejan.lekic(a)gmail.com http://dejan.lekic.org
Jun 20 2012