Re: Linking large D programms

2010-05-01 Thread Torsten Sommerfeld
Thank you for your answers. I have really managed to improve the linking speed: First I have tried to use the GOLD linker. Because I am using ubuntu, the package was available in the sources. But now, because I do not know the binutils and I could not find a useful documentation I do not know if

Re: Improving Compiler Error Messages

2010-05-01 Thread Ellery Newcomer
On 05/01/2010 11:09 PM, Ellery Newcomer wrote: (I'd be enjoying this feature more, except dmd is segfaulting on me for some odd reason) Downs, your ctfe code sucks.

Re: Improving Compiler Error Messages

2010-05-01 Thread Walter Bright
Nathan Tuggy wrote: Anyone done experiments on the effectiveness of this approach in C-family languages? Yes, it's done in Javascript. It doesn't work very well.

Re: Improving Compiler Error Messages

2010-05-01 Thread Nathan Tuggy
On 2010-05-01 21:31, Ary Borenszweig wrote: Ary Borenszweig wrote: Walter Bright wrote: http://www.drdobbs.com/blog/archives/2010/05/improving_compi.html The next dmd update is getting the fruits of this. So cool! About the semicolon redundancy: it has been discussed a lot of times in this

Re: Improving Compiler Error Messages

2010-05-01 Thread Nick Sabalausky
"Walter Bright" wrote in message news:hripl9$2ii...@digitalmars.com... > http://www.drdobbs.com/blog/archives/2010/05/improving_compi.html > > The next dmd update is getting the fruits of this. Very good article!

// See you there! //

2010-05-01 Thread Rick Trelles
(Sorry my news reader sent the response directly to Walter) > > It is a good idea, and at the top of every page there's a [Wiki] button > which leads to a unique wiki page for each page. OK, that wiki seems good for my proposal. I never paid attention to the buttons because I never thought they

// See you there! //

2010-05-01 Thread Rick Trelles
On 5/1/2010 1:11 PM, Walter Bright wrote: It is a good idea, and at the top of every page there's a [Wiki] button which leads to a unique wiki page for each page. OK, that wiki seems good for my proposal. I never paid attention to the buttons because I never thought they would direct to the s

Re: Improving Compiler Error Messages

2010-05-01 Thread Ary Borenszweig
Walter Bright wrote: http://www.drdobbs.com/blog/archives/2010/05/improving_compi.html The next dmd update is getting the fruits of this. So cool! About the semicolon redundancy: it has been discussed a lot of times in this newsgroup, but I started programming in ruby some time ago and I ca

Re: Improving Compiler Error Messages

2010-05-01 Thread Ary Borenszweig
Ary Borenszweig wrote: Walter Bright wrote: http://www.drdobbs.com/blog/archives/2010/05/improving_compi.html The next dmd update is getting the fruits of this. So cool! About the semicolon redundancy: it has been discussed a lot of times in this newsgroup, but I started programming in ruby

Re: // A great help for the best D, I think //

2010-05-01 Thread Nick Sabalausky
"Walter Bright" wrote in message news:hrioud$2h5...@digitalmars.com... > Nick Sabalausky wrote: >> Any site that nags people about JS, forces OpenID and makes heavy use of >> AJAX is a crappy site, period. > > I've tried to avoid having a site that was more than just plain html and > style shee

Re: Improving Compiler Error Messages

2010-05-01 Thread Ellery Newcomer
On 05/01/2010 09:56 PM, Walter Bright wrote: http://www.drdobbs.com/blog/archives/2010/05/improving_compi.html The next dmd update is getting the fruits of this. I've noticed that dmd is a lot more disciplined wrt error messages. Very Nice. (I'd be enjoying this feature more, except dmd is

Re: Improving Compiler Error Messages

2010-05-01 Thread Walter Bright
Adam D. Ruppe wrote: On Sat, May 01, 2010 at 07:56:42PM -0700, Walter Bright wrote: http://www.drdobbs.com/blog/archives/2010/05/improving_compi.html 1. quit on first error This certainly prevents any cascaded messages, and is adequate for a hobby compiler. Professional users expect much bet

Re: Improving Compiler Error Messages

2010-05-01 Thread Adam D. Ruppe
On Sat, May 01, 2010 at 07:56:42PM -0700, Walter Bright wrote: > http://www.drdobbs.com/blog/archives/2010/05/improving_compi.html > 1. quit on first error > This certainly prevents any cascaded messages, and is adequate for a hobby > compiler. Professional users expect much better. Am I strange

Improving Compiler Error Messages

2010-05-01 Thread Walter Bright
http://www.drdobbs.com/blog/archives/2010/05/improving_compi.html The next dmd update is getting the fruits of this.

Re: // A great help for the best D, I think //

2010-05-01 Thread Walter Bright
Nick Sabalausky wrote: Any site that nags people about JS, forces OpenID and makes heavy use of AJAX is a crappy site, period. I've tried to avoid having a site that was more than just plain html and style sheets.

Re: std.gregorian

2010-05-01 Thread Michel Fortin
On 2010-05-01 22:12:20 -0400, Michel Fortin said: http://michel.com/docs/d/mfr/time.d Sorry, mistyped the URL. The URL you should look at is: http://michelf.com/docs/d/mfr/time.d -- Michel Fortin michel.for...@michelf.com http://michelf.com/

Re: std.gregorian

2010-05-01 Thread Michel Fortin
On 2010-05-01 21:38:06 -0400, Andrei Alexandrescu said: I just committed a first draft of std.gregorian. The design and the code are copied from Jeff Garland's Boost date and time library. Once we get the library in shape and I discuss the matter with Jeff, I'll insert the proper attribution

Re: Tango & Phobos

2010-05-01 Thread Nick Sabalausky
"Nick Sabalausky" wrote in message news:hrgbo5$fv...@digitalmars.com... > "Walter Bright" wrote in message > news:hrgag4$cp...@digitalmars.com... >> Jason House wrote: >>> It is my understanding that several Tango developers no longer follow >>> digitalmars.D. I recommend posting to the Tango f

Re: // A great help for the best D, I think //

2010-05-01 Thread Nick Sabalausky
"Jesse Phillips" wrote in message news:hriama$1ou...@digitalmars.com... > Rick Trelles wrote: > >> It has occurred to me that a rather simple setup would help a lot in >> those respects: If someone just sets up a new bulletin board and turns >> every item in www.digitalmars.com/d/2.0, or at least

std.gregorian

2010-05-01 Thread Andrei Alexandrescu
I just committed a first draft of std.gregorian. The design and the code are copied from Jeff Garland's Boost date and time library. Once we get the library in shape and I discuss the matter with Jeff, I'll insert the proper attributions in the file. http://dsource.org/projects/phobos/browser/

Re: // A great help for the best D, I think //

2010-05-01 Thread Walter Bright
Lutger wrote: Yeah, it's in the 'ad zone' and has a somewhat different style than the rest of the site. So much for paying real money for those icons .

Re: // A great help for the best D, I think //

2010-05-01 Thread Lutger
Walter Bright wrote: > Ary Borenszweig wrote: >> Then a long text below that, the links on the left are at the same level >> as the title and the text. But the other links (wiki, search, etc.) are >> above all of that, so I don't see them. And as far as I remember, other >> people couldn't see the

Re: // A great help for the best D, I think //

2010-05-01 Thread Michel Fortin
On 2010-05-01 19:37:44 -0400, Walter Bright said: Ary Borenszweig wrote: Then a long text below that, the links on the left are at the same level as the title and the text. But the other links (wiki, search, etc.) are above all of that, so I don't see them. And as far as I remember, other pe

Re: // A great help for the best D, I think //

2010-05-01 Thread Mathias Laurenz Baumann
Ary Borenszweig wrote: Then a long text below that, the links on the left are at the same level as the title and the text. But the other links (wiki, search, etc.) are above all of that, so I don't see them. And as far as I remember, other people couldn't see them either. I wonder if it'

Re: // A great help for the best D, I think //

2010-05-01 Thread Walter Bright
Ary Borenszweig wrote: Then a long text below that, the links on the left are at the same level as the title and the text. But the other links (wiki, search, etc.) are above all of that, so I don't see them. And as far as I remember, other people couldn't see them either. I wonder if it's ad

Re: // A great help for the best D, I think //

2010-05-01 Thread Ary Borenszweig
Walter Bright wrote: Rick Trelles wrote: It has occurred to me that a rather simple setup would help a lot in those respects: If someone just sets up a new bulletin board and turns every item in www.digitalmars.com/d/2.0, or at least those in the language and library references, into topics, a

Re: sad

2010-05-01 Thread Walter Bright
another lurker wrote: Tango is dead effective today Let's turn down the voltage here, way down, please. Email is a classic medium for well-intentioned people to misunderstand each other. I've often discovered that differences via email melt away to nothing if we're in the same room having a

Re: // A great help for the best D, I think //

2010-05-01 Thread Jesse Phillips
Rick Trelles wrote: > It has occurred to me that a rather simple setup would help a lot in > those respects: If someone just sets up a new bulletin board and turns > every item in www.digitalmars.com/d/2.0, or at least those in the > language and library references, into topics, a huge benefici

Re: // A great help for the best D, I think //

2010-05-01 Thread Andrej Mitrovic
Great idea! I would also add, it could be beneficial if we kept a list of frequently asked questions at the end of each topic (the FAQ relevant to that topic only), which would link to answers found in the comments.

Re: Tango & Phobos

2010-05-01 Thread Nick Sabalausky
"Lars Ivar Douchegesund" wrote in message news:hri1n3$187...@digitalmars.com... > == Quote from Walter Bright (newshou...@digitalmars.com)'s article >> First off, I'm not a copyright lawyer, so my legal opinions are lay. >> Secondly, every time D gets mentioned publicly, such as on reddit, >> so

Re: Tango & Phobos

2010-05-01 Thread Lars Ivar Douchegesund
== Quote from Walter Bright (newshou...@digitalmars.com)'s article > First off, I'm not a copyright lawyer, so my legal opinions are lay. > Secondly, every time D gets mentioned publicly, such as on reddit, someone > posts > that they won't use D because there are "two standard libraries" and "whe

Re: Tango & Phobos

2010-05-01 Thread Bane
For those Tango programmers not willing to change their license: They are fucking programmer prima donnas. Tango should prune their work and continue on without them. Too much good work is at hold because of legal bombs they planted. Their contribution is clearly useless, even more, harmful. A

Re: Linking large D programms

2010-05-01 Thread Jérôme M. Berger
Torsten Sommerfeld wrote: > Hello, > > I have a problem creating executables from more than 100 d modules (under > linux). DMD compiles even 300 files in seconds but the linking step takes > several minutes. It is clear that the linker has do handle an enormous amount > of symbols so it needs the

Re: // A great help for the best D, I think //

2010-05-01 Thread Walter Bright
Rick Trelles wrote: It has occurred to me that a rather simple setup would help a lot in those respects: If someone just sets up a new bulletin board and turns every item in www.digitalmars.com/d/2.0, or at least those in the language and library references, into topics, a huge beneficial activ

// A great help for the best D, I think //

2010-05-01 Thread Rick Trelles
I have been coding in C for 24 years, with added C++ features for 18. Also have some background in mechanical design, technical writing and Math teaching (yes, in teaching) too. Unfortunately I'm no outstanding expert, but one or two things I know. I learned about D only two weeks ago. D is a

Re: The BSD license problem and a trivial solution

2010-05-01 Thread Bane
> 1) Add a handler for "--printLicenses" in extern(C) int main. This ensures > the text can always be printed. > 1.1) Make sure to call checkLicenses beforehand! > 2) Public import addLicense and registerFile in object.d > 3, optional) Extend the module statement so that `module foo under GPLv2; `

Re: Tango & Phobos

2010-05-01 Thread Gurney Halleck
== Quote from Walter Bright (newshou...@digitalmars.com)'s article > I received a call from the Tango representative yesterday saying that some > developers expressed concern that SHOO's time library proposed submission to > Phobos may have an "infraction" of the Tango BSD license. The word > "infr

Re: The BSD license problem and a trivial solution

2010-05-01 Thread Andrej Mitrovic
bearophile Wrote: > FeepingCreature: > > > Somebody on IRC mentioned that BSD requires including the license with > > binaries. So .. is there any reason this won't work? > > Or support for the code licences management can be added to the D syntax ;-) > > Bye, > bearophile from __future__ imp

Re: Linking large D programms

2010-05-01 Thread Walter Bright
Robert Clipsham wrote: I hear GOLD is destined to replace ld, and is supposedly far faster. Your distro might have a repository for it, if not you'll have to compile it from source. It might also be worth profiling (go)ld while it's linking, and seeing where it's spending the most time. If it's

Re: The BSD license problem and a trivial solution

2010-05-01 Thread FeepingCreature
On 01.05.2010 14:33, bearophile wrote: > FeepingCreature: > >> Somebody on IRC mentioned that BSD requires including the license with >> binaries. So .. is there any reason this won't work? > > Or support for the code licences management can be added to the D syntax ;-) > > Bye, > bearophile I

Re: The BSD license problem and a trivial solution

2010-05-01 Thread bearophile
FeepingCreature: > Somebody on IRC mentioned that BSD requires including the license with > binaries. So .. is there any reason this won't work? Or support for the code licences management can be added to the D syntax ;-) Bye, bearophile

The BSD license problem and a trivial solution

2010-05-01 Thread FeepingCreature
Somebody on IRC mentioned that BSD requires including the license with binaries. So .. is there any reason this won't work? (Bewarned: code is D1 and not tested) --std/licenses.d-- module std.licenses; // License handling on a per-file basis import std.stdio, std.string; string[string] license

Re: Linking large D programms

2010-05-01 Thread Robert Clipsham
On 01/05/10 09:48, Torsten Sommerfeld wrote: Hello, I have a problem creating executables from more than 100 d modules (under linux). DMD compiles even 300 files in seconds but the linking step takes several minutes. It is clear that the linker has do handle an enormous amount of symbols so it n

Re: Tango & Phobos

2010-05-01 Thread Robert Clipsham
On 30/04/10 23:57, Walter Bright wrote: 2. Tango having 2 licenses for different parts will confuse people. Actually, it would be 3 licenses, as tango is currently dual-licensed. 4. There were some other unspecified reservations. I believe one of these was that gradually transitioning to bo

Linking large D programms

2010-05-01 Thread Torsten Sommerfeld
Hello, I have a problem creating executables from more than 100 d modules (under linux). DMD compiles even 300 files in seconds but the linking step takes several minutes. It is clear that the linker has do handle an enormous amount of symbols so it needs the time. However it is hardly acceptable