Re: Rust's simple download script

2015-11-21 Thread Jacob Carlborg via Digitalmars-d
On 2015-11-20 18:43, Martin Nowak wrote: Because we already have the code for Travis-CI and Heroku. DVM was already available before that ;) Also an intransparent binary is yet another hurdle trying to convince someone to try out D. Not sure how much difference that is compared to the othe

Re: Rust's simple download script

2015-11-20 Thread Martin Nowak via Digitalmars-d
On Thursday, 19 November 2015 at 07:58:52 UTC, Jacob Carlborg wrote: DVM already does all this. Why reinvent the wheel? Because we already have the code for Travis-CI and Heroku. Also an intransparent binary is yet another hurdle trying to convince someone to try out D. BTW, I hust tried to

Re: Rust's simple download script

2015-11-19 Thread Jacob Carlborg via Digitalmars-d
On 2015-11-11 11:24, Martin Nowak wrote: Yes, such an installer would be helpful and I already wrote it twice. https://github.com/travis-ci/travis-build/blob/master/lib/travis/build/script/d.rb https://github.com/MartinNowak/heroku-buildpack-d/blob/master/bin/compile This would be fairly simpl

Re: Rust's simple download script

2015-11-18 Thread Martin Nowak via Digitalmars-d
On Wednesday, 11 November 2015 at 10:26:09 UTC, Martin Nowak wrote: For the necessary env changes we could adopt something like virtualenv's activate/deactive, i.e. `source ~/.dlang/dmd-2.069.0/activate` to use dmd-2.069.0. And of course we can activate the env after the download. There is a

Re: Rust's simple download script

2015-11-14 Thread Paolo Invernizzi via Digitalmars-d
On Friday, 13 November 2015 at 21:30:35 UTC, Rory McGuire wrote: On Tue, Nov 10, 2015 at 6:56 PM, Steven Schveighoffer via Digitalmars-d < digitalmars-d@puremagic.com> wrote: To install a new compiler I just download the latest .tar.xz and place in /usr/local/dmd/; and then rename "dmd2" direc

Re: Rust's simple download script

2015-11-13 Thread Rory McGuire via Digitalmars-d
On Tue, Nov 10, 2015 at 6:56 PM, Steven Schveighoffer via Digitalmars-d < digitalmars-d@puremagic.com> 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

Re: Rust's simple download script

2015-11-11 Thread Jacob Carlborg via Digitalmars-d
On 2015-11-11 10:57, Chris wrote: I see, but if you're going to rewrite DVM anyway, we might as well start brainstorming now and see what needs to be done, how a possible toolchain integration could / should like and so on. Are there any additional features you or anyone else would like? I'm p

Re: Rust's simple download script

2015-11-11 Thread Martin Nowak via Digitalmars-d
On Wednesday, 11 November 2015 at 10:26:09 UTC, Martin Nowak wrote: Disclaimer: I did not just volunteer to write the script but I'm glad to help anyone doing so. Nice effect an installer script that makes working with tarballs a snap, would allows us to easily distribute nightlies. http://fo

Re: Rust's simple download script

2015-11-11 Thread Martin Nowak via Digitalmars-d
On 11/10/2015 12:07 AM, 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=night

Re: Rust's simple download script

2015-11-11 Thread Martin Nowak via Digitalmars-d
On 11/10/2015 02:12 PM, Márcio Martins wrote: > > 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

Re: Rust's simple download script

2015-11-11 Thread Chris via Digitalmars-d
On Wednesday, 11 November 2015 at 09:57:26 UTC, Chris wrote: I see, but if you're going to rewrite DVM anyway, we might as well start brainstorming now and see what needs to be done, how a possible toolchain integration could / should like and so on. Are there any additional features you or

Re: Rust's simple download script

2015-11-11 Thread Chris via Digitalmars-d
On Wednesday, 11 November 2015 at 09:48:14 UTC, Jacob Carlborg wrote: 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, bec

Re: Rust's simple download script

2015-11-11 Thread Jacob Carlborg via Digitalmars-d
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.

Re: Rust's simple download script

2015-11-10 Thread Matt Soucy via Digitalmars-d
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 i

Re: Rust's simple download script

2015-11-10 Thread Chris via Digitalmars-d
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 officia

Re: Rust's simple download script

2015-11-10 Thread Chris via Digitalmars-d
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 resul

Re: Rust's simple download script

2015-11-10 Thread Jacob Carlborg via Digitalmars-d
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

Re: Rust's simple download script

2015-11-10 Thread Steven Schveighoffer via Digitalmars-d
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 easi

Re: Rust's simple download script

2015-11-10 Thread Jacob Carlborg via Digitalmars-d
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 gi

Re: Rust's simple download script

2015-11-10 Thread anonymous via Digitalmars-d
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

Re: Rust's simple download script

2015-11-10 Thread Steven Schveighoffer via Digitalmars-d
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 --ch

Re: Rust's simple download script

2015-11-10 Thread ponce via Digitalmars-d
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/

Re: Rust's simple download script

2015-11-10 Thread Adam D. Ruppe via Digitalmars-d
On Tuesday, 10 November 2015 at 13:39:02 UTC, Márcio Martins wrote: Well, you already use D so obviously it works good enough for you. However, there might be a million people out there that would love D, but they don't even give it chance because they don't have the skill or the patience to fi

Re: Rust's simple download script

2015-11-10 Thread Adam D. Ruppe via Digitalmars-d
On Tuesday, 10 November 2015 at 14:53:54 UTC, qznc wrote: From sandstorm.io I know the trick to wrap everything into a function and call it in the end. An EOF will result in a syntax error then. yeah, I guess that combined with https (assuming the user hasn't disabled the annoying ssl checks

Re: Rust's simple download script

2015-11-10 Thread qznc via Digitalmars-d
On Tuesday, 10 November 2015 at 00:46:39 UTC, Adam D. Ruppe wrote: Not necessarily. At least a separate download gives you a chance to verify the download was completed too. Piping direct into shell could deliver an end-of-file in the middle of a file (e.g. in the case of a network error) which

Re: Rust's simple download script

2015-11-10 Thread Márcio Martins via Digitalmars-d
On Tuesday, 10 November 2015 at 04:43:18 UTC, Zekereth wrote: ... I agree completely. Please NO! What's wrong with the current system? It seems to work just fine for me. Well, you already use D so obviously it works good enough for you. However, there might be a million people out there that

Re: Rust's simple download script

2015-11-10 Thread Márcio Martins via Digitalmars-d
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 --cha

Re: Rust's simple download script

2015-11-10 Thread Jacob Carlborg via Digitalmars-d
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 ch

Re: Rust's simple download script

2015-11-09 Thread Zekereth via Digitalmars-d
On Tuesday, 10 November 2015 at 02:52:11 UTC, rcorre wrote: On Monday, 9 November 2015 at 23:13:03 UTC, H. S. Teoh wrote: ... though I have to admit that the idea of running a shell script downloaded from some random remote server (and that, as root, as otherwise it probably wouldn't work) scar

Re: Rust's simple download script

2015-11-09 Thread Brad Anderson via Digitalmars-d
On Monday, 9 November 2015 at 23:13:03 UTC, H. S. Teoh wrote: On Mon, Nov 09, 2015 at 06:07:57PM -0500, Andrei Alexandrescu via Digitalmars-d 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

Re: Rust's simple download script

2015-11-09 Thread rcorre via Digitalmars-d
On Monday, 9 November 2015 at 23:13:03 UTC, H. S. Teoh wrote: ... though I have to admit that the idea of running a shell script downloaded from some random remote server (and that, as root, as otherwise it probably wouldn't work) scares me. A lot. T They've already been called out for it:

Re: Rust's simple download script

2015-11-09 Thread Jack Stouffer via Digitalmars-d
On Tuesday, 10 November 2015 at 00:46:39 UTC, Adam D. Ruppe wrote: With a separate download you can at least verify the whole thing was there before running it. Not to mention checksumming it.

Re: Rust's simple download script

2015-11-09 Thread Andrei Alexandrescu via Digitalmars-d
On 11/09/2015 07:46 PM, Adam D. Ruppe wrote: On Tuesday, 10 November 2015 at 00:42:24 UTC, Andrei Alexandrescu wrote: Piping through less would be a natural first thing to do. Also, let's not forget that installing from the same site carries the same risks. -- Andrei Not necessarily. At least

Re: Rust's simple download script

2015-11-09 Thread Adam D. Ruppe via Digitalmars-d
On Tuesday, 10 November 2015 at 00:42:24 UTC, Andrei Alexandrescu wrote: Piping through less would be a natural first thing to do. Also, let's not forget that installing from the same site carries the same risks. -- Andrei Not necessarily. At least a separate download gives you a chance to ve

Re: Rust's simple download script

2015-11-09 Thread Andrei Alexandrescu via Digitalmars-d
On 11/09/2015 06:09 PM, H. S. Teoh via Digitalmars-d wrote: On Mon, Nov 09, 2015 at 06:07:57PM -0500, Andrei Alexandrescu via Digitalmars-d 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 -

Re: Rust's simple download script

2015-11-09 Thread Adam D. Ruppe via Digitalmars-d
On Monday, 9 November 2015 at 23:19:18 UTC, Vladimir Panteleev wrote: It doesn't have to be run as root, as it can just download and unpack a portable installation (essentially what we have in the zip files). when I suggested this to my newbie friend, she found the PATH problem to be a hassle

Re: Rust's simple download script

2015-11-09 Thread Adam D. Ruppe via Digitalmars-d
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 Well, to be fair, a LOT of users blindly copy/paste anyway... But that script is a whopping 1400 lines too. Yikes, I wouldn't run that just because it is t

Re: Rust's simple download script

2015-11-09 Thread Adam D. Ruppe via Digitalmars-d
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: I actually wrote one for a friend who was having a very hard time getting started: http://arsdnet.net/dcode/install-d.sh Please don't

Re: Rust's simple download script

2015-11-09 Thread Vladimir Panteleev via Digitalmars-d
On Monday, 9 November 2015 at 23:13:03 UTC, H. S. Teoh wrote: On Mon, Nov 09, 2015 at 06:07:57PM -0500, Andrei Alexandrescu via Digitalmars-d 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

Re: Rust's simple download script

2015-11-09 Thread Dicebot via Digitalmars-d
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 --cha

Re: Rust's simple download script

2015-11-09 Thread H. S. Teoh via Digitalmars-d
On Mon, Nov 09, 2015 at 06:07:57PM -0500, Andrei Alexandrescu via Digitalmars-d 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 optiona

Rust's simple download script

2015-11-09 Thread Andrei Alexandrescu via Digitalmars-d
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