Re: The book "Programming in D" is in beta

2012-01-13 Thread Ali Çehreli

Thank you very much for all the feedback.

On 01/12/2012 12:05 PM, bls wrote:
> Hi Ali,
> Why not 1) just translate the example code into English.

And make corrections as I naturally need to do that. Over the time the 
compiler has become less permissive, bugs and limitations have been 
removed, and features have been added.


The new delegate syntax needs to be added. :)

> 2) Google
> Translate the text and 3) ask the native English speaking D community
> for a helping hand.
> IMO the GOOGLE Turkish to English translation is translatable into
> readable English, without too much effort :)

I don't want to do that for two reasons:

1) I really don't think that Google Translate is good enough.

2) I want the book to sound to be from the same person. It would still 
be good otherwise, but it would be a wiki.


Let me take this opportunity to remind people of the following page, 
some of which link to wiki books:


  http://prowiki.org/wiki4d/wiki.cgi?D__Tutorial

> So instead of wasting time with manual translation, keep your book in
> sync with D2, add some examples.. It's an excellent book about D2 (and
> beside an exercise on how to write programming books in general)
> A+
> Bjoern

Thank you! :)
Ali



Re: A tutorial on D templates

2012-01-13 Thread bearophile
Philippe Sigaud:

> https://github.com/PhilippeSigaud/D-templates-tutorial/blob/master/dtemplates.pdf
> 
> (click on View Raw)

I am using a pdf blocking plug-in, that causes that GitHub link to save a fake 
pdf file :-(

Is your tutorial containing the (a,b) => a * b syntax too?

I'd like operators in your text to have a space around:
a * b
instead of
a*b
(Unless the space is finishing on the line).

In my opinion
foo!q{ a * b }
Is more readable than:
foo!"a*b"

Bye,
bearophile


A tutorial on D templates

2012-01-13 Thread Philippe Sigaud
[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


Re: DVM - D Version Manager 0.4.0

2012-01-13 Thread Jacob Carlborg

On 2012-01-13 16:53, Don Clugston wrote:

On 09/01/12 13:09, Jacob Carlborg wrote:

On 2012-01-09 10:30, Don Clugston wrote:

On 06/01/12 22:29, Jacob Carlborg wrote:

I just released a new version of DVM, 0.4.0. The only thing new in this
release in the "compile" command. This allows to compile DMD, druntime
and Phobos from github. Create a folder, clone DMD, druntime and Phobos
in the newly create folder, run "dvm compile folder" to compile
everything. The compiler is placed in the DMD directory.

For installation instructions see: https://bitbucket.org/doob/dvm

Changelog:

Version 0.4.0
New/Change Features
* Added a "compile" command for compiling DMD, druntime and Phobos from
github


I found that I needed to do:
cd .dvm
mkdir bin
before dvm install would work.


Hmm, that's strange. On which platform? Is it when installing DVM itself
or compilers?


Linux64 (Ubuntu). When installing compilers.


Thanks, I'll take care of it.

--
/Jacob Carlborg


Re: DVM - D Version Manager 0.4.0

2012-01-13 Thread Don Clugston

On 09/01/12 13:09, Jacob Carlborg wrote:

On 2012-01-09 10:30, Don Clugston wrote:

On 06/01/12 22:29, Jacob Carlborg wrote:

I just released a new version of DVM, 0.4.0. The only thing new in this
release in the "compile" command. This allows to compile DMD, druntime
and Phobos from github. Create a folder, clone DMD, druntime and Phobos
in the newly create folder, run "dvm compile folder" to compile
everything. The compiler is placed in the DMD directory.

For installation instructions see: https://bitbucket.org/doob/dvm

Changelog:

Version 0.4.0
New/Change Features
* Added a "compile" command for compiling DMD, druntime and Phobos from
github


I found that I needed to do:
cd .dvm
mkdir bin
before dvm install would work.


Hmm, that's strange. On which platform? Is it when installing DVM itself
or compilers?


Linux64 (Ubuntu). When installing compilers.




Re: DVM - D Version Manager 0.4.0

2012-01-13 Thread Jacob Carlborg

On 2012-01-13 10:58, Russel Winder wrote:

Nick,

'scuse me butting in...

On Mon, 2012-01-09 at 04:14 -0500, Nick Sabalausky wrote:
[...]

Heck, maybe if we're lucky that OSX desktop interface to github will someday
get ported to Lin or Win :)

[...]

Is there any need for a GUI to GitHub?  Isn't having a GUI for the local
clone all you need along with the browser UI to GitHub?  Using remote
tracking branches allows almost all activity other than pull requests to
be done locally with gitg or somesuch.



I have never had a use for a GUI for git.

--
/Jacob Carlborg


Re: DVM - D Version Manager 0.4.0

2012-01-13 Thread Russel Winder
Nick,

'scuse me butting in...

On Mon, 2012-01-09 at 04:14 -0500, Nick Sabalausky wrote:
[...]
> Heck, maybe if we're lucky that OSX desktop interface to github will someday 
> get ported to Lin or Win :)
[...]

Is there any need for a GUI to GitHub?  Isn't having a GUI for the local
clone all you need along with the browser UI to GitHub?  Using remote
tracking branches allows almost all activity other than pull requests to
be done locally with gitg or somesuch.

-- 
Russel.
=
Dr Russel Winder  t: +44 20 7585 2200   voip: sip:russel.win...@ekiga.net
41 Buckmaster Roadm: +44 7770 465 077   xmpp: rus...@russel.org.uk
London SW11 1EN, UK   w: www.russel.org.uk  skype: russel_winder


signature.asc
Description: This is a digitally signed message part