Re: Sargon component library now on Dub
On Sunday, 14 December 2014 at 03:26:56 UTC, Walter Bright wrote: http://code.dlang.org/packages/sargon These two modules failed to generate much interest in incorporating them into Phobos, but I'm still rather proud of them :-) Here they are: ◦sargon.lz77 - algorithms to compress and expand with LZ77 compression algorithm ◦sargon.halffloat - IEEE 754 half-precision binary floating point format binary16 I'll be adding more in the future. how about you take the time to add a complete set of window headers before more people loose customers or their reputation?
Re: Sargon component library now on Dub
On Sunday, 14 December 2014 at 13:31:57 UTC, disapoint wrote: On Sunday, 14 December 2014 at 03:26:56 UTC, Walter Bright wrote: http://code.dlang.org/packages/sargon These two modules failed to generate much interest in incorporating them into Phobos, but I'm still rather proud of them :-) Here they are: ◦sargon.lz77 - algorithms to compress and expand with LZ77 compression algorithm ◦sargon.halffloat - IEEE 754 half-precision binary floating point format binary16 I'll be adding more in the future. how about you take the time to add a complete set of window headers before more people loose customers or their reputation? Everything is in the lib file... it takes 30 second to copy and convert the import header from MSDN. I mean: your attack is not relevant. By the way additional imports could be added by PR by anyone tough I'm not sure if the DM team accept 3rd party PR (?).
Re: Sargon component library now on Dub
On 12/14/2014 8:19 AM, anonymous wrote: I'm not sure if the DM team accept 3rd party PR (?). We do all the time!
Re: Sargon component library now on Dub
On 12/14/14, Walter Bright via Digitalmars-d-announce wrote: > http://code.dlang.org/packages/sargon > > These two modules failed to generate much interest in incorporating them > into > Phobos, but I'm still rather proud of them :-) Very cool that you decided to do this! code.dlang.org has become a real thing really fast, I love that it has grown so much. > I'll be adding more in the future. Sweet, looking forward to it!
Re: Sargon component library now on Dub
On Sunday, 14 December 2014 at 13:31:57 UTC, disapoint wrote: On Sunday, 14 December 2014 at 03:26:56 UTC, Walter Bright wrote: http://code.dlang.org/packages/sargon These two modules failed to generate much interest in incorporating them into Phobos, but I'm still rather proud of them :-) Here they are: ◦sargon.lz77 - algorithms to compress and expand with LZ77 compression algorithm ◦sargon.halffloat - IEEE 754 half-precision binary floating point format binary16 I'll be adding more in the future. how about you take the time to add a complete set of window headers before more people loose customers or their reputation? http://www.linternaute.com/proverbe/710/un-mauvais-ouvrier-a-toujours-de-mauvais-outils/
Re: Sargon component library now on Dub
On Tuesday, 16 December 2014 at 23:16:32 UTC, poucave wrote: On Sunday, 14 December 2014 at 13:31:57 UTC, disapoint wrote: On Sunday, 14 December 2014 at 03:26:56 UTC, Walter Bright wrote: http://code.dlang.org/packages/sargon These two modules failed to generate much interest in incorporating them into Phobos, but I'm still rather proud of them :-) Here they are: ◦sargon.lz77 - algorithms to compress and expand with LZ77 compression algorithm ◦sargon.halffloat - IEEE 754 half-precision binary floating point format binary16 I'll be adding more in the future. how about you take the time to add a complete set of window headers before more people loose customers or their reputation? http://www.linternaute.com/proverbe/710/un-mauvais-ouvrier-a-toujours-de-mauvais-outils/ touché :-)
Re: Sargon component library now on Dub
On Sunday, 14 December 2014 at 03:26:56 UTC, Walter Bright wrote: http://code.dlang.org/packages/sargon These two modules failed to generate much interest in incorporating them into Phobos, but I'm still rather proud of them :-) So am I, the halffloat is much faster than any other implementation I've seen. The fast path for the conversion functions involves only a few machine instructions. I had an extra speedup for it that made it optimal, but it requires a language primitive to dump excess hidden precision. We still need this, it is a fundamental operation (C tries to do it implicitly using "sequence points", but they don't actually work properly). Here they are: ◦sargon.lz77 - algorithms to compress and expand with LZ77 compression algorithm ◦sargon.halffloat - IEEE 754 half-precision binary floating point format binary16 I'll be adding more in the future.
Re: Sargon component library now on Dub
On Wednesday, 17 December 2014 at 09:11:22 UTC, Don wrote: So am I, the halffloat is much faster than any other implementation I've seen. The fast path for the conversion functions involves only a few machine instructions. I had an extra speedup for it that made it optimal, but it requires a language primitive to dump excess hidden precision. We still need this, it is a fundamental operation (C tries to do it implicitly using "sequence points", but they don't actually work properly). The intrinsics _mm_cvtph_ps and _mm_cvtps_ph converts 4 floats/halffloats with a latency of 4 clock cycles and a throughput of 1 per cycle on Haswell. https://software.intel.com/sites/landingpage/IntrinsicsGuide/