Thread overview | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
June 07, 2016 Beta release DUB 1.0.0-beta.1 | ||||
---|---|---|---|---|
| ||||
DUB 1.0.0 is nearing completion. The new feature over 0.9.25 is support for single-file packages, which can be used to write shebang-style scripts on Posix systems: #!/usr/bin/env dub /++ dub.sdl: name "colortest" dependency "color" version="~>0.0.3" +/ void main() { import std.stdio : writefln; import std.experimental.color.conv; import std.experimental.color.hsx; import std.experimental.color.rgb; auto yellow = RGB!("rgb", float)(1.0, 1.0, 0.0); writefln("Yellow in HSV: %s", yellow.convertColor!(HSV!())); } With "chmod +x" it can then simply be run as ./colortest.d. Apart from that, the release contains some bug fixes, most notably it doesn't query the registry for each build any more. Full change log: https://github.com/D-Programming-Language/dub/blob/master/CHANGELOG.md Download (Latest Preview): http://code.dlang.org/download |
June 07, 2016 Re: Beta release DUB 1.0.0-beta.1 | ||||
---|---|---|---|---|
| ||||
Posted in reply to Sönke Ludwig | On Tuesday, 7 June 2016 at 09:54:19 UTC, Sönke Ludwig wrote:
> DUB 1.0.0 is nearing completion. The new feature over 0.9.25 is support for single-file packages, which can be used to write shebang-style scripts on Posix systems:
>
> #!/usr/bin/env dub
> /++ dub.sdl:
> name "colortest"
> dependency "color" version="~>0.0.3"
> +/
>
I love that as a feature! Thanks for adding that.
|
June 07, 2016 Re: Beta release DUB 1.0.0-beta.1 | ||||
---|---|---|---|---|
| ||||
Posted in reply to Sönke Ludwig | On Tuesday, 7 June 2016 at 09:54:19 UTC, Sönke Ludwig wrote:
> DUB 1.0.0 is nearing completion. The new feature over 0.9.25 is support for single-file packages, which can be used to write shebang-style scripts on Posix systems:
>
> [...]
This is great - very nice feature.
That was one of the things I missed most when moving from rdmd to dub - so good to see it back!
|
June 07, 2016 Re: Beta release DUB 1.0.0-beta.1 | ||||
---|---|---|---|---|
| ||||
Posted in reply to Sönke Ludwig | On Tuesday, 7 June 2016 at 09:54:19 UTC, Sönke Ludwig wrote:
> DUB 1.0.0 is nearing completion. The new feature over 0.9.25 is support for single-file packages, which can be used to write shebang-style scripts on Posix systems:
>
> #!/usr/bin/env dub
> /++ dub.sdl:
> name "colortest"
> dependency "color" version="~>0.0.3"
> +/
>
> void main()
> {
> import std.stdio : writefln;
> import std.experimental.color.conv;
> import std.experimental.color.hsx;
> import std.experimental.color.rgb;
>
> auto yellow = RGB!("rgb", float)(1.0, 1.0, 0.0);
> writefln("Yellow in HSV: %s", yellow.convertColor!(HSV!()));
> }
>
> With "chmod +x" it can then simply be run as ./colortest.d.
>
> Apart from that, the release contains some bug fixes, most notably it doesn't query the registry for each build any more.
>
> Full change log:
> https://github.com/D-Programming-Language/dub/blob/master/CHANGELOG.md
>
> Download (Latest Preview):
> http://code.dlang.org/download
YES!
|
June 07, 2016 Re: Beta release DUB 1.0.0-beta.1 | ||||
---|---|---|---|---|
| ||||
Posted in reply to Sönke Ludwig | On Tuesday, 7 June 2016 at 09:54:19 UTC, Sönke Ludwig wrote:
> DUB 1.0.0 is nearing completion. The new feature over 0.9.25 is support for single-file packages, which can be used to write shebang-style scripts on Posix systems:
>
> #!/usr/bin/env dub
> /++ dub.sdl:
> name "colortest"
> dependency "color" version="~>0.0.3"
> +/
Hmm... `/++` is for DDoc. Is this a good idea? Does it matter?
|
June 07, 2016 Re: Beta release DUB 1.0.0-beta.1 | ||||
---|---|---|---|---|
| ||||
Posted in reply to Marc Schütz | Am 07.06.2016 um 13:09 schrieb Marc Schütz:
> On Tuesday, 7 June 2016 at 09:54:19 UTC, Sönke Ludwig wrote:
>> DUB 1.0.0 is nearing completion. The new feature over 0.9.25 is
>> support for single-file packages, which can be used to write
>> shebang-style scripts on Posix systems:
>>
>> #!/usr/bin/env dub
>> /++ dub.sdl:
>> name "colortest"
>> dependency "color" version="~>0.0.3"
>> +/
>
> Hmm... `/++` is for DDoc. Is this a good idea? Does it matter?
Oh, I typed that by accident, should be /+ dub.sdl: ... +/
BTW, /+ dub.json: ... +/ is also possible, of course.
|
June 07, 2016 Re: Beta release DUB 1.0.0-beta.1 | ||||
---|---|---|---|---|
| ||||
Posted in reply to Sönke Ludwig | On Tuesday, 7 June 2016 at 09:54:19 UTC, Sönke Ludwig wrote:
>
> #!/usr/bin/env dub
> /++ dub.sdl:
> name "colortest"
> dependency "color" version="~>0.0.3"
> +/
>
this is exactly what i could make good use of for my scripting stuff. thank you for implementing
|
June 07, 2016 Re: Beta release DUB 1.0.0-beta.1 | ||||
---|---|---|---|---|
| ||||
Posted in reply to Sönke Ludwig | On Tuesday, 7 June 2016 at 09:54:19 UTC, Sönke Ludwig wrote:
> DUB 1.0.0 is nearing completion. The new feature over 0.9.25 is support for single-file packages
So nice. Thanks so much!
This is great for solutions to project euler problems!
|
June 07, 2016 Re: Beta release DUB 1.0.0-beta.1 | ||||
---|---|---|---|---|
| ||||
Posted in reply to Sönke Ludwig | On 2016-06-07 13:22, Sönke Ludwig wrote: > Oh, I typed that by accident, should be /+ dub.sdl: ... +/ > BTW, /+ dub.json: ... +/ is also possible, of course. Does it work with all kind of comments D supports? -- /Jacob Carlborg |
June 07, 2016 Re: Beta release DUB 1.0.0-beta.1 | ||||
---|---|---|---|---|
| ||||
Posted in reply to Sönke Ludwig Attachments:
| On 07 Jun 2016 11:56, "Sönke Ludwig" <digitalmars-d-announce@puremagic.com> wrote: > > DUB 1.0.0 is nearing completion. The new feature over 0.9.25 is support for single-file packages, which can be used to write shebang-style scripts on Posix systems: > > #!/usr/bin/env dub > /++ dub.sdl: > name "colortest" > dependency "color" version="~>0.0.3" > +/ > > void main() > { > import std.stdio : writefln; > import std.experimental.color.conv; > import std.experimental.color.hsx; > import std.experimental.color.rgb; > > auto yellow = RGB!("rgb", float)(1.0, 1.0, 0.0); > writefln("Yellow in HSV: %s", yellow.convertColor!(HSV!())); > } > > With "chmod +x" it can then simply be run as ./colortest.d. > > Apart from that, the release contains some bug fixes, most notably it doesn't query the registry for each build any more. > > Full change log: https://github.com/D-Programming-Language/dub/blob/master/CHANGELOG.md > > Download (Latest Preview): > http://code.dlang.org/download Awesome! Now we can do quick vibe test snippets without having to make a dub project. |
Copyright © 1999-2021 by the D Language Foundation