Jump to page: 1 24  
Page
Thread overview
run.dlang.io - a modern way to run D code
Dec 12
Seb
Dec 13
Seb
Dec 13
bauss
Dec 13
Seb
Dec 14
Seb
Dec 14
Mengu
Dec 14
Seb
Dec 13
Meta
Dec 14
Meta
Dec 13
Seb
Dec 15
Radu
Dec 18
Seb
Jan 13
Seb
December 12
After it has been in stealth mode for quite a while, I'm happy to announce that there's https://run.dlang.io

=== Features ===

* Color-highlighted DMD errors
* Format source code with dfmt
* Generate a short URL for link sharing
* Import/Export to GitHub Gist
* Typical key shortcuts like CTRL+Enter -> Run
* Build cache for fast execution of common examples (e.g. the ones on front page of dlang.org)
* Usable on your phone
* Integrated with dlang.org (you can open any example on dlang.org in run.dlang.io by clicking the right arrow button)
* Integrated with tour.dlang.org (you can open any example on the DTour in run.dlang.io by clicking on the "Export" button)

=== Supported D Compilers ===

* Latest DMD nightly
* Latest DMD beta
* Latest DMD
* Latest LDC beta
* Latest LDC

The Docker images are rebuilt every day automatically.

=== Running DUB packages ===

Via "Add library" DUB packages can be added to the build.
Currently only a whitelist of packages is allowed.
Examples:

mir: https://run.dlang.io/is/FIc6rd
mir-algorithm: https://run.dlang.io/is/3pNRH8

=== DReg ===

When I watched CyberShadow's Bugzilla cruise [1] I spotted this amazing tool dreg [2] and it's not that hard to build a docker image [3] for it and make it available for everyone, s.t. no setup is required.
Dreg allows running old versions of the D compiler in parallel and compares their output.
However, it's a lot easier to show than to explain:

https://run.dlang.io/is/ckNT9i
https://run.dlang.io/is/UZhQDh

Currently all versions from 2.060 up to the latest greatest 2.077.1 are run, so the execution will take a bit longer than a single run.

[1] https://youtu.be/qpUTvMokTCs
[2] https://github.com/CyberShadow/misc/blob/master/dreg.d
[3] https://github.com/dlang-tour/core-dreg


=== Source code & report issues ===

Please don't hesitate to open issues or submit pull requests:

-> https://github.com/dlang-tour/core

(it uses Vibe.d)
December 13
On 12/12/2017 6:37 PM, Seb wrote:
> After it has been in stealth mode for quite a while, I'm happy to announce that there's https://run.dlang.io
> 
> === Features ===
> 
> * Color-highlighted DMD errors
> * Format source code with dfmt
> * Generate a short URL for link sharing

s/shorten/permalink/

Or something else more obvious.

> * Import/Export to GitHub Gist
> * Typical key shortcuts like CTRL+Enter -> Run
> * Build cache for fast execution of common examples (e.g. the ones on front page of dlang.org)
> * Usable on your phone
> * Integrated with dlang.org (you can open any example on dlang.org in run.dlang.io by clicking the right arrow button)
> * Integrated with tour.dlang.org (you can open any example on the DTour in run.dlang.io by clicking on the "Export" button)
> 
> === Supported D Compilers ===
> 
> * Latest DMD nightly
> * Latest DMD beta
> * Latest DMD
> * Latest LDC beta
> * Latest LDC
> 
> The Docker images are rebuilt every day automatically.

Can we please select a version we want to test against?


December 13
On Tuesday, 12 December 2017 at 18:37:38 UTC, Seb wrote:
> After it has been in stealth mode for quite a while, I'm happy to announce that there's https://run.dlang.io
>
> [...]

Sweet! I will definitely use this for teaching.
December 13
On Tuesday, 12 December 2017 at 18:37:38 UTC, Seb wrote:
> After it has been in stealth mode for quite a while, I'm happy to announce that there's https://run.dlang.io
>
> === Features ===
>
> * Color-highlighted DMD errors
> * Format source code with dfmt
> * Generate a short URL for link sharing
> * Import/Export to GitHub Gist
> * Typical key shortcuts like CTRL+Enter -> Run
> * Build cache for fast execution of common examples (e.g. the ones on front page of dlang.org)
> * Usable on your phone
> * Integrated with dlang.org (you can open any example on dlang.org in run.dlang.io by clicking the right arrow button)
> * Integrated with tour.dlang.org (you can open any example on the DTour in run.dlang.io by clicking on the "Export" button)
>
> === Supported D Compilers ===
>
> * Latest DMD nightly
> * Latest DMD beta
> * Latest DMD
> * Latest LDC beta
> * Latest LDC
>
> The Docker images are rebuilt every day automatically.
>
> === Running DUB packages ===
>
> Via "Add library" DUB packages can be added to the build.
> Currently only a whitelist of packages is allowed.
> Examples:
>
> mir: https://run.dlang.io/is/FIc6rd
> mir-algorithm: https://run.dlang.io/is/3pNRH8
>
> === DReg ===
>
> When I watched CyberShadow's Bugzilla cruise [1] I spotted this amazing tool dreg [2] and it's not that hard to build a docker image [3] for it and make it available for everyone, s.t. no setup is required.
> Dreg allows running old versions of the D compiler in parallel and compares their output.
> However, it's a lot easier to show than to explain:
>
> https://run.dlang.io/is/ckNT9i
> https://run.dlang.io/is/UZhQDh
>
> Currently all versions from 2.060 up to the latest greatest 2.077.1 are run, so the execution will take a bit longer than a single run.
>
> [1] https://youtu.be/qpUTvMokTCs
> [2] https://github.com/CyberShadow/misc/blob/master/dreg.d
> [3] https://github.com/dlang-tour/core-dreg
>
>
> === Source code & report issues ===
>
> Please don't hesitate to open issues or submit pull requests:
>
> -> https://github.com/dlang-tour/core
>
> (it uses Vibe.d)

This is a real life saver considering dpaste is blocked at work. It gets very tedious having to create a file, invoke the compiler, and run it in 3 separate steps just to test out some quick snippet.
December 12
On Wed, Dec 13, 2017 at 12:50:40AM +0000, Meta via Digitalmars-d-announce wrote:
> On Tuesday, 12 December 2017 at 18:37:38 UTC, Seb wrote:
> > After it has been in stealth mode for quite a while, I'm happy to announce that there's https://run.dlang.io
[...]
> This is a real life saver considering dpaste is blocked at work. It gets very tedious having to create a file, invoke the compiler, and run it in 3 separate steps just to test out some quick snippet.

Can't you just do:

	rdmd --eval='<insert code here>'

?


T

-- 
Real Programmers use "cat > a.out".
December 13
On Wednesday, 13 December 2017 at 00:32:11 UTC, rikki cattermole wrote:
> On 12/12/2017 6:37 PM, Seb wrote:
>> === Supported D Compilers ===
>> 
>> * Latest DMD nightly
>> * Latest DMD beta
>> * Latest DMD
>> * Latest LDC beta
>> * Latest LDC
>> 
>> The Docker images are rebuilt every day automatically.
>
> Can we please select a version we want to test against?

While it would be rather easier to build more Docker images [1] and add them to the tour [2], I fear that this will be too much maintenance overhead and will lead to outdated compiler soon.
Also the storage on the machine is limited and we can't drop an unlimited amount of Docker images there.

[1] https://github.com/dlang-tour/core-exec
[2] https://github.com/dlang-tour/core/blob/master/source/exec/docker.d#L22
December 13
On Wednesday, 13 December 2017 at 00:50:40 UTC, Meta wrote:
> This is a real life saver considering dpaste is blocked at work. It gets very tedious having to create a file, invoke the compiler, and run it in 3 separate steps just to test out some quick snippet.

Great to hear that it's useful for you!
FYI: another life saver / convenience feature for this online editor is WIP:

https://github.com/dlang/phobos/pull/5916
December 13
On Wednesday, 13 December 2017 at 01:14:26 UTC, Seb wrote:
> On Wednesday, 13 December 2017 at 00:32:11 UTC, rikki cattermole wrote:
>> On 12/12/2017 6:37 PM, Seb wrote:
>>> === Supported D Compilers ===
>>> 
>>> * Latest DMD nightly
>>> * Latest DMD beta
>>> * Latest DMD
>>> * Latest LDC beta
>>> * Latest LDC
>>> 
>>> The Docker images are rebuilt every day automatically.
>>
>> Can we please select a version we want to test against?
>
> While it would be rather easier to build more Docker images [1] and add them to the tour [2], I fear that this will be too much maintenance overhead and will lead to outdated compiler soon.
> Also the storage on the machine is limited and we can't drop an unlimited amount of Docker images there.
>
> [1] https://github.com/dlang-tour/core-exec
> [2] https://github.com/dlang-tour/core/blob/master/source/exec/docker.d#L22

What you could do is support the 3 latest versions of the compilers.

Ex. for DMD you would support:
2.077.1
2.076.1
2.075.1

December 13
On 13/12/2017 6:46 AM, bauss wrote:
> On Wednesday, 13 December 2017 at 01:14:26 UTC, Seb wrote:
>> On Wednesday, 13 December 2017 at 00:32:11 UTC, rikki cattermole wrote:
>>> On 12/12/2017 6:37 PM, Seb wrote:
>>>> === Supported D Compilers ===
>>>>
>>>> * Latest DMD nightly
>>>> * Latest DMD beta
>>>> * Latest DMD
>>>> * Latest LDC beta
>>>> * Latest LDC
>>>>
>>>> The Docker images are rebuilt every day automatically.
>>>
>>> Can we please select a version we want to test against?
>>
>> While it would be rather easier to build more Docker images [1] and add them to the tour [2], I fear that this will be too much maintenance overhead and will lead to outdated compiler soon.
>> Also the storage on the machine is limited and we can't drop an unlimited amount of Docker images there.
>>
>> [1] https://github.com/dlang-tour/core-exec
>> [2] https://github.com/dlang-tour/core/blob/master/source/exec/docker.d#L22
> 
> What you could do is support the 3 latest versions of the compilers.
> 
> Ex. for DMD you would support:
> 2.077.1
> 2.076.1
> 2.075.1

Also the older c++ version (2.06x.x).

December 13
On Tuesday, 12 December 2017 at 18:37:38 UTC, Seb wrote:
> After it has been in stealth mode for quite a while, I'm happy to announce that there's https://run.dlang.io

I've actually been using it a lot recently to communicate bugs/ideas/patterns with others.

Due to the nightlies, I can quickly see if a bug has been addressed in master.  I've closed a couple of bugs recently with "worksforme" that way.

I also use it to quickly try ideas when I'm out waiting somewhere, or just when an idea occurs to me.

It is such a great resource.  Thanks to those who put their time into it.

Mike
« First   ‹ Prev
1 2 3 4