Re: TempAlloc (Was: Library Development: What to finish/flesh out?)

2011-03-28 Thread Masahiro Nakagawa
On Sun, 27 Mar 2011 12:09:03 +0900, dsimcha dsim...@yahoo.com wrote: On 3/18/2011 2:56 AM, Don wrote: 3. TempAlloc: A memory allocator based on a thread-local segmented stack, useful for allocating large temporary buffers in things like numerics code. Also comes with a hash table, hash set

Re: TempAlloc (Was: Library Development: What to finish/flesh out?)

2011-03-28 Thread dsimcha
On 3/28/2011 7:38 PM, Masahiro Nakagawa wrote: On Sun, 27 Mar 2011 12:09:03 +0900, dsimcha dsim...@yahoo.com wrote: On 3/18/2011 2:56 AM, Don wrote: 3. TempAlloc: A memory allocator based on a thread-local segmented stack, useful for allocating large temporary buffers in things like

Re: Library Development: What to finish/flesh out?

2011-03-26 Thread Johan Granberg
Jonathan M Davis wrote: On 2011-03-17 08:33, dsimcha wrote: I've accumulated a bunch of little libraries via various evening and weekend hacking projects over the past year or so, in various states of completion. Most are things I'm at least half-considering for Phobos, though some belong as

Re: Library Development: What to finish/flesh out?

2011-03-26 Thread spir
On 03/26/2011 04:43 AM, Jonathan M Davis wrote: I find the responses to this list to be rather interesting. Most of it, I find to be of mild interest at best (certainly for the sort of stuff that _I_ do anyway), but others find some of them to be very desirable. List in order from most to

Re: Library Development: What to finish/flesh out?

2011-03-26 Thread dsimcha
On 3/26/2011 4:25 AM, Johan Granberg wrote: Definitely some would love it, me among them. This to me feels like the most useful. Does your (dsimcha) implementation support spare matrices as well, and if not are the api general engough to support them if someone has time to implement them. When

TempAlloc (Was: Library Development: What to finish/flesh out?)

2011-03-26 Thread dsimcha
On 3/18/2011 2:56 AM, Don wrote: 3. TempAlloc: A memory allocator based on a thread-local segmented stack, useful for allocating large temporary buffers in things like numerics code. Also comes with a hash table, hash set and AVL tree optimized for this allocation scheme. The advantages over

Re: Library Development: What to finish/flesh out?

2011-03-25 Thread Sean Kelly
On Mar 24, 2011, at 1:00 PM, dsimcha wrote: BTW, the TempAlloc module also includes a hash table, hash set and AVL tree that are specifically optimized for TempAlloc. Should these be included in the submission? The disadvantages I see here is that they are less generally useful

Re: Library Development: What to finish/flesh out?

2011-03-25 Thread dsimcha
On 3/25/2011 3:50 PM, Sean Kelly wrote: On Mar 24, 2011, at 1:00 PM, dsimcha wrote: BTW, the TempAlloc module also includes a hash table, hash set and AVL tree that are specifically optimized for TempAlloc. Should these be included in the submission? The disadvantages I see here is that they

Re: Library Development: What to finish/flesh out?

2011-03-25 Thread Denis Koroskin
On Sat, 26 Mar 2011 00:26:40 +0300, dsimcha dsim...@yahoo.com wrote: On 3/25/2011 3:50 PM, Sean Kelly wrote: On Mar 24, 2011, at 1:00 PM, dsimcha wrote: BTW, the TempAlloc module also includes a hash table, hash set and AVL tree that are specifically optimized for TempAlloc. Should these

Re: Library Development: What to finish/flesh out?

2011-03-25 Thread dsimcha
On 3/25/2011 5:59 PM, Denis Koroskin wrote: On Sat, 26 Mar 2011 00:26:40 +0300, dsimcha dsim...@yahoo.com wrote: On 3/25/2011 3:50 PM, Sean Kelly wrote: On Mar 24, 2011, at 1:00 PM, dsimcha wrote: BTW, the TempAlloc module also includes a hash table, hash set and AVL tree that are

Re: Library Development: What to finish/flesh out?

2011-03-25 Thread Jonathan M Davis
On 2011-03-17 08:33, dsimcha wrote: I've accumulated a bunch of little libraries via various evening and weekend hacking projects over the past year or so, in various states of completion. Most are things I'm at least half-considering for Phobos, though some belong as third-party libs. I

Re: Library Development: What to finish/flesh out?

2011-03-24 Thread Sean Kelly
On Mar 17, 2011, at 11:56 PM, Don wrote: dsimcha wrote: I've accumulated a bunch of little libraries via various evening and weekend hacking projects over the past year or so, in various states of completion. Most are things I'm at least half-considering for Phobos, though some belong as

Re: Library Development: What to finish/flesh out?

2011-03-24 Thread dsimcha
== Quote from Sean Kelly (s...@invisibleduck.org)'s article On Mar 17, 2011, at 11:56 PM, Don wrote: dsimcha wrote: I've accumulated a bunch of little libraries via various evening and weekend hacking projects over the past year or so, in various states of completion. Most are things

Re: Library Development: What to finish/flesh out?

2011-03-24 Thread dsimcha
== Quote from Sean Kelly (s...@invisibleduck.org)'s article On Mar 17, 2011, at 11:56 PM, Don wrote: dsimcha wrote: I've accumulated a bunch of little libraries via various evening and weekend hacking projects over the past year or so, in various states of completion. Most are things

Re: Library Development: What to finish/flesh out?

2011-03-18 Thread Don
dsimcha wrote: I've accumulated a bunch of little libraries via various evening and weekend hacking projects over the past year or so, in various states of completion. Most are things I'm at least half-considering for Phobos, though some belong as third-party libs. I definitely don't have time

Re: Library Development: What to finish/flesh out?

2011-03-18 Thread Lars T. Kyllingstad
On Thu, 17 Mar 2011 15:33:10 +, dsimcha wrote: I've accumulated a bunch of little libraries via various evening and weekend hacking projects over the past year or so, in various states of completion. Most are things I'm at least half-considering for Phobos, though some belong as

Re: Library Development: What to finish/flesh out?

2011-03-18 Thread spir
On 03/17/2011 11:25 PM, dsimcha wrote: On 3/17/2011 6:18 PM, spir wrote: I'd have much use for both below. On 03/17/2011 04:33 PM, dsimcha wrote: 1. Rational: A library for handling rational numbers exactly. Templated on integer type, can use BigInts for guaranteed accuracy, or fixed-width

Re: Library Development: What to finish/flesh out?

2011-03-18 Thread filgood
Hi Lars, I agree on your orderbut would like to see Matrix ops in Phobos over time (my understanding was that it can work without BLAS (just slower), people can always in BLAS when they need to extra performance, no?). David, thanks a lot for your hard work... On 18/03/2011 09:26,

Re: Library Development: What to finish/flesh out?

2011-03-18 Thread Caligo
On Fri, Mar 18, 2011 at 2:19 PM, filgood filg...@somewhere.net wrote: Hi Lars, I agree on your orderbut would like to see Matrix ops in Phobos over time (my understanding was that it can work without BLAS (just slower), people can always in BLAS when they need to extra performance, no?).

Library Development: What to finish/flesh out?

2011-03-17 Thread dsimcha
I've accumulated a bunch of little libraries via various evening and weekend hacking projects over the past year or so, in various states of completion. Most are things I'm at least half-considering for Phobos, though some belong as third-party libs. I definitely don't have time to finish/flesh

Re: Library Development: What to finish/flesh out?

2011-03-17 Thread Tomek Sowiński
dsimcha napisał: I've accumulated a bunch of little libraries via various evening and weekend hacking projects over the past year or so, in various states of completion. Most are things I'm at least half-considering for Phobos, though some belong as third-party libs. I definitely don't have

Re: Library Development: What to finish/flesh out?

2011-03-17 Thread Jason E. Aten
On Thu, 17 Mar 2011 15:33:10 +, dsimcha wrote: 5. Matrix operations: SciD improvements that allow you to write matrix operations that look like normal math/MATLAB and optimizes them via expression templates so that a minimal number of temporary matrices are created. Uses/will use BLAS

Re: Library Development: What to finish/flesh out?

2011-03-17 Thread spir
I'd have much use for both below. On 03/17/2011 04:33 PM, dsimcha wrote: 1. Rational: A library for handling rational numbers exactly. Templated on integer type, can use BigInts for guaranteed accuracy, or fixed-width integers for more speed where the denominator and numerator will be small.

Re: Library Development: What to finish/flesh out?

2011-03-17 Thread dsimcha
On 3/17/2011 6:18 PM, spir wrote: I'd have much use for both below. On 03/17/2011 04:33 PM, dsimcha wrote: 1. Rational: A library for handling rational numbers exactly. Templated on integer type, can use BigInts for guaranteed accuracy, or fixed-width integers for more speed where the

Re: Library Development: What to finish/flesh out?

2011-03-17 Thread Walter Bright
On 3/17/2011 8:33 AM, dsimcha wrote: 8. GZip support in std.file: I'll leave the stream stuff for someone else, but just simple stuff like read(), write(), append() IMHO belongs in std.file. Completion state: Not started, but this is the easiest of the bunch to implement. (Phobos