January 28, 2015
On 1/28/15 10:46 AM, Benjamin Thaut wrote:
> Same goes for the update.sh, why can't it be a D program? (Requiering
> that Git is in the PATH or maybe searching some standard locations).

Presumably because D is not yet available. -- Andrei
January 28, 2015
Am 28.01.2015 um 18:10 schrieb weaselcat:
> On Wednesday, 28 January 2015 at 17:01:07 UTC, Benjamin Thaut wrote:
>> On Wednesday, 28 January 2015 at 16:18:18 UTC, Andrei Alexandrescu wrote:
>>> We have a really nice script:
>>>
>>> https://github.com/D-Programming-Language/tools/blob/master/update.sh
>>>
>>
>> And once again this only works for linux...
>> DMDs test framework is also a hell to use on Windows. It takes 5 times
>> as long to run on Windows compared to linux.
>
> Should work fine on any POSIX compliant system with zsh. Use cygwin?
> Not really surprising windows isn't well supported, it's not a
> developer's platform. Does msvc C even support C99 yet?

Microsoft does not have a offical C compiler. They only have a C++ compiler. And as a result they are also not supporting C99, they only support that part of C which is required by C++ and afaik C99 is not required by the C++ standard.

Also saying that Windows is not a developers plattform might be true for your field of computer sience, but where I work everyone is using windows exclusivly for development, and linux is more or less a optional platform.
January 28, 2015
Am 28.01.2015 um 19:52 schrieb Andrei Alexandrescu:
> On 1/28/15 10:46 AM, Benjamin Thaut wrote:
>> Same goes for the update.sh, why can't it be a D program? (Requiering
>> that Git is in the PATH or maybe searching some standard locations).
>
> Presumably because D is not yet available. -- Andrei

I think its safe to assume, that everyone who wants to start contributing to D has at least some D compiler installed before actually hacking druntime / phobos or dmd.
January 28, 2015
On 1/28/15 10:54 AM, Benjamin Thaut wrote:
> Am 28.01.2015 um 19:52 schrieb Andrei Alexandrescu:
>> On 1/28/15 10:46 AM, Benjamin Thaut wrote:
>>> Same goes for the update.sh, why can't it be a D program? (Requiering
>>> that Git is in the PATH or maybe searching some standard locations).
>>
>> Presumably because D is not yet available. -- Andrei
>
> I think its safe to assume, that everyone who wants to start
> contributing to D has at least some D compiler installed before actually
> hacking druntime / phobos or dmd.

Ionno, I very much like the "I have nothing installed and I want to get my hands dirty". -- Andrei
January 28, 2015
On Wednesday, 28 January 2015 at 18:59:24 UTC, Andrei Alexandrescu wrote:
> Ionno, I very much like the "I have nothing installed and I want to get my hands dirty". -- Andrei

If only D had some way of... I'm not sure what the word is... I think it is "compiling" the source code into a form that can be run without a preexisting development environment.

I'm not sure it is even possible to run without getting the user to install a VM or something though. I've heard rumors that there's this thing called "native code" and even "static linking", whatever weird black magic that is, but I doubt D supports any of that either.

So yeah...



seriously just offer a binary download next to the source. Problem solved.
January 28, 2015
On Wed, Jan 28, 2015 at 10:59:26AM -0800, Andrei Alexandrescu via Digitalmars-d wrote:
> On 1/28/15 10:54 AM, Benjamin Thaut wrote:
> >Am 28.01.2015 um 19:52 schrieb Andrei Alexandrescu:
> >>On 1/28/15 10:46 AM, Benjamin Thaut wrote:
> >>>Same goes for the update.sh, why can't it be a D program? (Requiering that Git is in the PATH or maybe searching some standard locations).
> >>
> >>Presumably because D is not yet available. -- Andrei
> >
> >I think its safe to assume, that everyone who wants to start contributing to D has at least some D compiler installed before actually hacking druntime / phobos or dmd.
> 
> Ionno, I very much like the "I have nothing installed and I want to get my hands dirty". -- Andrei

That will no longer be an option once D becomes self-hosting (DDMD)...

OTOH, just ship the binary! :-P


T

-- 
MACINTOSH: Most Applications Crash, If Not, The Operating System Hangs
January 28, 2015
On Wednesday, 28 January 2015 at 16:18:18 UTC, Andrei Alexandrescu wrote:
> We have a really nice script:

The script overrides the dmd in the path. This does not get along well with binary installations or e.g. dvm. I was surprised to find $HOME/.dvm/compilers/dmd-2.066.1/linux/bin/dmd updated.
January 28, 2015
On Wednesday, 28 January 2015 at 17:05:48 UTC, Andrei Alexandrescu wrote:
> On 1/28/15 9:01 AM, Benjamin Thaut wrote:
>> On Wednesday, 28 January 2015 at 16:18:18 UTC, Andrei Alexandrescu wrote:
>>> We have a really nice script:
>>>
>>> https://github.com/D-Programming-Language/tools/blob/master/update.sh
>>>
>>
>> And once again this only works for linux...
>
> OSX too. What would be a good approach for Windows?

Use Digger? It gets all dependencies and works on all major platforms.

January 28, 2015
On 1/28/15 12:13 PM, "Ulrich =?UTF-8?B?S8O8dHRsZXIi?= <kuettler@gmail.com>" wrote:
> On Wednesday, 28 January 2015 at 16:18:18 UTC, Andrei Alexandrescu wrote:
>> We have a really nice script:
>
> The script overrides the dmd in the path. This does not get along well
> with binary installations or e.g. dvm. I was surprised to find
> $HOME/.dvm/compilers/dmd-2.066.1/linux/bin/dmd updated.

Yah I agree that's a bit harsh. PR to make it an option? -- Andrei
January 28, 2015
On Wednesday, 28 January 2015 at 18:59:24 UTC, Andrei Alexandrescu wrote:
> On 1/28/15 10:54 AM, Benjamin Thaut wrote:
>> Am 28.01.2015 um 19:52 schrieb Andrei Alexandrescu:
>>> On 1/28/15 10:46 AM, Benjamin Thaut wrote:
>>>> Same goes for the update.sh, why can't it be a D program? (Requiering
>>>> that Git is in the PATH or maybe searching some standard locations).
>>>
>>> Presumably because D is not yet available. -- Andrei
>>
>> I think its safe to assume, that everyone who wants to start
>> contributing to D has at least some D compiler installed before actually
>> hacking druntime / phobos or dmd.
>
> Ionno, I very much like the "I have nothing installed and I want to get my hands dirty". -- Andrei

Installing DMD is almost noop. OTOH, handling sh scripts is an oder of magnitude bigger problem (my subjective opinion).

Piotrek