automem v0.0.7 - C++ style smart pointers using std.experimental.allocator

2017-04-09 Thread Atila Neves via Digitalmars-d-announce
Using std.experimental.allocator? Tired of writing `scope(exit) allocator.dispose(foo);` in a language with RAII? Me too: http://code.dlang.org/packages/automem Example: I think the code in the README should be enough to understand what's going on. Alpha stuff here but I think the main

Re: automem v0.0.7 - C++ style smart pointers using std.experimental.allocator

2017-04-09 Thread Atila Neves via Digitalmars-d-announce
On Sunday, 9 April 2017 at 09:36:53 UTC, Martin Nowak wrote: On Sunday, 9 April 2017 at 08:56:52 UTC, Atila Neves wrote: I benchmarked RefCounted against C++'s std::shared_ptr comparing ldc to clang using both shared and non-shared payloads in D. std::shared_ptr is faster (I've never written a

fluent-asserts released

2017-04-09 Thread Szabo Bogdan via Digitalmars-d-announce
Hi! I just made an update to my fluent assert library. This is a library that allows you to write asserts in a BDD style. Right now, it contains only asserts that I needed in my projects and I promise that I will add more in the future. I would really appreciate any feedback that you can

Re: automem v0.0.7 - C++ style smart pointers using std.experimental.allocator

2017-04-09 Thread Basile B. via Digitalmars-d-announce
On Sunday, 9 April 2017 at 08:56:52 UTC, Atila Neves wrote: Using std.experimental.allocator? Tired of writing `scope(exit) allocator.dispose(foo);` in a language with RAII? Me too: http://code.dlang.org/packages/automem I think that the Array misses - a reservation strategy, something

Re: influxdb-dlang-wrapper v0.0.1 - D API for InfluxDB

2017-04-09 Thread Atila Neves via Digitalmars-d-announce
On Sunday, 9 April 2017 at 08:18:38 UTC, Andy smith wrote: On Monday, 20 March 2017 at 19:57:03 UTC, Atila Neves wrote: http://code.dlang.org/packages/influxdb-dlang-wrapper InfluxDB is a database optimised for time-series data. This package implements a D API via the REST interface so that

Re: automem v0.0.7 - C++ style smart pointers using std.experimental.allocator

2017-04-09 Thread Martin Nowak via Digitalmars-d-announce
On Sunday, 9 April 2017 at 08:56:52 UTC, Atila Neves wrote: I benchmarked RefCounted against C++'s std::shared_ptr comparing ldc to clang using both shared and non-shared payloads in D. std::shared_ptr is faster (I've never written a smart pointer before), but the advantage of non-atomic

Re: D support for the Meson build system

2017-04-09 Thread Martin Nowak via Digitalmars-d-announce
On Sunday, 21 August 2016 at 19:08:59 UTC, Matthias Klumpp wrote: I hope you find this as useful as I do :-) Yes, mature build systems for bigger projects are great. Any opinion about/experience with [Bazel](https://bazel.build/)? https://github.com/mesonbuild/meson/wiki/Comparisons#bazel

Re: automem v0.0.7 - C++ style smart pointers using std.experimental.allocator

2017-04-09 Thread Andrei Alexandrescu via Digitalmars-d-announce
On 4/9/17 4:56 AM, Atila Neves wrote: Using std.experimental.allocator? Tired of writing `scope(exit) allocator.dispose(foo);` in a language with RAII? Me too: http://code.dlang.org/packages/automem Example: I think the code in the README should be enough to understand what's going on.

Re: automem v0.0.7 - C++ style smart pointers using std.experimental.allocator

2017-04-09 Thread rikki cattermole via Digitalmars-d-announce
On 09/04/2017 2:59 PM, Andrei Alexandrescu wrote: On 4/9/17 4:56 AM, Atila Neves wrote: snip . UniqueArray behaves nearly like a normal array. You can even append to it, but it won't use GC memory (unless, of course, you chose to use GCAllocator)! This may be a great candidate for the

Re: GC blessed for C++ (again)

2017-04-09 Thread Jack Stouffer via Digitalmars-d-announce
On Monday, 10 April 2017 at 04:17:21 UTC, Swoorup Joshi wrote: On Wednesday, 28 September 2016 at 20:50:28 UTC, Ali Çehreli wrote: https://www.reddit.com/r/programming/comments/54xnbg/herb_sutters_experimental_deferred_and_unordered/ Ali Is it possible to have something similar as in library

Re: automem v0.0.7 - C++ style smart pointers using std.experimental.allocator

2017-04-09 Thread mogu via Digitalmars-d-announce
On Sunday, 9 April 2017 at 08:56:52 UTC, Atila Neves wrote: Using std.experimental.allocator? Tired of writing `scope(exit) allocator.dispose(foo);` in a language with RAII? Me too: [...] Nice! Should UniqueArray be implemented as a overloaded version of Unique? Unique!(Object[]) instead

Re: GC blessed for C++ (again)

2017-04-09 Thread Swoorup Joshi via Digitalmars-d-announce
On Wednesday, 28 September 2016 at 20:50:28 UTC, Ali Çehreli wrote: https://www.reddit.com/r/programming/comments/54xnbg/herb_sutters_experimental_deferred_and_unordered/ Ali Is it possible to have something similar as in library rather than GC in core language construct?

Re: dmd Backend converted to Boost License

2017-04-09 Thread Steven Schveighoffer via Digitalmars-d-announce
On 4/7/17 11:14 AM, Walter Bright wrote: https://github.com/dlang/dmd/pull/6680 Yes, this is for real! Symantec has given their permission to relicense it. Thank you, Symantec! Awesome news! As a compiler-writer no-nothing, does this have any implications on the various back-ends gaining

Re: dmd Backend converted to Boost License

2017-04-09 Thread Walter Bright via Digitalmars-d-announce
On 4/9/2017 12:05 PM, Steven Schveighoffer wrote: As a compiler-writer no-nothing, does this have any implications on the various back-ends gaining ideas/code from each other? That is, is it possible we see LDC compile times go down, or DMD optimizations get better? You can't change the

Re: dmd Backend converted to Boost License

2017-04-09 Thread Walter Bright via Digitalmars-d-announce
On 4/7/2017 8:14 AM, Walter Bright wrote: https://github.com/dlang/dmd/pull/6680 Yes, this is for real! Symantec has given their permission to relicense it. Thank you, Symantec! While it's still easy to find, for future reference: https://news.ycombinator.com/item?id=14060846

Re: dmd Backend converted to Boost License

2017-04-09 Thread Bastiaan Veelo via Digitalmars-d-announce
On Friday, 7 April 2017 at 15:14:40 UTC, Walter Bright wrote: https://github.com/dlang/dmd/pull/6680 Yes, this is for real! Symantec has given their permission to relicense it. Thank you, Symantec! Congratulations, and thank you Symantec :-) Bastiaan.

Re: dmd Backend converted to Boost License

2017-04-09 Thread Walter Bright via Digitalmars-d-announce
On 4/8/2017 10:18 PM, jollie wrote: Will this change in licensing pave the way for the conversion of the backend to from c++ to d? That was going to happen anyway, but it makes it more worthwhile.

Re: influxdb-dlang-wrapper v0.0.1 - D API for InfluxDB

2017-04-09 Thread Andy smith via Digitalmars-d-announce
On Monday, 20 March 2017 at 19:57:03 UTC, Atila Neves wrote: http://code.dlang.org/packages/influxdb-dlang-wrapper InfluxDB is a database optimised for time-series data. This package implements a D API via the REST interface so that this code works: [...] Cool stuff. Worth stating that