Re: CUDA with D working after all

2009-07-21 Thread Robert Jacques
On Tue, 21 Jul 2009 21:48:45 -0400, Trass3r wrote: Robert Jacques schrieb: Here: https://jshare.johnshopkins.edu/xythoswfs/webui/_xy-3638242_1-t_5kUrZSWG It requires D2 and the new phobos and CUDA 2.2. It's only been tested on XP and Vista and D2.031. If you need a D1 version, let me know an

Re: CUDA with D working after all

2009-07-21 Thread Trass3r
Robert Jacques schrieb: Here: https://jshare.johnshopkins.edu/xythoswfs/webui/_xy-3638242_1-t_5kUrZSWG It requires D2 and the new phobos and CUDA 2.2. It's only been tested on XP and Vista and D2.031. If you need a D1 version, let me know and I'll hunt down an old revision. The ddocs for cuda.a

Re: (Non) Nesting block comments

2009-07-21 Thread Robert Fraser
Michel Fortin wrote: On 2009-07-21 05:31:13 -0400, Michiel Helvensteijn said: Robert Jacques wrote: Well /* */ are excellent for toggling code sections. I tend to use constructs such as // */ or //* or /*/ which allows me to turn on of off blocks with often a single key stroke. Using /+

Re: CUDA with D working after all

2009-07-21 Thread Robert Jacques
On Tue, 21 Jul 2009 02:09:42 -0400, Sam Hu wrote: Robert Jacques Wrote: On Mon, 20 Jul 2009 08:48:04 -0400, Trass3r wrote: > Robert Jacques schrieb: >> have some wrappers which greatly simplify CUDA use. Would the members >> of team0xf be interested? > > Me too. Here: https://jshare.johnsh

Re: C faults, etc

2009-07-21 Thread Steven Schveighoffer
On Mon, 20 Jul 2009 20:41:03 -0400, Walter Bright wrote: bearophile wrote: Then we have to work on the efficiency of its implementation :-) (See my timings lower in this thread). I've implemented printf. There is nothing fundamental about its efficiency that would be any better than wri

Re: (Non) Nesting block comments

2009-07-21 Thread Michiel Helvensteijn
Michel Fortin wrote: > /* > A > /*/ > B > /**/ > > With this, you compile B while A is in a comment. Add "/" at the start > of the first line and you compile code A while B is now in commented > out. Aha. Interesting construction. I like it. No, you couldn't do that with nesting comments. I do w

Re: (Non) Nesting block comments

2009-07-21 Thread Michel Fortin
On 2009-07-20 23:51:42 -0400, "Robert Jacques" said: Well /* */ are excellent for toggling code sections. I tend to use constructs such as // */ or //* or /*/ which allows me to turn on of off blocks with often a single key stroke. Using /+ +/ means I have to Add /++/ and remove /++/ each

Re: (Non) Nesting block comments

2009-07-21 Thread Michel Fortin
On 2009-07-21 05:31:13 -0400, Michiel Helvensteijn said: Robert Jacques wrote: Well /* */ are excellent for toggling code sections. I tend to use constructs such as // */ or //* or /*/ which allows me to turn on of off blocks with often a single key stroke. Using /+ +/ means I have to Add /

Re: Changes in the D2 design to help the GC?

2009-07-21 Thread Iivari Mokelainen
bearophile wrote: In Java the GC is able to collect garbage very quickly, so people in Java allocate many small objects quite often. In functional-style languages, like Scala, Clojure, F#, etc, most data is immutable, so again the GC has lot of pressure in allocating and freeing many small str

Re: Casts and conversions done right

2009-07-21 Thread Daniel Keep
Lars T. Kyllingstad wrote: > Daniel Keep wrote: >> >> ... >> >> We could probably write another template called reinterpret!T or >> recast!T or something that explicitly takes a collection of bits and >> reinterprets them as another type (ie: the *cast(int*)&pi case). > > Wouldn't this by necess

Re: C++ concepts, templates, reducing code bloat

2009-07-21 Thread Don
bearophile wrote: An interesting thread on Reddit: http://www.reddit.com/r/programming/comments/92tnd/concepts_removed_from_c0x/ Related to the compilation and use of generic code, various languages work in different ways. D/C++ (and ShedSkin, using full type inference) compile a different func

Re: (Non) Nesting block comments

2009-07-21 Thread Michiel Helvensteijn
Robert Jacques wrote: > Well /* */ are excellent for toggling code sections. I tend to use > constructs such as // */ or //* or /*/ which allows me to turn on of off > blocks with often a single key stroke. Using /+ +/ means I have to Add > /++/ and remove /++/ each time I want to activate or dea

Re: Casts and conversions done right

2009-07-21 Thread Lars T. Kyllingstad
Daniel Keep wrote: Lars T. Kyllingstad wrote: The subject of casts has come up in various forms now and then, and with D2 nearing completion (or whatever you'd like to call it) I think it should be discussed properly. ... Instead, I propose the above operations be written like this: int i

Re: error building on Syllable

2009-07-21 Thread Rohan
I maked build of Syllable Developer Edition. This build is for VMware, and include all what needed for developing (IDE + GCC ...). I still hope that someone from D folks may help with porting D. I tried several times to do it himself, but without result. If somone interesting in porting D to oth