View mode: basic / threaded / horizontal-split · Log in · Help
December 27, 2011
Re: A nice way to step into 2012
On Tue, 27 Dec 2011 20:11:41 +0200, Walter Bright  
<newshound2@digitalmars.com> wrote:

> On 12/27/2011 7:11 AM, Andrei Alexandrescu wrote:
>> Imagine how bitter I am that the string lambda syntax didn't catch on!
>
> As I told Andrei last night, I think it was a great experiment. Sure, it  
> failed, but it was a great idea, technically sound, and the fact that it  
> worked is a testament to D's power.
>
> If we're not willing to try things like that, we've failed in a much  
> grander sense.
>
> So I have no regrets at all about that.

If C++ or Java (or what have you) had support for string as template  
parameters,
string lambdas probably would be irreplaceable to many.

|"a % 2"|
|a => a % 2|

Still it is shorter.
December 27, 2011
Re: compiling dmd
Am 27.12.2011 19:09, schrieb Andrei Alexandrescu:
> On 12/27/11 12:03 PM, Walter Bright wrote:
>> On 12/27/2011 9:40 AM, Andrei Alexandrescu wrote:
>>> On 12/27/11 10:50 AM, Trass3r wrote:
>>>> But even the dmd source itself has to be rebuilt every time if you
>>>> don't
>>>> want strange errors and that's C++.
>>>>
>>>> I don't even know if it's a laughing matter or not.
>>>
>>> I think it's a makefile matter.
>>
>> The makefile for dmd doesn't have the dependencies on .h files set up
>> properly. If a .h file is changed, the thing to do is make clean and
>> then build.
>>
>> (Even when I do set up the .h file dependencies right, bit rot creeps in
>> and wastes my time trying to figure out what went wrong. I just make
>> clean and rebuild.)
>
> Problem is lack of automation (in this case makdepend). As usual, I have
> an optimistic view on the help that automation can bring to our project.
>
> Andrei

ok, after a clean/rebuild it works. my fault, sorry ...
December 27, 2011
Re: A nice way to step into 2012
On 12/27/2011 11:50 AM, so wrote:
> If C++ or Java (or what have you) had support for string as template parameters,
> string lambdas probably would be irreplaceable to many.
>
> |"a % 2"|
> |a => a % 2|
>
> Still it is shorter.

I know.

Unfortunately, the C/C++ text preprocessor has left such a bad taste in peoples' 
mouths that anything even remotely suggestive of it has an "ick" factor that it 
is hard to get past.
December 27, 2011
Re: compiling dmd
On 12/27/2011 10:09 AM, Andrei Alexandrescu wrote:
> Problem is lack of automation (in this case makdepend).

I've used makedepend before. (I even wrote one!) It just never caught on.

> As usual, I have an
> optimistic view on the help that automation can bring to our project.

All my build scripts start with make clean. Having make clean work right is 
something I do make an effort towards.
December 27, 2011
Re: compiling dmd
On 12/27/11 2:10 PM, Walter Bright wrote:
> On 12/27/2011 10:09 AM, Andrei Alexandrescu wrote:
>> Problem is lack of automation (in this case makdepend).
>
> I've used makedepend before. (I even wrote one!) It just never caught on.

It's improved a tone lately, particularly since gcc has built-in support 
for it. It all comes back to using Unix as your development environment.

>  > As usual, I have an
>  > optimistic view on the help that automation can bring to our project.
>
> All my build scripts start with make clean.

One good realization to make is how less efficient that makes you. You 
got used to that overhead so plentily, you consider it now par for the 
course.


Andrei
December 27, 2011
Re: A nice way to step into 2012
On 2011-12-27 05:25, Andrei Alexandrescu wrote:
> https://github.com/D-Programming-Language/dmd/commit/675898721c04d0bf155a85abf986eae99c37c0dc
>
>
> Andrei

Now that's very cool. Does it work for non-template arguments as well.

-- 
/Jacob Carlborg
December 27, 2011
Re: compiling dmd
On 12/27/2011 12:28 PM, Andrei Alexandrescu wrote:
> One good realization to make is how less efficient that makes you. You got used
> to that overhead so plentily, you consider it now par for the course.

What takes time is running the unittests, not compiling dmd.
December 27, 2011
Re: A nice way to step into 2012
On 2011-12-27 07:00, Long Chang wrote:
> Lambda very cooooool!
>
> I hope we can add shared lib support for linux&  freebsd in 2012.
>
>
> On 27 December 2011 12:25, Andrei Alexandrescu
> <SeeWebsiteForEmail@erdani.org>  wrote:
>> https://github.com/D-Programming-Language/dmd/commit/675898721c04d0bf155a85abf986eae99c37c0dc
>>
>> Andrei

And Mac OS X.

-- 
/Jacob Carlborg
December 27, 2011
Re: compiling dmd
On 12/27/11 2:38 PM, Walter Bright wrote:
> On 12/27/2011 12:28 PM, Andrei Alexandrescu wrote:
>> One good realization to make is how less efficient that makes you. You
>> got used
>> to that overhead so plentily, you consider it now par for the course.
>
> What takes time is running the unittests, not compiling dmd.

Then _that_ is what you consider par for the course! :o)

Andrei
December 27, 2011
Re: A nice way to step into 2012
On 12/27/11 2:38 PM, Jacob Carlborg wrote:
> On 2011-12-27 07:00, Long Chang wrote:
>> Lambda very cooooool!
>>
>> I hope we can add shared lib support for linux& freebsd in 2012.
>>
>>
>> On 27 December 2011 12:25, Andrei Alexandrescu
>> <SeeWebsiteForEmail@erdani.org> wrote:
>>> https://github.com/D-Programming-Language/dmd/commit/675898721c04d0bf155a85abf986eae99c37c0dc
>>>
>>>
>>> Andrei
>
> And Mac OS X.
>

Win64 comes to mind.

Andrei
1 2 3 4 5 6 7 8
Top | Discussion index | About this forum | D home