Re: What are AST Macros?

2018-04-13 Thread David Bennett via Digitalmars-d
On Friday, 13 April 2018 at 11:54:12 UTC, David Bennett wrote: Also the other idea I had was to have mixin functions that only take compiletime args (they are UFCS-able though, unlike templates) and mixin themselves when called like: --- mixin add1Xtimes(alias int a, alias int t){ uint i=t

Re: D Library Breakage

2018-04-13 Thread Jonathan Marler via Digitalmars-d
On Friday, 13 April 2018 at 23:36:46 UTC, H. S. Teoh wrote: On Fri, Apr 13, 2018 at 11:00:20PM +, Jonathan Marler via Digitalmars-d wrote: [...] @JonathanDavis, the original post goes through an example where you won't get a compile-time or link-time error...it results in a very bad runtime

Re: D vs nim

2018-04-13 Thread Timothee Cour via Digitalmars-d
@helxi I invite you to contribute PR's to https://github.com/timotheecour/D_vs_nim/ where I discuss feature parity and how to translate concepts from D to nim wherever it makes sense On Fri, Apr 13, 2018 at 4:12 PM, helxi via Digitalmars-d wrote: > On Friday, 10 April 2015 at 18:42:20 UTC, Timot

Re: Migrating an existing more modern GC to D's gc.d

2018-04-13 Thread H. S. Teoh via Digitalmars-d
On Sat, Apr 14, 2018 at 01:40:58AM +0200, Timon Gehr via Digitalmars-d wrote: > On 13.04.2018 23:40, Jonathan M Davis wrote: > > On Friday, April 13, 2018 22:36:31 Timon Gehr via Digitalmars-d wrote: > > > On 10.04.2018 10:56, Jonathan M Davis wrote: > > > > CTFE only ever happens when it must happ

Re: Migrating an existing more modern GC to D's gc.d

2018-04-13 Thread Timon Gehr via Digitalmars-d
On 13.04.2018 23:40, Jonathan M Davis wrote: On Friday, April 13, 2018 22:36:31 Timon Gehr via Digitalmars-d wrote: On 10.04.2018 10:56, Jonathan M Davis wrote: CTFE only ever happens when it must happen. The compiler never does it as an optimization. The frontend doesn't. The backend might.

Re: D Library Breakage

2018-04-13 Thread H. S. Teoh via Digitalmars-d
On Fri, Apr 13, 2018 at 11:00:20PM +, Jonathan Marler via Digitalmars-d wrote: [...] > @JonathanDavis, the original post goes through an example where you > won't get a compile-time or link-time error...it results in a very bad > runtime stack stomp. To put things in perspective, this is esse

Re: D Library Breakage

2018-04-13 Thread Steven Schveighoffer via Digitalmars-d
On 4/13/18 7:00 PM, Jonathan Marler wrote: @Steven You're just addressing the example I gave and not thinking of all the other ways version (or other compiler flags) could change things.  For example, you could have version code inside a template that changes mangling because it is no longer i

Re: D vs nim

2018-04-13 Thread helxi via Digitalmars-d
On Friday, 10 April 2015 at 18:42:20 UTC, Timothee Cour wrote: Nim looks very promising. Is there any comprehensive comparison against D somewhere (if possible recent) ? Nim is way more expressive than D afaik. Consider the following imaginary function: proc fn[A : int | float; N; B : seq[

Re: D Library Breakage

2018-04-13 Thread Jonathan Marler via Digitalmars-d
On Friday, 13 April 2018 at 22:29:25 UTC, Steven Schveighoffer wrote: On 4/13/18 5:57 PM, Jonathan M Davis wrote: On Friday, April 13, 2018 16:15:21 Steven Schveighoffer via Digitalmars-d I don't know if the compiler can determine if a version statement affects the layout, I suppose it could,

Re: D Library Breakage

2018-04-13 Thread Steven Schveighoffer via Digitalmars-d
On 4/13/18 5:57 PM, Jonathan M Davis wrote: On Friday, April 13, 2018 16:15:21 Steven Schveighoffer via Digitalmars-d I don't know if the compiler can determine if a version statement affects the layout, I suppose it could, but it would have to compile both with and without the version to see.

Re: D Library Breakage

2018-04-13 Thread Jonathan M Davis via Digitalmars-d
On Friday, April 13, 2018 16:15:21 Steven Schveighoffer via Digitalmars-d wrote: > On 4/13/18 3:47 PM, Jesse Phillips wrote: > > On Friday, 13 April 2018 at 18:04:38 UTC, Jonathan Marler wrote: > >> Error: symbol "__module_config_foo" needed by main.o is not defined > >> > >> The linker error isn'

Re: Migrating an existing more modern GC to D's gc.d

2018-04-13 Thread Jonathan M Davis via Digitalmars-d
On Friday, April 13, 2018 22:36:31 Timon Gehr via Digitalmars-d wrote: > On 10.04.2018 10:56, Jonathan M Davis wrote: > > CTFE only ever happens when it must happen. The compiler never does it > > as an optimization. > > The frontend doesn't. The backend might. The optimizer may do constant foldin

Re: Migrating an existing more modern GC to D's gc.d

2018-04-13 Thread Timon Gehr via Digitalmars-d
On 10.04.2018 10:56, Jonathan M Davis wrote: CTFE only ever happens when it must happen. The compiler never does it as an optimization. The frontend doesn't. The backend might.

Re: D Library Breakage

2018-04-13 Thread Steven Schveighoffer via Digitalmars-d
On 4/13/18 3:47 PM, Jesse Phillips wrote: On Friday, 13 April 2018 at 18:04:38 UTC, Jonathan Marler wrote: Error: symbol "__module_config_foo" needed by main.o is not defined The linker error isn't great, but it prevents potential runtime errors.  Also, if you use the compiler instead of the l

Re: D Library Breakage

2018-04-13 Thread Steven Schveighoffer via Digitalmars-d
On 4/13/18 4:15 PM, Steven Schveighoffer wrote: I don't know if the compiler can determine if a version statement affects the layout, I suppose it could, but it would have to compile both with and without the version to see. It's probably an intractable problem. Even when the layout is affec

Re: D Library Breakage

2018-04-13 Thread Jesse Phillips via Digitalmars-d
On Friday, 13 April 2018 at 18:04:38 UTC, Jonathan Marler wrote: Error: symbol "__module_config_foo" needed by main.o is not defined The linker error isn't great, but it prevents potential runtime errors. Also, if you use the compiler instead of the linker you'll get a nice error message.

Re: D Library Breakage

2018-04-13 Thread Dmitry Olshansky via Digitalmars-d
On Friday, 13 April 2018 at 18:04:38 UTC, Jonathan Marler wrote: On Friday, 13 April 2018 at 10:47:18 UTC, Rene Zwanenburg wrote: On Friday, 13 April 2018 at 05:31:25 UTC, Jesse Phillips wrote: One thought I has was that we could define a special symbol that basically encodes the configurat

Re: D Library Breakage

2018-04-13 Thread Jonathan Marler via Digitalmars-d
On Friday, 13 April 2018 at 10:47:18 UTC, Rene Zwanenburg wrote: On Friday, 13 April 2018 at 05:31:25 UTC, Jesse Phillips wrote: Well if DIP1000 isn't on by default I don't think Phobos should be compiled with it. I think that the version issue is not unique to D and would be good to address,

Re: What Is Python Developer Salary?

2018-04-13 Thread Kagamin via Digitalmars-d
On Thursday, 12 April 2018 at 21:01:47 UTC, Arnold Blake wrote: I hired a remote developer in the language of the programming python, there was such a question as to how much should I pay him for the work? how many per hour? Estimate the project budget based on the plan and derive salary from

Re: D Library Breakage

2018-04-13 Thread Jesse Phillips via Digitalmars-d
On Friday, 13 April 2018 at 10:47:18 UTC, Rene Zwanenburg wrote: On Friday, 13 April 2018 at 05:31:25 UTC, Jesse Phillips wrote: Well if DIP1000 isn't on by default I don't think Phobos should be compiled with it. I think that the version issue is not unique to D and would be good to address,

Re: What are AST Macros?

2018-04-13 Thread David Bennett via Digitalmars-d
On Friday, 6 April 2018 at 20:33:10 UTC, Chris Katko wrote: Sorry if this is "re-opening" an old thread, but did anything come from this and DIP50? It seems like a really interesting concept and this thread was one of the first results for a Google search. Thanks. Thanks for reminding me ab

Re: D Library Breakage

2018-04-13 Thread Rene Zwanenburg via Digitalmars-d
On Friday, 13 April 2018 at 05:31:25 UTC, Jesse Phillips wrote: Well if DIP1000 isn't on by default I don't think Phobos should be compiled with it. I think that the version issue is not unique to D and would be good to address, but I don't see the compiler reading the object file to determin

Re: What Is Python Developer Salary?

2018-04-13 Thread bauss via Digitalmars-d
On Friday, 13 April 2018 at 10:06:55 UTC, Cym13 wrote: On Friday, 13 April 2018 at 10:00:00 UTC, bauss wrote: On Thursday, 12 April 2018 at 21:01:47 UTC, Arnold Blake wrote: I hired a remote developer in the language of the programming python, there was such a question as to how much should I p

Re: What Is Python Developer Salary?

2018-04-13 Thread Simen Kjærås via Digitalmars-d
On Friday, 13 April 2018 at 10:00:00 UTC, bauss wrote: Also who hires someone before they agree on a salary? Says right there: "Arnold Blake". -- Simen

Re: What Is Python Developer Salary?

2018-04-13 Thread Cym13 via Digitalmars-d
On Friday, 13 April 2018 at 10:00:00 UTC, bauss wrote: On Thursday, 12 April 2018 at 21:01:47 UTC, Arnold Blake wrote: I hired a remote developer in the language of the programming python, there was such a question as to how much should I pay him for the work? how many per hour? What kind of sa

Re: What Is Python Developer Salary?

2018-04-13 Thread bauss via Digitalmars-d
On Friday, 13 April 2018 at 10:05:12 UTC, Simen Kjærås wrote: On Friday, 13 April 2018 at 10:00:00 UTC, bauss wrote: Also who hires someone before they agree on a salary? Says right there: "Arnold Blake". -- Simen Had me chuckle

Re: What Is Python Developer Salary?

2018-04-13 Thread bauss via Digitalmars-d
On Thursday, 12 April 2018 at 21:01:47 UTC, Arnold Blake wrote: I hired a remote developer in the language of the programming python, there was such a question as to how much should I pay him for the work? how many per hour? What kind of salary do they have, are different countries interested,