digitalmars.D.announce - New book: Developing with compile time in mind
- Rikki Cattermole (15/15) Feb 16 2015 Exciting news, my book on CTFE is out[0].
- Walter Bright (2/3) Feb 16 2015 Thank you. I bought my copy!
- Rikki Cattermole (4/7) Feb 16 2015 No problem!
- Russel Winder via Digitalmars-d-announce (16/20) Feb 17 2015 [=E2=80=A6]
- Rikki Cattermole (6/15) Feb 17 2015 Rather enjoyable.
- Andrei Alexandrescu (8/17) Feb 17 2015 Mine too. However, PDF is for fixed layout and any future book should
- Russel Winder via Digitalmars-d-announce (18/28) Feb 17 2015 [=E2=80=A6]
- Andrei Alexandrescu (4/5) Feb 17 2015 Guess I better find out what AsciiDoc is then. Wee, it has macros:
- Walter Bright (2/4) Feb 18 2015 Ddoc leads the way in innovation again!
- Rikki Cattermole (24/44) Feb 17 2015 Idk Makura version (leanpub's specification) is pretty nice.
Exciting news, my book on CTFE is out[0]. To summarize, it contains most of my knowledge of CTFE in a generic'ish form with examples being in D. There is a bit of talk of what support there can be and what we have. The design patterns are probably the most interesting. If you have any improvements or find any issues e.g. stray hyphens (Copied directly from Word wasn't a good idea) please let me know. The size of the book is around 51 pages. I understand if you do not consider it worth $15USD so the minimum price is $5USD. If there is demand I can create an extra package (will cost) that contains full examples on how to use the design patterns. Leanpub support sending to Kindle and will you give you a pdf, mobi and epub versions. [0] https://leanpub.com/ctfe
Feb 16 2015
On 2/16/2015 3:07 PM, Rikki Cattermole wrote:[0] https://leanpub.com/ctfeThank you. I bought my copy!
Feb 16 2015
On 17/02/2015 4:32 p.m., Walter Bright wrote:On 2/16/2015 3:07 PM, Rikki Cattermole wrote:No problem! Just let me know any improvements that could be made. Updates are free after all! (Leanpub is amazing, what with markdown writing and all).[0] https://leanpub.com/ctfeThank you. I bought my copy!
Feb 16 2015
On Tue, 2015-02-17 at 16:40 +1300, Rikki Cattermole via Digitalmars-d-annou= nce wrote:=20[=E2=80=A6]Just let me know any improvements that could be made. Updates are=20 free after all! (Leanpub is amazing, what with markdown writing and=20 all).How did you find Markdown for writing a book? My prejudice is that you need XeLaTeX or AsciiDoc for large document=20 writing, especially when targeting press PDF. --=20 Russel. =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D Dr Russel Winder t: +44 20 7585 2200 voip: sip:russel.winder ekiga.n= et 41 Buckmaster Road m: +44 7770 465 077 xmpp: russel winder.org.uk London SW11 1EN, UK w: www.russel.org.uk skype: russel_winder
Feb 17 2015
On 18/02/2015 12:49 a.m., Russel Winder via Digitalmars-d-announce wrote:On Tue, 2015-02-17 at 16:40 +1300, Rikki Cattermole via Digitalmars-d-announce wrote:Rather enjoyable. I loved that I could just write my content. Maybe splash some hashes or {pagebreak} in there. Although I lost a lot of control especially since leanpub's system isn't opensource unfortunately. But I intend to fix that one day ;)[…]Just let me know any improvements that could be made. Updates are free after all! (Leanpub is amazing, what with markdown writing and all).How did you find Markdown for writing a book? My prejudice is that you need XeLaTeX or AsciiDoc for large document writing, especially when targeting press PDF.
Feb 17 2015
On 2/17/15 3:49 AM, Russel Winder via Digitalmars-d-announce wrote:On Tue, 2015-02-17 at 16:40 +1300, Rikki Cattermole via Digitalmars-d-announce wrote:Mine too. However, PDF is for fixed layout and any future book should aim at flexible format or at least multiple fixed layouts. I think Markdown's use for a book is "works, won't ever win an interior design contest". TDPL's second edition will most likely use ddoc macros to generate LaTeX, HTML, and a couple of ebook formats. Andrei[…]Just let me know any improvements that could be made. Updates are free after all! (Leanpub is amazing, what with markdown writing and all).How did you find Markdown for writing a book? My prejudice is that you need XeLaTeX or AsciiDoc for large document writing, especially when targeting press PDF.
Feb 17 2015
On Tue, 2015-02-17 at 08:08 -0800, Andrei Alexandrescu via Digitalmars-d-an= nounce wrote:On 2/17/15 3:49 AM, Russel Winder via Digitalmars-d-announce wrote:[=E2=80=A6]=20Print requires best possible formatting for press PDF, other formats=20 generally need reflow which is a different set of constraints. Sadly=20 XeLaTeX hasn't really caught up on the epub formats.=20My prejudice is that you need XeLaTeX or AsciiDoc for large=20 document writing, especially when targeting press PDF.=20 Mine too. However, PDF is for fixed layout and any future book=20 should aim at flexible format or at least multiple fixed layouts.I think Markdown's use for a book is "works, won't ever win an=20 interior design contest".OK so AsciiDoc is the future for book writing.=20[=E2=80=A6] --=20 Russel. =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D Dr Russel Winder t: +44 20 7585 2200 voip: sip:russel.winder ekiga.n= et 41 Buckmaster Road m: +44 7770 465 077 xmpp: russel winder.org.uk London SW11 1EN, UK w: www.russel.org.uk skype: russel_winder
Feb 17 2015
On 2/17/15 8:22 AM, Russel Winder via Digitalmars-d-announce wrote:OK so AsciiDoc is the future for book writing.Guess I better find out what AsciiDoc is then. Wee, it has macros: Andrei
Feb 17 2015
On 2/17/2015 9:02 AM, Andrei Alexandrescu wrote:Guess I better find out what AsciiDoc is then. Wee, it has macros:Ddoc leads the way in innovation again!
Feb 18 2015
On 18/02/2015 5:08 a.m., Andrei Alexandrescu wrote:On 2/17/15 3:49 AM, Russel Winder via Digitalmars-d-announce wrote:Idk Makura version (leanpub's specification) is pretty nice. You really don't think about formatting much. You just make the content and let it do the rest. Everything you put into the markdown documents themselves are pretty straight forward easy to read and understand e.g. {title="On top of code snippet text"} ```D void main() { import std.stdio; writeln("Hello World!"); } ``` And yes it support D code blocks :D Much better then my previous method of using images. In fact this is a requirement for me. You can configure Makura's generation via a config file which includes output page size. So right now leanpub is generating pdf's that can be used on lulu.com. There is some modifications need to be done e.g. blank last page. But that's about it. Specifically for a pocketbook. I would highly recommend giving leanpub a go. I absolutely fell in love with it. In fact I'm seriously considering implementing Makura in D once I have a good pdf generation library. I know we already have a markdown library but I might just make my own.On Tue, 2015-02-17 at 16:40 +1300, Rikki Cattermole via Digitalmars-d-announce wrote:Mine too. However, PDF is for fixed layout and any future book should aim at flexible format or at least multiple fixed layouts. I think Markdown's use for a book is "works, won't ever win an interior design contest". TDPL's second edition will most likely use ddoc macros to generate LaTeX, HTML, and a couple of ebook formats. Andrei[…]Just let me know any improvements that could be made. Updates are free after all! (Leanpub is amazing, what with markdown writing and all).How did you find Markdown for writing a book? My prejudice is that you need XeLaTeX or AsciiDoc for large document writing, especially when targeting press PDF.
Feb 17 2015