November 10, 2015
On Monday, 9 November 2015 at 23:15:56 UTC, Dicebot wrote:
>
> - teaches people `curl X | sh` is fine and normal and not security abomination

There is even a tumblr for that :)
http://curlpipesh.tumblr.com/
November 10, 2015
On 11/10/15 7:50 AM, Jacob Carlborg wrote:
> On 2015-11-10 00:07, Andrei Alexandrescu wrote:
>> Rust has a nice way to download at
>> https://www.rust-lang.org/downloads.html for Posix:
>>
>> $ curl -sSf https://static.rust-lang.org/rustup.sh | sh -s --
>>
>> The method is simple and transparent. An optional --channel=beta or
>> --channel=nightly parameter chooses between a stable release (default),
>> beta, or nightly build.
>>
>> Should we do something similar?
>
> A bit long but this will install DVM [1] and the latest compiler:
>
> curl -L -o dvm
> https://github.com/jacob-carlborg/dvm/releases/download/v0.4.4/dvm-0.4.4-osx
> && chmod +x dvm && ./dvm install dvm && source ~/.dvm/scripts/dvm && dvm
> install -l
>
> And on Windows (with Power Shell) :
>
> powershell -Command "Invoke-WebRequest
> https://github.com/jacob-carlborg/dvm/releases/download/v0.4.4/dvm-0.4.4-win.exe
> -OutFile dvm.exe" && dvm install dvm && dvm install -l
>
> Links to other platforms are available here [1].
>
> [1] https://github.com/jacob-carlborg/dvm
>

I've been using dvm, and do like it a lot. But I couple issues:

1. Every time I type dvm use, my path adds another directory. Couldn't you just replace the existing dvm path?
2. Every incorrect command given to dvm results in a stack trace.

Otherwise, I thoroughly enjoy being able to switch/install compiler versions on a whim.

-Steve
November 10, 2015
On 10.11.2015 14:12, Márcio Martins wrote:
> Could then combine this with OS detection through user-agent on the
> website and show the user the most likely option and command-line
> suggestion.

Relevant PR that detects the OS and adds a direct download link to the right file to the homepage:
https://github.com/D-Programming-Language/dlang.org/pull/1139

> Another thing I would do is not show LDC and GDC in the front page but
> have a "other options" sort of thing. People are afraid to fail and each
> decision is a potential failure that will scare new people off. The idea
> is that people that already use D know where to find the other compilers
> and more importantly what they are, but someone that does not use D
> might get intimidated by too many choices they don't have the knowledge
> to make confidently.

Exactly.
November 10, 2015
On 2015-11-10 17:56, Steven Schveighoffer wrote:

> I've been using dvm, and do like it a lot. But I couple issues:
>
> 1. Every time I type dvm use, my path adds another directory. Couldn't
> you just replace the existing dvm path?

I guess. It was just easier this way.

> 2. Every incorrect command given to dvm results in a stack trace.

Same thing here, laziness.

It's best to report issues to github. Pull requests wouldn't hurt either ;)

> Otherwise, I thoroughly enjoy being able to switch/install compiler
> versions on a whim.

Cool, thanks :)

-- 
/Jacob Carlborg
November 10, 2015
On 11/10/15 1:52 PM, Jacob Carlborg wrote:
> On 2015-11-10 17:56, Steven Schveighoffer wrote:
>
>> I've been using dvm, and do like it a lot. But I couple issues:
>>
>> 1. Every time I type dvm use, my path adds another directory. Couldn't
>> you just replace the existing dvm path?
>
> I guess. It was just easier this way.
>
>> 2. Every incorrect command given to dvm results in a stack trace.
>
> Same thing here, laziness.
>
> It's best to report issues to github. Pull requests wouldn't hurt either ;)

will do the first, and the second if I have time ;)

Though I don't know if I could go back to using tango. Perhaps for a minor bugfix such as this...

-Steve
November 10, 2015
On 2015-11-10 20:00, Steven Schveighoffer wrote:

> Though I don't know if I could go back to using tango. Perhaps for a
> minor bugfix such as this...

You're free to use Phobos if you prefer. I've started to modernized the code in a few places when I fixed some bug.

-- 
/Jacob Carlborg
November 10, 2015
On Tuesday, 10 November 2015 at 16:56:50 UTC, Steven Schveighoffer wrote:
>
> I've been using dvm, and do like it a lot. But I couple issues:
>
> 1. Every time I type dvm use, my path adds another directory. Couldn't you just replace the existing dvm path?
> 2. Every incorrect command given to dvm results in a stack trace.
>
> Otherwise, I thoroughly enjoy being able to switch/install compiler versions on a whim.
>
> -Steve

I too use dvm all the time and I wonder, if we could integrate it with dub one day and extend it to cater for LDC and GDC as well. In fact, without dvm life would be a lot harder and I think it's high time it became part of an official D toolchain alongside dub.
November 10, 2015
On Tuesday, 10 November 2015 at 22:30:48 UTC, Chris wrote:
>
> I too use dvm all the time and I wonder, if we could integrate it with dub one day and extend it to cater for LDC and GDC as well. In fact, without dvm life would be a lot harder and I think it's high time it became part of an official D toolchain alongside dub.

We should bundle all the existing tools and maybe create a minimal GUI for it. We have dub, dvm, dscanner etc. If we bundle these apps, we can create a small but powerful toolchain.
November 10, 2015
On 11/10/2015 08:12 AM, Márcio Martins wrote:
> On Monday, 9 November 2015 at 23:07:57 UTC, Andrei Alexandrescu wrote:
>> Rust has a nice way to download at https://www.rust-lang.org/downloads.html for Posix:
>>
>> $ curl -sSf https://static.rust-lang.org/rustup.sh | sh -s --
>>
>> The method is simple and transparent. An optional --channel=beta or --channel=nightly parameter chooses between a stable release (default), beta, or nightly build.
>>
>> Should we do something similar?
>>
>>
>> Andrei
> 
> I also think curl | sh is bad, but the idea to have a quick no-brain "just works" installation is great. One good step would be providing packages for all major distros and providing a wget | pkginstall command which effectively does the same thing: wget DMD.deb && dpkg -i DMD.deb for Debian/Ubuntu
> 
> For example, newbies to Ubuntu might not even know what dpkg is so they will not know what to do with a .deb file since their world consists of apt-get mostly. Many people also don't know what x86 or x86_AMD64 stand for so yet another doubt in a potential downloaders mind.
> 
> Could then combine this with OS detection through user-agent on the website and show the user the most likely option and command-line suggestion.
> 
> Another thing I would do is not show LDC and GDC in the front page but have a "other options" sort of thing. People are afraid to fail and each decision is a potential failure that will scare new people off. The idea is that people that already use D know where to find the other compilers and more importantly what they are, but someone that does not use D might get intimidated by too many choices they don't have the knowledge to make confidently.
> 
> If in doubt, A/B test it. :)

Debian-based systems have d-apt, though it's hosted on SourceForge, which is (IMO) rather sketchy as of late. It's quite easy to create something similar for RPM-based repositories - I set one up on my local server, if I get some blessing I can post it here or work with others to get it migrated to a more official D server. (Preferably soon, I'll lose access to my wonderful upload speeds in a few months). I actually don't even install the RPM directly anymore, I update the repository on my server then just run `sudo dnf update` like I would for any other update.
This doesn't handle every distro and OS, but it can help if we get things more convenient to install.

-- 
Matt Soucy
http://msoucy.me/



November 11, 2015
On 2015-11-10 23:30, Chris wrote:

> I too use dvm all the time and I wonder, if we could integrate it with
> dub one day and extend it to cater for LDC and GDC as well. In fact,
> without dvm life would be a lot harder and I think it's high time it
> became part of an official D toolchain alongside dub.

The issue is that they (the core developers) don't want Tango in any of the core tools and I don't feel like replacing Tango with Phobos for something that is working perfectly fine as it is. It's even working better, because it doesn't depend on libcurl which has caused a lot of problems. It's not even available by default on Windows.

On the other hand. I would like to rewrite DVM from scratch and add support for LDC and GDC as well. That could be an opportunity to remove that dependency on Tango, as long as no new dependencies are added, like libcurl.

-- 
/Jacob Carlborg