March 05, 2007 Re: Hacker key | ||||
---|---|---|---|---|
| ||||
Posted in reply to Dan | Dan Wrote: They have a generator, good. The one I just wrote up had bugs and missing features. : p Here we are: v4sw7+8CHSUhw5ln7pr7AFOPS$ck2ma5+8u6+7LOSw4Xm3l6GKLSiOSciTE/e4t3b6ADHen4a2Xs6/8MRr8p-2/-5g5GV hackerkey.com |
March 06, 2007 Re: MMX array operations (was: Optimizations of DMD) | ||||
---|---|---|---|---|
| ||||
Posted in reply to Benji Smith | Benji Smith wrote: > Daniel Keep wrote: >> Some time ago, I wrote a simple library that extended arrays of basic types with parallel operations (like add, mult, madd, etc.) that were coded in MMX. Never bothered to publish it since I wasn't sure if it was actually useful or not... > > Please do publish it. I'd like to teach myself some assembly programming, and it'd be nice to see someone else's code for inlining array operations with MMX instructions. > > If you don't post it at dsource, at least send me an email with the code attached. > > Thanks!! > > --benji Tracked it down, zipped it up, and attached it. However, keep in mind that this code is almost a year old, not extensively tested, and *very likely* won't compile. If you actually want to get it working, I suggest looking for implicit conversions from arrays to pointers and public/private import problems (default changed from public to private). I actually liked how this library was put together, even if it *was* fairly useless. At compile time, it selected one of a set of backends depending on version flags and what platform you were on. If your platform didn't have a fast parallel implementation available, it simply fell back on the software implementation. Code once, run anywhere, run really fast where possible :P Anyway, the assembler code should still work. I don't think it's all been very thoroughly tested, and there could be other errors or problems. But it might make a nice starting point. Incidentally, all of the code is public domain, so if anyone wants to take this and run with it, feel free. If anyone on the Tango project is interested, I'd still like to see something like this in Tango (or Phobos!) at some stage (better designed, I would hope). -- Daniel -- Unlike Knuth, I have neither proven or tried the above; it may not even make sense. v2sw5+8Yhw5ln4+5pr6OFPma8u6+7Lw4Tm6+7l6+7D i28a2Xs3MSr2e4/6+7t4TNSMb6HTOp5en5g6RAHCP http://hackerkey.com/ |
March 06, 2007 Re: MMX array operations | ||||
---|---|---|---|---|
| ||||
Posted in reply to Daniel Keep Attachments: | Hmm... forgot to attach it. I tried uploading to my web-space, but it looks like the ISP's decided to not publish user directories anymore :'(
-- Daniel
--
Unlike Knuth, I have neither proven or tried the above; it may not even make sense.
v2sw5+8Yhw5ln4+5pr6OFPma8u6+7Lw4Tm6+7l6+7D i28a2Xs3MSr2e4/6+7t4TNSMb6HTOp5en5g6RAHCP http://hackerkey.com/
|
March 06, 2007 Re: Hacker key (was: Optimizations of DMD) | ||||
---|---|---|---|---|
| ||||
Posted in reply to Stewart Gordon | Two other interesting observations. 1. "Keep the Guide up to date. I can only promise I will either keep the guide up to date or turn it over to someone who will. Time will tell if I can keep that promise." It took me a while to notice that it was talking about keeping the Guide up to date, not keeping Hacker Key itself up to date (which it already isn't). 2. It isn't clear how they're making commercial use of the Hacker Key or even planning to. Stewart. |
March 06, 2007 Re: MMX array operations | ||||
---|---|---|---|---|
| ||||
Posted in reply to Daniel Keep | Daniel Keep wrote:
> Hmm... forgot to attach it. I tried uploading to my web-space, but it
> looks like the ISP's decided to not publish user directories anymore :'(
Thanks!!!
--benji
|
Copyright © 1999-2021 by the D Language Foundation