Re: See you soon at dconf

2017-05-02 Thread Bastiaan Veelo via Digitalmars-d
On Tuesday, 2 May 2017 at 20:19:02 UTC, Stefan Koch wrote: Hi, I am very happy to see you soon at dconf. Likewise! I am at the airport as I type. Bastiaan.

Re: CTFE Status 2

2017-05-02 Thread Adrian Matoga via Digitalmars-d
On Wednesday, 3 May 2017 at 04:22:00 UTC, Stefan Koch wrote: On Tuesday, 2 May 2017 at 22:08:31 UTC, Moritz Maxeiner wrote: [...] Using TCP would just remove any potential future headache from the equation. I think any ordering should be done explicitly at the debugging protocol level. for e

Re: See you soon at dconf

2017-05-02 Thread Dukc via Digitalmars-d
On Tuesday, 2 May 2017 at 20:19:02 UTC, Stefan Koch wrote: Hope this time there is dmd on the machine! perhaps you could alternatively use online compilers like DPaste, assuming there's an internet connection. Of course depending on what you're doing.

Re: CTFE Status 2

2017-05-02 Thread Stefan Koch via Digitalmars-d
On Tuesday, 2 May 2017 at 22:08:31 UTC, Moritz Maxeiner wrote: On Tuesday, 2 May 2017 at 09:55:56 UTC, Stefan Koch wrote: [...] I intended for the debugging functionality to be exposed via a udp socket listening on localhost. Such that a debug-ui does not have to deal with ipc difficulties.

Re: The D ecosystem in Debian with free-as-in-freedom DMD

2017-05-02 Thread Moritz Maxeiner via Digitalmars-d
On Tuesday, 2 May 2017 at 23:27:28 UTC, Marco Leise wrote: Am Tue, 02 May 2017 20:53:50 + schrieb Moritz Maxeiner : On Tuesday, 2 May 2017 at 19:34:44 UTC, Marco Leise wrote: > > I see what you're doing there, but your last point is > wishful thinking. Dynamically linked binaries can share

Re: D and SCons

2017-05-02 Thread Dmitry Olshansky via Digitalmars-d
On 5/3/17 12:39 AM, H. S. Teoh via Digitalmars-d wrote: On Wed, May 03, 2017 at 12:05:48AM +0200, Dmitry Olshansky via Digitalmars-d wrote: On 5/2/17 2:20 PM, Russel Winder via Digitalmars-d wrote: Hi, Prompted by Bill Deegan (*), I have started a SCons wiki page on D support. Even if you do

Re: The D ecosystem in Debian with free-as-in-freedom DMD

2017-05-02 Thread Marco Leise via Digitalmars-d
Am Tue, 02 May 2017 20:53:50 + schrieb Moritz Maxeiner : > On Tuesday, 2 May 2017 at 19:34:44 UTC, Marco Leise wrote: > > > > I see what you're doing there, but your last point is wishful > > thinking. Dynamically linked binaries can share megabytes of > > code. Even Phobos - although heavil

Re: [OT] Algorithm question

2017-05-02 Thread MysticZach via Digitalmars-d
On Tuesday, 2 May 2017 at 21:00:36 UTC, Timon Gehr wrote: On 02.05.2017 22:42, MysticZach wrote: On Tuesday, 2 May 2017 at 13:44:03 UTC, MysticZach wrote: for (;;) { if (P(a[i])) return i; ++count; if (count == length) return -1; i += hop; if (i

Re: D and SCons

2017-05-02 Thread H. S. Teoh via Digitalmars-d
On Wed, May 03, 2017 at 12:05:48AM +0200, Dmitry Olshansky via Digitalmars-d wrote: > On 5/2/17 2:20 PM, Russel Winder via Digitalmars-d wrote: > > Hi, > > > > Prompted by Bill Deegan (*), I have started a SCons wiki page on D > > support. Even if you do not actually use SCons for D code, if you

Re: CTFE Status 2

2017-05-02 Thread Moritz Maxeiner via Digitalmars-d
On Tuesday, 2 May 2017 at 09:55:56 UTC, Stefan Koch wrote: [...] I intended for the debugging functionality to be exposed via a udp socket listening on localhost. Such that a debug-ui does not have to deal with ipc difficulties. Hm, rationale for UDP over TCP here? I would assume one wouldn'

Re: D and SCons

2017-05-02 Thread Dmitry Olshansky via Digitalmars-d
On 5/2/17 2:20 PM, Russel Winder via Digitalmars-d wrote: Hi, Prompted by Bill Deegan (*), I have started a SCons wiki page on D support. Even if you do not actually use SCons for D code, if you are interested in D you are interested in this page as it is another marketing vector for D. I've

Re: [OT] Algorithm question

2017-05-02 Thread Timon Gehr via Digitalmars-d
On 02.05.2017 22:42, MysticZach wrote: On Tuesday, 2 May 2017 at 13:44:03 UTC, MysticZach wrote: 1. Test a random element in the array. If it satisfies P, return it. 2. Choose a hopper interval, h, that is relatively prime to the number of elements in the array, n. You could do this by randomly

Re: The D ecosystem in Debian with free-as-in-freedom DMD

2017-05-02 Thread Moritz Maxeiner via Digitalmars-d
On Tuesday, 2 May 2017 at 19:34:44 UTC, Marco Leise wrote: I see what you're doing there, but your last point is wishful thinking. Dynamically linked binaries can share megabytes of code. Even Phobos - although heavily templated - has proven to be very amenable to sharing. For example, a "Hel

Re: The D ecosystem in Debian with free-as-in-freedom DMD

2017-05-02 Thread David Nadlinger via Digitalmars-d
On Tuesday, 2 May 2017 at 19:34:44 UTC, Marco Leise wrote: static Phobos2 : 806968 bytes dynamic Phobos2 : 18552 bytes That's about 770 KiB to share or 97.7% of its total size! Awesome! By the way, using LDC: 402736 bytes for the static build (Linux x86_64). ;) — David

Re: [OT] Algorithm question

2017-05-02 Thread MysticZach via Digitalmars-d
On Tuesday, 2 May 2017 at 13:44:03 UTC, MysticZach wrote: 1. Test a random element in the array. If it satisfies P, return it. 2. Choose a hopper interval, h, that is relatively prime to the number of elements in the array, n. You could do this by randomly selecting from a pre-made list of prim

Re: The D ecosystem in Debian with free-as-in-freedom DMD

2017-05-02 Thread Marco Leise via Digitalmars-d
Am Tue, 11 Apr 2017 15:03:36 + schrieb qznc : > On Tuesday, 11 April 2017 at 12:56:59 UTC, Jonathan M Davis wrote: > > But if we just use dub - which _is_ the official packaging and > > build tool - then we avoid these issues. Ideally, the compiler > > and dub would be part of the distro, bu

See you soon at dconf

2017-05-02 Thread Stefan Koch via Digitalmars-d
Hi, I am very happy to see you soon at dconf. And I apologize in advance for my nearly slideless talk. Hope this time there is dmd on the machine! Cheers Stefan

Re: The D ecosystem in Debian with free-as-in-freedom DMD

2017-05-02 Thread Marco Leise via Digitalmars-d
Am Tue, 11 Apr 2017 07:40:12 -0700 schrieb Jonathan M Davis via Digitalmars-d : > It could always just be distributed as a static library. There arguably > isn't much point in distributing it as a shared library anyway - > particularly when it's not ABI compatible across versions. I actively avoid

Re: DIP 1004 Preliminary Review Round 1

2017-05-02 Thread Adam D. Ruppe via Digitalmars-d
On Tuesday, 2 May 2017 at 09:03:27 UTC, deadalnix wrote: 100% in favor of the constructor behavior change in case no constructor is in the derived class. I agree.

Re: The D ecosystem in Debian with free-as-in-freedom DMD

2017-05-02 Thread Marco Leise via Digitalmars-d
Am Wed, 12 Apr 2017 07:42:42 + schrieb Martin Nowak : > Our point releases might also contain small ABI > incompatibilities, so they aren't really eligible as patch > version. I've actually been hit by this in one point release on Gentoo, where I used dynamic linking for Dlang as soon as it

Re: CTFE Status 2

2017-05-02 Thread H. S. Teoh via Digitalmars-d
On Tue, May 02, 2017 at 09:55:56AM +, Stefan Koch via Digitalmars-d wrote: [...] > I intended for the debugging functionality to be exposed via a udp > socket listening on localhost. > Such that a debug-ui does not have to deal with ipc difficulties. > I am strictly against building a debugger

Re: [OT] Algorithm question

2017-05-02 Thread MysticZach via Digitalmars-d
On Tuesday, 2 May 2017 at 11:27:17 UTC, Ivan Kazmenko wrote: On Tuesday, 2 May 2017 at 10:35:46 UTC, Ivan Kazmenko wrote: I hope some part of the idea is still salvageable. For example, what if we put the intervals in a queue instead of a stack? I tried to implement a similar approach, but in

Re: Definition of D

2017-05-02 Thread Jacob Carlborg via Digitalmars-d
On 2017-05-02 13:01, Russel Winder via Digitalmars-d wrote: Is D defined by DMD it's reference implementation, or is there a formal definition somewhere that is met by the reference implementation? I would say that it's a mix of "The D programming Language", the specification on dlang.org and

D and SCons

2017-05-02 Thread Russel Winder via Digitalmars-d
Hi, Prompted by Bill Deegan (*), I have started a SCons wiki page on D support. Even if you do not actually use SCons for D code, if you are interested in D you are interested in this page as it is another marketing vector for D. Two things: 1. Can people check what is there, and that it has ver

Re: I'm looking for job on D

2017-05-02 Thread Laeeth Isharc via Digitalmars-d
On Tuesday, 2 May 2017 at 11:32:23 UTC, Sergey wrote: Hi everyone! Is there work where to use D? (remotely) Thanks in advance! https://dlang.org/orgs-using-d.html https://wiki.dlang.org/Current_D_Use But you will probably have more luck if you link to a bio and repository of your work. Som

I'm looking for job on D

2017-05-02 Thread Sergey via Digitalmars-d
Hi everyone! Is there work where to use D? (remotely) Thanks in advance!

Re: Definition of D

2017-05-02 Thread Basile B. via Digitalmars-d
On Tuesday, 2 May 2017 at 11:01:04 UTC, Russel Winder wrote: Is D defined by DMD it's reference implementation, I'd say that this is the case, with - The D programming Language: http://erdani.com/index.php/books/tdpl/ "The D Programming Language, dubbed TDPL by its readers, is the ultimate

Re: [OT] Algorithm question

2017-05-02 Thread Ivan Kazmenko via Digitalmars-d
On Tuesday, 2 May 2017 at 10:35:46 UTC, Ivan Kazmenko wrote: I hope some part of the idea is still salvageable. For example, what if we put the intervals in a queue instead of a stack? I tried to implement a similar approach, but instead of a queue or a stack, I used a random-access array of

Re: DIP 1004 Preliminary Review Round 1

2017-05-02 Thread Andrej Mitrovic via Digitalmars-d
On Tuesday, 2 May 2017 at 09:03:27 UTC, deadalnix wrote: 100% in favor of the constructor behavior change in case no constructor is in the derived class. I think we could even split this up into two separate proposals, because this part of the DIP is fairly non-controversial and could be appr

Definition of D

2017-05-02 Thread Russel Winder via Digitalmars-d
Is D defined by DMD it's reference implementation, or is there a formal definition somewhere that is met by the reference implementation? -- Russel. = Dr Russel Winder t: +44 20 7585 2200 voip: sip:russel.win...@ek

Re: [OT] Algorithm question

2017-05-02 Thread Ivan Kazmenko via Digitalmars-d
On Monday, 1 May 2017 at 21:54:43 UTC, MysticZach wrote: On Monday, 1 May 2017 at 16:56:58 UTC, MysticZach wrote: The goal is to have the first hit be the one you return. The method: if a random pick doesn't satisfy, randomly choose the partition greater than or less than based on uniform(0..a

Re: DIP 1004 Preliminary Review Round 1

2017-05-02 Thread Basile B. via Digitalmars-d
On Monday, 1 May 2017 at 16:08:36 UTC, Andrej Mitrovic wrote: On Monday, 1 May 2017 at 15:33:47 UTC, Basile B. wrote: On Monday, 1 May 2017 at 14:55:28 UTC, Mike Parker wrote: DIP 1004 is titled "Inherited Constructors. [...] All review-related feedback on and discussion of the DIP should occu

Re: DIP 1004 Preliminary Review Round 1

2017-05-02 Thread Dmitry Olshansky via Digitalmars-d
On 5/2/17 11:03 AM, deadalnix wrote: On Monday, 1 May 2017 at 14:55:28 UTC, Mike Parker wrote: DIP 1004 is titled "Inherited Constructors. https://github.com/dlang/DIPs/blob/master/DIPs/DIP1004.md All review-related feedback on and discussion of the DIP should occur in this thread. Due to DCon

Re: CTFE Status 2

2017-05-02 Thread Stefan Koch via Digitalmars-d
On Monday, 1 May 2017 at 19:06:24 UTC, H. S. Teoh wrote: On Mon, May 01, 2017 at 06:23:08PM +, Stefan Koch via Digitalmars-d wrote: [...] I'm not sure about providing a debugger UI inside the compiler itself... it's certainly possible, and could lead to interesting new ways of using a co

Re: DIP 1004 Preliminary Review Round 1

2017-05-02 Thread deadalnix via Digitalmars-d
On Monday, 1 May 2017 at 14:55:28 UTC, Mike Parker wrote: DIP 1004 is titled "Inherited Constructors. https://github.com/dlang/DIPs/blob/master/DIPs/DIP1004.md All review-related feedback on and discussion of the DIP should occur in this thread. Due to DConf taking place during the review per

Re: Interesting PRs: bringing type system legitimacy to shared allocators

2017-05-02 Thread Atila Neves via Digitalmars-d
On Monday, 1 May 2017 at 07:42:19 UTC, Sebastiaan Koppe wrote: On Friday, 28 April 2017 at 22:18:54 UTC, Atila Neves wrote: Done. I also added to the README that it has its own versions of the range constraints from Phobos that can be used with `@models`. Atila Example of an error message i