February 19, 2008
Don Clugston a écrit :
> Burton Radons wrote:
>> Bjoern Wrote:
>>
>>> I will read your article a third time, but I think it means : No need for CTFE anymore, DDL is dead. Furthermore we can use D as ultra fast scripting on-the-fly-compiled language. (using eval)
>>>
>>> Sorry I must be wrong!
>>
>> It can take a big chunk out of any situation where you need to use a switch to select between templates, but it'll have little effect on anything which uses templating and CTFE for expressiveness. Or maybe it will - it's a diverse concept that I haven't fully explored.
> 
> The back-end of my BLADE code uses CTFE to generates asm for floating point array operations at compile-time; but the same CTFE can be used without modification for code generation at run-time. The advantage at run-time (or at least, at install time) is that you know the CPU, number of cores, and cache size.
> 
> I think that in your article you should include a brief comparison with the JIT techniques of Java/.NET. To a naive reading, it sounds similar; but they are fundamentally different. .NET's last-minute conversion of intermediate form to native code doesn't buy you very much. JIT source code generation is something else entirely. Using your library, you can have JIT selection of the _algorithm_. FFTW (www.fftw.org) is an interesting example of this sort of thing.


Very good remark, thanks.
renoX
February 20, 2008
Burton Radons wrote:
> (Web-News decided the best place to put a reply to a post in digitalmars.D.announce that was marked as being for digitalmars.D.announce was actually digitalmars.D. I've noticed it doesn't like it when I take more than eight hours or so to write a reply; I guess it's using cookies in silly ways.)
> 
> Robert Fraser Wrote:
> 
>> Burton Radons wrote:
>>> Dejan Lekic Wrote:
>>>
>>>> Mr. Radons, this is *AMAZING* ! Thank you for sharing it with us! I would (seriously) like to see this in Phobos one day (hopefully Phobos developers are reading this thread). It deserves to go into Phobos, definitely.
>>> Sure. What I'd prefer actually would be language integration, so that it can sort out the details of integrating runtime types into the rest of the type hierarchy, and it would be able to statically test the template. That can be done automatically (So some template parameter can't be const-folded? Okay, we'll compile it when we know what the value is!) or with subtle hints like a dynamic attribute (that, and here's the very important part, act like regular template parameters if they ARE const). But that seems unlikely as it would put a comparatively massive burden on the runtime* and make porting to new environments quite a bit more difficult. I haven't used GDC, but if it's as terrifyingly slow as GCC (at no fault of GDC I'll add) I wouldn't consider it suitable for dynamic compilation.
>>>
>>> * In which case, hey, it's optional for restrictive environments!
>> I wouldn't want it transparently doing runtime code generation. I think the library solution, as ugly as it is, is ideal since it lets people know "yeah, this is a weighty operation".
> 
> D has absolutely no presence in limited-memory environments and I don't see that ever happening, not just because of its design but because those environments are dying out (micro-limited-memory environments are here to say). Maybe someone with a 2 GHz processor and a gigabyte of RAM wants to control every single byte, but their concern is invalid. Where they should be enjoying their riches they're sitting there biting their nails over nothing like a rich man obsessed with thieves, while Java and C# gladly take a few dozen megabytes for simple programs. Even if I did think it worth courting them it would be pointless; D has garbage collection and that's the end of the story.

That must be why tabs make it so sad...
March 06, 2008
Just an update - I haven't let this die, and I'm not onto any other projects, but the pub I cook at has been very busy the last few weeks because of a city-wide off-season promotion designed to encourage inter-city touristry that turns us into a packed house for three straight weeks. I also just moved. I should be able to get back to devoting brain space to this by this Sunday.
March 06, 2008
Burton Radons wrote:
> Just an update - I haven't let this die, and I'm not onto any other projects, but the pub I cook at has been very busy the last few weeks because of a city-wide off-season promotion designed to encourage inter-city touristry that turns us into a packed house for three straight weeks. I also just moved. I should be able to get back to devoting brain space to this by this Sunday.

Well aren't you just lucky. <G> I wish I would get that good an excuse once in a while.

(BTW that's suposed to be a joke, and it /is/ a good excuse)
1 2 3
Next ›   Last »