Re: associative arrays with manual memory management

2015-08-26 Thread Dmitry Olshansky via Digitalmars-d-announce
On 24-Aug-2015 15:01, Ilya Yaroshenko wrote: http://code.dlang.org/packages/aammm/~master # aammm Associative arrays with manual memory management All enries and buckets would be dealocated and disposed by internal implementation's destructor. The destructor is called by garbage collector (by

Re: associative arrays with manual memory management

2015-08-26 Thread via Digitalmars-d-announce
On Monday, 24 August 2015 at 12:01:52 UTC, Ilya Yaroshenko wrote: http://code.dlang.org/packages/aammm/~master It would be nice to have a test example for other allocators. I'm especially interested in how much speed we can gain with using a non-shared BlockAllocator in combination with

Re: Moving forward with work on the D language and foundation

2015-08-26 Thread rom via Digitalmars-d-announce
On Monday, 24 August 2015 at 18:43:01 UTC, Andrei Alexandrescu wrote: Hello everyone, Following an increasing desire to focus on working on the D language and foundation, I have recently made the difficult decision to part ways with Facebook, my employer of five years and nine months.

Re: associative arrays with manual memory management

2015-08-26 Thread via Digitalmars-d-announce
On Monday, 24 August 2015 at 12:01:52 UTC, Ilya Yaroshenko wrote: Nice! I'll try this! auto a = AA!(string, int, shared Mallocator) When does the third parameter need to be qualified as `shared`?

Re: Moving forward with work on the D language and foundation

2015-08-26 Thread Russel Winder via Digitalmars-d-announce
On Wed, 2015-08-26 at 09:20 +, John Colvin via Digitalmars-d -announce wrote: […] Not a one man shop. Ilya Yaroshenko is helping a lot, Lars T Kyllingstad is on board (along with SciD) and there are many others who are getting involved in some way. Anyone else who's interested should

Re: This Week in D summarizes those long threads for you!

2015-08-26 Thread Iain Buclaw via Digitalmars-d-announce
On 26 August 2015 at 00:55, Laeeth Isharc via Digitalmars-d-announce digitalmars-d-announce@puremagic.com wrote: On Tuesday, 25 August 2015 at 21:43:11 UTC, Iain Buclaw wrote: The work done on GDC is well appreciated, GDC's codebase is much cleaner now than it was before the refactoring.

Re: associative arrays with manual memory management

2015-08-26 Thread Ilya Yaroshenko via Digitalmars-d-announce
On Wednesday, 26 August 2015 at 06:50:26 UTC, Per Nordlöw wrote: On Monday, 24 August 2015 at 12:01:52 UTC, Ilya Yaroshenko wrote: http://code.dlang.org/packages/aammm/~master It would be nice to have a test example for other allocators. I'm especially interested in how much speed we can

Re: associative arrays with manual memory management

2015-08-26 Thread Ilya Yaroshenko via Digitalmars-d-announce
On Wednesday, 26 August 2015 at 06:50:26 UTC, Per Nordlöw wrote: On Monday, 24 August 2015 at 12:01:52 UTC, Ilya Yaroshenko wrote: http://code.dlang.org/packages/aammm/~master It would be nice to have a test example for other allocators. I'm especially interested in how much speed we can

Re: associative arrays with manual memory management

2015-08-26 Thread Ilya Yaroshenko via Digitalmars-d-announce
On Wednesday, 26 August 2015 at 06:41:41 UTC, Per Nordlöw wrote: On Monday, 24 August 2015 at 12:01:52 UTC, Ilya Yaroshenko wrote: Nice! I'll try this! auto a = AA!(string, int, shared Mallocator) When does the third parameter need to be qualified as `shared`? Only if you would use a

Re: Moving forward with work on the D language and foundation

2015-08-26 Thread John Colvin via Digitalmars-d-announce
On Wednesday, 26 August 2015 at 05:51:06 UTC, Dmitry Olshansky wrote: On 25-Aug-2015 23:04, bachmeier wrote: On Tuesday, 25 August 2015 at 19:29:06 UTC, Daniel Kozák wrote: I can't agree more. OK maybe I would add this https://twitter.com/kozzi11/status/636190895856091136 ;-) This is a big

Re: associative arrays with manual memory management

2015-08-26 Thread Ilya Yaroshenko via Digitalmars-d-announce
On Wednesday, 26 August 2015 at 06:52:01 UTC, Dmitry Olshansky wrote: auto a = AA!(string, int, shared Mallocator)(Mallocator.instance); Sure hope a factory to do IFTI is available? So that the following works: auto a = aa!(string, int)(Mallocator.instance); // 3rd CT param is

Re: associative arrays with manual memory management

2015-08-26 Thread via Digitalmars-d-announce
On Wednesday, 26 August 2015 at 10:48:11 UTC, Ilya Yaroshenko auto a = aa!(string, int)(Mallocator.instance); // 3rd CT highlights It would be nice to also see an example at https://github.com/arexeu/aammm that shows AA-usage in conjunction with some other allocator such as FreeList and

Re: associative arrays with manual memory management

2015-08-26 Thread via Digitalmars-d-announce
On Wednesday, 26 August 2015 at 14:21:41 UTC, Ilya Yaroshenko wrote: It is possible but not so useful, thought. Why is it not so useful? `AA!(...).Entry.sizeof` and `AA!(...).Entry.alignof` should be accessible from user code since v0.0.3 . They can be used to construct allocators. I will

Re: associative arrays with manual memory management

2015-08-26 Thread Ilya Yaroshenko via Digitalmars-d-announce
On Wednesday, 26 August 2015 at 12:10:17 UTC, Per Nordlöw wrote: highlights It would be nice to also see an example at https://github.com/arexeu/aammm that shows AA-usage in conjunction with some other allocator such as FreeList and add a note about the performance improvement this gives.

Re: associative arrays with manual memory management

2015-08-26 Thread Ilya Yaroshenko via Digitalmars-d-announce
On Wednesday, 26 August 2015 at 14:24:54 UTC, Per Nordlöw wrote: On Wednesday, 26 August 2015 at 14:21:41 UTC, Ilya Yaroshenko wrote: It is possible but not so useful, thought. Why is it not so useful? Because looks like allocators have different additional params, that dose not related to

Re: associative arrays with manual memory management

2015-08-26 Thread Ilya Yaroshenko via Digitalmars-d-announce
On Wednesday, 26 August 2015 at 13:12:38 UTC, Per Nordlöw wrote: On Wednesday, 26 August 2015 at 09:20:33 UTC, Ilya Yaroshenko wrote: Only if you would use a shared allocator like Mallocator or GCAllocator. Are there cases where a non-shared version of Mallocator or GCAllocator is motivated?

Re: associative arrays with manual memory management

2015-08-26 Thread via Digitalmars-d-announce
On Wednesday, 26 August 2015 at 09:20:33 UTC, Ilya Yaroshenko wrote: Only if you would use a shared allocator like Mallocator or GCAllocator. Are there cases where a non-shared version of Mallocator or GCAllocator is motivated? If not could, maybe the shared-ness could be inferred?

Re: Russian-speaking community

2015-08-26 Thread Majestio via Digitalmars-d-announce
On Friday, 21 August 2015 at 20:06:46 UTC, Andre Polykanine wrote: Cool, but could you please make your captcha accessible without Andre, I do not understand what is wrong with captcha? Write a Russian, it will be better :)

Re: Moving forward with work on the D language and foundation

2015-08-26 Thread Dmitry Olshansky via Digitalmars-d-announce
On 26-Aug-2015 12:20, John Colvin wrote: On Wednesday, 26 August 2015 at 05:51:06 UTC, Dmitry Olshansky wrote: On 25-Aug-2015 23:04, bachmeier wrote: On Tuesday, 25 August 2015 at 19:29:06 UTC, Daniel Kozák wrote: I can't agree more. OK maybe I would add this