Re: D programming language specification ebook

2011-07-09 Thread Andrei Alexandrescu
On 7/8/11 9:20 PM, Walter Bright wrote: On 7/8/2011 8:58 PM, Russel Winder wrote: Is there a PDF of this? The URL http://www.digitalmars.com/d/2.0/ has a link to a PDF page http://www.prowiki.org/wiki4d/wiki.cgi?LanguageSpecification/PDFArchive which has a circualr reference back to the Digital

Re: D programming language specification ebook

2011-07-09 Thread Walter Bright
On 7/9/2011 12:05 AM, Andrei Alexandrescu wrote: I don't think the current approach to generating PDFs is good - it's essentially using a bridge for generating PDF from HTML. What we need is a set of macros to generate TeX from ddoc followed by compilation. That will produce beautiful PDF files.

Re: D programming language specification ebook

2011-07-09 Thread Russel Winder
On Sat, 2011-07-09 at 06:59 +0200, Jordi Sayol wrote: [ . . . ] > 'fbreader' properly handle 'dlangspec.mobi' on Ubuntu 11.04 I loaded fbreader on Debian Testing and it can read the file -- not sure it is "properly" though, there seems to be a lot of formatting missing. -- Russel. ==

Re: D programming language specification ebook

2011-07-09 Thread Russel Winder
On Fri, 2011-07-08 at 22:36 -0700, Walter Bright wrote: [ . . . ] > I understand, and I'll see about generating a pdf. Thanks. > However, although the e-readers can read pdf's, they do so very badly, > because > pdf's are designed for 8*11.5 paper, and will not reflow the text for the > smalle

Re: D programming language specification ebook

2011-07-09 Thread Russel Winder
On Sat, 2011-07-09 at 00:24 -0700, Walter Bright wrote: > On 7/9/2011 12:05 AM, Andrei Alexandrescu wrote: > > I don't think the current approach to generating PDFs is good - it's > > essentially > > using a bridge for generating PDF from HTML. > > > > What we need is a set of macros to generate T

Re: D programming language specification ebook

2011-07-09 Thread Thomas Mader
Very nice! Maybe it is also possible that you create an epub. It is the most widley used ebook format and it seems to be possible to genarate the kindle format out of it. See: http://en.wikipedia.org/wiki/Comparison_of_e-book_formats#IDPF.2FEPUB I would go for epub since it is the most widley used

Re: D programming language specification ebook

2011-07-09 Thread Andrew Wiley
On Sat, Jul 9, 2011 at 1:01 AM, Russel Winder wrote: > On Fri, 2011-07-08 at 22:36 -0700, Walter Bright wrote: > [ . . . ] > > I understand, and I'll see about generating a pdf. > > Thanks. > > > However, although the e-readers can read pdf's, they do so very badly, > because > > pdf's are design

Re: D programming language specification ebook

2011-07-09 Thread Thomas Mader
Am 09.07.2011 07:13 schrieb "Russel Winder" : > > (It appears that Go now assumes you have 100% connectivity to the > Internet 100% of the time both for execution and development :-( Please tell more about this or give some references I am very interested.

Re: Programming Windows D Examples are now Online!

2011-07-09 Thread Johannes Pfau
Andrej Mitrovic wrote: >Using std.c.windows.windows is going to be problematic because the >WindowsAPI bindings have a void* handle typedef, and >std.c.windows.windows has the same typedef. > >If your library has this function: >foo(HDC hdc) { } > >I can't use it from my code if I use the WindowsAP

Re: D programming language specification ebook

2011-07-09 Thread Jacob Carlborg
On 2011-07-09 07:36, Walter Bright wrote: On 7/8/2011 10:12 PM, Russel Winder wrote: Whilst e-books and tablets may be the current fashion, PDF is still the most portable document distribution format. It would be good if PDFs were made and released -- especially for those of us who do most of ou

Re: D programming language specification ebook

2011-07-09 Thread Walter Bright
On 7/9/2011 1:01 AM, Russel Winder wrote: Well PDF isn't designed for 8x11.5 per se, the page size can be anything you want, but it is fixed. Format it for one ereader, and it won't work (reasonably) on any other, despite them having pdf support.

Re: D programming language specification ebook

2011-07-09 Thread Jordi Sayol
Al 09/07/11 09:55, En/na Russel Winder ha escrit: > I loaded fbreader on Debian Testing and it can read the file -- not sure > it is "properly" though, there seems to be a lot of formatting missing. You're right. Many format messing wen open with fbreader. As Andrew Wiley said, "calibre"'s viewe

Re: D programming language specification ebook

2011-07-09 Thread Tyro[a.c.edwards]
On 7/9/2011 11:30 AM, Walter Bright wrote: Here's a binary of it. Try it out on your ebook reader! http://digitalmars.com/d/2.0/dlangspec.mobi Awesome... But I'm using an iPad and don't plan on using the kindle software because requires me to open an account with Amazon -- Not interested.

Re: Programming Windows D Examples are now Online!

2011-07-09 Thread Andrej Mitrovic
On 7/9/11, Johannes Pfau wrote: > //Use Andrej Mitrovic's API from > //https://github.com/AndrejMitrovic/DWindowsProgramming/tree/master/win32 > version(EXT_WIN32_BINDINGS) > { > import win32.windef; > import win32.wingdi; > } That's not my API, it's from this project: http://dsource.org/

Re: Programming Windows D Examples are now Online!

2011-07-09 Thread Andrej Mitrovic
I'll see about contributing to your project in some way. I'm interested in how Cairo's new opengl backend operates, animation works somewhat ok with a win32 backend but it seems to quickly eat up performance (that could be my mistake though). I'll give a shot at using the cairo opengl backend via D

Re: Programming Windows D Examples are now Online!

2011-07-09 Thread Sean Kelly
The docs on the Boost license say as much as well, and derive from legal consult. I must say that after reading this I felt a lot better about the headers I've implemented. Sent from my iPhone On Jul 9, 2011, at 1:56 AM, Mike Parker wrote: > On 7/9/2011 5:43 AM, Steven Schveighoffer wrote: >

Re: D programming language specification ebook

2011-07-09 Thread Nick Sabalausky
"Russel Winder" wrote in message news:mailman.1487.1310188380.14074.digitalmars-d-annou...@puremagic.com... > >(It appears that Go now assumes you have 100% connectivity to the >Internet 100% of the time both for execution and development :-( About what I'd expect from the #1 company that wants

Re: Programming Windows D Examples are now Online!

2011-07-09 Thread Johannes Pfau
Andrej Mitrovic wrote: >On 7/9/11, Johannes Pfau wrote: >> //Use Andrej Mitrovic's API from >> //https://github.com/AndrejMitrovic/DWindowsProgramming/tree/master/win32 >> version(EXT_WIN32_BINDINGS) >> { >> import win32.windef; >> import win32.wingdi; >> } > >That's not my API, it's from

Re: Programming Windows D Examples are now Online!

2011-07-09 Thread Johannes Pfau
Andrej Mitrovic wrote: >I'll see about contributing to your project in some way. I'm >interested in how Cairo's new opengl backend operates, animation works >somewhat ok with a win32 backend but it seems to quickly eat up >performance (that could be my mistake though). I'll give a shot at >using th

Re: Programming Windows D Examples are now Online!

2011-07-09 Thread Andrej Mitrovic
On 7/9/11, Johannes Pfau wrote: > I'm not sure if cairo's win32 backend uses some kind of > acceleration? http://cairographics.org/threaded_animation_with_cairo/ > talks about performance & animations, it's quite gtk specific, but > maybe there's some useful information in there. I'm already usin

Re: D programming language Chat

2011-07-09 Thread Bernard Helyer
On Tue, 05 Jul 2011 18:58:57 +0200, Andrej Mitrovic wrote: > Will the chan op `set mode -v` me every time I say something offtopic? > Screw SO with their stupid game mechanics. We're very informal in #d. Come on in, we try to be friendly! :D

Re: Programming Windows D Examples are now Online!

2011-07-09 Thread Sean Cavanaugh
On 6/21/2011 1:08 AM, Brad Anderson wrote: On Mon, Jun 20, 2011 at 10:14 PM, Andrej Mitrovic mailto:andrej.mitrov...@gmail.com>> wrote: This is a translation project of Charles Petzold's Programming Windows (5th edition) book code samples. Currently over 120 code samples have been t

Re: DPortMidi - D bindings for the PortMidi MIDI I/O library

2011-07-09 Thread Andrej Mitrovic
So I've added a Cairo Win32 example of capturing MIDI controller changes and painting envelopes on the screen. The data is captured in real-time but the drawing is done based on a timer. The source code is very oddball for sure, but it kinda works, so hey.. :P A screenshot: http://i.imgur.com/19vK