Jump to page: 1 2
Thread overview
Release DUB 1.0.0
Jun 20, 2016
Sönke Ludwig
Jun 20, 2016
Craig Dillabaugh
Jun 20, 2016
Guillaume Piolat
Jun 20, 2016
Jacob Carlborg
Jun 20, 2016
Sönke Ludwig
Jun 21, 2016
Jacob Carlborg
Jun 20, 2016
Dechcaudron
Jun 20, 2016
Basile B.
Jun 22, 2016
Sönke Ludwig
Jun 23, 2016
Basile B.
Jun 24, 2016
Meta
Jun 24, 2016
Sönke Ludwig
Jun 21, 2016
wobbles
Jun 21, 2016
Saurabh Das
Jun 21, 2016
WhatMeWorry
Jun 22, 2016
gleb
Jun 22, 2016
Sönke Ludwig
June 20, 2016
I'm pleased to announce the release of the first stable version of the DUB package manager. Stable in this case means that the API, the command line interface and the package recipe format will only receive fully backwards compatible changes and additions for a while.

This release also adds support for single-file packages, which can be used for conveniently writing small scripts and applications. It supports a shebang line, so that directly executing the script on Posix systems also works (using "chmod +x"):

    #!/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!()));
    }

Instead of a separate file, the contents of the package recipe file go into a specially formatted comment within the source code itself. The comment must be the first token in the D file (apart from the optional shebang line) and must be of the form /+ dub.(json/sdl): ... +/ where "..." is a place holder for the actual recipe contents.

The main (high-level) priority for the upcoming versions will be adding C family language build support (starting with C/C++ and ObjC). There is a draft for how such support might look like, for anyone interested in discussing this in prior: https://github.com/dlang/dub/wiki/DEP5

BTW, we now have almost 800 public packages in the registry, covering more and more application areas. The growth is not exponential, but very steady.

Full change log:
https://github.com/D-Programming-Language/dub/blob/master/CHANGELOG.md

Download:
http://code.dlang.org/download
June 20, 2016
On Monday, 20 June 2016 at 15:52:46 UTC, Sönke Ludwig wrote:
> I'm pleased to announce the release of the first stable version of the DUB package manager. Stable in this case means that the API, the command line interface and the package recipe format will only receive fully backwards compatible changes and additions for a while.
>
> [...]

Congratulations on the 1.0.0 release, and thanks for providing this tool to the community.
June 20, 2016
On Monday, 20 June 2016 at 15:52:46 UTC, Sönke Ludwig wrote:
> I'm pleased to announce the release of the first stable version of the DUB package manager.

Congrats! Can't wait to see DUB bundled with DMD.
June 20, 2016
On 2016-06-20 17:52, Sönke Ludwig wrote:
> I'm pleased to announce the release of the first stable version of the
> DUB package manager. Stable in this case means that the API, the command
> line interface and the package recipe format will only receive fully
> backwards compatible changes and additions for a while.

Great work :)

> The main (high-level) priority for the upcoming versions will be adding
> C family language build support (starting with C/C++ and ObjC). There is
> a draft for how such support might look like, for anyone interested in
> discussing this in prior: https://github.com/dlang/dub/wiki/DEP5

The DEP explicitly mentions Objective-C as not part of the DEP. But above you're mentioning Objective-C?

It should be just as easy to support Objective-C and Objective-C++ as well from the perspective of the tool. For Objective-C it's basically the C compiler but with .m files and for Objective-C++ it's the C++ compiler but with .mm files.

-- 
/Jacob Carlborg
June 20, 2016
Am 20.06.2016 um 21:11 schrieb Jacob Carlborg:
> On 2016-06-20 17:52, Sönke Ludwig wrote:
>> I'm pleased to announce the release of the first stable version of the
>> DUB package manager. Stable in this case means that the API, the command
>> line interface and the package recipe format will only receive fully
>> backwards compatible changes and additions for a while.
>
> Great work :)
>
>> The main (high-level) priority for the upcoming versions will be adding
>> C family language build support (starting with C/C++ and ObjC). There is
>> a draft for how such support might look like, for anyone interested in
>> discussing this in prior: https://github.com/dlang/dub/wiki/DEP5
>
> The DEP explicitly mentions Objective-C as not part of the DEP. But
> above you're mentioning Objective-C?
>
> It should be just as easy to support Objective-C and Objective-C++ as
> well from the perspective of the tool. For Objective-C it's basically
> the C compiler but with .m files and for Objective-C++ it's the C++
> compiler but with .mm files.
>

I mostly just wanted to keep the DEP small and focused, but adding Objective-C/C++ is indeed trivial once C/C++ is there (modulo some small additional features).
June 20, 2016
On Monday, 20 June 2016 at 15:52:46 UTC, Sönke Ludwig wrote:
> I'm pleased to announce the release of the first stable version of the DUB package manager.

Congratulations and thank you from all of us! DUB is amazing!!!


June 20, 2016
On Monday, 20 June 2016 at 15:52:46 UTC, Sönke Ludwig wrote:
> [...]
> This release also adds support for single-file packages, which can be used for conveniently writing small scripts and applications. It supports a shebang line, so that directly executing the script on Posix systems also works (using "chmod +x"):
>
>     #!/usr/bin/env dub
>     /+ dub.sdl:
>         name "colortest"
>         dependency "color" version="~>0.0.3"
>     +/


You should add a system to support example files, without dependency. For example in a static library, something that would indicate that the package in which the file resides is itself a dependency but don't have to be downloaded:


package
    examples
        ex1.d
        ex2.d
    source
        package
            src1.d

ex1.d
     /+ dub.sdl:
         name "package"
         dependency "this"  (or dependency "../..")
     +/


from ex1 you should be able to locate the package by using .dirName until a dub.json is found. Maybe that if the dep value is a relative path that leads to a description this works too.
June 21, 2016
On 2016-06-20 21:28, Sönke Ludwig wrote:

 I mostly just wanted to keep the DEP small and focused, but adding
> Objective-C/C++ is indeed trivial once C/C++ is there (modulo some small
> additional features).

Ok, cool.

-- 
/Jacob Carlborg
June 21, 2016
On Monday, 20 June 2016 at 19:45:29 UTC, Dechcaudron wrote:
> On Monday, 20 June 2016 at 15:52:46 UTC, Sönke Ludwig wrote:
>> I'm pleased to announce the release of the first stable version of the DUB package manager.
>
> Congratulations and thank you from all of us! DUB is amazing!!!

Me too :-)!
June 21, 2016
On Monday, 20 June 2016 at 15:52:46 UTC, Sönke Ludwig wrote:
> I'm pleased to announce the release of the first stable version of the DUB package manager. Stable in this case means that the API, the command line interface and the package recipe format will only receive fully backwards compatible changes and additions for a while.
>
> [...]

Congrats - this is great stuff!
« First   ‹ Prev
1 2