Re: Interesting synchronization paradigm: flat combining

2016-05-24 Thread Piotr Szturmaj via Digitalmars-d
On 2016-05-21 16:06, Piotr Szturmaj wrote: https://www.cs.bgu.ac.il/~hendlerd/papers/flat-combining.pdf [2010] "Traditional data structure designs, whether lock-based or lock-free, provide parallelism via fine grained synchronization among threads. We introduce a new synchronization paradigm

Re: Idea: swap with multiple arguments

2016-05-24 Thread Piotr Szturmaj via Digitalmars-d
On 2016-05-24 02:16, H. S. Teoh via Digitalmars-d wrote: On Mon, May 23, 2016 at 04:01:08PM -0400, Andrei Alexandrescu via Digitalmars-d wrote: So swap(a, b) swaps the contents of a and b. This could be easily generalized to multiple arguments such that swap(a1, a2, ..., an) arranges things

Interesting synchronization paradigm: flat combining

2016-05-21 Thread Piotr Szturmaj via Digitalmars-d
https://www.cs.bgu.ac.il/~hendlerd/papers/flat-combining.pdf [2010] "Traditional data structure designs, whether lock-based or lock-free, provide parallelism via fine grained synchronization among threads. We introduce a new synchronization paradigm based on coarse locking, which we call flat

Jai - interesting programming language

2016-03-19 Thread Piotr Szturmaj via Digitalmars-d
https://github.com/BSVino/JaiPrimer/blob/master/JaiPrimer.md Looks like it has some features that D has too, for instance CTFE and default value initialization that can be disabled. Not that it's a superior language, but I like its fresh/innovative approach.

Re: Ddb needs a maintainer

2016-02-15 Thread Piotr Szturmaj via Digitalmars-d-announce
On 2016-02-14 20:48, Eugene Wissner wrote: I think may be we should discuss if we can/should change something in ddb. I think there were some interesting and promising ideas in this discussion. Maybe split the PostgreSQL driver and develop it seperately and use an interface more similar to JDBC.

Ddb needs a maintainer

2016-02-12 Thread Piotr Szturmaj via Digitalmars-d-announce
Ddb is a relational database client for D [1]. Currently it only supports PostgreSQL but is not limited to it. It could be extended to support other backends. Built-in postgres client is a native implementation, that is it does not depend on libpq. Instead it communicates directly with the

Re: std.data.json formal review

2015-07-29 Thread Piotr Szturmaj via Digitalmars-d
W dniu 2015-07-29 o 00:37, H. S. Teoh via Digitalmars-d pisze: On Tue, Jul 28, 2015 at 03:29:02PM -0700, Walter Bright via Digitalmars-d wrote: [...] 3. Stepping back a bit, when I think of parsing JSON data, I think: auto ast = inputrange.toJSON(); where toJSON() accepts an input range

Re: Why aren't you using D at work?

2015-07-15 Thread Piotr Szturmaj via Digitalmars-d
By the way.. does anyone know if Sociomantic accepts remote D jobs?

Re: Overload using nogc

2014-11-23 Thread Piotr Szturmaj via Digitalmars-d
W dniu 2014-11-22 o 17:56, Ary Borenszweig pisze: On 11/21/14, 12:36 AM, Jonathan Marler wrote: Has the idea of function overloading via nogc been explored? void func() @nogc { // logic that does not use GC } void func() { // logic that uses GC } void main(string[] args) // @nogc {

Re: Overload using nogc

2014-11-22 Thread Piotr Szturmaj via Digitalmars-d
W dniu 2014-11-21 o 04:36, Jonathan Marler pisze: Has the idea of function overloading via nogc been explored? void func() @nogc { // logic that does not use GC } void func() { // logic that uses GC } void main(string[] args) // @nogc { // if main is @nogc, then the @nogc version

Re: gchunt v0.1.0 is out!

2014-11-20 Thread Piotr Szturmaj via Digitalmars-d-announce
W dniu 2014-11-11 o 23:38, Dmitry Olshansky pisze: gchunt is a tool is to help D developers identify and keep in check the usage of GC in their projects. So far it just postprocesses D compiler's -vgc output into a nice Wiki table. Results looks like this (Phobos):