Re: DMD 2.x compiler in Arch Linux repo
On Sun, 15 Jan 2012 23:16:23 +0100 "Михаил Страшун" wrote: > http://www.archlinux.org/packages/?q=dmd > > Since today 2.x branch of dmd is in Arch Linux [community] repo, > replacing 1.x branch. Great news! Sincerely, Gour(uninstalling dmd2-complete and installing dmd package) -- One who restrains the senses of action but whose mind dwells on sense objects certainly deludes himself and is called a pretender. http://atmarama.net | Hlapicina (Croatia) | GPG: 52B5C810 signature.asc Description: PGP signature
Re: update.sh
On 2012-01-16 06:20, Nick Sabalausky wrote: "Andrei Alexandrescu" wrote in message news:jevr6q$8vp$1...@digitalmars.com... I just added a handy script, tools/update.sh. https://github.com/D-Programming-Language/tools/commit/cc4e3c07c2ebb19dbb90c2d29c828f5fb714e605 It's useful for people who work on dmd and want to either download anew or freshen their repositories. Comments and ideas are welcome. Soo...you made a tool to do what DVM already does? ;) And only works on Posix. -- /Jacob Carlborg
Re: DMD 2.x compiler in Arch Linux repo
On 01/15/2012 04:16 PM, Михаил Страшун wrote: http://www.archlinux.org/packages/?q=dmd Since today 2.x branch of dmd is in Arch Linux [community] repo, replacing 1.x branch. Oh wow, I was just complaining about that the other day on their IRC channel and the dmd-complete package (which was the AUR package that essentially did what the current dmd package does). Much rejoicing, this makes life less complicated. Although, there was *already* a dmd package before this for D1. I guess they just dropped it. I still don't see why dmd for D2 isn't just dmd2 to simplify things.
Re: update.sh
"Andrei Alexandrescu" wrote in message news:jevr6q$8vp$1...@digitalmars.com... >I just added a handy script, tools/update.sh. > > https://github.com/D-Programming-Language/tools/commit/cc4e3c07c2ebb19dbb90c2d29c828f5fb714e605 > > It's useful for people who work on dmd and want to either download anew or > freshen their repositories. > > Comments and ideas are welcome. > > Soo...you made a tool to do what DVM already does? ;)
Re: update.sh
On 1/15/12 11:07 PM, Jordi Sayol wrote: Now it works! But always compiles to 32-bit. Can it pass MODEL=xx to make? Done. https://github.com/D-Programming-Language/tools/commit/f4af4d29a66e5152da92e28550a607d1252840e4 Andrei
Re: update.sh
Al 16/01/12 05:16, En/na Andrei Alexandrescu ha escrit: > On 1/15/12 9:15 PM, Jesse Phillips wrote: >> Note that the line shown is using pulling as the D-Programming-Language >> organization, so only members there will have such access. You could use >> the read only version: >> >> git://github.com/D-Programming-Language/tools.git >> >> I might suggest using: >> >> git clone -o upstream git://github.com/D-Programming-Language/tools.git >> >> for cloning a new repository. This would allow developers to add their >> fork of the repository as origin (Default remote name). So now the >> update script would have to pull from upstream instead of origin to do >> the update... This will be a common setup for not D-Programming-Language >> organization members. > > Updated, please advise. Thanks! > > https://github.com/D-Programming-Language/tools/commit/c5c61a67b7f043f8127d3bf92c98d19a30d6b06d > > Andrei > Now it works! But always compiles to 32-bit. Can it pass MODEL=xx to make? -- Jordi Sayol
Re: update.sh
On 1/15/12 9:15 PM, Jesse Phillips wrote: Note that the line shown is using pulling as the D-Programming-Language organization, so only members there will have such access. You could use the read only version: git://github.com/D-Programming-Language/tools.git I might suggest using: git clone -o upstream git://github.com/D-Programming-Language/tools.git for cloning a new repository. This would allow developers to add their fork of the repository as origin (Default remote name). So now the update script would have to pull from upstream instead of origin to do the update... This will be a common setup for not D-Programming-Language organization members. Updated, please advise. Thanks! https://github.com/D-Programming-Language/tools/commit/c5c61a67b7f043f8127d3bf92c98d19a30d6b06d Andrei
Re: update.sh
On Monday, 16 January 2012 at 02:28:37 UTC, Andrei Alexandrescu wrote: Looks like the issue is this: git clone g...@github.com:D-Programming-Language/dmd.git Do you have a github account set up that would let you run the command above? If not, I wonder how the situation can be detected and what instructions to give the user. Andrei Note that the line shown is using pulling as the D-Programming-Language organization, so only members there will have such access. You could use the read only version: git://github.com/D-Programming-Language/tools.git I might suggest using: git clone -o upstream git://github.com/D-Programming-Language/tools.git for cloning a new repository. This would allow developers to add their fork of the repository as origin (Default remote name). So now the update script would have to pull from upstream instead of origin to do the update... This will be a common setup for not D-Programming-Language organization members.
Re: update.sh
Al 16/01/12 03:28, En/na Andrei Alexandrescu ha escrit: > On 1/15/12 7:39 PM, Jordi Sayol wrote: >> Al 16/01/12 01:32, En/na Andrei Alexandrescu ha escrit: >>> I just added a handy script, tools/update.sh. >>> >>> https://github.com/D-Programming-Language/tools/commit/cc4e3c07c2ebb19dbb90c2d29c828f5fb714e605 >>> >>> It's useful for people who work on dmd and want to either download anew or >>> freshen their repositories. >>> >>> Comments and ideas are welcome. >>> >>> >>> Andrei >>> >> >> I got attached errors on Ubuntu 11.04 64-bit, zsh v.4.3.11 > > Thanks for looking into this, Jordi. > > Looks like the issue is this: > > git clone g...@github.com:D-Programming-Language/dmd.git > > Do you have a github account set up that would let you run the command above? > If not, I wonder how the situation can be detected and what instructions to > give the user. > > > Andrei > > I've a github account and the above command returns the same error than update.sh script. however, this command successfully finish: $ git clone https://github.com/D-Programming-Language/d-programming-language.org.git -- Jordi Sayol
Re: update.sh
On 1/15/2012 6:28 PM, Andrei Alexandrescu wrote: > On 1/15/12 7:39 PM, Jordi Sayol wrote: >> Al 16/01/12 01:32, En/na Andrei Alexandrescu ha escrit: >>> I just added a handy script, tools/update.sh. >>> >>> https://github.com/D-Programming-Language/tools/commit/cc4e3c07c2ebb19dbb90c2d29c828f5fb714e605 >>> >>> It's useful for people who work on dmd and want to either download anew or >>> freshen their repositories. >>> >>> Comments and ideas are welcome. >>> >>> >>> Andrei >>> >> >> I got attached errors on Ubuntu 11.04 64-bit, zsh v.4.3.11 > > Thanks for looking into this, Jordi. > > Looks like the issue is this: > > git clone g...@github.com:D-Programming-Language/dmd.git > > Do you have a github account set up that would let you run the command above? > If not, I wonder how the situation can be > detected and what instructions to give the user. > > > Andrei IMHO, if you're building from source, you might as well take the time to setup a github account. Otherwise, what's the point? Might as well grab the release binaries.
Re: update.sh
On 1/15/12 7:39 PM, Jordi Sayol wrote: Al 16/01/12 01:32, En/na Andrei Alexandrescu ha escrit: I just added a handy script, tools/update.sh. https://github.com/D-Programming-Language/tools/commit/cc4e3c07c2ebb19dbb90c2d29c828f5fb714e605 It's useful for people who work on dmd and want to either download anew or freshen their repositories. Comments and ideas are welcome. Andrei I got attached errors on Ubuntu 11.04 64-bit, zsh v.4.3.11 Thanks for looking into this, Jordi. Looks like the issue is this: git clone g...@github.com:D-Programming-Language/dmd.git Do you have a github account set up that would let you run the command above? If not, I wonder how the situation can be detected and what instructions to give the user. Andrei
Re: update.sh
Al 16/01/12 01:32, En/na Andrei Alexandrescu ha escrit: > I just added a handy script, tools/update.sh. > > https://github.com/D-Programming-Language/tools/commit/cc4e3c07c2ebb19dbb90c2d29c828f5fb714e605 > > It's useful for people who work on dmd and want to either download anew or > freshen their repositories. > > Comments and ideas are welcome. > > > Andrei > I got attached errors on Ubuntu 11.04 64-bit, zsh v.4.3.11 -- Jordi Sayol ~/test$ ./update.sh *** The following projects will be INSTALLED: /home/jordi/test/dmd /home/jordi/test/druntime /home/jordi/test/phobos /home/jordi/test/d-programming-language.org /home/jordi/test/tools /home/jordi/test/installer Is this what you want? y Permission denied (publickey). fatal: The remote end hung up unexpectedly Permission denied (publickey). fatal: The remote end hung up unexpectedly Permission denied (publickey). fatal: The remote end hung up unexpectedly Permission denied (publickey). fatal: The remote end hung up unexpectedly Permission denied (publickey). fatal: The remote end hung up unexpectedly Permission denied (publickey). fatal: The remote end hung up unexpectedly Getting dmd failed. ~/test$
Re: A tutorial on D templates
On 1/15/12 4:19 PM, Philippe Sigaud wrote: On Sun, Jan 15, 2012 at 17:00, Ali Çehreli wrote: I do think a big range tutorial is overdue. Andrei's article is good, but we need something a bit more detailed / for newbies I am hoping that this is good enough for now: http://ddili.org/ders/d.en/ranges.html It sure is! This should be advertised somehow. Should I redditize? Andrei
Re: DMD 2.x compiler in Arch Linux repo
On 1/15/12 4:16 PM, Михаил Страшун wrote: http://www.archlinux.org/packages/?q=dmd Since today 2.x branch of dmd is in Arch Linux [community] repo, replacing 1.x branch. Awesome! Should I announce that on reddit? Andrei
update.sh
I just added a handy script, tools/update.sh. https://github.com/D-Programming-Language/tools/commit/cc4e3c07c2ebb19dbb90c2d29c828f5fb714e605 It's useful for people who work on dmd and want to either download anew or freshen their repositories. Comments and ideas are welcome. Andrei
Re: DMD 2.x compiler in Arch Linux repo
Yay! So happy! Finally there's no hard choice to make which package to choose from the AUR! And it works perfectly out- of-the-box! On 15 January 2012 23:57, Jordi Sayol wrote: > Al 15/01/12 23:16, En/na Михаил Страшун ha escrit: >> http://www.archlinux.org/packages/?q=dmd >> >> Since today 2.x branch of dmd is in Arch Linux [community] repo, replacing >> 1.x branch. >> > > Very good news! > > It works like a charm. Congratulations! > > Just one question. Why you place the phobos modules at /usr/include/d instead > of an specific phobos folder? > > Best regards, > -- > Jordi Sayol >
Re: DMD 2.x compiler in Arch Linux repo
Al 15/01/12 23:16, En/na Михаил Страшун ha escrit: > http://www.archlinux.org/packages/?q=dmd > > Since today 2.x branch of dmd is in Arch Linux [community] repo, replacing > 1.x branch. > Very good news! It works like a charm. Congratulations! Just one question. Why you place the phobos modules at /usr/include/d instead of an specific phobos folder? Best regards, -- Jordi Sayol
DMD 2.x compiler in Arch Linux repo
http://www.archlinux.org/packages/?q=dmd Since today 2.x branch of dmd is in Arch Linux [community] repo, replacing 1.x branch.
Re: A tutorial on D templates
On Sun, Jan 15, 2012 at 17:00, Ali Çehreli wrote: >> I do think a big range tutorial is overdue. Andrei's article is good, >> but we need something a bit more detailed / for newbies > > > I am hoping that this is good enough for now: > > http://ddili.org/ders/d.en/ranges.html It sure is! This should be advertised somehow. Maybe add a link in the D Wiki? http://prowiki.org/wiki4d/wiki.cgi?D__Tutorial I think many chapters of your book could be linked in there. by the by, I added a Resources appendix, where I cite your chapter on templates. Philippe
Re: A tutorial on D templates
>> As for Orange, is it OK with you if I show a small part of it? Is it >> OK for me to link to the github project? > > Sure, go ahead and use whatever you want :) Thanks. >> Btw, I think that by using the technics shown in Nick's last year >> article (generating switch/cases from CT information), it would be >> possible to make some parameters of Reflection.d be runtime parameters >> instead of compile-time. > > > Do you have a link? Sure: http://www.semitwist.com/articles/EfficientAndFlexible/SinglePage/#part6-3
Re: A tutorial on D templates
On 01/15/2012 12:18 PM, Walter Bright wrote: On 1/15/2012 8:00 AM, Ali Çehreli wrote: I am hoping that this is good enough for now: http://ddili.org/ders/d.en/ranges.html Please, can you turn this into a Kindle ebook? Both the Turkish and English versions? http://ddili.org/ders/d.en/index.html Thank you. Will do! :) Ali
Re: A tutorial on D templates
On 1/15/2012 8:00 AM, Ali Çehreli wrote: I am hoping that this is good enough for now: http://ddili.org/ders/d.en/ranges.html Please, can you turn this into a Kindle ebook? Both the Turkish and English versions? http://ddili.org/ders/d.en/index.html
Re: A tutorial on D templates
On 1/15/2012 8:00 AM, Ali Çehreli wrote: I am hoping that this is good enough for now: http://ddili.org/ders/d.en/ranges.html Very nice, I'll read it more carefully later.
Re: A tutorial on D templates
On 1/15/2012 5:34 AM, Philippe Sigaud wrote: I do think a big range tutorial is overdue. Andrei's article is good, but we need something a bit more detailed / for newbies and shown in the website. Maybe even a .ddoc file with phobos. Yeah, we badly need a "The Range Manifesto".
Re: A tutorial on D templates
On Sunday, 15 January 2012 at 00:54:37 UTC, Georg Wrede wrote: Why don't we just let the guy write his thing in peace, before demanding a complete book with stylistically professional grammar and style? I mean, at this rate we are beating the horse to death before we've even put it in front of the carriage. If I were Philippe, by this time I'd be stressed out, and the project would start to whither. How about folks just helping him write it, like he asked? There's plenty of time to turn it to the Ten Commandments later, but it needs to exist before that. Getting feedback on writing style early is a great plus to the author. That way he can incorporate it in future additions and practice it, practice catching it. As for the discussion at hand, I prefer to remove 'you' most of the time. It started with just because I was told to in class, but continues because I've seen what it does to my writing, and I prefer it. But I'm still not perfect with it. Also, yay articles/books on D!
Re: A tutorial on D templates
On 1/15/2012 5:50 AM, Philippe Sigaud wrote: In fact, I'm thrilled to receive remarks, it means people are interested. Nothing worse than silence! Also, I would be doing you a disservice if you ask for feedback, and I don't because I thought it might hurt your feelings.
Re: A tutorial on D templates
On 01/15/2012 05:34 AM, Philippe Sigaud wrote: On Sun, Jan 15, 2012 at 12:16, Jacob Carlborg wrote: Thank you all for the encouragements! Templates is just one part of the language. There are many other parts to write about :) *snort* I do think a big range tutorial is overdue. Andrei's article is good, but we need something a bit more detailed / for newbies I am hoping that this is good enough for now: http://ddili.org/ders/d.en/ranges.html > and shown in the website. Maybe even a .ddoc file with phobos. I wonder if we could provide some Ddoc files like this... Ali
Re: A tutorial on D templates
> Btw, it's cool you could generate the pdf. Did you have minted and > pygments already installed? > No. But I downloaded minted.sty and apt-get pygmentize when pdflatex failed. > Don't hesitate to tell me where it's unclear. If you have any example > in mind or some difficulty that constantly trip you and that does not > appear in the text, send me a mail, put an issue on github or send me > a pull request. Thanks. I have just started reading your tutorial. And I am a slow learner. Regards
Re: A tutorial on D templates
On 2012-01-15 14:33, Philippe Sigaud wrote: On Sun, Jan 15, 2012 at 12:26, Jacob Carlborg wrote: I see that you have referenced my Orange library, cool. As for Orange, is it OK with you if I show a small part of it? Is it OK for me to link to the github project? Mainly, I wanted to show some tricks you used in util/Reflection.d and util/Traits.d. I should rummage in your code again. Sure, go ahead and use whatever you want :) Btw, I think that by using the technics shown in Nick's last year article (generating switch/cases from CT information), it would be possible to make some parameters of Reflection.d be runtime parameters instead of compile-time. Do you have a link? That is, from hasField!(T, "field") to hasField!T("field"). I do not know if for serializing it's interesting or not. It might be, depends on how the implementation look like. Looking at the example for emitting events. I'm not completely sure how it works but it looks like that Fields mixin can be replace with the code you have referenced from my Orange library and opDispatch. Then you could write the Point and Size structs just as regular structs without the mixin. This mixin comes from Andrej Mitrovic. You should see with him the difference with Orange, I admit not knowing much about this. Philippe Ok, I see. -- /Jacob Carlborg
Re: A tutorial on D templates
On Sun, Jan 15, 2012 at 03:27, Andrei Alexandrescu wrote: > On 1/14/12 6:54 PM, Georg Wrede wrote: >> Why don't we just let the guy write his thing in peace, before demanding >> a complete book with stylistically professional grammar and style? >> >> I mean, at this rate we are beating the horse to death before we've even >> put it in front of the carriage. If I were Philippe, by this time I'd be >> stressed out, and the project would start to whither. >> >> How about folks just helping him write it, like he asked? >> >> There's plenty of time to turn it to the Ten Commandments later, but it >> needs to exist before that. > > > He asked for feedback. People sent feedback. No problemo, Georg. I'm not stressed at all by the grammar / style remarks :) I know that my not being a native English speaker will have me write awkward sentences. I'm glad people are sending me corrections: like Andrei said, I asked for feedback. In fact, I'm thrilled to receive remarks, it means people are interested.
Re: A tutorial on D templates
On Sun, Jan 15, 2012 at 11:50, d coder wrote: >> can't open the pdf with acrobat reader under win7 :( >> (the file seems to be ok, contains the pdf header) >> >> im using the latest acrobat reader x > > Same here. When I regenerated the pdf after cloning the git repository > the pdf doc came out as around 1MB file. The checked in version is > just 20Kb. Yeah, sorry, I probably botched a github exchange when integrating yesterday's remarks. I just regenerated the pdf and tested it on both Windows and Linux, from an integrated pdf viewer in TexWorks, KDE Okular and Acrobat X and they all work. I put it in Github 5' ago. Btw, it's cool you could generate the pdf. Did you have minted and pygments already installed? > Thanks for the tutorial. It is one topic that I find most difficult to grasp. Don't hesitate to tell me where it's unclear. If you have any example in mind or some difficulty that constantly trip you and that does not appear in the text, send me a mail, put an issue on github or send me a pull request. Philippe
Re: A tutorial on D templates
On Sun, Jan 15, 2012 at 12:16, Jacob Carlborg wrote: >> Thank you all for the encouragements! > > > Templates is just one part of the language. There are many other parts to > write about :) *snort* I do think a big range tutorial is overdue. Andrei's article is good, but we need something a bit more detailed / for newbies and shown in the website. Maybe even a .ddoc file with phobos. I wonder if we could provide some Ddoc files like this...
Re: A tutorial on D templates
On Sun, Jan 15, 2012 at 12:26, Jacob Carlborg wrote: > I see that you have referenced my Orange library, cool. As for Orange, is it OK with you if I show a small part of it? Is it OK for me to link to the github project? Mainly, I wanted to show some tricks you used in util/Reflection.d and util/Traits.d. I should rummage in your code again. Btw, I think that by using the technics shown in Nick's last year article (generating switch/cases from CT information), it would be possible to make some parameters of Reflection.d be runtime parameters instead of compile-time. That is, from hasField!(T, "field") to hasField!T("field"). I do not know if for serializing it's interesting or not. > Looking at the > example for emitting events. I'm not completely sure how it works but it > looks like that Fields mixin can be replace with the code you have > referenced from my Orange library and opDispatch. Then you could write the > Point and Size structs just as regular structs without the mixin. This mixin comes from Andrej Mitrovic. You should see with him the difference with Orange, I admit not knowing much about this. Philippe
Re: A tutorial on D templates
On 2012-01-13 22:20, Philippe Sigaud wrote: [Cross-posted with D.learn, since it's also a learning-related post] Hello all, I discovered D a few years ago and, seeing the recent increase in community projects, I looked for a way to bring my own small part to it. I quite like D templates and wanted to try LaTeX again, so I decided to bite the bullet and wrote a tutorial on templates. It's far from finished and most probably full of mistakes but since it's already quite big, I need some inputs. It's a Github project, here: https://github.com/PhilippeSigaud/D-templates-tutorial The resulting pdf is there: https://github.com/PhilippeSigaud/D-templates-tutorial/blob/master/dtemplates.pdf (click on View Raw) If you have any comment, criticism, explanation, what have you, I'm game. What section should be expanded, what example would be cool, etc. If you see a mistake, do not hesitate to tell me: it's the first time I put thoughts on paper like this. Github issues management is far from perfect, but it's usable. Even better would be pull requests :) There is an 'Examples' section where I show what can be done with templates and there I 'borrowed' some code posted here, with attribution. I already exchanged with Andrej Mitrovic (thanks!), but also took some code from Timon Gehr, Simen Kjaeraas, Trass3r and Jacob Carlborg. Guys, if any of you have a problem with that, tell me so and I'll take down the code of course. But if any of you could give me some explanation (a small paragraph or two?) about what your code does, I'll be forever grateful :) This also extend to anyone who would want to share some template love/lore with the rest of us. Philippe I see that you have referenced my Orange library, cool. Looking at the example for emitting events. I'm not completely sure how it works but it looks like that Fields mixin can be replace with the code you have referenced from my Orange library and opDispatch. Then you could write the Point and Size structs just as regular structs without the mixin. -- /Jacob Carlborg
Re: A tutorial on D templates
On 2012-01-14 22:04, Philippe Sigaud wrote: On Sat, Jan 14, 2012 at 21:07, Andrei Alexandrescu wrote: On 1/14/12 5:21 AM, Philippe Sigaud wrote: Uh, I don't think it'll ever be a book. I didn't write it with a book in mind. It's organized as a book (TOC, index, structure) and has 141 pages with quite a few more to come. At this point it would be more difficult to make it /not/ a book. Fair point :) In my mind, a book is at least 300 pages and, well, professionally done. I can see Walter's point about ebook though. Thank you all for the encouragements! Templates is just one part of the language. There are many other parts to write about :) -- /Jacob Carlborg
Re: A tutorial on D templates
>> https://github.com/PhilippeSigaud/D-templates-tutorial/blob/master/dtemplates.pdf > > > can't open the pdf with acrobat reader under win7 :( > (the file seems to be ok, contains the pdf header) > > im using the latest acrobat reader x Same here. When I regenerated the pdf after cloning the git repository the pdf doc came out as around 1MB file. The checked in version is just 20Kb. Thanks for the tutorial. It is one topic that I find most difficult to grasp. Regards
Re: A tutorial on D templates
https://github.com/PhilippeSigaud/D-templates-tutorial/blob/master/dtemplates.pdf can't open the pdf with acrobat reader under win7 :( (the file seems to be ok, contains the pdf header) im using the latest acrobat reader x