www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.announce - Sargon component library now on Dub

reply Walter Bright <newshound2 digitalmars.com> writes:
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.
Dec 13 2014
next sibling parent reply "disapoint" <disapoint disapoint.com> writes:
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?
Dec 14 2014
next sibling parent reply "anonymous" <anonymous nowhere.ut> writes:
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 (?).
Dec 14 2014
parent Walter Bright <newshound2 digitalmars.com> writes:
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!
Dec 14 2014
prev sibling parent reply "poucave" <cavientdeca ksdjfhs.ar> writes:
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/
Dec 16 2014
parent "uri" <uri.grill gmail.com> writes:
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é :-)
Dec 16 2014
prev sibling next sibling parent Andrej Mitrovic via Digitalmars-d-announce writes:
On 12/14/14, Walter Bright via Digitalmars-d-announce
<digitalmars-d-announce puremagic.com> 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!
Dec 14 2014
prev sibling parent reply "Don" <x nospam.com> writes:
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.
Dec 17 2014
parent "Ola Fosheim =?UTF-8?B?R3LDuHN0YWQi?= writes:
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/
Dec 17 2014