Re: "Programming in D" book is about 95% translated
On Mon, Nov 4, 2013 at 6:41 AM, Ali Çehreli wrote: > Thanks all, I've settled with the pedantically incorrect Negative and > negative() but I added a note saying that it is more accurate to say > "numeric complement": > :) That is the name I was secretly voting for. Any chance of you providing a limited edition printed version? Perhaps with the authors name missing from the cover? :D -Rory
Re: "Programming in D" book is about 95% translated
On 11/03/2013 03:19 PM, Joseph Rushton Wakeling wrote: On Sunday, 3 November 2013 at 22:42:37 UTC, Tove wrote: I'm not a native English speaker, but FWIW I would have chosen: http://en.wiktionary.org/wiki/numeric_complement I knew there was another term out there somewhere :-) Thanks all, I've settled with the pedantically incorrect Negative and negative() but I added a note saying that it is more accurate to say "numeric complement": http://code.google.com/p/ddili/source/detail?r=649 Tove, I added you just as Tove in the acknowledgments section. Please e-mail me your last name at acehr...@yahoo.cm if you want me to add it. Thank you, Ali
Re: D meetup in Minnesota
On Friday, 1 November 2013 at 20:02:10 UTC, Jack Pope wrote: We are now up to 17 in the group. I should schedule a meetup. Perhaps initially something short, say library linking tips. Then, we can banter about topics/speakers for later. Vladimir, what dates are you in town and will noon or evening work? Maybe you could present your DConf material? Hi, I'll be around Minneapolis (in Eagan) for all of November, with the possible exception of one week (TBD if/when) during which I might take a dip down to LA. The biggest limiting factor is that I can't drive here. So, if someone could pick me up, practically any time I'm here is fine for me. Otherwise we'll need to find a day that works for everyone. I could redo my DConf talk if you're interested, although I don't think I'd have much to add since May. Or, I could talk about memory management in D: garbage collection, structure and history of the D GC, related tools, best practices, and latest developments. Some of this was covered by the two DConf GC presentations. What will the format and duration of the meetup be? A presentation in an auditorium somewhere, or like a dinner/gathering?
Re: "Programming in D" book is about 95% translated
On Sunday, 3 November 2013 at 22:42:37 UTC, Tove wrote: I'm not a native English speaker, but FWIW I would have chosen: http://en.wiktionary.org/wiki/numeric_complement I knew there was another term out there somewhere :-)
Re: "Programming in D" book is about 95% translated
On Sunday, 3 November 2013 at 21:21:04 UTC, Joseph Rushton Wakeling wrote: On Saturday, 2 November 2013 at 22:45:13 UTC, Ali Çehreli wrote: I spent considerable amount of time on those names. Like you, I am not happy with Inverse. :) I'm not a native English speaker, but FWIW I would have chosen: http://en.wiktionary.org/wiki/numeric_complement
Re: "Programming in D" book is about 95% translated
On Saturday, 2 November 2013 at 22:45:13 UTC, Ali Çehreli wrote: I spent considerable amount of time on those names. Like you, I am not happy with Inverse. :) I wanted to say struct Negate and function negate(). But ! is the negation operator. I like opposite better but the Wikipedia article calls it "additive inverse" so inverse is still acceptable, I guess? :) http://en.wikipedia.org/wiki/Operators_in_C_and_C++ Well, if you don't want to change it now that the chapter has been released, don't worry -- it's not wrong per se, just somewhat unintuitive to my native English ear. I think that Negative and negative() (not Negation) would be fine. Bear in mind that ! is the _logical_ negation operator; without the qualifier, the word doesn't have the same meaning. "The negative of x" is just -x. The trouble with inverse (for me) is that its colloquial meaning is the multiplicative inverse, while in a strict mathematical sense it is too general -- you can have an inverse of _any_ function, so the term always needs to be qualified as the "inverse of ..." (whether of addition, multiplication, some other choice of function). But this may be my fussing too much. ;-)
Re: dchip is a D2 port of the Chipmunk2D physics library for 2D games
On 11/3/13, Andrej Mitrovic wrote: > without no API changes. I meant without "any" API changes.
Re: Visual D 0.3.37 released
On Sunday, 3 November 2013 at 08:07:41 UTC, Rainer Schuetze wrote: I tried to reproduce (within VS2012 Shell) but could not produce any crashes. Do you have updates for VS 2012 installed? Did you switch back to the "old" engine by enabling "native Edit and Continue" (watches don't work with the new engine? Does it happen with a standard hello-world program, or does it have to be more involved? If you have a repro case please submit a bug report: http://d.puremagic.com/issues/enter_bug.cgi?product=D I'm now unable to recreate the bugg. It vanished after an automatic windows update. So i'm guessing that the problem was in my visual studio setup rather then in the Visual D pluggin.
Re: "Programming in D" book is about 95% translated
On 11/01/2013 08:03 PM, Ali Çehreli wrote: I have continued with the translation of the book. There are 36 of the 727 pages still to be translated. (However, I still need to write the UDA chapter.) In addition to many corrections and additions throughout the book, there are the following chapters translated: * Tuples * More Templates * More Functions * Mixins * More Ranges As a reminder, the book is available as PDF, downloadable from the header of each chapter: http://ddili.org/ders/d.en/index.html No Kindle or Lulu versions yet. Ali Thanks a lot! I wouldn't have considered D language without this book.
Re: dchip is a D2 port of the Chipmunk2D physics library for 2D games
On 11/3/13, simendsjo wrote: > Nothing I have the need for, but very cool nontheless. It would > be interesting if you wrote about your experience on porting a C > codebase this size. Nothing much new compared to the last time I ported C, which I wrote about here: http://forum.dlang.org/thread/mailman.1069.1308629671.14074.digitalmars-d-annou...@puremagic.com?page=2#post-mailman.1084.1308684922.14074.digitalmars-d-announce:40puremagic.com Of course I know much more now than I did back then. Maybe you meant like a blog post? I'll add it to my todo list. :)
Re: "Programming in D" book is about 95% translated
On 03/11/13 02:30, Kelet wrote: > On Saturday, 2 November 2013 at 00:03:51 UTC, Ali Çehreli wrote: >> I have continued with the translation of the book. There are 36 of the 727 >> pages still to be translated. (However, I still need to write the UDA >> chapter.) >> >> In addition to many corrections and additions throughout the book, there are >> the following chapters translated: >> >> * Tuples >> * More Templates >> * More Functions >> * Mixins >> * More Ranges >> >> As a reminder, the book is available as PDF, downloadable from the header of >> each chapter: >> >> http://ddili.org/ders/d.en/index.html >> >> No Kindle or Lulu versions yet. >> >> Ali > > Thanks for all your hard work, Ali. > > I believe having a set of up to date references, tutorials, and > books are paramount to the further adoption and success of D as a > programming language. > +1 -- Jordi Sayol
Re: dchip is a D2 port of the Chipmunk2D physics library for 2D games
On Sunday, 3 November 2013 at 05:08:40 UTC, Andrej Mitrovic wrote: (...) DChip[1] is a direct D2 port of the C library without no API changes. (...) Nothing I have the need for, but very cool nontheless. It would be interesting if you wrote about your experience on porting a C codebase this size.
Re: DirectX bindings
On Sunday, 3 November 2013 at 05:27:24 UTC, evilrat wrote: Greetings, many of you may notice lack of (up-to-date and working) DirectX bindings, one may also seen my activity on d.learn sub forum. so let me announce yet another bindings for DirectX which one may fork right now from github! https://github.com/evilrat666/directx-d please be careful though, as it is only in alpha stage and missing some stuff. current version is June 2010 SDK, but i update it(to win8 sdk version) once i had win8 machine(i'm still don't have a PC at home). also, there is no d3d9 and d3d10 stuff as i consider it outdated now, but i would appreciate pull requests for them anyway :) Hi, Good work. While porting header to D you can use: alias int _D3D_SHADER_INPUT_FLAGS enum : _D3D_SHADER_INPUT_FLAGS { D3D_SIF_USERPACKED= 1, // others... } instead of: enum _D3D_SHADER_INPUT_FLAGS { D3D_SIF_USERPACKED= 1, // others... } That way using the enum won't force to use a namespace.
Re: DirectX bindings
On Sunday, 3 November 2013 at 08:42:52 UTC, ponce wrote: Hi, Good work. While porting header to D you can use: alias int _D3D_SHADER_INPUT_FLAGS enum : _D3D_SHADER_INPUT_FLAGS { D3D_SIF_USERPACKED= 1, // others... } instead of: enum _D3D_SHADER_INPUT_FLAGS { D3D_SIF_USERPACKED= 1, // others... } That way using the enum won't force to use a namespace. thanks for notice, i'll need to try it first on something bigger than simple example first. most likely i had been doing this by default if i were work with real C++ DirectX projects, unfortunately i only used OpenGL until now :(
Re: Visual D 0.3.37 released
On 03.11.2013 01:34, TheFlyingFiddle wrote: First of all i would like to thank you for making this wonderfull plugin. It was the existance of this pluggin that made me even consider learning D. This release however broke my setup. Whenever i tried to step into code while debugging it would crash visual studio. I fixed this by changing the debugger to Visual Studio (x86 mixed mode) i'm not sure if i used this debugger in previous versions (i may have) but i had never changed the used debugger until today. For more information i am using Visual Studio 2012 Ultimate. The application was in DMD 2064 beta 4 (x86 mode). I tried to reproduce (within VS2012 Shell) but could not produce any crashes. Do you have updates for VS 2012 installed? Did you switch back to the "old" engine by enabling "native Edit and Continue" (watches don't work with the new engine? Does it happen with a standard hello-world program, or does it have to be more involved? If you have a repro case please submit a bug report: http://d.puremagic.com/issues/enter_bug.cgi?product=D