Re: When compiling multiple source files

2013-08-20 Thread Jacob Carlborg
On 2013-08-20 00:27, ProgrammingGhost wrote: Is it possible that if I just try to compile 1 file it could imports enough libraries that import/need the definitions for additional large libraries which in turn also imports everything causing ram issues? I'm sure in practice this will almost

Re: When compiling multiple source files

2013-08-20 Thread Jacob Carlborg
On 2013-08-20 00:27, ProgrammingGhost wrote: Is it possible that if I just try to compile 1 file it could imports enough libraries that import/need the definitions for additional large libraries which in turn also imports everything causing ram issues? I'm sure in practice this will almost

Re: When compiling multiple source files

2013-08-20 Thread John Colvin
On Tuesday, 20 August 2013 at 06:50:12 UTC, Jacob Carlborg wrote: On 2013-08-20 00:27, ProgrammingGhost wrote: Is it possible that if I just try to compile 1 file it could imports enough libraries that import/need the definitions for additional large libraries which in turn also imports

Re: When compiling multiple source files

2013-08-20 Thread Jacob Carlborg
On 2013-08-20 12:45, John Colvin wrote: Hah, ram problems running the unittests. This old laptop can't even summon enough ram to compile phobos at all! Haha, that's bad. How much RAM do you have? -- /Jacob Carlborg

Re: When compiling multiple source files

2013-08-20 Thread John Colvin
On Tuesday, 20 August 2013 at 11:08:51 UTC, Jacob Carlborg wrote: On 2013-08-20 12:45, John Colvin wrote: Hah, ram problems running the unittests. This old laptop can't even summon enough ram to compile phobos at all! Haha, that's bad. How much RAM do you have? Only 2GB It can

Re: When compiling multiple source files

2013-08-20 Thread John Colvin
On Tuesday, 20 August 2013 at 13:30:11 UTC, Jacob Carlborg wrote: On 2013-08-20 13:21, John Colvin wrote: Only 2GB It can work... but I have to close everything else running first, otherwise it locks everything up and then crashes out complaining about not having enough memory to fork.

Re: When compiling multiple source files

2013-08-20 Thread Jacob Carlborg
On 2013-08-20 13:21, John Colvin wrote: Only 2GB It can work... but I have to close everything else running first, otherwise it locks everything up and then crashes out complaining about not having enough memory to fork. Hmm, I'm pretty sure I have compiled Phobos on my MacBook, which only

Re: When compiling multiple source files

2013-08-20 Thread Timon Gehr
On 08/20/2013 12:27 AM, ProgrammingGhost wrote: Is it possible that if I just try to compile 1 file it could imports enough libraries that import/need the definitions for additional large libraries which in turn also imports everything causing ram issues? I'm sure in practice this will almost

Re: When compiling multiple source files

2013-08-20 Thread Timon Gehr
On 08/20/2013 08:50 AM, Jacob Carlborg wrote: On 2013-08-20 00:27, ProgrammingGhost wrote: Is it possible that if I just try to compile 1 file it could imports enough libraries that import/need the definitions for additional large libraries which in turn also imports everything causing ram

Re: When compiling multiple source files

2013-08-20 Thread Jacob Carlborg
On 2013-08-20 15:35, Timon Gehr wrote: I was under the impression that this is a limitation of DMD and will be fixed, right? I think they (Walter, Don, possibly others) are working on it. CTFE apparently does unnecessary copying as well. -- /Jacob Carlborg

Re: When compiling multiple source files

2013-08-19 Thread Jacob Carlborg
On 2013-08-18 17:31, ProgrammingGhost wrote: How does the compiler do static typing of multiple source files? I heard D malloc memory and doesn't free to speed up compilation but I am guessing every instance doesn't compile just one source file? My question is if I have a function in this file

Re: When compiling multiple source files

2013-08-19 Thread ProgrammingGhost
On Monday, 19 August 2013 at 11:01:54 UTC, Jacob Carlborg wrote: The compiler will start compiling the files passed on the command line. It will read the files asynchronously and then lex, parse build an AST and do semantic analyze. When the semantic analyze is done it will have access to all

Re: When compiling multiple source files

2013-08-19 Thread John Colvin
On Monday, 19 August 2013 at 17:15:35 UTC, ProgrammingGhost wrote: On Monday, 19 August 2013 at 11:01:54 UTC, Jacob Carlborg wrote: The compiler will start compiling the files passed on the command line. It will read the files asynchronously and then lex, parse build an AST and do semantic

Re: When compiling multiple source files

2013-08-19 Thread ProgrammingGhost
On Monday, 19 August 2013 at 17:35:39 UTC, John Colvin wrote: On Monday, 19 August 2013 at 17:15:35 UTC, ProgrammingGhost wrote: On Monday, 19 August 2013 at 11:01:54 UTC, Jacob Carlborg wrote: The compiler will start compiling the files passed on the command line. It will read the files

When compiling multiple source files

2013-08-18 Thread ProgrammingGhost
How does the compiler do static typing of multiple source files? I heard D malloc memory and doesn't free to speed up compilation but I am guessing every instance doesn't compile just one source file? My question is if I have a function in this file and another in a different file what does the