www.digitalmars.com         C & C++   DMDScript  

digitalmars.D - LLVM 3.0 type system changes

reply filgood <filgood somewhere.net> writes:
as described here:

http://nondot.org/sabre/LLVMNotes/TypeSystemRewrite.txt

Btw, what is the status of the D2 LLVM compiler?

thx, fil
Mar 07 2011
next sibling parent reply David Nadlinger <see klickverbot.at> writes:
On 3/7/11 9:03 PM, filgood wrote:
 as described here:

 http://nondot.org/sabre/LLVMNotes/TypeSystemRewrite.txt

Naming the thread »LLVM 3.0 type system changes« is slightly misleading – the above document by Chris Lattner is merely a working draft… David
Mar 07 2011
parent filgood <filgood somewhere.net> writes:
On 07/03/2011 20:09, David Nadlinger wrote:
 On 3/7/11 9:03 PM, filgood wrote:
 as described here:

 http://nondot.org/sabre/LLVMNotes/TypeSystemRewrite.txt

Naming the thread »LLVM 3.0 type system changes« is slightly misleading – the above document by Chris Lattner is merely a working draft… David

sorry, should maybe have been <Potential LLVM 3.0 type system changes>. Anyway, I thougth it might have been of interest for this NG as there is a LLVM compiler for D2/D1. Further, I wanted to use the topic to see what the status on the LLVM compiler for D2 is.... thx, fil
Mar 07 2011
prev sibling next sibling parent reply Bernard Helyer <b.helyer gmail.com> writes:
On Mon, 07 Mar 2011 20:03:36 +0000, filgood wrote:

 as described here:
 
 http://nondot.org/sabre/LLVMNotes/TypeSystemRewrite.txt
 
 Btw, what is the status of the D2 LLVM compiler?

You're probably wondering about LDC2, but I'll chip in with SDC's ( https://github.com/bhelyer/SDC ) status here: On the road to some kind of 0.1, but a lot of work to be done -- it should land some time this year, however. Keeping current with DMD releases, current with LLVM releases.
Mar 07 2011
next sibling parent reply Bernard Helyer <b.helyer gmail.com> writes:
On Mon, 07 Mar 2011 20:41:39 -0600, Caligo wrote:
 Do we really need another D compiler that doesn't work?

Name me a working D2 compiler that doesn't have a front-end based based on DMD. Furthermore, name me an in progress independent implementation further along than SDC. The only candidate is Dil. SDC _will_ be finished, mark my words. Regards, Some one who remembers why they don't use the NG that much.
Mar 07 2011
next sibling parent reply Iain Buclaw <ibuclaw ubuntu.com> writes:
== Quote from Caligo (iteronvexor gmail.com)'s article
 --bcaec51a83ee693a30049df97ef8
 Content-Type: text/plain; charset=ISO-8859-1
 On Tue, Mar 8, 2011 at 12:29 AM, Bernard Helyer <b.helyer gmail.com> wrote:
 On Tue, 08 Mar 2011 00:15:54 -0600, Caligo wrote:

 On Mon, Mar 7, 2011 at 11:34 PM, Bernard Helyer <b.helyer gmail.com>
 wrote:

 On Mon, 07 Mar 2011 20:41:39 -0600, Caligo wrote:
 Do we really need another D compiler that doesn't work?

Name me a working D2 compiler that doesn't have a front-end based based on DMD. Furthermore, name me an in progress independent implementation further along than SDC. The only candidate is Dil. SDC _will_ be finished, mark my words. Regards, Some one who remembers why they don't use the NG that much.

Yes, I know about dil, but I wonder why you chose not to contribute to dil instead of starting a new project. AFAIK dil is D1.

I know about Dil. aziz is great, the project is great. However, I know and want to use D2/Phobos. Plus, if I'm going to spend years on a project, I may as well use stuff I like. Furthermore, SDC didn't start out as a full compiler. Just playing around with lexing/parsing D. NIH syndrome, too.

this. The main reason you are doing this is to serve your own needs, to make yourself feel good, to earn some kind of recognition, but not to serve the community in any meaningful way. Even if the project fails, it will look good on your resume because you took the time to develop a compiler. This kind of behavior is very common in the FOSS community, and it has become a disease. It's the reason why there are thousands of dead software projects that were never completed and maintained.

IMHO, there's no such thing as a completed project. And if there is, then it will need maintaining in 6-12 months time regardless. Libraries change, systems change, compilers change. Ever tried compiling a 'finished' project written 5 years ago with a modern GCC compiler? It can be rather tricky, especially if said project depended on certain mis-features of the language implementation at the time.
Mar 08 2011
parent Iain Buclaw <ibuclaw ubuntu.com> writes:
== Quote from Caligo (iteronvexor gmail.com)'s article
 --20cf3071c90ac76e43049e166972
 Content-Type: text/plain; charset=ISO-8859-1
 On Tue, Mar 8, 2011 at 9:48 AM, Iain Buclaw <ibuclaw ubuntu.com> wrote:
 == Quote from Caligo (iteronvexor gmail.com)'s article
 --bcaec51a83ee693a30049df97ef8
 Content-Type: text/plain; charset=ISO-8859-1
 On Tue, Mar 8, 2011 at 12:29 AM, Bernard Helyer <b.helyer gmail.com>

 On Tue, 08 Mar 2011 00:15:54 -0600, Caligo wrote:

 On Mon, Mar 7, 2011 at 11:34 PM, Bernard Helyer <b.helyer gmail.com>
 wrote:

 On Mon, 07 Mar 2011 20:41:39 -0600, Caligo wrote:
 Do we really need another D compiler that doesn't work?

Name me a working D2 compiler that doesn't have a front-end based




 on DMD. Furthermore, name me an in progress independent




 further along than SDC. The only candidate is Dil.

 SDC _will_ be finished, mark my words.


 Regards,
  Some one who remembers why they don't use the NG that much.

Yes, I know about dil, but I wonder why you chose not to contribute



 dil instead of starting a new project.  AFAIK dil is D1.

I know about Dil. aziz is great, the project is great. However, I know and want to use D2/Phobos. Plus, if I'm going to spend years on a project, I may as well use stuff I like. Furthermore, SDC didn't start out as a full compiler. Just playing around with lexing/parsing D. NIH syndrome, too.

this. The main reason you are doing this is to serve your own needs, to make yourself feel good, to earn some kind of recognition, but not to

 the community in any meaningful way.  Even if the project fails, it will
 look good on your resume because you took the time to develop a compiler.
 This kind of behavior is very common in the FOSS community, and it has
 become a disease.  It's the reason why there are thousands of dead

 projects that were never completed and maintained.

IMHO, there's no such thing as a completed project. And if there is, then it will need maintaining in 6-12 months time regardless. Libraries change, systems change, compilers change. Ever tried compiling a 'finished' project written 5 years ago with a modern GCC compiler? It can be rather tricky, especially if said project depended on certain mis-features of the language implementation at the time.

improving. But many software projects also have released versions that one could say are "complete"; the user could use that version for months and perhaps years with no problem. Our university Unix servers have gcc 3.4.4, which is about 7 years old. Hundreds of students use it everyday with no problem. It would be nice to have have the latest version, but it works and does what it's supposed to. Which version of GDC do you feel comfortable using for the next 12 months to compile your D2 code?

I would say each GCC compiler version is about as stable as each other. GDC on GCC-4.2 I would consider to be the 'long-term' stable version to go for. GCC-4.5 being the next in line for that (though still have one or two deeply roosted codegen quirks to iron out yet). But each has it's own unique problems though, partly because the constraints of the D language push the GCC backend in some interesting ways (things that ICE on 4.4 may compile just fine on 4.5 and vice-versa). Maybe if development always followed the trunk, would be able to catch breaking backend changes more swiftly. Though it is pretty nightmarish keeping compatibility with GCC-4.1 through to 4.5 in one tree as it is.
Mar 10 2011
prev sibling next sibling parent Iain Buclaw <ibuclaw ubuntu.com> writes:
== Quote from Caligo (iteronvexor gmail.com)'s article
 --bcaec501662700415d049dfa1521
 Content-Type: text/plain; charset=ISO-8859-1
 On Tue, Mar 8, 2011 at 8:50 AM, Steven Schveighoffer
<schveiguy yahoo.com>wrote:
 On Tue, 08 Mar 2011 09:33:19 -0500, Caligo <iteronvexor gmail.com> wrote:

  On Tue, Mar 8, 2011 at 12:29 AM, Bernard Helyer <b.helyer gmail.com>
 wrote:

  On Tue, 08 Mar 2011 00:15:54 -0600, Caligo wrote:
 On Mon, Mar 7, 2011 at 11:34 PM, Bernard Helyer <b.helyer gmail.com>
 wrote:

 On Mon, 07 Mar 2011 20:41:39 -0600, Caligo wrote:
 Do we really need another D compiler that doesn't work?

Name me a working D2 compiler that doesn't have a front-end based


 on DMD. Furthermore, name me an in progress independent implementation
 further along than SDC. The only candidate is Dil.

 SDC _will_ be finished, mark my words.


 Regards,
  Some one who remembers why they don't use the NG that much.

Yes, I know about dil, but I wonder why you chose not to contribute to dil instead of starting a new project. AFAIK dil is D1.

I know about Dil. aziz is great, the project is great. However, I know and want to use D2/Phobos. Plus, if I'm going to spend years on a project, I may as well use stuff I like. Furthermore, SDC didn't start out as a full compiler. Just playing around with lexing/parsing D. NIH syndrome, too.

I was aware of your "NIH syndrome", and that's why I have a problem with this. The main reason you are doing this is to serve your own needs, to make yourself feel good, to earn some kind of recognition, but not to serve the community in any meaningful way. Even if the project fails, it will look good on your resume because you took the time to develop a compiler. This kind of behavior is very common in the FOSS community, and it has become a disease. It's the reason why there are thousands of dead software projects that were never completed and maintained.

Hindsight is 20/20. How selfish of Linus Torvalds to create Linux instead of contributing to FreeBSD or Hurd. The thing is, this "disease" is the reason why most open-source projects are started. You can't say the ones that are successes were started any differently than ones that are not. One starts an open source project (in most cases) to do something fun, interesting, and maybe create something that everyone uses. Nobody starts them because they know it's going to be a success. What if Dil is completed and LDC is abandoned? Will you come back here and lambaste the LDC developers for not abandoning their *obviously* flawed project and joining dil? Give me a break... Congrats Bernard on your efforts, I hope you succeed. We need *more* compilers for D, not less. -Steve

I'll bite. How about all the people that chose to contribute to the Linux kernel instead of starting a new OS kernel project?? It's because of them that the Linux kernel is what it is today. It's because of them that the project continued to grow and get better. It's because of them that we don't have 50 different unfinished and broken OS kernels.

Just because you don't hear about them, doesn't mean they aren't there. Anyway, what has your biting got to do with LLVM type system changes? :)
Mar 08 2011
prev sibling parent Daniel Gibson <metalcaedes gmail.com> writes:
Am 10.03.2011 02:02, schrieb Caligo:
 On Tue, Mar 8, 2011 at 9:54 AM, spir <denis.spir gmail.com> wrote:
 
 On 03/08/2011 03:33 PM, Caligo wrote:

 On Tue, Mar 8, 2011 at 12:29 AM, Bernard Helyer<b.helyer gmail.com>
  wrote:

  On Tue, 08 Mar 2011 00:15:54 -0600, Caligo wrote:
  On Mon, Mar 7, 2011 at 11:34 PM, Bernard Helyer<b.helyer gmail.com>
 wrote:

  On Mon, 07 Mar 2011 20:41:39 -0600, Caligo wrote:
 Do we really need another D compiler that doesn't work?

Name me a working D2 compiler that doesn't have a front-end based based on DMD. Furthermore, name me an in progress independent implementation further along than SDC. The only candidate is Dil. SDC _will_ be finished, mark my words. Regards, Some one who remembers why they don't use the NG that much.

dil instead of starting a new project. AFAIK dil is D1.

I know about Dil. aziz is great, the project is great. However, I know and want to use D2/Phobos. Plus, if I'm going to spend years on a project, I may as well use stuff I like. Furthermore, SDC didn't start out as a full compiler. Just playing around with lexing/parsing D. NIH syndrome, too.

I was aware of your "NIH syndrome", and that's why I have a problem with this. The main reason you are doing this is to serve your own needs, to make yourself feel good, to earn some kind of recognition, but not to serve the community in any meaningful way. Even if the project fails, it will look good on your resume because you took the time to develop a compiler. This kind of behavior is very common in the FOSS community, and it has become a disease. It's the reason why there are thousands of dead software projects that were never completed and maintained. I spoke with Aziz two years ago, and he had the same exact attitude. His excuse? He hates C++ and he thinks Walter's front end is horrible. So instead of contributing to ldc, he continued to work on his own compiler. After years of hard work, I doubt many would be willing to call dil a success. Instead of wasting all his time and energy on dil, Aziz could have contributed to ldc and ldc would have been in a much better shape today. And maybe, just maybe, today we would have a production quality free and open source D compiler that just works. Good luck trying to compile dil, ldc, etc, let alone have them compile your D code and produce an executable that runs the way it should. I just don't understand why people can't work together. Life is too damn short.

I for one long for D tools in D. Thank you very much Aziz and Bernard for your efforts in this direction. I consider the initial choice of building a C++ front-end to be a dead-end. Even more since many D programmers precisely come to D out of C++ disgust. What would you, Caligo, recommand as an initiative for D to have tools the D community can easily and happily use *and* contribute to? What would be the ideal direction, process, sequence of actions, in your views? How would you personly engage in this, according to your own moral stances expressed above? Denis -- _________________ vita es estrany spir.wikidot.com

I want to see people work together and not branch off and do their own thing when there is no good reason for it. We don't need to keep reinventing the wheel, specially when to this day we don't have a viable, production quality, free and open source alternative to DMD for D2. GDC could have been ready a long time ago, but it's not because development is moving very slow. So why start a new project and make an announcement about it when you could be helping out with GDC?

Why discuss the usefulness of n D compilers when *you* could be helping out with GDC?
Mar 09 2011
prev sibling next sibling parent Caligo <iteronvexor gmail.com> writes:
--001e680f10387d53ad049df28b77
Content-Type: text/plain; charset=ISO-8859-1

On Mon, Mar 7, 2011 at 11:34 PM, Bernard Helyer <b.helyer gmail.com> wrote:

 On Mon, 07 Mar 2011 20:41:39 -0600, Caligo wrote:
 Do we really need another D compiler that doesn't work?

Name me a working D2 compiler that doesn't have a front-end based based on DMD. Furthermore, name me an in progress independent implementation further along than SDC. The only candidate is Dil. SDC _will_ be finished, mark my words. Regards, Some one who remembers why they don't use the NG that much.

Yes, I know about dil, but I wonder why you chose not to contribute to dil instead of starting a new project. AFAIK dil is D1. --001e680f10387d53ad049df28b77 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable <br><br><div class=3D"gmail_quote">On Mon, Mar 7, 2011 at 11:34 PM, Bernard= Helyer <span dir=3D"ltr">&lt;<a href=3D"mailto:b.helyer gmail.com">b.helye= r gmail.com</a>&gt;</span> wrote:<br><blockquote class=3D"gmail_quote" styl= e=3D"margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); = padding-left: 1ex;"> <div class=3D"im">On Mon, 07 Mar 2011 20:41:39 -0600, Caligo wrote:<br> &gt; Do we really need another D compiler that doesn&#39;t work?<br> <br> </div>Name me a working D2 compiler that doesn&#39;t have a front-end based= based<br> on DMD. Furthermore, name me an in progress independent implementation<br> further along than SDC. The only candidate is Dil.<br> <br> SDC _will_ be finished, mark my words.<br> <br> <br> Regards,<br> =A0Some one who remembers why they don&#39;t use the NG that much.<br> </blockquote></div><br><br>Yes, I know about dil, but I wonder why you chos= e not to contribute to dil instead of starting a new project.=A0 AFAIK dil = is D1.<br><br> --001e680f10387d53ad049df28b77--
Mar 07 2011
prev sibling next sibling parent Bernard Helyer <b.helyer gmail.com> writes:
On Tue, 08 Mar 2011 00:15:54 -0600, Caligo wrote:

 On Mon, Mar 7, 2011 at 11:34 PM, Bernard Helyer <b.helyer gmail.com>
 wrote:
 
 On Mon, 07 Mar 2011 20:41:39 -0600, Caligo wrote:
 Do we really need another D compiler that doesn't work?

Name me a working D2 compiler that doesn't have a front-end based based on DMD. Furthermore, name me an in progress independent implementation further along than SDC. The only candidate is Dil. SDC _will_ be finished, mark my words. Regards, Some one who remembers why they don't use the NG that much.

Yes, I know about dil, but I wonder why you chose not to contribute to dil instead of starting a new project. AFAIK dil is D1.

I know about Dil. aziz is great, the project is great. However, I know and want to use D2/Phobos. Plus, if I'm going to spend years on a project, I may as well use stuff I like. Furthermore, SDC didn't start out as a full compiler. Just playing around with lexing/parsing D. NIH syndrome, too.
Mar 07 2011
prev sibling next sibling parent Daniel Gibson <metalcaedes gmail.com> writes:
Am 08.03.2011 03:41, schrieb Caligo:
 On Mon, Mar 7, 2011 at 7:54 PM, Bernard Helyer <b.helyer gmail.com
 <mailto:b.helyer gmail.com>> wrote:

     On Mon, 07 Mar 2011 20:03:36 +0000, filgood wrote:

      > as described here:
      >
      > http://nondot.org/sabre/LLVMNotes/TypeSystemRewrite.txt
      >
      > Btw, what is the status of the D2 LLVM compiler?

     You're probably wondering about LDC2, but I'll chip in with SDC's
     ( https://github.com/bhelyer/SDC ) status here:

     On the road to some kind of 0.1, but a lot of work to be done -- it
     should land some time this year, however.

     Keeping current with DMD releases, current with LLVM releases.




 Do we really need another D compiler that doesn't work?

The more D compilers the better. Assuming that it won't work is quite insulting IMHO.
Mar 08 2011
prev sibling next sibling parent "Steven Schveighoffer" <schveiguy yahoo.com> writes:
On Mon, 07 Mar 2011 21:41:39 -0500, Caligo <iteronvexor gmail.com> wrote:

 Do we really need another D compiler that doesn't work?

If we all took that attitude, no software would be written. All software "doesn't work" in the beginning. Let's see your perfect-from-inception projects... Please, find a more constructive outlet. -Steve
Mar 08 2011
prev sibling next sibling parent spir <denis.spir gmail.com> writes:
On 03/08/2011 02:08 PM, Daniel Gibson wrote:
 Am 08.03.2011 03:41, schrieb Caligo:
 On Mon, Mar 7, 2011 at 7:54 PM, Bernard Helyer <b.helyer gmail.com
 <mailto:b.helyer gmail.com>> wrote:

 On Mon, 07 Mar 2011 20:03:36 +0000, filgood wrote:

 as described here:

 http://nondot.org/sabre/LLVMNotes/TypeSystemRewrite.txt

 Btw, what is the status of the D2 LLVM compiler?

You're probably wondering about LDC2, but I'll chip in with SDC's ( https://github.com/bhelyer/SDC ) status here: On the road to some kind of 0.1, but a lot of work to be done -- it should land some time this year, however. Keeping current with DMD releases, current with LLVM releases. Do we really need another D compiler that doesn't work?

The more D compilers the better. Assuming that it won't work is quite insulting IMHO.

In addition, the fact it is in D is a huge advatange. D desperately needs a community lexer / parser / semantic analyser. Cannot be C++ stuff. Denis -- _________________ vita es estrany spir.wikidot.com
Mar 08 2011
prev sibling next sibling parent reply Caligo <iteronvexor gmail.com> writes:
--bcaec51a83ee693a30049df97ef8
Content-Type: text/plain; charset=ISO-8859-1

On Tue, Mar 8, 2011 at 12:29 AM, Bernard Helyer <b.helyer gmail.com> wrote:

 On Tue, 08 Mar 2011 00:15:54 -0600, Caligo wrote:

 On Mon, Mar 7, 2011 at 11:34 PM, Bernard Helyer <b.helyer gmail.com>
 wrote:

 On Mon, 07 Mar 2011 20:41:39 -0600, Caligo wrote:
 Do we really need another D compiler that doesn't work?

Name me a working D2 compiler that doesn't have a front-end based based on DMD. Furthermore, name me an in progress independent implementation further along than SDC. The only candidate is Dil. SDC _will_ be finished, mark my words. Regards, Some one who remembers why they don't use the NG that much.

Yes, I know about dil, but I wonder why you chose not to contribute to dil instead of starting a new project. AFAIK dil is D1.

I know about Dil. aziz is great, the project is great. However, I know and want to use D2/Phobos. Plus, if I'm going to spend years on a project, I may as well use stuff I like. Furthermore, SDC didn't start out as a full compiler. Just playing around with lexing/parsing D. NIH syndrome, too.

I was aware of your "NIH syndrome", and that's why I have a problem with this. The main reason you are doing this is to serve your own needs, to make yourself feel good, to earn some kind of recognition, but not to serve the community in any meaningful way. Even if the project fails, it will look good on your resume because you took the time to develop a compiler. This kind of behavior is very common in the FOSS community, and it has become a disease. It's the reason why there are thousands of dead software projects that were never completed and maintained. I spoke with Aziz two years ago, and he had the same exact attitude. His excuse? He hates C++ and he thinks Walter's front end is horrible. So instead of contributing to ldc, he continued to work on his own compiler. After years of hard work, I doubt many would be willing to call dil a success. Instead of wasting all his time and energy on dil, Aziz could have contributed to ldc and ldc would have been in a much better shape today. And maybe, just maybe, today we would have a production quality free and open source D compiler that just works. Good luck trying to compile dil, ldc, etc, let alone have them compile your D code and produce an executable that runs the way it should. I just don't understand why people can't work together. Life is too damn short. --bcaec51a83ee693a30049df97ef8 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable <br><br><div class=3D"gmail_quote">On Tue, Mar 8, 2011 at 12:29 AM, Bernard= Helyer <span dir=3D"ltr">&lt;<a href=3D"mailto:b.helyer gmail.com" target= =3D"_blank">b.helyer gmail.com</a>&gt;</span> wrote:<br><blockquote class= =3D"gmail_quote" style=3D"margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid= rgb(204, 204, 204); padding-left: 1ex;"> <div>On Tue, 08 Mar 2011 00:15:54 -0600, Caligo wrote:<br> <br> &gt; On Mon, Mar 7, 2011 at 11:34 PM, Bernard Helyer &lt;<a href=3D"mailto:= b.helyer gmail.com" target=3D"_blank">b.helyer gmail.com</a>&gt;<br> &gt; wrote:<br> &gt;<br> </div><div><div></div><div>&gt;&gt; On Mon, 07 Mar 2011 20:41:39 -0600, Cal= igo wrote:<br> &gt;&gt; &gt; Do we really need another D compiler that doesn&#39;t work?<b= r> &gt;&gt;<br> &gt;&gt; Name me a working D2 compiler that doesn&#39;t have a front-end ba= sed based<br> &gt;&gt; on DMD. Furthermore, name me an in progress independent implementa= tion<br> &gt;&gt; further along than SDC. The only candidate is Dil.<br> &gt;&gt;<br> &gt;&gt; SDC _will_ be finished, mark my words.<br> &gt;&gt;<br> &gt;&gt;<br> &gt;&gt; Regards,<br> &gt;&gt; =A0Some one who remembers why they don&#39;t use the NG that much.= <br> &gt;&gt;<br> &gt;&gt;<br> &gt;<br> </div></div><div>&gt; Yes, I know about dil, but I wonder why you chose not= to contribute to<br> &gt; dil instead of starting a new project. =A0AFAIK dil is D1.<br> <br> </div>I know about Dil. aziz is great, the project is great. However, I kno= w<br> and want to use D2/Phobos. Plus, if I&#39;m going to spend years on a<br> project, I may as well use stuff I like. Furthermore, SDC didn&#39;t start<= br> out as a full compiler. Just playing around with lexing/parsing D. NIH<br> syndrome, too.<br> </blockquote></div><br><br>I was aware of your &quot;NIH syndrome&quot;, an= d that&#39;s why I have a problem with this.=A0 The main reason you are doi= ng this is to serve your own needs, to make yourself feel good, to earn som= e kind of recognition, but not to serve the community in any meaningful way= .=A0 Even if the project fails, it will look good on your resume because yo= u took the time to develop a compiler.=A0 This kind of behavior is very com= mon in the FOSS community, and it has become a disease.=A0 It&#39;s the rea= son why there are thousands of dead software projects that were never compl= eted and maintained.<br> <br>I spoke with Aziz two years ago, and he had the same exact attitude.=A0= His excuse? He hates C++ and he thinks Walter&#39;s front end is horrible.= =A0 So instead of contributing to ldc, he continued to work on his own comp= iler.=A0 After years of hard work, I doubt many would be willing to call di= l a success.=A0 Instead of wasting all his time and energy on dil, Aziz cou= ld have contributed to ldc and ldc would have been in a much better shape t= oday.=A0 And maybe, just maybe, today we would have a production quality fr= ee and open source D compiler that just works.=A0 Good luck trying to compi= le dil, ldc, etc, let alone have them compile your D code and produce an ex= ecutable that runs the way it should.<br> <br>I just don&#39;t understand why people can&#39;t work together.=A0 Life= is too damn short.<br> --bcaec51a83ee693a30049df97ef8--
Mar 08 2011
parent Kagamin <spam here.lot> writes:
Caligo Wrote:

 And maybe, just maybe, today we would have a production quality free and
 open source D compiler that just works.  Good luck trying to compile dil,
 ldc, etc, let alone have them compile your D code and produce an executable
 that runs the way it should.

What's problem? If dmd doesn't work for you, try gcc.
Mar 09 2011
prev sibling next sibling parent "Steven Schveighoffer" <schveiguy yahoo.com> writes:
On Tue, 08 Mar 2011 09:33:19 -0500, Caligo <iteronvexor gmail.com> wrote:

 On Tue, Mar 8, 2011 at 12:29 AM, Bernard Helyer <b.helyer gmail.com>  
 wrote:

 On Tue, 08 Mar 2011 00:15:54 -0600, Caligo wrote:

 On Mon, Mar 7, 2011 at 11:34 PM, Bernard Helyer <b.helyer gmail.com>
 wrote:

 On Mon, 07 Mar 2011 20:41:39 -0600, Caligo wrote:
 Do we really need another D compiler that doesn't work?

Name me a working D2 compiler that doesn't have a front-end based


 on DMD. Furthermore, name me an in progress independent  


 further along than SDC. The only candidate is Dil.

 SDC _will_ be finished, mark my words.


 Regards,
  Some one who remembers why they don't use the NG that much.

Yes, I know about dil, but I wonder why you chose not to contribute to dil instead of starting a new project. AFAIK dil is D1.

I know about Dil. aziz is great, the project is great. However, I know and want to use D2/Phobos. Plus, if I'm going to spend years on a project, I may as well use stuff I like. Furthermore, SDC didn't start out as a full compiler. Just playing around with lexing/parsing D. NIH syndrome, too.

I was aware of your "NIH syndrome", and that's why I have a problem with this. The main reason you are doing this is to serve your own needs, to make yourself feel good, to earn some kind of recognition, but not to serve the community in any meaningful way. Even if the project fails, it will look good on your resume because you took the time to develop a compiler. This kind of behavior is very common in the FOSS community, and it has become a disease. It's the reason why there are thousands of dead software projects that were never completed and maintained.

Hindsight is 20/20. How selfish of Linus Torvalds to create Linux instead of contributing to FreeBSD or Hurd. The thing is, this "disease" is the reason why most open-source projects are started. You can't say the ones that are successes were started any differently than ones that are not. One starts an open source project (in most cases) to do something fun, interesting, and maybe create something that everyone uses. Nobody starts them because they know it's going to be a success. What if Dil is completed and LDC is abandoned? Will you come back here and lambaste the LDC developers for not abandoning their *obviously* flawed project and joining dil? Give me a break... Congrats Bernard on your efforts, I hope you succeed. We need *more* compilers for D, not less. -Steve
Mar 08 2011
prev sibling next sibling parent "Vladimir Panteleev" <vladimir thecybershadow.net> writes:
On Tue, 08 Mar 2011 16:33:19 +0200, Caligo <iteronvexor gmail.com> wrote:

 I was aware of your "NIH syndrome", and that's why I have a problem with
 this.  The main reason you are doing this is to serve your own needs, to
 make yourself feel good, to earn some kind of recognition, but not to  
 serve
 the community in any meaningful way.  Even if the project fails, it will
 look good on your resume because you took the time to develop a compiler.
 This kind of behavior is very common in the FOSS community, and it has
 become a disease.  It's the reason why there are thousands of dead  
 software
 projects that were never completed and maintained.

Dude, WTF? People can't work on stuff they want to work any more without someone like you blasting them for it? Take a second to recall that open-source projects are done in people's free time, mainly because they ENJOY doing it. Who is anyone to tell me what to do in my free time, especially if I wouldn't enjoy it? People like YOU are a disease for the open-source community, demotivating people who bother to release, publish sources for and sometimes support the projects they do in their free time. P.S. Don't bother replying, you're in my killfile. -- Best regards, Vladimir mailto:vladimir thecybershadow.net
Mar 08 2011
prev sibling next sibling parent Caligo <iteronvexor gmail.com> writes:
--bcaec501662700415d049dfa1521
Content-Type: text/plain; charset=ISO-8859-1

On Tue, Mar 8, 2011 at 8:50 AM, Steven Schveighoffer <schveiguy yahoo.com>wrote:

 On Tue, 08 Mar 2011 09:33:19 -0500, Caligo <iteronvexor gmail.com> wrote:

  On Tue, Mar 8, 2011 at 12:29 AM, Bernard Helyer <b.helyer gmail.com>
 wrote:

  On Tue, 08 Mar 2011 00:15:54 -0600, Caligo wrote:
 On Mon, Mar 7, 2011 at 11:34 PM, Bernard Helyer <b.helyer gmail.com>
 wrote:

 On Mon, 07 Mar 2011 20:41:39 -0600, Caligo wrote:
 Do we really need another D compiler that doesn't work?

Name me a working D2 compiler that doesn't have a front-end based


 on DMD. Furthermore, name me an in progress independent implementation
 further along than SDC. The only candidate is Dil.

 SDC _will_ be finished, mark my words.


 Regards,
  Some one who remembers why they don't use the NG that much.

Yes, I know about dil, but I wonder why you chose not to contribute to dil instead of starting a new project. AFAIK dil is D1.

I know about Dil. aziz is great, the project is great. However, I know and want to use D2/Phobos. Plus, if I'm going to spend years on a project, I may as well use stuff I like. Furthermore, SDC didn't start out as a full compiler. Just playing around with lexing/parsing D. NIH syndrome, too.

I was aware of your "NIH syndrome", and that's why I have a problem with this. The main reason you are doing this is to serve your own needs, to make yourself feel good, to earn some kind of recognition, but not to serve the community in any meaningful way. Even if the project fails, it will look good on your resume because you took the time to develop a compiler. This kind of behavior is very common in the FOSS community, and it has become a disease. It's the reason why there are thousands of dead software projects that were never completed and maintained.

Hindsight is 20/20. How selfish of Linus Torvalds to create Linux instead of contributing to FreeBSD or Hurd. The thing is, this "disease" is the reason why most open-source projects are started. You can't say the ones that are successes were started any differently than ones that are not. One starts an open source project (in most cases) to do something fun, interesting, and maybe create something that everyone uses. Nobody starts them because they know it's going to be a success. What if Dil is completed and LDC is abandoned? Will you come back here and lambaste the LDC developers for not abandoning their *obviously* flawed project and joining dil? Give me a break... Congrats Bernard on your efforts, I hope you succeed. We need *more* compilers for D, not less. -Steve

Linux and the Hurd are very different; It's like comparing D and C++, but I'll bite. How about all the people that chose to contribute to the Linux kernel instead of starting a new OS kernel project?? It's because of them that the Linux kernel is what it is today. It's because of them that the project continued to grow and get better. It's because of them that we don't have 50 different unfinished and broken OS kernels. --bcaec501662700415d049dfa1521 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable <br><br><div class=3D"gmail_quote">On Tue, Mar 8, 2011 at 8:50 AM, Steven S= chveighoffer <span dir=3D"ltr">&lt;<a href=3D"mailto:schveiguy yahoo.com">s= chveiguy yahoo.com</a>&gt;</span> wrote:<br><blockquote class=3D"gmail_quot= e" style=3D"margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204,= 204); padding-left: 1ex;"> On Tue, 08 Mar 2011 09:33:19 -0500, Caligo &lt;<a href=3D"mailto:iteronvexo= r gmail.com" target=3D"_blank">iteronvexor gmail.com</a>&gt; wrote:<br> <br> <blockquote class=3D"gmail_quote" style=3D"margin: 0pt 0pt 0pt 0.8ex; borde= r-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;"><div><div></div><= div class=3D"h5"> On Tue, Mar 8, 2011 at 12:29 AM, Bernard Helyer &lt;<a href=3D"mailto:b.hel= yer gmail.com" target=3D"_blank">b.helyer gmail.com</a>&gt; wrote:<br> <br> <blockquote class=3D"gmail_quote" style=3D"margin: 0pt 0pt 0pt 0.8ex; borde= r-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;"> On Tue, 08 Mar 2011 00:15:54 -0600, Caligo wrote:<br> <br> &gt; On Mon, Mar 7, 2011 at 11:34 PM, Bernard Helyer &lt;<a href=3D"mailto:= b.helyer gmail.com" target=3D"_blank">b.helyer gmail.com</a>&gt;<br> &gt; wrote:<br> &gt;<br> &gt;&gt; On Mon, 07 Mar 2011 20:41:39 -0600, Caligo wrote:<br> &gt;&gt; &gt; Do we really need another D compiler that doesn&#39;t work?<b= r> &gt;&gt;<br> &gt;&gt; Name me a working D2 compiler that doesn&#39;t have a front-end ba= sed based<br> &gt;&gt; on DMD. Furthermore, name me an in progress independent implementa= tion<br> &gt;&gt; further along than SDC. The only candidate is Dil.<br> &gt;&gt;<br> &gt;&gt; SDC _will_ be finished, mark my words.<br> &gt;&gt;<br> &gt;&gt;<br> &gt;&gt; Regards,<br> &gt;&gt; =A0Some one who remembers why they don&#39;t use the NG that much.= <br> &gt;&gt;<br> &gt;&gt;<br> &gt;<br> &gt; Yes, I know about dil, but I wonder why you chose not to contribute to= <br> &gt; dil instead of starting a new project. =A0AFAIK dil is D1.<br> <br> I know about Dil. aziz is great, the project is great. However, I know<br> and want to use D2/Phobos. Plus, if I&#39;m going to spend years on a<br> project, I may as well use stuff I like. Furthermore, SDC didn&#39;t start<= br> out as a full compiler. Just playing around with lexing/parsing D. NIH<br> syndrome, too.<br> <br> </blockquote> <br> <br></div></div><div class=3D"im"> I was aware of your &quot;NIH syndrome&quot;, and that&#39;s why I have a p= roblem with<br> this. =A0The main reason you are doing this is to serve your own needs, to<= br> make yourself feel good, to earn some kind of recognition, but not to serve= <br> the community in any meaningful way. =A0Even if the project fails, it will<= br> look good on your resume because you took the time to develop a compiler.<b= r> This kind of behavior is very common in the FOSS community, and it has<br> become a disease. =A0It&#39;s the reason why there are thousands of dead so= ftware<br> projects that were never completed and maintained.<br> </div></blockquote> <br> Hindsight is 20/20. =A0How selfish of Linus Torvalds to create Linux instea= d of contributing to FreeBSD or Hurd.<br> <br> The thing is, this &quot;disease&quot; is the reason why most open-source p= rojects are started. =A0You can&#39;t say the ones that are successes were = started any differently than ones that are not. =A0One starts an open sourc= e project (in most cases) to do something fun, interesting, and maybe creat= e something that everyone uses. =A0Nobody starts them because they know it&= #39;s going to be a success.<br> <br> What if Dil is completed and LDC is abandoned? =A0Will you come back here a= nd lambaste the LDC developers for not abandoning their *obviously* flawed = project and joining dil? =A0Give me a break...<br> <br> Congrats Bernard on your efforts, I hope you succeed. =A0We need *more* com= pilers for D, not less.<br> <br> -Steve<br> </blockquote></div><br>Linux and the Hurd are very different; It&#39;s like= comparing D and C++, but I&#39;ll bite.=A0 How about all the people that c= hose to contribute to the Linux kernel instead of starting a new OS kernel = project??=A0 It&#39;s because of them that the Linux kernel is what it is t= oday.=A0 It&#39;s because of them that the project continued to grow and ge= t better.=A0 It&#39;s because of them that we don&#39;t have 50 different u= nfinished and broken OS kernels.=A0 <br> <br> --bcaec501662700415d049dfa1521--
Mar 08 2011
prev sibling next sibling parent "Steven Schveighoffer" <schveiguy yahoo.com> writes:
On Tue, 08 Mar 2011 10:15:26 -0500, Caligo <iteronvexor gmail.com> wrote:

 On Tue, Mar 8, 2011 at 8:50 AM, Steven Schveighoffer  
 <schveiguy yahoo.com>wrote:

 On Tue, 08 Mar 2011 09:33:19 -0500, Caligo <iteronvexor gmail.com>  
 wrote:

  On Tue, Mar 8, 2011 at 12:29 AM, Bernard Helyer <b.helyer gmail.com>
 wrote:

  On Tue, 08 Mar 2011 00:15:54 -0600, Caligo wrote:
 On Mon, Mar 7, 2011 at 11:34 PM, Bernard Helyer <b.helyer gmail.com>
 wrote:

 On Mon, 07 Mar 2011 20:41:39 -0600, Caligo wrote:
 Do we really need another D compiler that doesn't work?

Name me a working D2 compiler that doesn't have a front-end based


 on DMD. Furthermore, name me an in progress independent  


 further along than SDC. The only candidate is Dil.

 SDC _will_ be finished, mark my words.


 Regards,
  Some one who remembers why they don't use the NG that much.

Yes, I know about dil, but I wonder why you chose not to contribute

 dil instead of starting a new project.  AFAIK dil is D1.

I know about Dil. aziz is great, the project is great. However, I know and want to use D2/Phobos. Plus, if I'm going to spend years on a project, I may as well use stuff I like. Furthermore, SDC didn't start out as a full compiler. Just playing around with lexing/parsing D. NIH syndrome, too.

I was aware of your "NIH syndrome", and that's why I have a problem with this. The main reason you are doing this is to serve your own needs, to make yourself feel good, to earn some kind of recognition, but not to serve the community in any meaningful way. Even if the project fails, it will look good on your resume because you took the time to develop a compiler. This kind of behavior is very common in the FOSS community, and it has become a disease. It's the reason why there are thousands of dead software projects that were never completed and maintained.

Hindsight is 20/20. How selfish of Linus Torvalds to create Linux instead of contributing to FreeBSD or Hurd. The thing is, this "disease" is the reason why most open-source projects are started. You can't say the ones that are successes were started any differently than ones that are not. One starts an open source project (in most cases) to do something fun, interesting, and maybe create something that everyone uses. Nobody starts them because they know it's going to be a success. What if Dil is completed and LDC is abandoned? Will you come back here and lambaste the LDC developers for not abandoning their *obviously* flawed project and joining dil? Give me a break... Congrats Bernard on your efforts, I hope you succeed. We need *more* compilers for D, not less. -Steve

Linux and the Hurd are very different; It's like comparing D and C++, but I'll bite. How about all the people that chose to contribute to the Linux kernel instead of starting a new OS kernel project?? It's because of them that the Linux kernel is what it is today. It's because of them that the project continued to grow and get better. It's because of them that we don't have 50 different unfinished and broken OS kernels.

Maybe you missed the part where I said Hindsight is 20/20. Good thing it is, so you can go back and read that part again. It's like saying how stupid OS/2 was because they should have been more successful like Windows. Yeah, would be nice to be able to predict success and failure. -Steve
Mar 08 2011
prev sibling next sibling parent Bernard Helyer <b.helyer gmail.com> writes:
Screw diplomacy. Go fuck yourself and have a nice day. :)
Mar 08 2011
prev sibling next sibling parent filgood <filgood somewhere.net> writes:
This is fantastic news! Many thanks for all your hard work. Not only 
seems LDC2 coming closer to be supporting the current D2, there is now 
SDC too (I must admit that a self hosting compiler (front end + LLVM 
back-end in D I mean) is a big statement for a language in my view). 
Please keep up the good work!

Although, I don't post on this NG much, I've been following it for a 
while, and if the increased diversification in people participating here 
verbally/code/project wise are representative, then I can only see the 
momentum that D as a language recently is gathering to be very exciting. 
I work at a company where I have a big influence on the programming 
languages to be used and have been porting some of our code to D as an 
experiment/me learning the language/reading TDPL - and I'm very pleased 
with the results so far...to a point that if it was not for a broader 
developed phobos (database access, messaging framework bindings (zeroMQ, 
google protobuffers, thrift), cross platform gui tool kits, etc) I would 
be keen to push the language for production usage at this point (knowing 
existing bugs in the compiler, but where I feel one can work around these).

Anyway, I just want this to be a message of support for D and great 
appreciation of what has been achieved so far.

thanks, fil

On 08/03/2011 01:54, Bernard Helyer wrote:
 On Mon, 07 Mar 2011 20:03:36 +0000, filgood wrote:

 as described here:

 http://nondot.org/sabre/LLVMNotes/TypeSystemRewrite.txt

 Btw, what is the status of the D2 LLVM compiler?

You're probably wondering about LDC2, but I'll chip in with SDC's ( https://github.com/bhelyer/SDC ) status here: On the road to some kind of 0.1, but a lot of work to be done -- it should land some time this year, however. Keeping current with DMD releases, current with LLVM releases.

Mar 09 2011
prev sibling next sibling parent Caligo <iteronvexor gmail.com> writes:
--20cf307cff746567a1049e166770
Content-Type: text/plain; charset=ISO-8859-1

On Tue, Mar 8, 2011 at 9:54 AM, spir <denis.spir gmail.com> wrote:

 On 03/08/2011 03:33 PM, Caligo wrote:

 On Tue, Mar 8, 2011 at 12:29 AM, Bernard Helyer<b.helyer gmail.com>
  wrote:

  On Tue, 08 Mar 2011 00:15:54 -0600, Caligo wrote:
  On Mon, Mar 7, 2011 at 11:34 PM, Bernard Helyer<b.helyer gmail.com>
 wrote:

  On Mon, 07 Mar 2011 20:41:39 -0600, Caligo wrote:
 Do we really need another D compiler that doesn't work?

Name me a working D2 compiler that doesn't have a front-end based based on DMD. Furthermore, name me an in progress independent implementation further along than SDC. The only candidate is Dil. SDC _will_ be finished, mark my words. Regards, Some one who remembers why they don't use the NG that much.

dil instead of starting a new project. AFAIK dil is D1.

I know about Dil. aziz is great, the project is great. However, I know and want to use D2/Phobos. Plus, if I'm going to spend years on a project, I may as well use stuff I like. Furthermore, SDC didn't start out as a full compiler. Just playing around with lexing/parsing D. NIH syndrome, too.

I was aware of your "NIH syndrome", and that's why I have a problem with this. The main reason you are doing this is to serve your own needs, to make yourself feel good, to earn some kind of recognition, but not to serve the community in any meaningful way. Even if the project fails, it will look good on your resume because you took the time to develop a compiler. This kind of behavior is very common in the FOSS community, and it has become a disease. It's the reason why there are thousands of dead software projects that were never completed and maintained. I spoke with Aziz two years ago, and he had the same exact attitude. His excuse? He hates C++ and he thinks Walter's front end is horrible. So instead of contributing to ldc, he continued to work on his own compiler. After years of hard work, I doubt many would be willing to call dil a success. Instead of wasting all his time and energy on dil, Aziz could have contributed to ldc and ldc would have been in a much better shape today. And maybe, just maybe, today we would have a production quality free and open source D compiler that just works. Good luck trying to compile dil, ldc, etc, let alone have them compile your D code and produce an executable that runs the way it should. I just don't understand why people can't work together. Life is too damn short.

I for one long for D tools in D. Thank you very much Aziz and Bernard for your efforts in this direction. I consider the initial choice of building a C++ front-end to be a dead-end. Even more since many D programmers precisely come to D out of C++ disgust. What would you, Caligo, recommand as an initiative for D to have tools the D community can easily and happily use *and* contribute to? What would be the ideal direction, process, sequence of actions, in your views? How would you personly engage in this, according to your own moral stances expressed above? Denis -- _________________ vita es estrany spir.wikidot.com

I want to see people work together and not branch off and do their own thing when there is no good reason for it. We don't need to keep reinventing the wheel, specially when to this day we don't have a viable, production quality, free and open source alternative to DMD for D2. GDC could have been ready a long time ago, but it's not because development is moving very slow. So why start a new project and make an announcement about it when you could be helping out with GDC? --20cf307cff746567a1049e166770 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable <br><br><div class=3D"gmail_quote">On Tue, Mar 8, 2011 at 9:54 AM, spir <sp= an dir=3D"ltr">&lt;<a href=3D"mailto:denis.spir gmail.com" target=3D"_blank= ">denis.spir gmail.com</a>&gt;</span> wrote:<br><blockquote class=3D"gmail_= quote" style=3D"margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, = 204, 204); padding-left: 1ex;"> <div><div></div><div>On 03/08/2011 03:33 PM, Caligo wrote:<br> <blockquote class=3D"gmail_quote" style=3D"margin: 0pt 0pt 0pt 0.8ex; borde= r-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;"> On Tue, Mar 8, 2011 at 12:29 AM, Bernard Helyer&lt;<a href=3D"mailto:b.hely= er gmail.com" target=3D"_blank">b.helyer gmail.com</a>&gt; =A0wrote:<br> <br> <blockquote class=3D"gmail_quote" style=3D"margin: 0pt 0pt 0pt 0.8ex; borde= r-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;"> On Tue, 08 Mar 2011 00:15:54 -0600, Caligo wrote:<br> <br> <blockquote class=3D"gmail_quote" style=3D"margin: 0pt 0pt 0pt 0.8ex; borde= r-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;"> On Mon, Mar 7, 2011 at 11:34 PM, Bernard Helyer&lt;<a href=3D"mailto:b.hely= er gmail.com" target=3D"_blank">b.helyer gmail.com</a>&gt;<br> wrote:<br> <br> <blockquote class=3D"gmail_quote" style=3D"margin: 0pt 0pt 0pt 0.8ex; borde= r-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;"> On Mon, 07 Mar 2011 20:41:39 -0600, Caligo wrote:<br> <blockquote class=3D"gmail_quote" style=3D"margin: 0pt 0pt 0pt 0.8ex; borde= r-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;"> Do we really need another D compiler that doesn&#39;t work?<br> </blockquote> <br> Name me a working D2 compiler that doesn&#39;t have a front-end based based= <br> on DMD. Furthermore, name me an in progress independent implementation<br> further along than SDC. The only candidate is Dil.<br> <br> SDC _will_ be finished, mark my words.<br> <br> <br> Regards,<br> =A0Some one who remembers why they don&#39;t use the NG that much.<br> <br> <br> </blockquote> <br> Yes, I know about dil, but I wonder why you chose not to contribute to<br> dil instead of starting a new project. =A0AFAIK dil is D1.<br> </blockquote> <br> I know about Dil. aziz is great, the project is great. However, I know<br> and want to use D2/Phobos. Plus, if I&#39;m going to spend years on a<br> project, I may as well use stuff I like. Furthermore, SDC didn&#39;t start<= br> out as a full compiler. Just playing around with lexing/parsing D. NIH<br> syndrome, too.<br> <br> </blockquote> <br> <br> I was aware of your &quot;NIH syndrome&quot;, and that&#39;s why I have a p= roblem with<br> this. =A0The main reason you are doing this is to serve your own needs, to<= br> make yourself feel good, to earn some kind of recognition, but not to serve= <br> the community in any meaningful way. =A0Even if the project fails, it will<= br> look good on your resume because you took the time to develop a compiler.<b= r> This kind of behavior is very common in the FOSS community, and it has<br> become a disease. =A0It&#39;s the reason why there are thousands of dead so= ftware<br> projects that were never completed and maintained.<br> <br> I spoke with Aziz two years ago, and he had the same exact attitude. =A0His= <br> excuse? He hates C++ and he thinks Walter&#39;s front end is horrible. =A0S= o<br> instead of contributing to ldc, he continued to work on his own compiler.<b= r> After years of hard work, I doubt many would be willing to call dil a<br> success. =A0Instead of wasting all his time and energy on dil, Aziz could h= ave<br> contributed to ldc and ldc would have been in a much better shape today.<br=


<br> ldc, etc, let alone have them compile your D code and produce an executable= <br> that runs the way it should.<br> <br> I just don&#39;t understand why people can&#39;t work together. =A0Life is = too damn<br> short.<br> </blockquote> <br></div></div> I for one long for D tools in D. Thank you very much Aziz and Bernard for y= our efforts in this direction. I consider the initial choice of building a = C++ front-end to be a dead-end. Even more since many D programmers precisel= y come to D out of C++ disgust.<br> <br> What would you, Caligo, recommand as an initiative for D to have tools the = D community can easily and happily use *and* contribute to? What would be t= he ideal direction, process, sequence of actions, in your views? How would = you personly engage in this, according to your own moral stances expressed = above?<div> <div></div><div><br> <br> Denis<br> -- <br> _________________<br> vita es estrany<br> <a href=3D"http://spir.wikidot.com" target=3D"_blank">spir.wikidot.com</a><= br> <br> </div></div></blockquote></div><br><br>I want to see people work together a= nd not branch off and do their own thing when there is no good reason for i= t.=A0 We don&#39;t need to keep reinventing the wheel, specially when to th= is day we don&#39;t have a viable, production quality, free and open source= alternative to DMD for D2.=A0 GDC could have been ready a long time ago, b= ut it&#39;s not because development is moving very slow.=A0 So why start a = new project and make an announcement about it when you could be helping out= with GDC?=A0 <br> --20cf307cff746567a1049e166770--
Mar 09 2011
prev sibling parent Caligo <iteronvexor gmail.com> writes:
--20cf3071c90ac76e43049e166972
Content-Type: text/plain; charset=ISO-8859-1

On Tue, Mar 8, 2011 at 9:48 AM, Iain Buclaw <ibuclaw ubuntu.com> wrote:

 == Quote from Caligo (iteronvexor gmail.com)'s article
 --bcaec51a83ee693a30049df97ef8
 Content-Type: text/plain; charset=ISO-8859-1
 On Tue, Mar 8, 2011 at 12:29 AM, Bernard Helyer <b.helyer gmail.com>

 On Tue, 08 Mar 2011 00:15:54 -0600, Caligo wrote:

 On Mon, Mar 7, 2011 at 11:34 PM, Bernard Helyer <b.helyer gmail.com>
 wrote:

 On Mon, 07 Mar 2011 20:41:39 -0600, Caligo wrote:
 Do we really need another D compiler that doesn't work?

Name me a working D2 compiler that doesn't have a front-end based




 on DMD. Furthermore, name me an in progress independent




 further along than SDC. The only candidate is Dil.

 SDC _will_ be finished, mark my words.


 Regards,
  Some one who remembers why they don't use the NG that much.

Yes, I know about dil, but I wonder why you chose not to contribute



 dil instead of starting a new project.  AFAIK dil is D1.

I know about Dil. aziz is great, the project is great. However, I know and want to use D2/Phobos. Plus, if I'm going to spend years on a project, I may as well use stuff I like. Furthermore, SDC didn't start out as a full compiler. Just playing around with lexing/parsing D. NIH syndrome, too.

this. The main reason you are doing this is to serve your own needs, to make yourself feel good, to earn some kind of recognition, but not to

 the community in any meaningful way.  Even if the project fails, it will
 look good on your resume because you took the time to develop a compiler.
 This kind of behavior is very common in the FOSS community, and it has
 become a disease.  It's the reason why there are thousands of dead

 projects that were never completed and maintained.

IMHO, there's no such thing as a completed project. And if there is, then it will need maintaining in 6-12 months time regardless. Libraries change, systems change, compilers change. Ever tried compiling a 'finished' project written 5 years ago with a modern GCC compiler? It can be rather tricky, especially if said project depended on certain mis-features of the language implementation at the time.

Sure, I agree, many software projects are constantly changing and improving. But many software projects also have released versions that one could say are "complete"; the user could use that version for months and perhaps years with no problem. Our university Unix servers have gcc 3.4.4, which is about 7 years old. Hundreds of students use it everyday with no problem. It would be nice to have have the latest version, but it works and does what it's supposed to. Which version of GDC do you feel comfortable using for the next 12 months to compile your D2 code? How about ldc2? --20cf3071c90ac76e43049e166972 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable <br><br><div class=3D"gmail_quote">On Tue, Mar 8, 2011 at 9:48 AM, Iain Buc= law <span dir=3D"ltr">&lt;<a href=3D"mailto:ibuclaw ubuntu.com" target=3D"_= blank">ibuclaw ubuntu.com</a>&gt;</span> wrote:<br><blockquote class=3D"gma= il_quote" style=3D"margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(20= 4, 204, 204); padding-left: 1ex;"> =3D=3D Quote from Caligo (<a href=3D"mailto:iteronvexor gmail.com" target= =3D"_blank">iteronvexor gmail.com</a>)&#39;s article<br> &gt; --bcaec51a83ee693a30049df97ef8<br> &gt; Content-Type: text/plain; charset=3DISO-8859-1<br> <div><div></div><div>&gt; On Tue, Mar 8, 2011 at 12:29 AM, Bernard Helyer &= lt;<a href=3D"mailto:b.helyer gmail.com" target=3D"_blank">b.helyer gmail.c= om</a>&gt; wrote:<br> &gt; &gt; On Tue, 08 Mar 2011 00:15:54 -0600, Caligo wrote:<br> &gt; &gt;<br> &gt; &gt; &gt; On Mon, Mar 7, 2011 at 11:34 PM, Bernard Helyer &lt;<a href= =3D"mailto:b.helyer gmail.com" target=3D"_blank">b.helyer gmail.com</a>&gt;= <br> &gt; &gt; &gt; wrote:<br> &gt; &gt; &gt;<br> &gt; &gt; &gt;&gt; On Mon, 07 Mar 2011 20:41:39 -0600, Caligo wrote:<br> &gt; &gt; &gt;&gt; &gt; Do we really need another D compiler that doesn&#39= ;t work?<br> &gt; &gt; &gt;&gt;<br> &gt; &gt; &gt;&gt; Name me a working D2 compiler that doesn&#39;t have a fr= ont-end based based<br> &gt; &gt; &gt;&gt; on DMD. Furthermore, name me an in progress independent = implementation<br> &gt; &gt; &gt;&gt; further along than SDC. The only candidate is Dil.<br> &gt; &gt; &gt;&gt;<br> &gt; &gt; &gt;&gt; SDC _will_ be finished, mark my words.<br> &gt; &gt; &gt;&gt;<br> &gt; &gt; &gt;&gt;<br> &gt; &gt; &gt;&gt; Regards,<br> &gt; &gt; &gt;&gt; =A0Some one who remembers why they don&#39;t use the NG = that much.<br> &gt; &gt; &gt;&gt;<br> &gt; &gt; &gt;&gt;<br> &gt; &gt; &gt;<br> &gt; &gt; &gt; Yes, I know about dil, but I wonder why you chose not to con= tribute to<br> &gt; &gt; &gt; dil instead of starting a new project. =A0AFAIK dil is D1.<b= r> &gt; &gt;<br> &gt; &gt; I know about Dil. aziz is great, the project is great. However, I= know<br> &gt; &gt; and want to use D2/Phobos. Plus, if I&#39;m going to spend years = on a<br> &gt; &gt; project, I may as well use stuff I like. Furthermore, SDC didn&#3= 9;t start<br> &gt; &gt; out as a full compiler. Just playing around with lexing/parsing D= . NIH<br> &gt; &gt; syndrome, too.<br> &gt; &gt;<br> </div></div><div>&gt; I was aware of your &quot;NIH syndrome&quot;, and tha= t&#39;s why I have a problem with<br> &gt; this. =A0The main reason you are doing this is to serve your own needs= , to<br> &gt; make yourself feel good, to earn some kind of recognition, but not to = serve<br> &gt; the community in any meaningful way. =A0Even if the project fails, it = will<br> &gt; look good on your resume because you took the time to develop a compil= er.<br> &gt; This kind of behavior is very common in the FOSS community, and it has= <br> &gt; become a disease. =A0It&#39;s the reason why there are thousands of de= ad software<br> &gt; projects that were never completed and maintained.<br> <br> </div>IMHO, there&#39;s no such thing as a completed project. And if there = is, then it will<br> need maintaining in 6-12 months time regardless.<br> <br> Libraries change, systems change, compilers change.<br> <br> Ever tried compiling a &#39;finished&#39; project written 5 years ago with = a modern GCC<br> compiler? It can be rather tricky, especially if said project depended on c= ertain<br> mis-features of the language implementation at the time.<br> </blockquote></div><br><br>Sure, I agree, many software projects are consta= ntly changing and improving.=A0 But many software projects also have releas= ed versions that one could say are &quot;complete&quot;; the user could use= that version for months and perhaps years with no problem.=A0 Our universi= ty Unix servers have gcc 3.4.4, which is about 7 years old.=A0 Hundreds of = students use it everyday with no problem.=A0 It would be nice to have have = the latest version, but it works and does what it&#39;s supposed to.=A0 Whi= ch version of GDC do you feel comfortable using for the next 12 months to c= ompile your D2 code?=A0 How about ldc2?<br> --20cf3071c90ac76e43049e166972--
Mar 09 2011
prev sibling next sibling parent Caligo <iteronvexor gmail.com> writes:
--00151774198a422a19049def8de1
Content-Type: text/plain; charset=ISO-8859-1

On Mon, Mar 7, 2011 at 7:54 PM, Bernard Helyer <b.helyer gmail.com> wrote:

 On Mon, 07 Mar 2011 20:03:36 +0000, filgood wrote:

 as described here:

 http://nondot.org/sabre/LLVMNotes/TypeSystemRewrite.txt

 Btw, what is the status of the D2 LLVM compiler?

You're probably wondering about LDC2, but I'll chip in with SDC's ( https://github.com/bhelyer/SDC ) status here: On the road to some kind of 0.1, but a lot of work to be done -- it should land some time this year, however. Keeping current with DMD releases, current with LLVM releases.

Do we really need another D compiler that doesn't work? --00151774198a422a19049def8de1 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable <br><br><div class=3D"gmail_quote">On Mon, Mar 7, 2011 at 7:54 PM, Bernard = Helyer <span dir=3D"ltr">&lt;<a href=3D"mailto:b.helyer gmail.com">b.helyer= gmail.com</a>&gt;</span> wrote:<br><blockquote class=3D"gmail_quote" style= =3D"margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); p= adding-left: 1ex;"> <div><div></div><div class=3D"h5">On Mon, 07 Mar 2011 20:03:36 +0000, filgo= od wrote:<br> <br> &gt; as described here:<br> &gt;<br> &gt; <a href=3D"http://nondot.org/sabre/LLVMNotes/TypeSystemRewrite.txt" ta= rget=3D"_blank">http://nondot.org/sabre/LLVMNotes/TypeSystemRewrite.txt</a>= <br> &gt;<br> &gt; Btw, what is the status of the D2 LLVM compiler?<br> <br> </div></div>You&#39;re probably wondering about LDC2, but I&#39;ll chip in = with SDC&#39;s<br> ( <a href=3D"https://github.com/bhelyer/SDC" target=3D"_blank">https://gith= ub.com/bhelyer/SDC</a> ) status here:<br> <br> On the road to some kind of 0.1, but a lot of work to be done -- it<br> should land some time this year, however.<br> <br> Keeping current with DMD releases, current with LLVM releases.<br> <br> <br> </blockquote></div><br><br>Do we really need another D compiler that doesn&= #39;t work?=A0 <br> --00151774198a422a19049def8de1--
Mar 07 2011
prev sibling next sibling parent "Jason E. Aten" <j.e.aten gmail.com> writes:
--0016e6dbe98110857c049df90372
Content-Type: text/plain; charset=ISO-8859-1

On Tue, Mar 8, 2011 at 2:15 AM, Jens Mueller <jens.k.mueller gmx.de> wrote,
on the old thread titled "LLVM 3.0 type system changes"

 Can you talk me through the building process? I tried it a week ago but
 with no success. Can you post the necessary steps on this list or to me
 in private?

I can try to sketch the important aspects, but obviously this protocol hasn't been tested very widely, so feel free to post back any refinements. Even better if you want to patch the repositories. Some of these may be out of order, especially the CMakeCache.txt edits, so if anything goes wrong, check the variables mentioned below in CMakeCache.txt, and that your ldc2.conf is correct. Those are the most important two control files. I'll start a new thread with a new title to make this easy to find, and more on topic. I. Acknowledgements Heavy credit for this is due to mrmonday on #ldc who guided me and graciously offered assistance. Errors and typos are mine alone. I. Protocol: "Building LDC2 on Linux x86_64, as of Feb 28 2011": II. Protcol: Building LDC2 on Linux x86_64. Prereqs: cmake, git, hg, llvm2.8 from source already installed (package installs of llvm2.8 might work too, I don't know). # 1) Check out ldc2, druntime, and phobos2: $ hg clone https://bitbucket.org/prokhin_alexey/ldc2 $ cd ldc2 $ git clone https://github.com/AlexeyProkhin/druntime $ git clone https://github.com/AlexeyProkhin/phobos # 2) Configure (apparently you can also use ccmake with gui, but I didn't)$ cmake . # 3) Fix up the CMakeCache.txt file: # 3 a) edit CMakeCache.txt by hand, and set D_VERSION to 2, as on these two lines: ... //D language version - will originally be set to 1, change it to 2 like this: D_VERSION:STRING=2 ... # 3 b) check on the variables mentioned in 3 d). I don't think that they will be present yet, but if they aren't, it can't hurt to fix them now as well. # 3 c) make (this should hopefully build bin/ldc2 now ) $ make # there will be some const warnings, but the build finishes for me. # 3 d) edit CMakeCache.txt again (it will have changed/had appendixes now I think) and fix these two variables: ... //runtime source dir RUNTIME_DIR:PATH=/home/jaten/pkg/ldc2/ldc2/druntime ... //phobos2 source dir PHOBOS2_DIR:PATH=/home/jaten/pkg/ldc2/ldc2/phobos ... # 4) modify your your .bashrc to set PATH to include ./bin in front of everything else echo "export PATH=`pwd`/bin:\$PATH" >> ~/.bashrc . ~/.bashrc which ldc2 # should show the one in ./bin now # 5) build druntime and phobos with the command: make phobos2 $ make phobos2 # 6) edit ./bin/ldc2.conf so that it points to the right places. Here is a copy of mine that seems to work. The point of the editing is to make sure that paths are correct, especially the third -I (Include line), which was often wrong out of the box when I was working with it. jaten dfw:~$ cat ldc2.conf // This configuration file uses libconfig. // See http://www.hyperrealm.com/libconfig/ for syntax details. // The default group is required default: { // 'switches' holds array of string that are appends to the command line // arguments before they are parsed. switches = [ "-I/home/jaten/pkg/llvm+lldb+ldc/prokhin_alexeys_ldc2/ldc2/druntime/import", "-I/home/jaten/pkg/llvm+lldb+ldc/prokhin_alexeys_ldc2/ldc2/druntime/src", "-I/home/jaten/pkg/llvm+lldb+ldc/prokhin_alexeys_ldc2/ldc2/phobos/", "-L-L/home/jaten/pkg/llvm+lldb+ldc/prokhin_alexeys_ldc2/ldc2/runtime/../lib", "-defaultlib=phobos2", "-debuglib=phobos2" ]; }; jaten dfw:~$ # 7) Finished. Test and note variances from the protocol above. III. Appendix: Trouble shooting notes If anything goes wrong, in my experience it was due to the settings in either CMakeCache.txt, or in ./bin/ldc2.conf Those are the two places I would look at first when troubleshooting. A) When you edit the CMakeCache.txt, be sure to check that PHOBOS2_DIR gets set to ./phobos and not ../druntime # example that works: jaten dfw:~$ cat CMakeCache.txt.afarm_works_ldc2 | grep PHOBOS2_DIR PHOBOS2_DIR:PATH=/home/jaten/pkg/llvm+lldb+ldc/prokhin_alexeys_ldc2/ldc2/phobos # example that DOES NOT work: jaten dfw:~$ cat CMakeCache.txt.dfw_notwork_ldc2 | grep PHOBOS2_DIR PHOBOS2_DIR:PATH=/home/jaten/pkg/ldc2/ldc2/../druntime B) Be sure in CMakeCache.txt you have these three variables set correctly, with obvious edits for your paths, not mine: ... //D language version D_VERSION:STRING=2 ... //runtime source dir RUNTIME_DIR:PATH=/home/jaten/pkg/ldc2/ldc2/druntime ... //phobos2 source dir PHOBOS2_DIR:PATH=/home/jaten/pkg/ldc2/ldc2/phobos --0016e6dbe98110857c049df90372 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable On Tue, Mar 8, 2011 at 2:15 AM, Jens Mueller <span dir=3D"ltr">&lt;<a href= =3D"mailto:jens.k.mueller gmx.de">jens.k.mueller gmx.de</a>&gt;</span> wrot= e, on the old thread titled &quot;LLVM 3.0 type system changes&quot;<br><di= v class=3D"gmail_quote"> <blockquote class=3D"gmail_quote" style=3D"margin: 0pt 0pt 0pt 0.8ex; borde= r-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;"><div><div></div>C= an you talk me through the building process? I tried it a week ago but<br><= /div> with no success. Can you post the necessary steps on this list or to me<br> in private?<br></blockquote><div><br>I can try to sketch the important aspe= cts, but obviously this protocol hasn&#39;t been tested very widely, so fee= l free to post back any refinements.=A0 Even better if you want to patch th= e repositories.=A0 Some of these may be out of order, especially the CMakeC= ache.txt edits, so if anything goes wrong, check the variables mentioned be= low in CMakeCache.txt, and that your ldc2.conf is correct. Those are the mo= st important two control files.<br> <br>I&#39;ll start a new thread with a new title to make this easy to find,= and more on topic.<br><br><font face=3D"&#39;courier new&#39;, monospace">= I. Acknowledgements<br> </font><br>Heavy credit for this is due to mrmonday on #ldc who guided me a= nd graciously offered<br>assistance.=A0 Errors and typos are mine alone.<br=
<br>I. Protocol:=A0 &quot;Building LDC2 on Linux x86_64, as of Feb 28 2011=

<font face=3D"&#39;courier new&#39;, monospace">II. Protcol: Building LDC2 = on Linux x86_64.<br><br> </font><br><br>Prereqs: cmake, git, hg, llvm2.8 from source already install= ed (package installs of llvm2.8 might work too, I don&#39;t know).<br><br><= font face=3D"&#39;courier new&#39;, monospace"><span style=3D"color: rgb(68= , 68, 68); font-family: Helvetica,Arial,sans-serif; font-size: 14px; line-h= eight: 21px;"><pre style=3D"margin: 0px; padding: 0px; border-width: 0px; f= ont-weight: inherit; font-style: inherit; font-size: 14px; font-family: mon= ospace ! important; vertical-align: baseline; line-height: 1.4em ! importan= t; white-space: pre ! important;"> <span style=3D"margin: 0px; padding: 0px; border-width: 0px; font-weight: i= nherit; font-style: italic; font-size: 14px; font-family: inherit; vertical= -align: baseline; color: rgb(153, 153, 136);"># 1) Check out ldc2, druntime= , and phobos2</span>:<br> <a name=3D"cl-2" style=3D"margin: 0px; padding: 0px 3px; border-width: 0px;= font-weight: inherit; font-style: inherit; font-size: 14px; font-family: i= nherit; vertical-align: baseline; text-decoration: none; color: inherit; di= splay: block;"></a><span style=3D"margin: 0px; padding: 0px; border-width: = 0px; font-weight: inherit; font-style: inherit; font-size: 14px; font-famil= y: inherit; vertical-align: baseline; color: rgb(0, 128, 128);">$ </span>hg= clone <a href=3D"https://bitbucket.org/prokhin_alexey/ldc2">https://bitbuc= ket.org/prokhin_alexey/ldc2</a><br> <a name=3D"cl-3" style=3D"margin: 0px; padding: 0px 3px; border-width: 0px;= font-weight: inherit; font-style: inherit; font-size: 14px; font-family: i= nherit; vertical-align: baseline; text-decoration: none; color: inherit; di= splay: block;"></a><span style=3D"margin: 0px; padding: 0px; border-width: = 0px; font-weight: inherit; font-style: inherit; font-size: 14px; font-famil= y: inherit; vertical-align: baseline; color: rgb(0, 128, 128);">$ </span><s= pan style=3D"margin: 0px; padding: 0px; border-width: 0px; font-weight: inh= erit; font-style: inherit; font-size: 14px; font-family: inherit; vertical-= align: baseline; color: rgb(153, 153, 153);">cd </span>ldc2<br> <a name=3D"cl-4" style=3D"margin: 0px; padding: 0px 3px; border-width: 0px;= font-weight: inherit; font-style: inherit; font-size: 14px; font-family: i= nherit; vertical-align: baseline; text-decoration: none; color: inherit; di= splay: block;"></a><span style=3D"margin: 0px; padding: 0px; border-width: = 0px; font-weight: inherit; font-style: inherit; font-size: 14px; font-famil= y: inherit; vertical-align: baseline; color: rgb(0, 128, 128);">$ </span>gi= t clone <a href=3D"https://github.com/AlexeyProkhin/druntime">https://githu= b.com/AlexeyProkhin/druntime</a><br> <a name=3D"cl-5" style=3D"margin: 0px; padding: 0px 3px; border-width: 0px;= font-weight: inherit; font-style: inherit; font-size: 14px; font-family: i= nherit; vertical-align: baseline; text-decoration: none; color: inherit; di= splay: block;"></a><span style=3D"margin: 0px; padding: 0px; border-width: = 0px; font-weight: inherit; font-style: inherit; font-size: 14px; font-famil= y: inherit; vertical-align: baseline; color: rgb(0, 128, 128);">$ </span>gi= t clone <a href=3D"https://github.com/AlexeyProkhin/phobos">https://github.= com/AlexeyProkhin/phobos</a><br> <a name=3D"cl-6" style=3D"margin: 0px; padding: 0px 3px; border-width: 0px;= font-weight: inherit; font-style: inherit; font-size: 14px; font-family: i= nherit; vertical-align: baseline; text-decoration: none; color: inherit; di= splay: block;"></a><span style=3D"margin: 0px; padding: 0px; border-width: = 0px; font-weight: inherit; font-style: italic; font-size: 14px; font-family= : inherit; vertical-align: baseline; color: rgb(153, 153, 136);"><br> # 2) Configure (apparently you can also use ccmake with gui, but I didn&#39= ;t)</span><a name=3D"cl-7" style=3D"margin: 0px; padding: 0px 3px; border-w= idth: 0px; font-weight: inherit; font-style: inherit; font-size: 14px; font= -family: inherit; vertical-align: baseline; text-decoration: none; color: i= nherit; display: block;"></a><span style=3D"margin: 0px; padding: 0px; bord= er-width: 0px; font-weight: inherit; font-style: inherit; font-size: 14px; = font-family: inherit; vertical-align: baseline; color: rgb(0, 128, 128);">$= </span>cmake .</pre> <pre style=3D"margin: 0px; padding: 0px; border-width: 0px; font-weight: in= herit; font-style: inherit; font-size: 14px; font-family: monospace ! impor= tant; vertical-align: baseline; line-height: 1.4em ! important; white-space= : pre ! important;"> <br># 3) Fix up the CMakeCache.txt file:<br><br></pre><pre style=3D"margin:= 0px; padding: 0px; border-width: 0px; font-weight: inherit; font-style: in= herit; font-size: 14px; font-family: monospace ! important; vertical-align:= baseline; line-height: 1.4em ! important; white-space: pre ! important;"> # 3 a) edit CMakeCache.txt by hand, and set D_VERSION to 2, as on these two= lines:<br>...<br></pre><pre style=3D"margin: 0px; padding: 0px; border-wid= th: 0px; font-weight: inherit; font-style: inherit; font-size: 14px; font-f= amily: monospace ! important; vertical-align: baseline; line-height: 1.4em = ! important; white-space: pre ! important;"> //D language version - will originally be set to 1, change it to 2 like thi= s:<br>D_VERSION:STRING=3D2</pre><pre style=3D"margin: 0px; padding: 0px; bo= rder-width: 0px; font-weight: inherit; font-style: inherit; font-size: 14px= ; font-family: monospace ! important; vertical-align: baseline; line-height= : 1.4em ! important; white-space: pre ! important;"> ...<br><br># 3 b) check on the variables mentioned in 3 d). I don&#39;t thi= nk that they will be present yet, but<br>if they aren&#39;t, it can&#39;t h= urt to fix them now as well.<br><br># 3 c) make (this should hopefully buil= d bin/ldc2 now )<br> $ make<br><br># there will be some const warnings, but the build finishes f= or me.<br><br># 3 d) edit CMakeCache.txt again (it will have changed/had ap= pendixes now I think) and fix these two variables:<br></pre></span></font><= br> ...<br><div><div>//runtime source dir</div><div>RUNTIME_DIR:PATH=3D/home/ja= ten/pkg/ldc2/ldc2/druntime</div><div>...</div><div><div>//phobos2 source di= r</div><div>PHOBOS2_DIR:PATH=3D/home/jaten/pkg/ldc2/ldc2/phobos</div><div>.= ..<br> <br># 4) modify your your .bashrc to set PATH to include ./bin in front of = everything else<br><br>echo &quot;export PATH=3D`pwd`/bin:\$PATH&quot; &gt;= &gt; ~/.bashrc<br>.=A0 ~/.bashrc<br>which ldc2 # should show the one in ./b= in now<br> <br><br># 5) build druntime and phobos with the command: make phobos2<br><b= r><br></div></div></div>$ make phobos2<br><br><br># 6) edit=A0=A0 ./bin/ldc= 2.conf so that it points to the right places.=A0 Here is a copy of mine tha= t seems to work. The point of the editing is to make sure that paths are co= rrect, especially the third -I (Include line), which was often wrong out of= the box when I was working with it.<br> <br><div><div><font face=3D"&#39;courier new&#39;, monospace">jaten dfw:~$ = cat ldc2.conf</font></div><div><font face=3D"&#39;courier new&#39;, monospa= ce">// This configuration file uses libconfig.</font></div><div><font face= =3D"&#39;courier new&#39;, monospace">// See <a href=3D"http://www.hyperrea= lm.com/libconfig/">http://www.hyperrealm.com/libconfig/</a> for syntax deta= ils.</font></div> <div><font face=3D"&#39;courier new&#39;, monospace"><br></font></div><div>= <font face=3D"&#39;courier new&#39;, monospace">// The default group is req= uired</font></div><div><font face=3D"&#39;courier new&#39;, monospace">defa= ult:</font></div> <div><font face=3D"&#39;courier new&#39;, monospace">{ =A0=A0</font></div><= div><font face=3D"&#39;courier new&#39;, monospace">=A0=A0 =A0// &#39;switc= hes&#39; holds array of string that are appends to the command line</font><= /div><div> <font face=3D"&#39;courier new&#39;, monospace">=A0=A0 =A0// arguments befo= re they are parsed.</font></div><div><font face=3D"&#39;courier new&#39;, m= onospace">=A0=A0 =A0switches =3D [</font></div><div><font face=3D"&#39;cour= ier new&#39;, monospace">=A0=A0 =A0 =A0 =A0&quot;-I/home/jaten/pkg/llvm+lld= b+ldc/prokhin_alexeys_ldc2/ldc2/druntime/import&quot;,</font></div> <div><font face=3D"&#39;courier new&#39;, monospace">=A0=A0 =A0 =A0 =A0&quo= t;-I/home/jaten/pkg/llvm+lldb+ldc/prokhin_alexeys_ldc2/ldc2/druntime/src&qu= ot;,</font></div><div><font face=3D"&#39;courier new&#39;, monospace">=A0= =A0 =A0 =A0 =A0&quot;-I/home/jaten/pkg/llvm+lldb+ldc/prokhin_alexeys_ldc2/l= dc2/phobos/&quot;,</font></div> <div><font face=3D"&#39;courier new&#39;, monospace">=A0=A0 =A0 =A0 =A0&quo= t;-L-L/home/jaten/pkg/llvm+lldb+ldc/prokhin_alexeys_ldc2/ldc2/runtime/../li= b&quot;,</font></div><div><font face=3D"&#39;courier new&#39;, monospace">= =A0=A0 =A0 =A0 =A0&quot;-defaultlib=3Dphobos2&quot;,</font></div> <div><font face=3D"&#39;courier new&#39;, monospace">=A0=A0 =A0 =A0 =A0&quo= t;-debuglib=3Dphobos2&quot;</font></div><div><font face=3D"&#39;courier new= &#39;, monospace">=A0=A0 =A0];</font></div><div><font face=3D"&#39;courier = new&#39;, monospace">};</font></div> <div><font face=3D"&#39;courier new&#39;, monospace">jaten dfw:~$=A0</font>= </div><div><font face=3D"&#39;courier new&#39;, monospace"><br># 7) Finishe= d.=A0 Test and note variances from the protocol above.<br></font></div><div=
<font face=3D"&#39;courier new&#39;, monospace"><br>

my experience it was due to the settings in either CMakeCache.txt, or in .= /bin/ldc2.conf=A0 Those are the two places I would look at first when troub= leshooting.<br> <br></font></div></div><div>A) When you edit the CMakeCache.txt, be sure to= check that PHOBOS2_DIR gets set to ./phobos and not ../druntime</div><div>= <br># example that works:<br></div><div>jaten dfw:~$ cat CMakeCache.txt.afa= rm_works_ldc2 | grep PHOBOS2_DIR</div> <div>PHOBOS2_DIR:PATH=3D/home/jaten/pkg/llvm+lldb+ldc/prokhin_alexeys_ldc2/= ldc2/phobos</div><div><br># example that DOES NOT work:<br>jaten dfw:~$ cat= CMakeCache.txt.dfw_notwork_ldc2 | grep PHOBOS2_DIR</div><div>PHOBOS2_DIR:P= ATH=3D/home/jaten/pkg/ldc2/ldc2/../druntime</div> <div><br></div><br><div>B) Be sure in CMakeCache.txt you have these three v= ariables=20 set correctly, with obvious edits for your paths, not mine:<br><br></div><d= iv><div>...<br></div><div>//D language version</div><div>D_VERSION:STRING= =3D2</div><div>...</div></div><div><div>//runtime source dir</div><div>RUNT= IME_DIR:PATH=3D/home/jaten/pkg/ldc2/ldc2/druntime</div> <div>...</div><div><div>//phobos2 source dir</div><div>PHOBOS2_DIR:PATH=3D/= home/jaten/pkg/ldc2/ldc2/phobos</div><div><br></div></div></div><br><div><b= r><br></div></div></div> --0016e6dbe98110857c049df90372--
Mar 08 2011
prev sibling next sibling parent "Jason E. Aten" <j.e.aten gmail.com> writes:
--0016e64c1afc622b4f049df94807
Content-Type: text/plain; charset=ISO-8859-1

On Tue, Mar 8, 2011 at 7:58 AM, Jason E. Aten <j.e.aten gmail.com> wrote:

 I. Protocol:  "Building LDC2 on Linux x86_64":

Please see the new thread titled, "how to build LDC2 on linux x86_64". There is already one correction posted there already. My apologies: I didn't mean to replicate this in both threads. A typo keypress posted it here before it was ready. Please make any refinements on how to install LDC2 on that thread. Thanks! Jason --0016e64c1afc622b4f049df94807 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable On Tue, Mar 8, 2011 at 7:58 AM, Jason E. Aten <span dir=3D"ltr">&lt;<a href= =3D"mailto:j.e.aten gmail.com">j.e.aten gmail.com</a>&gt;</span> wrote:<br>= <div class=3D"gmail_quote"><blockquote class=3D"gmail_quote" style=3D"margi= n: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-le= ft: 1ex;"> <div class=3D"gmail_quote"><div>I. Protocol:=A0 &quot;Building LDC2 on Linu= x x86_64&quot;:<br></div></div></blockquote></div><br>Please see the new th= read titled, <span id=3D":5j" class=3D"hP">&quot;how to build LDC2 on linux= x86_64&quot;.=A0 There is already one correction posted there already.=A0 = My apologies: I didn&#39;t mean to replicate this in both threads.=A0 A typ= o keypress posted it here before it was ready.<br> <br>Please make any refinements on how to install LDC2 on that thread. <br>= <br>Thanks!<br><br>Jason<br></span> --0016e64c1afc622b4f049df94807--
Mar 08 2011
prev sibling parent spir <denis.spir gmail.com> writes:
On 03/08/2011 03:33 PM, Caligo wrote:
 On Tue, Mar 8, 2011 at 12:29 AM, Bernard Helyer<b.helyer gmail.com>  wrote:

 On Tue, 08 Mar 2011 00:15:54 -0600, Caligo wrote:

 On Mon, Mar 7, 2011 at 11:34 PM, Bernard Helyer<b.helyer gmail.com>
 wrote:

 On Mon, 07 Mar 2011 20:41:39 -0600, Caligo wrote:
 Do we really need another D compiler that doesn't work?

Name me a working D2 compiler that doesn't have a front-end based based on DMD. Furthermore, name me an in progress independent implementation further along than SDC. The only candidate is Dil. SDC _will_ be finished, mark my words. Regards, Some one who remembers why they don't use the NG that much.

Yes, I know about dil, but I wonder why you chose not to contribute to dil instead of starting a new project. AFAIK dil is D1.

I know about Dil. aziz is great, the project is great. However, I know and want to use D2/Phobos. Plus, if I'm going to spend years on a project, I may as well use stuff I like. Furthermore, SDC didn't start out as a full compiler. Just playing around with lexing/parsing D. NIH syndrome, too.

I was aware of your "NIH syndrome", and that's why I have a problem with this. The main reason you are doing this is to serve your own needs, to make yourself feel good, to earn some kind of recognition, but not to serve the community in any meaningful way. Even if the project fails, it will look good on your resume because you took the time to develop a compiler. This kind of behavior is very common in the FOSS community, and it has become a disease. It's the reason why there are thousands of dead software projects that were never completed and maintained. I spoke with Aziz two years ago, and he had the same exact attitude. His excuse? He hates C++ and he thinks Walter's front end is horrible. So instead of contributing to ldc, he continued to work on his own compiler. After years of hard work, I doubt many would be willing to call dil a success. Instead of wasting all his time and energy on dil, Aziz could have contributed to ldc and ldc would have been in a much better shape today. And maybe, just maybe, today we would have a production quality free and open source D compiler that just works. Good luck trying to compile dil, ldc, etc, let alone have them compile your D code and produce an executable that runs the way it should. I just don't understand why people can't work together. Life is too damn short.

I for one long for D tools in D. Thank you very much Aziz and Bernard for your efforts in this direction. I consider the initial choice of building a C++ front-end to be a dead-end. Even more since many D programmers precisely come to D out of C++ disgust. What would you, Caligo, recommand as an initiative for D to have tools the D community can easily and happily use *and* contribute to? What would be the ideal direction, process, sequence of actions, in your views? How would you personly engage in this, according to your own moral stances expressed above? Denis -- _________________ vita es estrany spir.wikidot.com
Mar 08 2011