Re: Newsgroups, off-topic

2010-04-16 Thread Ellery Newcomer
On 04/16/2010 03:13 PM, eles wrote: PS2 What does really means to use LLVM or GCC backends for dmd? Is a front-end somewhat like a parser (or bytecode compiler) and the back-end something like an assembler? Pretty much. Except in the case of D, the front end also requires a backend of sorts

Re: Newsgroups, off-topic

2010-04-16 Thread eles
Thank you for your answer. I hope to see std.complex integrated in the next release of dmd. I am mainly interested in scientific (i.e. numerical) computations, so a good numerical library (GSL, Lapack etc.) would be welcome in D. I like the std.algorithm, though. Eles PS Thanks to everybody for

Re: Newsgroups, off-topic

2010-04-16 Thread Moritz Warning
On Fri, 16 Apr 2010 17:28:36 +0200, Joseph Wakeling wrote: > Lars T. Kyllingstad wrote: >> The D2 language, which has so far been the "experimental branch" of D >> and as such has been a rapidly moving target, is in its final stages of >> completion. The specification has more or less been frozen

Re: Newsgroups, off-topic

2010-04-16 Thread Petru Avram
On Fri, 16 Apr 2010 16:26:00 +0300, eles wrote:> Hello,>> I just started using D (2.0). I have three or four questions:>> 1) How to use the newsgroup link (e.g. news://news.digitalmars.com/> digitalmars.D.learn) to read the newsgroup? Is the "news://" protocol > handled> by some program unde

Re: Newsgroups, off-topic

2010-04-16 Thread Joseph Wakeling
Lars T. Kyllingstad wrote: > The D2 language, which has so far been the "experimental branch" of D > and as such has been a rapidly moving target, is in its final stages of > completion. The specification has more or less been frozen, and > currently work is being done on bringing the DMD compiler

Re: Newsgroups, off-topic

2010-04-16 Thread Lars T. Kyllingstad
eles wrote: Hello, I just started using D (2.0). I have three or four questions: 1) How to use the newsgroup link (e.g. news://news.digitalmars.com/ digitalmars.D.learn) to read the newsgroup? Is the "news://"; protocol handled by some program under Linux (Ubuntu, 64)? I write this using the

Newsgroups, off-topic

2010-04-16 Thread eles
Hello, I just started using D (2.0). I have three or four questions: 1) How to use the newsgroup link (e.g. news://news.digitalmars.com/ digitalmars.D.learn) to read the newsgroup? Is the "news://"; protocol handled by some program under Linux (Ubuntu, 64)? I write this using the HTTP interface

Re: Code speed

2010-04-16 Thread Ary Borenszweig
Don wrote: Ary Borenszweig wrote: Don wrote: Ary Borenszweig wrote: Don wrote: Lars T. Kyllingstad wrote: Don wrote: bearophile wrote: So far I've just given a light reading of the code. Notes: - pow(x, 2) and sqrt(y) can be written as x ^^ 2 and y ^^ 0.5 (but you have to import std.mat

Re: Code speed

2010-04-16 Thread Ary Borenszweig
bearophile wrote: Ary Borenszweig: My point is, if you are going to pow, you will need std.math, so it'll always be a burden to import it by hand when using it. ^^ Can the automatic import happen only iff a module uses the ^^fp? Bye, bearophile That's what I'm asking for.

Re: Code speed (and back to the memory leaks...)

2010-04-16 Thread Joseph Wakeling
bearophile wrote: > You are right, sorry. No need to apologise! You helped me significantly improve my code, helped me understand D a lot better and left me feeling generally very positive about developing further in D. I'd call that a result. :-) >> So I think it's probably just compiler diffe

Re: Code speed

2010-04-16 Thread Don
Ary Borenszweig wrote: Don wrote: Ary Borenszweig wrote: Don wrote: Lars T. Kyllingstad wrote: Don wrote: bearophile wrote: So far I've just given a light reading of the code. Notes: - pow(x, 2) and sqrt(y) can be written as x ^^ 2 and y ^^ 0.5 (but you have to import std.math anyway, be