Re: Can i plz has some template instantiation error stack traces?

2008-12-12 Thread Christian Kamm
>> LDC can haz. >> > > orly? > > As in haz them now? or can potentially haz at some point in the future > if someone decides to do it? Can haz now. Currently looking like so templerror.d(9): Error: identifier 'wrong' is not defined templerror.d(12): Error: template instance templerror.bar!(int[

Re: Can i plz has some template instantiation error stack traces?

2008-12-12 Thread Bill Baxter
On Sat, Dec 13, 2008 at 12:44 PM, Robert Fraser wrote: > Bill Baxter wrote: >> >> kthx bye. >> --bb > > LDC can haz. > orly? As in haz them now? or can potentially haz at some point in the future if someone decides to do it? --bb

Re: Can i plz has some template instantiation error stack traces?

2008-12-12 Thread Robert Fraser
Bill Baxter wrote: kthx bye. --bb LDC can haz.

Re: Moving GC

2008-12-12 Thread Brad Roberts
Christopher Wright wrote: > dsimcha wrote: >> However, after thinking about it, I doubt D will go the route of >> moving/more >> precise GC. I know I've advocated it in the past, but I've realized >> that false >> pointers aren't generally that big a deal if you delete a few huge >> (>1MB) objects

Re: Moving GC

2008-12-12 Thread dsimcha
== Quote from Christopher Wright (dhase...@gmail.com)'s article > It means that you can't use one block for objects of multiple types. Sure you can, without being any worse off than under the current scheme. Mark the contents of the memory as an array of void*s. This would have the same effect

Re: A template for method forwarding?

2008-12-12 Thread Christopher Wright
Denis Koroskin wrote: I don't know if it is a good thing to have. Do you understand how much bigger executable size becomes? If the .stringof is only used in templates, then there is no increase -- except insofar as you are able to do more with D, which allows you to build more and possibly l

Re: Moving GC

2008-12-12 Thread Christopher Wright
dsimcha wrote: == Quote from Sean Kelly (s...@invisibleduck.org)'s article == Quote from Christopher Wright (dhase...@gmail.com)'s article This isn't unreasonable, and it really just depends on how complete and how fast D's runtime reflection is. This would incur more memory overhead as well.

Re: Can i plz has some template instantiation error stack traces?

2008-12-12 Thread Bill Baxter
Seriously though, I think this is a big hole in the DMD support of templates. It's very annoying to get a compiler message that consists of nothing but: " error: ATemplateFunction: int does not have a .length property" Where ATemplateFunction is something like void ATemplateFunction(ArrayT)(Arr

Re: Can i plz has some template instantiation error stack traces?

2008-12-12 Thread Ary Borenszweig
Bill Baxter escribió: kthx bye. --bb You can debug DMD's frontend. Or Descent. :-P (and find bugs in the port, yay!)

Re: Moving GC

2008-12-12 Thread dsimcha
== Quote from Sean Kelly (s...@invisibleduck.org)'s article > == Quote from Christopher Wright (dhase...@gmail.com)'s article > > > > This isn't unreasonable, and it really just depends on how complete and > > how fast D's runtime reflection is. > This would incur more memory overhead as well. Rig

Re: More phpBB like forum?

2008-12-12 Thread Jarrett Billingsley
On Fri, Dec 12, 2008 at 8:39 PM, Walter Bright wrote: > > It's open source. You could fix it . > It's also PHP.. good luck finding someone who _wants_ to fix it ;)

Re: More phpBB like forum?

2008-12-12 Thread Walter Bright
Jarrett Billingsley wrote: On Fri, Dec 12, 2008 at 6:41 PM, Robert Fraser We have one: http://www.digitalmars.com/webnews/newsgroups.php?search_txt=&group=digitalmars.D We have one that doesn't work right. The idea is to create a _new_ one which does ;) It's open source. You could fix it .

Re: More phpBB like forum?

2008-12-12 Thread Jarrett Billingsley
On Fri, Dec 12, 2008 at 6:41 PM, Robert Fraser wrote: > dude! sweet! wrote: >> >> wouldn't a web-based news-reader solve this problem? I've just did a >> little search and found: a) http://opensource.polytechnique.org/banana/ >> from the above site: "Banana is a fast (really fast) web-based NNTP >

Re: Moving GC

2008-12-12 Thread Sean Kelly
== Quote from Christopher Wright (dhase...@gmail.com)'s article > > This isn't unreasonable, and it really just depends on how complete and > how fast D's runtime reflection is. This would incur more memory overhead as well. Right now, we make do with one bit per block that indicates whether the

Re: A template for method forwarding?

2008-12-12 Thread Denis Koroskin
On Sat, 13 Dec 2008 03:27:42 +0300, Christopher Wright wrote: Bill Baxter wrote: On Sat, Dec 13, 2008 at 6:13 AM, Bill Baxter wrote: Cool. I don't see anything D2 specific there, so I think it should work in D1 ok. std.traits.ParameterTypeTuple and std.traits.ReturnType both exist in D1, i

Re: A template for method forwarding?

2008-12-12 Thread Christopher Wright
Bill Baxter wrote: On Sat, Dec 13, 2008 at 6:13 AM, Bill Baxter wrote: Cool. I don't see anything D2 specific there, so I think it should work in D1 ok. std.traits.ParameterTypeTuple and std.traits.ReturnType both exist in D1, if that's what you were worried about. I think there may be a prob

Re: More phpBB like forum?

2008-12-12 Thread Robert Fraser
dude! sweet! wrote: wouldn't a web-based news-reader solve this problem? I've just did a little search and found: a) http://opensource.polytechnique.org/banana/ from the above site: "Banana is a fast (really fast) web-based NNTP library with server side caching " b) http://rubyforge.org/projec

Re: Moving GC

2008-12-12 Thread Christopher Wright
dsimcha wrote: However, after thinking about it, I doubt D will go the route of moving/more precise GC. I know I've advocated it in the past, but I've realized that false pointers aren't generally that big a deal if you delete a few huge (>1MB) objects manually. Furthermore, I think it's neces

Re: Using DMD's -v to build dependencies

2008-12-12 Thread Bill Baxter
So how fast is dmd -o-? Does this pretty much double the compile time? An option to reuse a previously generated .deps might be nice. --bb On Sat, Dec 13, 2008 at 7:18 AM, Sergey Gromov wrote: > After some twitting ;) here's my Windows shell script (a .cmd file) > which can effectively replace

Re: Moving GC

2008-12-12 Thread dsimcha
== Quote from Sergey Gromov (snake.sc...@gmail.com)'s article > Fri, 12 Dec 2008 15:05:46 + (UTC), dsimcha wrote: > > I've been playing around with custom memory allocation schemes for some > > programs, which are based on regions. These work great, and are > > significantly > > faster for th

Using DMD's -v to build dependencies

2008-12-12 Thread Sergey Gromov
After some twitting ;) here's my Windows shell script (a .cmd file) which can effectively replace bud/rebuild in some simple cases. This script makes use of GNU grep and sed. Both are available from GnuWin32 or Cygwin or as separate ports. file "sbd.cmd" ---8<--- :: Build a D pro

Re: Moving GC

2008-12-12 Thread Sergey Gromov
Fri, 12 Dec 2008 15:05:46 + (UTC), dsimcha wrote: > I've been playing around with custom memory allocation schemes for some > programs, which are based on regions. These work great, and are significantly > faster for the use cases I'm using them for, than the general allocation > scheme. How

Re: Can i plz has some template instantiation error stack traces?

2008-12-12 Thread Nick Sabalausky
"Bill Baxter" wrote in message news:mailman.162.1229113882.22690.digitalmar...@puremagic.com... > kthx bye. > --bb I think we need a lolcat pic to go along with this. :)

Re: Google NativeClient

2008-12-12 Thread Lars Ivar Igesund
Sean Kelly wrote: > Bowser-neutral web apps? You mean Super Mario been at them? -- Lars Ivar Igesund blog at http://larsivi.net DSource, #d.tango & #D: larsivi Dancing the Tango

Re: A template for method forwarding?

2008-12-12 Thread Bill Baxter
On Sat, Dec 13, 2008 at 6:13 AM, Bill Baxter wrote: > Cool. I don't see anything D2 specific there, so I think it should > work in D1 ok. > std.traits.ParameterTypeTuple and std.traits.ReturnType both exist in > D1, if that's what you were worried about. > > I think there may be a problem with 0-

Re: A template for method forwarding?

2008-12-12 Thread dsimcha
== Quote from Bill Baxter (wbax...@gmail.com)'s article > Cool. I don't see anything D2 specific there, so I think it should > work in D1 ok. > std.traits.ParameterTypeTuple and std.traits.ReturnType both exist in > D1, if that's what you were worried about. > I think there may be a problem with 0

Re: A template for method forwarding?

2008-12-12 Thread Bill Baxter
Cool. I don't see anything D2 specific there, so I think it should work in D1 ok. std.traits.ParameterTypeTuple and std.traits.ReturnType both exist in D1, if that's what you were worried about. I think there may be a problem with 0-arg functions in the code? You handle the void return type (whic

Re: A template for method forwarding?

2008-12-12 Thread Bill Baxter
On Sat, Dec 13, 2008 at 6:00 AM, Simen Kjaeraas wrote: > On Fri, 12 Dec 2008 21:08:51 +0100, Bill Baxter wrote: > >> Let's say you want to use object composition instead of inheritance. >> Now you want to forward half-a-dozen method from the new to class to >> the composed class, like so: >> >> c

Re: A template for method forwarding?

2008-12-12 Thread Simen Kjaeraas
On Fri, 12 Dec 2008 21:08:51 +0100, Bill Baxter wrote: Let's say you want to use object composition instead of inheritance. Now you want to forward half-a-dozen method from the new to class to the composed class, like so: class NewClass { ImplT implementor; ... // Do some method

Re: A template for method forwarding?

2008-12-12 Thread dsimcha
== Quote from Bill Baxter (wbax...@gmail.com)'s article > Let's say you want to use object composition instead of inheritance. > Now you want to forward half-a-dozen method from the new to class to > the composed class, like so: > class NewClass > { > ImplT implementor; > ... > // Do

Can i plz has some template instantiation error stack traces?

2008-12-12 Thread Bill Baxter
kthx bye. --bb

A template for method forwarding?

2008-12-12 Thread Bill Baxter
Let's say you want to use object composition instead of inheritance. Now you want to forward half-a-dozen method from the new to class to the composed class, like so: class NewClass { ImplT implementor; ... // Do some method forwarding void func1(int a, float b) { implementor.f

Re: Google NativeClient

2008-12-12 Thread Bill Baxter
On Sat, Dec 13, 2008 at 12:06 AM, Sean Kelly wrote: > Julio César Carrascal Urquijo wrote: >> >> "At Google we're always trying to make the web a better platform. That's >> why we're working on Native Client, a technology that aims to give web >> developers access to the full power of the client's

Re: Ct, Intel CPU+GPU computing

2008-12-12 Thread J Duncan
davidl wrote: I think we can learn something from it. http://techresearch.intel.com/UserFiles/en-us/File/terascale/Whitepaper-Ct.pdf this stuff is why Intel executives say they have no interest in Nvidia - and even openly joke about them sometimes they have a different plan.

Re: Exception safety

2008-12-12 Thread BCS
Reply to Sergey, What happens if an extern(Windows) function throws? Basically I want my export DLL interface functions to fail gracefully. What happens if I don't catch? Currently my typical export looks like this, and it looks a bit verbose: extern(Windows) export HRESULT DllRegisterServer(

Re: Ct, Intel CPU+GPU computing

2008-12-12 Thread Robert Jacques
On Fri, 12 Dec 2008 09:02:32 -0500, davidl wrote: I think we can learn something from it. http://techresearch.intel.com/UserFiles/en-us/File/terascale/Whitepaper-Ct.pdf Well, Ct (like Microsoft's Accelerator) is fairly limited in its capabilities. (and the white-paper also contains some Inte

Re: Google NativeClient

2008-12-12 Thread Sean Kelly
Julio César Carrascal Urquijo wrote: "At Google we're always trying to make the web a better platform. That's why we're working on Native Client, a technology that aims to give web developers access to the full power of the client's CPU while maintaining the browser neutrality, OS portability a

Re: Moving GC

2008-12-12 Thread Sean Kelly
dsimcha wrote: What are the odds that some D implementation gets a moving GC in the foreseeable future? Minuscule. The GC isn't provided nearly enough type information to safely move memory right now, and I don't see that changing any time soon. Sean

Moving GC

2008-12-12 Thread dsimcha
I've been playing around with custom memory allocation schemes for some programs, which are based on regions. These work great, and are significantly faster for the use cases I'm using them for, than the general allocation scheme. However, everything would break if it were used with reference typ

Ct, Intel CPU+GPU computing

2008-12-12 Thread davidl
I think we can learn something from it. http://techresearch.intel.com/UserFiles/en-us/File/terascale/Whitepaper-Ct.pdf

Re: Type system question

2008-12-12 Thread Michel Fortin
On 2008-12-11 21:09:16 -0500, "Bill Baxter" said: On Fri, Dec 12, 2008 at 10:58 AM, Michel Fortin I agree that the syntax can be improved; I already suggested using "auto" for argument types to create function templates, which would give: auto someFunction(auto x, auto y) { return x+y; } au

Re: Exception safety

2008-12-12 Thread Don
Sergey Gromov wrote: What happens if an extern(Windows) function throws? Very, very bad things. Basically I want my export DLL interface functions to fail gracefully. What happens if I don't catch? Currently my typical export looks like this, and it looks a bit verbose: Yup. It's pretty aw

Exception safety

2008-12-12 Thread Sergey Gromov
What happens if an extern(Windows) function throws? Basically I want my export DLL interface functions to fail gracefully. What happens if I don't catch? Currently my typical export looks like this, and it looks a bit verbose: extern(Windows) export HRESULT DllRegisterServer() { try { do